SEPneumonia.h
1/* Distributed under the Apache License, Version 2.0.
2 See accompanying NOTICE file for details.*/
3
4#pragma once
5#include "cdm/patient/conditions/SEPatientCondition.h"
6#include "cdm/system/physiology/SERespiratorySystem.h"
7
8class CDM_DECL SEPneumonia : public SEPatientCondition
9{
10 friend class PBPatientCondition;//friend the serialization class
11public:
12
13 SEPneumonia(Logger* logger=nullptr);
14 virtual ~SEPneumonia();
15
16 static constexpr char const* Name = "Pneumonia";
17 std::string GetName() const override { return Name; }
18
19 void Clear() override;
20 void Copy(const SEPneumonia& src);
21
22 bool IsValid() const override;
23 bool IsActive() const override;
24 void Activate() override;
25
26 virtual bool HasSeverity() const;
27 virtual LungImpairmentMap& GetSeverities();
28 virtual const LungImpairmentMap& GetSeverities() const;
29 virtual bool HasSeverity(eLungCompartment cmpt) const;
30 virtual SEScalar0To1& GetSeverity(eLungCompartment cmpt);
31 virtual double GetSeverity(eLungCompartment cmpt) const;
32
33protected:
34 LungImpairmentMap m_Severities;
35};
Definition: Logger.h:71
Definition: PBPatientConditions.h:24
static void Copy(const SEAcuteRespiratoryDistressSyndrome &src, SEAcuteRespiratoryDistressSyndrome &dst)
Definition: PBPatientConditions.cpp:67
virtual void Activate()
Definition: SECondition.h:26
Definition: SEPatientCondition.h:8
bool IsValid() const override=0
bool IsActive() const override=0
void Clear() override
Definition: SEPatientCondition.cpp:17
Definition: SEPneumonia.h:9
LungImpairmentMap m_Severities
Definition: SEPneumonia.h:34
std::string GetName() const override
Definition: SEPneumonia.h:17
Definition: SEScalar0To1.h:8

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.