lib/fhir_models/fhir/resources/Device.rb in fhir_models-1.8.0 vs lib/fhir_models/fhir/resources/Device.rb in fhir_models-1.8.1

- old
+ new

@@ -2,11 +2,11 @@ class Device < FHIR::Model include FHIR::Hashable include FHIR::Json include FHIR::Xml - SEARCH_PARAMS = [] + SEARCH_PARAMS = ['identifier', 'location', 'manufacturer', 'model', 'organization', 'patient', 'type', 'udicarrier', 'url'] METADATA = { 'id' => {'type'=>'id', 'path'=>'Device.id', 'min'=>0, 'max'=>1}, 'meta' => {'type'=>'Meta', 'path'=>'Device.meta', 'min'=>0, 'max'=>1}, 'implicitRules' => {'type'=>'uri', 'path'=>'Device.implicitRules', 'min'=>0, 'max'=>1}, 'language' => {'valid_codes'=>{'urn:ietf:bcp:47'=>['bn', 'cs', 'da', 'de', 'de-AT', 'de-CH', 'de-DE', 'el', 'en', 'en-AU', 'en-CA', 'en-GB', 'en-IN', 'en-NZ', 'en-SG', 'en-US', 'es', 'es-AR', 'es-ES', 'es-UY', 'fi', 'fr', 'fr-BE', 'fr-CH', 'fr-FR', 'fy', 'fy-NL', 'hr', 'it', 'it-CH', 'it-IT', 'ja', 'ko', 'nl', 'nl-BE', 'nl-NL', 'no', 'no-NO', 'pt', 'pt-BR', 'ru', 'ru-RU', 'sr', 'sr-SP', 'sv', 'sv-SE', 'te', 'zh', 'zh-CN', 'zh-HK', 'zh-SG', 'zh-TW']}, 'type'=>'code', 'path'=>'Device.language', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'extensible', 'uri'=>'http://hl7.org/fhir/ValueSet/languages'}}, @@ -22,14 +22,14 @@ 'manufacturer' => {'type'=>'string', 'path'=>'Device.manufacturer', 'min'=>0, 'max'=>1}, 'manufactureDate' => {'type'=>'dateTime', 'path'=>'Device.manufactureDate', 'min'=>0, 'max'=>1}, 'expirationDate' => {'type'=>'dateTime', 'path'=>'Device.expirationDate', 'min'=>0, 'max'=>1}, 'model' => {'type'=>'string', 'path'=>'Device.model', 'min'=>0, 'max'=>1}, 'version' => {'type'=>'string', 'path'=>'Device.version', 'min'=>0, 'max'=>1}, - 'patient' => {'type'=>'Reference', 'path'=>'Device.patient', 'min'=>0, 'max'=>1}, - 'owner' => {'type'=>'Reference', 'path'=>'Device.owner', 'min'=>0, 'max'=>1}, + 'patient' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Patient'], 'type'=>'Reference', 'path'=>'Device.patient', 'min'=>0, 'max'=>1}, + 'owner' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Organization'], 'type'=>'Reference', 'path'=>'Device.owner', 'min'=>0, 'max'=>1}, 'contact' => {'type'=>'ContactPoint', 'path'=>'Device.contact', 'min'=>0, 'max'=>Float::INFINITY}, - 'location' => {'type'=>'Reference', 'path'=>'Device.location', 'min'=>0, 'max'=>1}, + 'location' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Location'], 'type'=>'Reference', 'path'=>'Device.location', 'min'=>0, 'max'=>1}, 'url' => {'type'=>'uri', 'path'=>'Device.url', 'min'=>0, 'max'=>1}, 'note' => {'type'=>'Annotation', 'path'=>'Device.note', 'min'=>0, 'max'=>Float::INFINITY} } attr_accessor :id # 0-1 id @@ -48,13 +48,13 @@ attr_accessor :manufacturer # 0-1 string attr_accessor :manufactureDate # 0-1 dateTime attr_accessor :expirationDate # 0-1 dateTime attr_accessor :model # 0-1 string attr_accessor :version # 0-1 string - attr_accessor :patient # 0-1 Reference() - attr_accessor :owner # 0-1 Reference() + attr_accessor :patient # 0-1 Reference(Patient) + attr_accessor :owner # 0-1 Reference(Organization) attr_accessor :contact # 0-* [ ContactPoint ] - attr_accessor :location # 0-1 Reference() + attr_accessor :location # 0-1 Reference(Location) attr_accessor :url # 0-1 uri attr_accessor :note # 0-* [ Annotation ] def resourceType 'Device' \ No newline at end of file