Class: FHIR::DSTU2::Patient::Animal

Inherits:
Model
  • Object
show all
Includes:
Hashable, Json, Xml
Defined in:
lib/fhir_dstu2_models/fhir/resources/Patient.rb

Constant Summary collapse

METADATA =
{
  'id' => { 'type' => 'id', 'path' => 'Animal.id', 'min' => 0, 'max' => 1 },
  'extension' => { 'type' => 'Extension', 'path' => 'Animal.extension', 'min' => 0, 'max' => Float::INFINITY },
  'modifierExtension' => { 'type' => 'Extension', 'path' => 'Animal.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
  'species' => { 'valid_codes' => { 'http://hl7.org/fhir/animal-species' => ['canislf', 'ovisa', 'serinuscd'] }, 'type' => 'CodeableConcept', 'path' => 'Animal.species', 'min' => 1, 'max' => 1, 'binding' => { 'strength' => 'example', 'uri' => 'http://hl7.org/fhir/ValueSet/animal-species' } },
  'breed' => { 'valid_codes' => { 'http://hl7.org/fhir/animal-breed' => ['gsd', 'irt', 'tibmas', 'gret'] }, 'type' => 'CodeableConcept', 'path' => 'Animal.breed', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'example', 'uri' => 'http://hl7.org/fhir/ValueSet/animal-breeds' } },
  'genderStatus' => { 'valid_codes' => { 'http://hl7.org/fhir/animal-genderstatus' => ['neutered', 'intact', 'unknown'] }, 'type' => 'CodeableConcept', 'path' => 'Animal.genderStatus', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'example', 'uri' => 'http://hl7.org/fhir/ValueSet/animal-genderstatus' } }
}

Instance Attribute Summary collapse

Method Summary

Methods included from Xml

from_xml, #to_xml, valid?, validate

Methods included from Deprecate

#deprecate

Methods included from Json

from_json, #to_json

Methods included from Hashable

#from_hash, #to_hash

Methods inherited from Model

#==, #attribute_mismatch, #compare_attribute, #each_element, #equals?, #hash, #initialize, #method_missing, #mismatch, #primitive?, #respond_to_missing?, #to_reference, #valid?, #validate, #validate_profile

Constructor Details

This class inherits a constructor from FHIR::DSTU2::Model

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class FHIR::DSTU2::Model

Instance Attribute Details

#breedObject

0-1 CodeableConcept



91
92
93
# File 'lib/fhir_dstu2_models/fhir/resources/Patient.rb', line 91

def breed
  @breed
end

#extensionObject

0-* [ Extension ]



88
89
90
# File 'lib/fhir_dstu2_models/fhir/resources/Patient.rb', line 88

def extension
  @extension
end

#genderStatusObject

0-1 CodeableConcept



92
93
94
# File 'lib/fhir_dstu2_models/fhir/resources/Patient.rb', line 92

def genderStatus
  @genderStatus
end

#idObject

0-1 id



87
88
89
# File 'lib/fhir_dstu2_models/fhir/resources/Patient.rb', line 87

def id
  @id
end

#modifierExtensionObject

0-* [ Extension ]



89
90
91
# File 'lib/fhir_dstu2_models/fhir/resources/Patient.rb', line 89

def modifierExtension
  @modifierExtension
end

#speciesObject

1-1 CodeableConcept



90
91
92
# File 'lib/fhir_dstu2_models/fhir/resources/Patient.rb', line 90

def species
  @species
end