Class: OpenEHR::RM::DataTypes::Quantity::ReferenceRange
- Inherits:
-
Object
- Object
- OpenEHR::RM::DataTypes::Quantity::ReferenceRange
- Defined in:
- lib/open_ehr/rm/data_types/quantity.rb
Instance Attribute Summary collapse
-
#meaning ⇒ Object
Returns the value of attribute meaning.
-
#range ⇒ Object
Returns the value of attribute range.
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ ReferenceRange
constructor
A new instance of ReferenceRange.
- #is_in_range?(val) ⇒ Boolean
Constructor Details
#initialize(args = {}) ⇒ ReferenceRange
Returns a new instance of ReferenceRange.
279 280 281 282 |
# File 'lib/open_ehr/rm/data_types/quantity.rb', line 279 def initialize(args = {}) self.meaning = args[:meaning] self.range = args[:range] end |
Instance Attribute Details
#meaning ⇒ Object
Returns the value of attribute meaning.
277 278 279 |
# File 'lib/open_ehr/rm/data_types/quantity.rb', line 277 def meaning @meaning end |
#range ⇒ Object
Returns the value of attribute range.
277 278 279 |
# File 'lib/open_ehr/rm/data_types/quantity.rb', line 277 def range @range end |
Instance Method Details
#is_in_range?(val) ⇒ Boolean
298 299 300 |
# File 'lib/open_ehr/rm/data_types/quantity.rb', line 298 def is_in_range?(val) return @range.has?(val) end |