SETensionPneumothorax.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/actions/SEPatientAction.h>
15 #include <biogears/schema/cdm/PatientActions.hxx>
16 
17 namespace biogears {
18 class SEScalar0To1;
19 
20 class BIOGEARS_API SETensionPneumothorax : public SEPatientAction {
21 public:
23  virtual ~SETensionPneumothorax() override;
24 
25  static constexpr const char* TypeTag() { return "SETensionPneumothorax"; };
26  const char* classname() const override { return TypeTag(); }
27 
28  virtual void Clear() override; //clear memory
29 
30  virtual bool IsValid() const override;
31  virtual bool IsActive() const override;
32 
33  virtual bool Load(const CDM::TensionPneumothoraxData& in);
34  virtual CDM::TensionPneumothoraxData* Unload() const override;
35 
36 protected:
37  virtual void Unload(CDM::TensionPneumothoraxData& data) const;
38 
39 public:
40  virtual CDM::enumPneumothoraxType::value GetType() const;
41  virtual void SetType(CDM::enumPneumothoraxType::value name);
42  virtual bool HasType() const;
43  virtual void InvalidateType();
44 
45  virtual CDM::enumSide::value GetSide() const;
46  virtual void SetSide(CDM::enumSide::value name);
47  virtual bool HasSide() const;
48  virtual void InvalidateSide();
49 
50  virtual bool HasSeverity() const;
51  virtual SEScalar0To1& GetSeverity();
52 
53  virtual void ToString(std::ostream& str) const override;
54 
55 protected:
60 };
61 }
CDM::enumOnOff::value m_State
Definition: SETensionPneumothorax.h:59
value
Underlying enum type.
Definition: PatientActions.hxx:8843
static constexpr const char * TypeTag()
Definition: SETensionPneumothorax.h:25
Definition: SETensionPneumothorax.h:20
Definition: SEPatientAction.h:18
Class corresponding to the TensionPneumothoraxData schema type.
Definition: PatientActions.hxx:8990
Definition: SEScalar0To1.h:17
value
Underlying enum type.
Definition: Properties.hxx:1764
SEScalar0To1 * m_Severity
Definition: SETensionPneumothorax.h:58
CDM::enumSide::value m_Side
Definition: SETensionPneumothorax.h:57
value
Underlying enum type.
Definition: Properties.hxx:2070
const char * classname() const override
Definition: SETensionPneumothorax.h:26
CDM::enumPneumothoraxType::value m_Type
Definition: SETensionPneumothorax.h:56
Definition: SEElectricalCircuit.h:18