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"
6class SESubstance;
7
8class CDM_DECL SESubstanceBolus : public SEPatientAction
9{
10 friend class PBPatientAction;//friend the serialization class
11public:
12
13 SESubstanceBolus(const SESubstance& substance, Logger* logger=nullptr);
14 virtual ~SESubstanceBolus();
15
16 static constexpr char const* Name = "Substance Bolus";
17 std::string GetName() const override { return Name; }
18
19 void Clear() override;
20 void Copy(const SESubstanceBolus& src, bool /*preserveState*/=false);
21
22 const SEScalar* GetScalar(const std::string& name) override;
23
24 bool IsValid() const override;
25 bool IsActive() const override;
26 void Activate() override;
27 void Deactivate() override;
28
29 virtual eSubstanceAdministration_Route GetAdminRoute() const;
30 virtual void SetAdminRoute(eSubstanceAdministration_Route name);
31
32 virtual bool HasAdminDuration() const;
33 virtual SEScalarTime& GetAdminDuration();
34 virtual double GetAdminDuration(const TimeUnit& unit) const;
35
36 virtual bool HasConcentration() const;
37 virtual SEScalarMassPerVolume& GetConcentration();
38 virtual double GetConcentration(const MassPerVolumeUnit& unit) const;
39
40 virtual bool HasDose() const;
41 virtual SEScalarVolume& GetDose();
42 virtual double GetDose(const VolumeUnit& unit) const;
43
44 virtual SESubstance& GetSubstance();
45 virtual const SESubstance& GetSubstance() const;
46
47 virtual bool HasTotalInfusedDose() const;
48 virtual SEScalarVolume& GetTotalInfusedDose();
49 virtual double GetTotalInfusedDose(const VolumeUnit& unit) const;
50
51protected:
52
54 eSubstanceAdministration_Route m_AdminRoute;
59};
Definition: Logger.h:71
Definition: SEScalarMassPerVolume.h:8
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: SEPatientAction.h:8
void Deactivate() override
Definition: SEPatientAction.h:23
void Clear() override
Definition: SEPatientAction.h:18
void Activate() override
Definition: SEPatientAction.h:21
bool IsValid() const override
Definition: SEPatientAction.h:19
bool IsActive() const override
Definition: SEPatientAction.h:22
Definition: SEScalar.h:19
Definition: SEScalarMassPerVolume.h:37
Definition: SEScalarTime.h:28
Definition: SEScalarVolume.h:28
Definition: SESubstanceBolus.h:9
eSubstanceAdministration_Route m_AdminRoute
Definition: SESubstanceBolus.h:54
SEScalarTime * m_AdminDuration
Definition: SESubstanceBolus.h:55
SEScalarVolume * m_Dose
Definition: SESubstanceBolus.h:57
std::string GetName() const override
Definition: SESubstanceBolus.h:17
SEScalarMassPerVolume * m_Concentration
Definition: SESubstanceBolus.h:56
SEScalarVolume * m_TotalInfusedDose
Definition: SESubstanceBolus.h:58
const SESubstance & m_Substance
Definition: SESubstanceBolus.h:53
Definition: SESubstance.h:15
Definition: SEScalarTime.h:8
Definition: SEScalarVolume.h:8

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.