SEHemothorax.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 
7 class CDM_DECL SEHemothorax : public SEPatientAction
8 {
9  friend class PBPatientAction;//friend the serialization class
10 public:
11 
12  SEHemothorax(Logger* logger=nullptr);
13  virtual ~SEHemothorax();
14 
15  static constexpr char const* Name = "Hemothorax";
16  std::string GetName() const override { return Name; }
17 
18  void Clear() override;
19  void Copy(const SEHemothorax& src, bool /*preserveState*/=false);
20  const SEScalar* GetScalar(const std::string& name) override;
21 
22  bool IsValid() const override;
23  bool IsActive() const override;
24  void Deactivate() override;
25 
26  virtual eSide GetSide() const;
27  virtual void SetSide(eSide name);
28  virtual bool HasSide() const;
29  virtual void InvalidateSide();
30 
31  virtual bool HasSeverity() const;
32  virtual SEScalar0To1& GetSeverity();
33  virtual double GetSeverity() const;
34 
35  virtual bool HasFlowRate() const;
36  virtual SEScalarVolumePerTime& GetFlowRate();
37  virtual double GetFlowRate(const VolumePerTimeUnit& unit) const;
38 
39  virtual bool HasTotalBloodVolume() const;
40  virtual SEScalarVolume& GetTotalBloodVolume();
41  virtual double GetTotalBloodVolume(const VolumeUnit& unit) const;
42 
43 protected:
44  eSide m_Side;
48 };
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: SEHemothorax.h:8
SEScalarVolume * m_TotalBloodVolume
Definition: SEHemothorax.h:47
eSide m_Side
Definition: SEHemothorax.h:44
SEScalarVolumePerTime * m_FlowRate
Definition: SEHemothorax.h:46
std::string GetName() const override
Definition: SEHemothorax.h:16
SEScalar0To1 * m_Severity
Definition: SEHemothorax.h:45
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

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.