SELobarPneumonia.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 #include <biogears/cdm/patient/conditions/SEPatientCondition.h>
15 #include <biogears/schema/cdm/PatientConditions.hxx>
16 
17 namespace biogears {
18 class SEScalar0To1;
19 
20 class BIOGEARS_API SELobarPneumonia : public SEPatientCondition {
21 public:
23  virtual ~SELobarPneumonia();
24 
25  virtual void Clear(); //clear memory
26 
27  virtual bool IsValid() const;
28 
29  virtual bool Load(const CDM::LobarPneumoniaData& in);
30  virtual CDM::LobarPneumoniaData* Unload() const;
31 
32 protected:
33  virtual void Unload(CDM::LobarPneumoniaData& data) const;
34 
35 public:
36  virtual std::string GetName() const { return "LobarPneumonia"; }
37  virtual const char* GetName_cStr() const { return "LobarPneumonia"; }
38 
39  virtual bool HasSeverity() const;
40  virtual SEScalar0To1& GetSeverity();
41 
42  virtual bool HasLeftLungAffected() const;
43  virtual SEScalar0To1& GetLeftLungAffected();
44 
45  virtual bool HasRightLungAffected() const;
46  virtual SEScalar0To1& GetRightLungAffected();
47 
48  virtual void ToString(std::ostream& str) const;
49 
50 protected:
54 };
55 }
SEScalar0To1 * m_LeftLungAffected
Definition: SELobarPneumonia.h:52
Definition: SELobarPneumonia.h:20
Definition: SEPatientCondition.h:18
virtual std::string GetName() const
Definition: SELobarPneumonia.h:36
Definition: SEScalar0To1.h:17
virtual const char * GetName_cStr() const
Definition: SELobarPneumonia.h:37
SEScalar0To1 * m_Severity
Definition: SELobarPneumonia.h:51
SEScalar0To1 * m_RightLungAffected
Definition: SELobarPneumonia.h:53
Definition: SEElectricalCircuit.h:18
Class corresponding to the LobarPneumoniaData schema type.
Definition: PatientConditions.hxx:2536