Sha256: b3f3a7ccdf76e4d16c2b5afd8c47e3e3ddbe0483767df783a869f2a2b9ebdecb

Contents?: true

Size: 1.25 KB

Versions: 3

Compression:

Stored size: 1.25 KB

Contents

module FHIR
  class Quantity < FHIR::Model
    include FHIR::Hashable
    include FHIR::Json
    include FHIR::Xml

    SEARCH_PARAMS = 
    METADATA = {
      'id' => {'type'=>'string', 'path'=>'Quantity.id', 'min'=>0, 'max'=>1},
      'extension' => {'type'=>'Extension', 'path'=>'Quantity.extension', 'min'=>0, 'max'=>Float::INFINITY},
      'value' => {'type'=>'decimal', 'path'=>'Quantity.value', 'min'=>0, 'max'=>1},
      'comparator' => {'valid_codes'=>{'http://hl7.org/fhir/quantity-comparator'=>['<', '<=', '>=', '>', '<', '<=', '>=', '>']}, 'type'=>'code', 'path'=>'Quantity.comparator', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/quantity-comparator'}},
      'unit' => {'type'=>'string', 'path'=>'Quantity.unit', 'min'=>0, 'max'=>1},
      'system' => {'type'=>'uri', 'path'=>'Quantity.system', 'min'=>0, 'max'=>1},
      'code' => {'type'=>'code', 'path'=>'Quantity.code', 'min'=>0, 'max'=>1}
    }

    attr_accessor :id         # 0-1 string
    attr_accessor :extension  # 0-* [ Extension ]
    attr_accessor :value      # 0-1 decimal
    attr_accessor :comparator # 0-1 code
    attr_accessor :unit       # 0-1 string
    attr_accessor :system     # 0-1 uri
    attr_accessor :code       # 0-1 code
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
fhir_models-1.8.3 lib/fhir_models/fhir/types/Quantity.rb
fhir_models-1.8.2 lib/fhir_models/fhir/types/Quantity.rb
fhir_models-1.8.1 lib/fhir_models/fhir/types/Quantity.rb