Class: OpenEHR::RM::DataTypes::Quantity::ReferenceRange

Inherits:
Object
  • Object
show all
Defined in:
lib/open_ehr/rm/data_types/quantity.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#meaningObject

Returns the value of attribute meaning.



277
278
279
# File 'lib/open_ehr/rm/data_types/quantity.rb', line 277

def meaning
  @meaning
end

#rangeObject

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

Returns:

  • (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