SEChronicObstructivePulmonaryDisease.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 
9 {
10  friend class PBPatientCondition;//friend the serialization class
11 public:
12 
15 
16  static constexpr char const* Name = "Chronic Obstructive Pulmonary Disease";
17  std::string GetName() const override { return Name; }
18 
19  void Clear() override;
21 
22  bool IsValid() const override;
23  bool IsActive() const override;
24  void Activate() override;
25 
26  virtual bool HasBronchitisSeverity() const;
27  virtual SEScalar0To1& GetBronchitisSeverity();
28  virtual double GetBronchitisSeverity() const;
29 
30  virtual bool HasEmphysemaSeverity() const;
31  virtual LungImpairmentMap& GetEmphysemaSeverities();
32  virtual const LungImpairmentMap& GetEmphysemaSeverities() const;
33  virtual bool HasEmphysemaSeverity(eLungCompartment cmpt) const;
34  virtual SEScalar0To1& GetEmphysemaSeverity(eLungCompartment cmpt);
35  virtual double GetEmphysemaSeverity(eLungCompartment cmpt) const;
36 
37 protected:
39  LungImpairmentMap m_EmphysemaSeverities;
40 };
Definition: Logger.h:71
Definition: PBPatientConditions.h:24
static void Copy(const SEAcuteRespiratoryDistressSyndrome &src, SEAcuteRespiratoryDistressSyndrome &dst)
Definition: PBPatientConditions.cpp:67
Definition: SEChronicObstructivePulmonaryDisease.h:9
SEScalar0To1 * m_BronchitisSeverity
Definition: SEChronicObstructivePulmonaryDisease.h:38
std::string GetName() const override
Definition: SEChronicObstructivePulmonaryDisease.h:17
LungImpairmentMap m_EmphysemaSeverities
Definition: SEChronicObstructivePulmonaryDisease.h:39
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: SEScalar0To1.h:8

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.