<
The Pulse Team is excited to announce the Pulse Physiology Engine 4.1.0 release. Upgrade now to get the best in dynamic simulation.
×
SEIntubation.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 // Keep enums in sync with appropriate schema/cdm/PatientActionEnums.proto file !!
8 enum class eIntubation_Type { Off = 0, Esophageal, LeftMainstem, RightMainstem, Tracheal,
9  Oropharyngeal, Nasopharyngeal };
10 extern const std::string& eIntubation_Type_Name(eIntubation_Type m);
11 
12 class CDM_DECL SEIntubation : public SEPatientAction
13 {
14  friend class PBPatientAction;//friend the serialization class
15 public:
16 
17  SEIntubation(Logger* logger=nullptr);
18  virtual ~SEIntubation();
19 
20  virtual void Clear(); //clear memory
21  virtual void Copy(const SEIntubation& src, bool /*preserveState*/=false);
22 
23  virtual bool IsValid() const;
24  virtual bool IsActive() const;
25  virtual void Deactivate();
26 
27  virtual eIntubation_Type GetType() const;
28  virtual void SetType(eIntubation_Type t);
29 
30  virtual bool HasAirwayResistance() const;
31  virtual SEScalarPressureTimePerVolume& GetAirwayResistance();
32  virtual double GetAirwayResistance(const PressureTimePerVolumeUnit& unit) const;
33 
34  virtual void ToString(std::ostream &str) const;
35 
36  virtual const SEScalar* GetScalar(const std::string& name);
37 
38 protected:
39  eIntubation_Type m_Type;
41 };
Definition: SEPatientAction.h:7
Definition: SEScalar.h:18
Definition: Logger.h:66
Definition: SEIntubation.h:12
static void Copy(const SEAcuteRespiratoryDistressSyndromeExacerbation &src, SEAcuteRespiratoryDistressSyndromeExacerbation &dst)
Definition: PBPatientActions.cpp:95
Definition: SEScalarPressureTimePerVolume.h:7
Definition: PBPatientActions.h:46
SEScalarPressureTimePerVolume * m_AirwayResistance
Definition: SEIntubation.h:40
Definition: SEScalarPressureTimePerVolume.h:28
eIntubation_Type m_Type
Definition: SEIntubation.h:39

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.