5#include "cdm/patient/actions/SEPatientAction.h"
8enum class eHemorrhage_Compartment
28extern CDM_DECL
const std::string& eHemorrhage_Compartment_Name(eHemorrhage_Compartment c);
29extern CDM_DECL eHemorrhage_Compartment eHemorrhage_Compartment_Parse(
const std::string& s);
31enum class eHemorrhage_Type { External = 0, Internal };
32extern CDM_DECL
const std::string& eHemorrhage_Type_Name(eHemorrhage_Type t);
41 static constexpr char const* Name =
"Hemorrhage";
42 std::string
GetName()
const override {
return Name; }
44 void Clear()
override;
51 virtual eHemorrhage_Type
GetType()
const {
return m_Type; }
52 virtual void SetType(eHemorrhage_Type t) { m_Type = t; }
54 virtual bool HasCompartment()
const;
55 virtual std::string GetCompartmentName()
const;
56 virtual eHemorrhage_Compartment GetCompartment()
const;
57 virtual void SetCompartment(eHemorrhage_Compartment cmpt);
59 virtual bool HasFlowRate()
const;
63 virtual bool HasSeverity()
const;
65 virtual double GetSeverity()
const;
67 virtual bool HasTotalBloodLost()
const;
69 virtual double GetTotalBloodLost(
const VolumeUnit& unit)
const;
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: SEHemorrhage.h:35
SEScalarVolume * m_TotalBloodLost
Definition: SEHemorrhage.h:79
SEScalar0To1 * m_Severity
Definition: SEHemorrhage.h:78
std::string m_CompartmentName
Definition: SEHemorrhage.h:75
virtual eHemorrhage_Type GetType() const
Definition: SEHemorrhage.h:51
eHemorrhage_Compartment m_Compartment
Definition: SEHemorrhage.h:76
std::string GetName() const override
Definition: SEHemorrhage.h:42
eHemorrhage_Type m_Type
Definition: SEHemorrhage.h:74
SEScalarVolumePerTime * m_FlowRate
Definition: SEHemorrhage.h:77
virtual void SetType(eHemorrhage_Type t)
Definition: SEHemorrhage.h:52
Definition: SEPatientAction.h:8
void Deactivate() override
Definition: SEPatientAction.h:23
void Clear() override
Definition: SEPatientAction.h:18
bool IsValid() const override
Definition: SEPatientAction.h:19
bool IsActive() const override
Definition: SEPatientAction.h:22
Definition: SEScalar0To1.h:8
Definition: SEScalar.h:19
Definition: SEScalarVolume.h:28
Definition: SEScalarVolumePerTime.h:32
Definition: SEScalarVolumePerTime.h:8
Definition: SEScalarVolume.h:8