<
The Pulse Team is excited to announce the Pulse Physiology Engine 4.1.0 release. Upgrade now to get the best in dynamic simulation.
×
SESubstanceBolus.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/SESubstanceAdministration.h"
6 class SESubstance;
7 
8 class CDM_DECL SESubstanceBolus : public SEPatientAction
9 {
10  friend class PBPatientAction;//friend the serialization class
11 public:
12 
13  SESubstanceBolus(const SESubstance& substance, Logger* logger=nullptr);
14  virtual ~SESubstanceBolus();
15 
16  virtual void Clear(); //clear memory
17  virtual void Copy(const SESubstanceBolus& src, bool /*preserveState*/=false);
18 
19  virtual bool IsValid() const;
20  virtual bool IsActive() const;
21  virtual void Activate();
22  virtual void Deactivate();
23 
24  virtual eSubstanceAdministration_Route GetAdminRoute() const;
25  virtual void SetAdminRoute(eSubstanceAdministration_Route name);
26 
27  virtual bool HasAdminDuration() const;
28  virtual SEScalarTime& GetAdminDuration();
29  virtual double GetAdminDuration(const TimeUnit& unit) const;
30 
31  virtual bool HasConcentration() const;
32  virtual SEScalarMassPerVolume& GetConcentration();
33  virtual double GetConcentration(const MassPerVolumeUnit& unit) const;
34 
35  virtual bool HasDose() const;
36  virtual SEScalarVolume& GetDose();
37  virtual double GetDose(const VolumeUnit& unit) const;
38 
39  virtual SESubstance& GetSubstance();
40  virtual const SESubstance& GetSubstance() const;
41 
42  virtual void ToString(std::ostream &str) const;
43 
44  virtual const SEScalar* GetScalar(const std::string& name);
45 
46  virtual bool HasTotalInfusedDose() const;
47  virtual SEScalarVolume& GetTotalInfusedDose();
48  virtual double GetTotalInfusedDose(const VolumeUnit& unit) const;
49 
50 protected:
51 
53  eSubstanceAdministration_Route m_AdminRoute;
58 };
Definition: SESubstanceBolus.h:8
virtual const SEScalar * GetScalar(const std::string &name)=0
Definition: SEPatientAction.h:7
Definition: SEScalar.h:18
Definition: SEScalarVolume.h:7
SEScalarTime * m_AdminDuration
Definition: SESubstanceBolus.h:54
SEScalarMassPerVolume * m_Concentration
Definition: SESubstanceBolus.h:55
Definition: SEScalarVolume.h:27
Definition: Logger.h:66
Definition: SEScalarMassPerVolume.h:36
SEScalarVolume * m_TotalInfusedDose
Definition: SESubstanceBolus.h:57
virtual void Clear()
Definition: SEPatientAction.cpp:17
Definition: SEScalarMassPerVolume.h:7
SEScalarVolume * m_Dose
Definition: SESubstanceBolus.h:56
const SESubstance & m_Substance
Definition: SESubstanceBolus.h:52
Definition: SEScalarTime.h:7
virtual void Deactivate()
Definition: SEAction.h:34
eSubstanceAdministration_Route m_AdminRoute
Definition: SESubstanceBolus.h:53
virtual bool IsValid() const
Definition: SEPatientAction.cpp:22
static SEAction * Copy(const SEAction &, const SESubstanceManager &)
Definition: SEAction.cpp:45
virtual bool IsActive() const
Definition: SEAction.h:32
Definition: PBPatientActions.h:46
Definition: SEScalarTime.h:27
virtual void ToString(std::ostream &str) const =0
virtual void Activate()
Definition: SEAction.h:33
Definition: SESubstance.h:14

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.