Class: FHIR::DSTU2::Device

Inherits:
Model
  • Object
show all
Includes:
Hashable, Json, Xml
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

Instance Method Summary collapse

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

#contactObject

0-* [ ContactPoint ]



58
59
60
# File 'lib/fhir_dstu2_models/fhir/resources/Device.rb', line 58

def contact
  @contact
end

#containedObject

0-* [ Resource ]



41
42
43
# File 'lib/fhir_dstu2_models/fhir/resources/Device.rb', line 41

def contained
  @contained
end

#expiryObject

0-1 dateTime



52
53
54
# File 'lib/fhir_dstu2_models/fhir/resources/Device.rb', line 52

def expiry
  @expiry
end

#extensionObject

0-* [ Extension ]



42
43
44
# File 'lib/fhir_dstu2_models/fhir/resources/Device.rb', line 42

def extension
  @extension
end

#idObject

0-1 id



36
37
38
# File 'lib/fhir_dstu2_models/fhir/resources/Device.rb', line 36

def id
  @id
end

#identifierObject

0-* [ Identifier ]



44
45
46
# File 'lib/fhir_dstu2_models/fhir/resources/Device.rb', line 44

def identifier
  @identifier
end

#implicitRulesObject

0-1 uri



38
39
40
# File 'lib/fhir_dstu2_models/fhir/resources/Device.rb', line 38

def implicitRules
  @implicitRules
end

#languageObject

0-1 code



39
40
41
# File 'lib/fhir_dstu2_models/fhir/resources/Device.rb', line 39

def language
  @language
end

#locationObject

0-1 Reference()



56
57
58
# File 'lib/fhir_dstu2_models/fhir/resources/Device.rb', line 56

def location
  @location
end

#lotNumberObject

0-1 string



54
55
56
# File 'lib/fhir_dstu2_models/fhir/resources/Device.rb', line 54

def lotNumber
  @lotNumber
end

#manufactureDateObject

0-1 dateTime



51
52
53
# File 'lib/fhir_dstu2_models/fhir/resources/Device.rb', line 51

def manufactureDate
  @manufactureDate
end

#manufacturerObject

0-1 string



48
49
50
# File 'lib/fhir_dstu2_models/fhir/resources/Device.rb', line 48

def manufacturer
  @manufacturer
end

#metaObject

0-1 Meta



37
38
39
# File 'lib/fhir_dstu2_models/fhir/resources/Device.rb', line 37

def meta
  @meta
end

#modelObject

0-1 string



49
50
51
# File 'lib/fhir_dstu2_models/fhir/resources/Device.rb', line 49

def model
  @model
end

#modifierExtensionObject

0-* [ Extension ]



43
44
45
# File 'lib/fhir_dstu2_models/fhir/resources/Device.rb', line 43

def modifierExtension
  @modifierExtension
end

#noteObject

0-* [ Annotation ]



46
47
48
# File 'lib/fhir_dstu2_models/fhir/resources/Device.rb', line 46

def note
  @note
end

#ownerObject

0-1 Reference()



55
56
57
# File 'lib/fhir_dstu2_models/fhir/resources/Device.rb', line 55

def owner
  @owner
end

#patientObject

0-1 Reference()



57
58
59
# File 'lib/fhir_dstu2_models/fhir/resources/Device.rb', line 57

def patient
  @patient
end

#statusObject

0-1 code



47
48
49
# File 'lib/fhir_dstu2_models/fhir/resources/Device.rb', line 47

def status
  @status
end

#textObject

0-1 Narrative



40
41
42
# File 'lib/fhir_dstu2_models/fhir/resources/Device.rb', line 40

def text
  @text
end

#typeObject

1-1 CodeableConcept



45
46
47
# File 'lib/fhir_dstu2_models/fhir/resources/Device.rb', line 45

def type
  @type
end

#udiObject

0-1 string



53
54
55
# File 'lib/fhir_dstu2_models/fhir/resources/Device.rb', line 53

def udi
  @udi
end

#urlObject

0-1 uri



59
60
61
# File 'lib/fhir_dstu2_models/fhir/resources/Device.rb', line 59

def url
  @url
end

#versionObject

0-1 string



50
51
52
# File 'lib/fhir_dstu2_models/fhir/resources/Device.rb', line 50

def version
  @version
end

Instance Method Details

#resourceTypeObject



61
62
63
# File 'lib/fhir_dstu2_models/fhir/resources/Device.rb', line 61

def resourceType
  'Device'
end