Sha256: 7b251055db9c8737784a2508287ce1e6afbeef1eda8aabc1d353d5f4f91323bf

Contents?: true

Size: 1.65 KB

Versions: 6

Compression:

Stored size: 1.65 KB

Contents

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

      SEARCH_PARAMS = 
      METADATA = {
        'id' => {'type'=>'string', 'path'=>'HumanName.id', 'min'=>0, 'max'=>1},
        'extension' => {'type'=>'Extension', 'path'=>'HumanName.extension', 'min'=>0, 'max'=>Float::INFINITY},
        'use' => {'valid_codes'=>{'http://hl7.org/fhir/name-use'=>['usual', 'official', 'temp', 'nickname', 'anonymous', 'old', 'maiden']}, 'type'=>'code', 'path'=>'HumanName.use', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/name-use'}},
        'text' => {'type'=>'string', 'path'=>'HumanName.text', 'min'=>0, 'max'=>1},
        'family' => {'type'=>'string', 'path'=>'HumanName.family', 'min'=>0, 'max'=>1},
        'given' => {'type'=>'string', 'path'=>'HumanName.given', 'min'=>0, 'max'=>Float::INFINITY},
        'prefix' => {'type'=>'string', 'path'=>'HumanName.prefix', 'min'=>0, 'max'=>Float::INFINITY},
        'suffix' => {'type'=>'string', 'path'=>'HumanName.suffix', 'min'=>0, 'max'=>Float::INFINITY},
        'period' => {'type'=>'Period', 'path'=>'HumanName.period', 'min'=>0, 'max'=>1}
      }

      attr_accessor :id        # 0-1 string
      attr_accessor :extension # 0-* [ Extension ]
      attr_accessor :use       # 0-1 code
      attr_accessor :text      # 0-1 string
      attr_accessor :family    # 0-1 string
      attr_accessor :given     # 0-* [ string ]
      attr_accessor :prefix    # 0-* [ string ]
      attr_accessor :suffix    # 0-* [ string ]
      attr_accessor :period    # 0-1 Period
    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/HumanName.rb
fhir_stu3_models-3.1.1 lib/fhir_stu3_models/fhir/types/HumanName.rb
fhir_stu3_models-3.1.0 lib/fhir_stu3_models/fhir/types/HumanName.rb
fhir_stu3_models-3.0.2 lib/fhir_stu3_models/fhir/types/HumanName.rb
fhir_stu3_models-3.0.1 lib/fhir_stu3_models/fhir/types/HumanName.rb
fhir_stu3_models-3.0.0 lib/fhir_stu3_models/fhir/types/HumanName.rb