Sha256: 4d16be46bbda166dca89d48ca965cc7a6561bc5ed626ea2d7c5a907973d2358e

Contents?: true

Size: 1.25 KB

Versions: 3

Compression:

Stored size: 1.25 KB

Contents

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

    SEARCH_PARAMS = 
    METADATA = {
      'id' => {'type'=>'string', 'path'=>'Distance.id', 'min'=>0, 'max'=>1},
      'extension' => {'type'=>'Extension', 'path'=>'Distance.extension', 'min'=>0, 'max'=>Float::INFINITY},
      'value' => {'type'=>'decimal', 'path'=>'Distance.value', 'min'=>0, 'max'=>1},
      'comparator' => {'valid_codes'=>{'http://hl7.org/fhir/quantity-comparator'=>['<', '<=', '>=', '>', '<', '<=', '>=', '>']}, 'type'=>'code', 'path'=>'Distance.comparator', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/quantity-comparator'}},
      'unit' => {'type'=>'string', 'path'=>'Distance.unit', 'min'=>0, 'max'=>1},
      'system' => {'type'=>'uri', 'path'=>'Distance.system', 'min'=>0, 'max'=>1},
      'code' => {'type'=>'code', 'path'=>'Distance.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/Distance.rb
fhir_models-1.8.2 lib/fhir_models/fhir/types/Distance.rb
fhir_models-1.8.1 lib/fhir_models/fhir/types/Distance.rb