<
The Pulse Team is excited to announce the Pulse Physiology Engine 4.1.0 release. Upgrade now to get the best in dynamic simulation.
×
SESupplementalOxygen.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 class SESubstance;
7 
8 // Keep enums in sync with appropriate schema/cdm/PatientActionEnums.proto file !!
9 enum class eSupplementalOxygen_Device { None = 0, NasalCannula, SimpleMask, NonRebreatherMask };
10 extern const std::string& eSupplementalOxygen_Device_Name(eSupplementalOxygen_Device e);
11 
12 class CDM_DECL SESupplementalOxygen : public SEPatientAction
13 {
14  friend class PBPatientAction;//friend the serialization class
15 public:
16 
17  SESupplementalOxygen(Logger* logger=nullptr);
18  virtual ~SESupplementalOxygen();
19 
20  virtual void Clear(); //clear memory
21  virtual void Copy(const SESupplementalOxygen& src, bool /*preserveState*/=false);
22 
23  virtual bool IsValid() const;
24  virtual bool IsActive() const;
25  virtual void Deactivate();
26 
27  virtual eSupplementalOxygen_Device GetDevice() const;
28  virtual void SetDevice(eSupplementalOxygen_Device name);
29 
30  virtual bool HasFlow() const;
31  virtual SEScalarVolumePerTime& GetFlow();
32  virtual double GetFlow(const VolumePerTimeUnit& unit) const;
33 
34  virtual bool HasVolume() const;
35  virtual SEScalarVolume& GetVolume();
36  virtual double GetVolume(const VolumeUnit& unit) const;
37 
38  virtual void ToString(std::ostream &str) const;
39 
40  virtual const SEScalar* GetScalar(const std::string& name);
41 
42 protected:
43  eSupplementalOxygen_Device m_Device;
46 };
Definition: SEPatientAction.h:7
Definition: SEScalar.h:18
Definition: SEScalarVolume.h:7
Definition: SEScalarVolume.h:27
Definition: Logger.h:66
SEScalarVolumePerTime * m_Flow
Definition: SESupplementalOxygen.h:44
eSupplementalOxygen_Device m_Device
Definition: SESupplementalOxygen.h:43
Definition: SEScalarVolumePerTime.h:7
static void Copy(const SEAcuteRespiratoryDistressSyndromeExacerbation &src, SEAcuteRespiratoryDistressSyndromeExacerbation &dst)
Definition: PBPatientActions.cpp:95
Definition: SEScalarVolumePerTime.h:30
Definition: SESupplementalOxygen.h:12
SEScalarVolume * m_Volume
Definition: SESupplementalOxygen.h:45
Definition: PBPatientActions.h:46
Definition: SESubstance.h:14

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.