SEChronicObstructivePulmonaryDiseaseExacerbation.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/actions/SEPatientAction.h"
6 #include "cdm/system/physiology/SERespiratorySystem.h"
7 
9 {
10  friend class PBPatientAction;//friend the serialization class
11 public:
12 
15 
16  static constexpr char const* Name = "COPD Exacerbation";
17  std::string GetName() const override { return Name; }
18 
19  void Clear() override;
20  void Copy(const SEChronicObstructivePulmonaryDiseaseExacerbation& src, bool /*preserveState*/=false);
21 
22  const SEScalar* GetScalar(const std::string& name) override;
23 
24  bool IsValid() const override;
25  bool IsActive() const override;
26  void Activate() override;
27  void Deactivate() override;
28 
29  virtual bool HasBronchitisSeverity() const;
30  virtual SEScalar0To1& GetBronchitisSeverity();
31  virtual double GetBronchitisSeverity() const;
32 
33  virtual bool HasEmphysemaSeverity() const;
34  virtual LungImpairmentMap& GetEmphysemaSeverities();
35  virtual const LungImpairmentMap& GetEmphysemaSeverities() const;
36  virtual bool HasEmphysemaSeverity(eLungCompartment cmpt) const;
37  virtual SEScalar0To1& GetEmphysemaSeverity(eLungCompartment cmpt);
38  virtual double GetEmphysemaSeverity(eLungCompartment cmpt) const;
39 
40 protected:
42  LungImpairmentMap m_EmphysemaSeverities;
43 };
Definition: Logger.h:71
Definition: PBPatientActions.h:52
virtual const SEScalar * GetScalar(const std::string &name)=0
static SEAction * Copy(const SEAction &, const SESubstanceManager &)
Definition: SEAction.cpp:53
Definition: SEChronicObstructivePulmonaryDiseaseExacerbation.h:9
std::string GetName() const override
Definition: SEChronicObstructivePulmonaryDiseaseExacerbation.h:17
SEScalar0To1 * m_BronchitisSeverity
Definition: SEChronicObstructivePulmonaryDiseaseExacerbation.h:41
LungImpairmentMap m_EmphysemaSeverities
Definition: SEChronicObstructivePulmonaryDiseaseExacerbation.h:42
Definition: SEPatientAction.h:8
void Deactivate() override
Definition: SEPatientAction.h:23
void Clear() override
Definition: SEPatientAction.h:18
void Activate() override
Definition: SEPatientAction.h:21
bool IsValid() const override
Definition: SEPatientAction.h:19
bool IsActive() const override
Definition: SEPatientAction.h:22
Definition: SEScalar0To1.h:8
Definition: SEScalar.h:19

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.