SEInfection.h
1 /**************************************************************************************
2 Copyright 2015 Applied Research Associates, Inc.
3 Licensed under the Apache License, Version 2.0 (the "License"); you may not use
4 this file except in compliance with the License. You may obtain a copy of the License
5 at:
6 http://www.apache.org/licenses/LICENSE-2.0
7 Unless required by applicable law or agreed to in writing, software distributed under
8 the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
9 CONDITIONS OF ANY KIND, either express or implied. See the License for the
10 specific language governing permissions and limitations under the License.
11 **************************************************************************************/
12 
13 #pragma once
14 
15 #include <biogears/cdm/CommonDataModel.h>
16 #include <biogears/exports.h>
17 #include <biogears/cdm/patient/actions/SEPatientAction.h>
18 #include <biogears/schema/cdm/PatientActions.hxx>
19 
20 namespace biogears {
21 class SEScalarMassPerVolume;
22 
23 class BIOGEARS_API SEInfection : public SEPatientAction {
24 public:
25  SEInfection();
26  virtual ~SEInfection() override;
27 
28  static constexpr const char* TypeTag() { return "SEInfection"; };
29  const char* classname() const override { return TypeTag(); }
30 
31  virtual void Clear() override; //clear memory
32 
33  virtual bool IsValid() const override;
34  virtual bool IsActive() const override;
35 
36  virtual bool Load(const CDM::InfectionData& in);
37  virtual CDM::InfectionData* Unload() const override;
38 
39 protected:
40  virtual void Unload(CDM::InfectionData& data) const;
41 
42 public:
43  virtual const char* GetLocation_cStr() const;
44  virtual std::string GetLocation() const;
45  virtual bool HasLocation() const;
46  virtual void SetLocation(const char* name);
47  virtual void SetLocation(const std::string& name);
48  virtual void InvalidateLocation();
49 
50  virtual bool HasSeverity() const;
51  virtual CDM::enumInfectionSeverity::value GetSeverity() const;
52  virtual void SetSeverity(CDM::enumInfectionSeverity::value t);
53  virtual void InvalidateSeverity();
54 
55  virtual bool HasMinimumInhibitoryConcentration() const;
56  virtual SEScalarMassPerVolume& GetMinimumInhibitoryConcentration();
57 
58  virtual void ToString(std::ostream& str) const override;
59 
60 protected:
61  std::string m_Location;
64 
65 
66 };
67 }
static constexpr const char * TypeTag()
Definition: SEInfection.h:28
Definition: SEPatientAction.h:18
Class corresponding to the InfectionData schema type.
Definition: PatientActions.hxx:6779
SEScalarMassPerVolume * m_MinimumInhibitoryConcentration
Definition: SEInfection.h:63
const char * classname() const override
Definition: SEInfection.h:29
std::string m_Location
Definition: SEInfection.h:61
CDM::enumInfectionSeverity::value m_Severity
Definition: SEInfection.h:62
value
Underlying enum type.
Definition: PatientActions.hxx:6630
Definition: SEScalarMassPerVolume.h:46
Definition: SEInfection.h:23
Definition: SEElectricalCircuit.h:18