Class: OpenEHR::RM::EHR::EHRStatus
- Inherits:
-
Locatable
- Object
- Locatable
- OpenEHR::RM::EHR::EHRStatus
- Defined in:
- lib/open_ehr/rm/ehr.rb
Instance Attribute Summary collapse
-
#is_modifiable ⇒ Object
Returns the value of attribute is_modifiable.
-
#is_queryable ⇒ Object
Returns the value of attribute is_queryable.
-
#other_details ⇒ Object
Returns the value of attribute other_details.
-
#subject ⇒ Object
Returns the value of attribute subject.
Instance Method Summary collapse
-
#initialize(args = { }) ⇒ EHRStatus
constructor
A new instance of EHRStatus.
- #is_modifiable? ⇒ Boolean
- #is_queryable? ⇒ Boolean
- #parent=(parent) ⇒ Object
Constructor Details
#initialize(args = { }) ⇒ EHRStatus
Returns a new instance of EHRStatus.
126 127 128 129 130 131 132 |
# File 'lib/open_ehr/rm/ehr.rb', line 126 def initialize(args = { }) super(args) self.subject = args[:subject] self.is_queryable = args[:is_queryable] self.is_modifiable = args[:is_modifiable] self.other_details = args[:other_details] end |
Instance Attribute Details
#is_modifiable ⇒ Object
Returns the value of attribute is_modifiable.
124 125 126 |
# File 'lib/open_ehr/rm/ehr.rb', line 124 def is_modifiable @is_modifiable end |
#is_queryable ⇒ Object
Returns the value of attribute is_queryable.
124 125 126 |
# File 'lib/open_ehr/rm/ehr.rb', line 124 def is_queryable @is_queryable end |
#other_details ⇒ Object
Returns the value of attribute other_details.
124 125 126 |
# File 'lib/open_ehr/rm/ehr.rb', line 124 def other_details @other_details end |
#subject ⇒ Object
Returns the value of attribute subject.
123 124 125 |
# File 'lib/open_ehr/rm/ehr.rb', line 123 def subject @subject end |
Instance Method Details
#is_modifiable? ⇒ Boolean
143 144 145 |
# File 'lib/open_ehr/rm/ehr.rb', line 143 def is_modifiable? return @is_modifiable end |
#is_queryable? ⇒ Boolean
139 140 141 |
# File 'lib/open_ehr/rm/ehr.rb', line 139 def is_queryable? return @is_queryable end |
#parent=(parent) ⇒ Object
147 148 149 150 151 152 |
# File 'lib/open_ehr/rm/ehr.rb', line 147 def parent=(parent) unless parent.nil? raise ArgumentError, 'parent should be nil' end @parent = parent end |