<
    Kitware and KbPort announce the launch of SimPulse
×
SEBrainInjury.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/SEPatientAction.h"
6 
7 // Keep enums in sync with appropriate schema/cdm/PatientActionEnums.proto file !!
8 enum class eBrainInjury_Type { Diffuse = 0, LeftFocal, RightFocal };
9 extern const std::string& eBrainInjury_Type_Name(eBrainInjury_Type m);
10 
11 class CDM_DECL SEBrainInjury : public SEPatientAction
12 {
13  friend class PBPatientAction;//friend the serialization class
14 public:
15 
16  SEBrainInjury(Logger* logger=nullptr);
17  virtual ~SEBrainInjury();
18 
19  virtual void Clear();
20  virtual void Copy(const SEBrainInjury& src, bool /*preserveState*/=false);
21 
22  virtual bool IsValid() const;
23  virtual bool IsActive() const;
24  virtual void Deactivate();
25 
26  virtual bool HasSeverity() const;
27  virtual SEScalar0To1& GetSeverity();
28  virtual double GetSeverity() const;
29 
30  virtual eBrainInjury_Type GetType() const;
31  virtual void SetType(eBrainInjury_Type t);
32 
33  virtual void ToString(std::ostream &str) const;
34 
35  virtual const SEScalar* GetScalar(const std::string& name);
36 
37 protected:
39  eBrainInjury_Type m_Type;
40 };
Definition: SEPatientAction.h:7
Definition: SEScalar.h:34
Definition: SEBrainInjury.h:11
Definition: Logger.h:66
eBrainInjury_Type m_Type
Definition: SEBrainInjury.h:39
static void Copy(const SEAcuteRespiratoryDistressSyndromeExacerbation &src, SEAcuteRespiratoryDistressSyndromeExacerbation &dst)
Definition: PBPatientActions.cpp:95
Definition: PBPatientActions.h:46
SEScalar0To1 * m_Severity
Definition: SEBrainInjury.h:38
Definition: SEScalar0To1.h:7

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.