Class: FHIR::DSTU2::Device
- Defined in:
- lib/fhir_dstu2_models/fhir/resources/Device.rb
Constant Summary collapse
- SEARCH_PARAMS =
['parent', 'source', 'type', 'category', 'identifier', 'parent', 'source', 'type', 'identifier', 'location', 'manufacturer', 'model', 'organization', 'patient', 'type', 'udi', 'url', 'device', 'patient', 'subject', 'device', 'patient', 'subject']
- 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' => { 'type' => 'code', 'path' => 'Device.language', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://tools.ietf.org/html/bcp47' } }, 'text' => { 'type' => 'Narrative', 'path' => 'Device.text', 'min' => 0, 'max' => 1 }, 'contained' => { 'type' => 'Resource', 'path' => 'Device.contained', 'min' => 0, 'max' => Float::INFINITY }, 'extension' => { 'type' => 'Extension', 'path' => 'Device.extension', 'min' => 0, 'max' => Float::INFINITY }, 'modifierExtension' => { 'type' => 'Extension', 'path' => 'Device.modifierExtension', 'min' => 0, 'max' => Float::INFINITY }, 'identifier' => { 'type' => 'Identifier', 'path' => 'Device.identifier', 'min' => 0, 'max' => Float::INFINITY }, 'type' => { 'type' => 'CodeableConcept', 'path' => 'Device.type', 'min' => 1, 'max' => 1, 'binding' => { 'strength' => 'preferred', 'uri' => 'https://www.gmdnagency.org/Info.aspx?pageid=1091' } }, 'note' => { 'type' => 'Annotation', 'path' => 'Device.note', 'min' => 0, 'max' => Float::INFINITY }, 'status' => { 'valid_codes' => { 'http://hl7.org/fhir/devicestatus' => ['available', 'not-available', 'entered-in-error'] }, 'type' => 'code', 'path' => 'Device.status', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://hl7.org/fhir/ValueSet/devicestatus' } }, 'manufacturer' => { 'type' => 'string', 'path' => 'Device.manufacturer', 'min' => 0, 'max' => 1 }, 'model' => { 'type' => 'string', 'path' => 'Device.model', 'min' => 0, 'max' => 1 }, 'version' => { 'type' => 'string', 'path' => 'Device.version', 'min' => 0, 'max' => 1 }, 'manufactureDate' => { 'type' => 'dateTime', 'path' => 'Device.manufactureDate', 'min' => 0, 'max' => 1 }, 'expiry' => { 'type' => 'dateTime', 'path' => 'Device.expiry', 'min' => 0, 'max' => 1 }, 'udi' => { 'type' => 'string', 'path' => 'Device.udi', 'min' => 0, 'max' => 1 }, 'lotNumber' => { 'type' => 'string', 'path' => 'Device.lotNumber', 'min' => 0, 'max' => 1 }, 'owner' => { 'type' => 'Reference', 'path' => 'Device.owner', 'min' => 0, 'max' => 1 }, 'location' => { 'type' => 'Reference', 'path' => 'Device.location', 'min' => 0, 'max' => 1 }, 'patient' => { 'type' => 'Reference', 'path' => 'Device.patient', 'min' => 0, 'max' => 1 }, 'contact' => { 'type' => 'ContactPoint', 'path' => 'Device.contact', 'min' => 0, 'max' => Float::INFINITY }, 'url' => { 'type' => 'uri', 'path' => 'Device.url', 'min' => 0, 'max' => 1 } }
Instance Attribute Summary collapse
-
#contact ⇒ Object
0-* [ ContactPoint ].
-
#contained ⇒ Object
0-* [ Resource ].
-
#expiry ⇒ Object
0-1 dateTime.
-
#extension ⇒ Object
0-* [ Extension ].
-
#id ⇒ Object
0-1 id.
-
#identifier ⇒ Object
0-* [ Identifier ].
-
#implicitRules ⇒ Object
0-1 uri.
-
#language ⇒ Object
0-1 code.
-
#location ⇒ Object
0-1 Reference().
-
#lotNumber ⇒ Object
0-1 string.
-
#manufactureDate ⇒ Object
0-1 dateTime.
-
#manufacturer ⇒ Object
0-1 string.
-
#meta ⇒ Object
0-1 Meta.
-
#model ⇒ Object
0-1 string.
-
#modifierExtension ⇒ Object
0-* [ Extension ].
-
#note ⇒ Object
0-* [ Annotation ].
-
#owner ⇒ Object
0-1 Reference().
-
#patient ⇒ Object
0-1 Reference().
-
#status ⇒ Object
0-1 code.
-
#text ⇒ Object
0-1 Narrative.
-
#type ⇒ Object
1-1 CodeableConcept.
-
#udi ⇒ Object
0-1 string.
-
#url ⇒ Object
0-1 uri.
-
#version ⇒ Object
0-1 string.
Instance Method Summary collapse
Methods included from Xml
from_xml, #to_xml, valid?, validate
Methods included from Deprecate
Methods included from Json
Methods included from Hashable
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
#contact ⇒ Object
0-* [ ContactPoint ]
58 59 60 |
# File 'lib/fhir_dstu2_models/fhir/resources/Device.rb', line 58 def contact @contact end |
#contained ⇒ Object
0-* [ Resource ]
41 42 43 |
# File 'lib/fhir_dstu2_models/fhir/resources/Device.rb', line 41 def contained @contained end |
#expiry ⇒ Object
0-1 dateTime
52 53 54 |
# File 'lib/fhir_dstu2_models/fhir/resources/Device.rb', line 52 def expiry @expiry end |
#extension ⇒ Object
0-* [ Extension ]
42 43 44 |
# File 'lib/fhir_dstu2_models/fhir/resources/Device.rb', line 42 def extension @extension end |
#id ⇒ Object
0-1 id
36 37 38 |
# File 'lib/fhir_dstu2_models/fhir/resources/Device.rb', line 36 def id @id end |
#identifier ⇒ Object
0-* [ Identifier ]
44 45 46 |
# File 'lib/fhir_dstu2_models/fhir/resources/Device.rb', line 44 def identifier @identifier end |
#implicitRules ⇒ Object
0-1 uri
38 39 40 |
# File 'lib/fhir_dstu2_models/fhir/resources/Device.rb', line 38 def implicitRules @implicitRules end |
#language ⇒ Object
0-1 code
39 40 41 |
# File 'lib/fhir_dstu2_models/fhir/resources/Device.rb', line 39 def language @language end |
#location ⇒ Object
0-1 Reference()
56 57 58 |
# File 'lib/fhir_dstu2_models/fhir/resources/Device.rb', line 56 def location @location end |
#lotNumber ⇒ Object
0-1 string
54 55 56 |
# File 'lib/fhir_dstu2_models/fhir/resources/Device.rb', line 54 def lotNumber @lotNumber end |
#manufactureDate ⇒ Object
0-1 dateTime
51 52 53 |
# File 'lib/fhir_dstu2_models/fhir/resources/Device.rb', line 51 def manufactureDate @manufactureDate end |
#manufacturer ⇒ Object
0-1 string
48 49 50 |
# File 'lib/fhir_dstu2_models/fhir/resources/Device.rb', line 48 def manufacturer @manufacturer end |
#meta ⇒ Object
0-1 Meta
37 38 39 |
# File 'lib/fhir_dstu2_models/fhir/resources/Device.rb', line 37 def @meta end |
#model ⇒ Object
0-1 string
49 50 51 |
# File 'lib/fhir_dstu2_models/fhir/resources/Device.rb', line 49 def model @model end |
#modifierExtension ⇒ Object
0-* [ Extension ]
43 44 45 |
# File 'lib/fhir_dstu2_models/fhir/resources/Device.rb', line 43 def modifierExtension @modifierExtension end |
#note ⇒ Object
0-* [ Annotation ]
46 47 48 |
# File 'lib/fhir_dstu2_models/fhir/resources/Device.rb', line 46 def note @note end |
#owner ⇒ Object
0-1 Reference()
55 56 57 |
# File 'lib/fhir_dstu2_models/fhir/resources/Device.rb', line 55 def owner @owner end |
#patient ⇒ Object
0-1 Reference()
57 58 59 |
# File 'lib/fhir_dstu2_models/fhir/resources/Device.rb', line 57 def patient @patient end |
#status ⇒ Object
0-1 code
47 48 49 |
# File 'lib/fhir_dstu2_models/fhir/resources/Device.rb', line 47 def status @status end |
#text ⇒ Object
0-1 Narrative
40 41 42 |
# File 'lib/fhir_dstu2_models/fhir/resources/Device.rb', line 40 def text @text end |
#type ⇒ Object
1-1 CodeableConcept
45 46 47 |
# File 'lib/fhir_dstu2_models/fhir/resources/Device.rb', line 45 def type @type end |
#udi ⇒ Object
0-1 string
53 54 55 |
# File 'lib/fhir_dstu2_models/fhir/resources/Device.rb', line 53 def udi @udi end |
#url ⇒ Object
0-1 uri
59 60 61 |
# File 'lib/fhir_dstu2_models/fhir/resources/Device.rb', line 59 def url @url end |
#version ⇒ Object
0-1 string
50 51 52 |
# File 'lib/fhir_dstu2_models/fhir/resources/Device.rb', line 50 def version @version end |
Instance Method Details
#resourceType ⇒ Object
61 62 63 |
# File 'lib/fhir_dstu2_models/fhir/resources/Device.rb', line 61 def resourceType 'Device' end |