Sha256: 19884afb183e6c2e7127f61d94afb2272b2ccab0f7ba2b669278aa9ddffe7382

Contents?: true

Size: 1.29 KB

Versions: 6

Compression:

Stored size: 1.29 KB

Contents

module FHIR
  module STU3
    class Money < FHIR::STU3::Model
      include FHIR::STU3::Hashable
      include FHIR::STU3::Json
      include FHIR::STU3::Xml

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
fhir_stu3_models-3.2.0 lib/fhir_stu3_models/fhir/types/Money.rb
fhir_stu3_models-3.1.1 lib/fhir_stu3_models/fhir/types/Money.rb
fhir_stu3_models-3.1.0 lib/fhir_stu3_models/fhir/types/Money.rb
fhir_stu3_models-3.0.2 lib/fhir_stu3_models/fhir/types/Money.rb
fhir_stu3_models-3.0.1 lib/fhir_stu3_models/fhir/types/Money.rb
fhir_stu3_models-3.0.0 lib/fhir_stu3_models/fhir/types/Money.rb