Class: FHIR::DSTU2::DeviceUseStatement

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

Constant Summary collapse

MULTIPLE_TYPES =
{
  'bodySite' => ['CodeableConcept', 'Reference'],
  'timing' => ['Timing', 'Period', 'dateTime']
}
SEARCH_PARAMS =
['device', 'patient', 'subject']
METADATA =
{
  'id' => { 'type' => 'id', 'path' => 'DeviceUseStatement.id', 'min' => 0, 'max' => 1 },
  'meta' => { 'type' => 'Meta', 'path' => 'DeviceUseStatement.meta', 'min' => 0, 'max' => 1 },
  'implicitRules' => { 'type' => 'uri', 'path' => 'DeviceUseStatement.implicitRules', 'min' => 0, 'max' => 1 },
  'language' => { 'type' => 'code', 'path' => 'DeviceUseStatement.language', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://tools.ietf.org/html/bcp47' } },
  'text' => { 'type' => 'Narrative', 'path' => 'DeviceUseStatement.text', 'min' => 0, 'max' => 1 },
  'contained' => { 'type' => 'Resource', 'path' => 'DeviceUseStatement.contained', 'min' => 0, 'max' => Float::INFINITY },
  'extension' => { 'type' => 'Extension', 'path' => 'DeviceUseStatement.extension', 'min' => 0, 'max' => Float::INFINITY },
  'modifierExtension' => { 'type' => 'Extension', 'path' => 'DeviceUseStatement.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
  'bodySiteCodeableConcept' => { 'type' => 'CodeableConcept', 'path' => 'DeviceUseStatement.bodySite[x]', 'min' => 0, 'max' => 1 },
  'bodySiteReference' => { 'type' => 'Reference', 'path' => 'DeviceUseStatement.bodySite[x]', 'min' => 0, 'max' => 1 },
  'whenUsed' => { 'type' => 'Period', 'path' => 'DeviceUseStatement.whenUsed', 'min' => 0, 'max' => 1 },
  'device' => { 'type' => 'Reference', 'path' => 'DeviceUseStatement.device', 'min' => 1, 'max' => 1 },
  'identifier' => { 'type' => 'Identifier', 'path' => 'DeviceUseStatement.identifier', 'min' => 0, 'max' => Float::INFINITY },
  'indication' => { 'type' => 'CodeableConcept', 'path' => 'DeviceUseStatement.indication', 'min' => 0, 'max' => Float::INFINITY },
  'notes' => { 'type' => 'string', 'path' => 'DeviceUseStatement.notes', 'min' => 0, 'max' => Float::INFINITY },
  'recordedOn' => { 'type' => 'dateTime', 'path' => 'DeviceUseStatement.recordedOn', 'min' => 0, 'max' => 1 },
  'subject' => { 'type' => 'Reference', 'path' => 'DeviceUseStatement.subject', 'min' => 1, 'max' => 1 },
  'timingTiming' => { 'type' => 'Timing', 'path' => 'DeviceUseStatement.timing[x]', 'min' => 0, 'max' => 1 },
  'timingPeriod' => { 'type' => 'Period', 'path' => 'DeviceUseStatement.timing[x]', 'min' => 0, 'max' => 1 },
  'timingDateTime' => { 'type' => 'dateTime', 'path' => 'DeviceUseStatement.timing[x]', '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

#bodySiteCodeableConceptObject

0-1 CodeableConcept



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

def bodySiteCodeableConcept
  @bodySiteCodeableConcept
end

#bodySiteReferenceObject

0-1 Reference()



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

def bodySiteReference
  @bodySiteReference
end

#containedObject

0-* [ Resource ]



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

def contained
  @contained
end

#deviceObject

1-1 Reference()



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

def device
  @device
end

#extensionObject

0-* [ Extension ]



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

def extension
  @extension
end

#idObject

0-1 id



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

def id
  @id
end

#identifierObject

0-* [ Identifier ]



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

def identifier
  @identifier
end

#implicitRulesObject

0-1 uri



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

def implicitRules
  @implicitRules
end

#indicationObject

0-* [ CodeableConcept ]



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

def indication
  @indication
end

#languageObject

0-1 code



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

def language
  @language
end

#metaObject

0-1 Meta



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

def meta
  @meta
end

#modifierExtensionObject

0-* [ Extension ]



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

def modifierExtension
  @modifierExtension
end

#notesObject

0-* [ string ]



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

def notes
  @notes
end

#recordedOnObject

0-1 dateTime



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

def recordedOn
  @recordedOn
end

#subjectObject

1-1 Reference()



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

def subject
  @subject
end

#textObject

0-1 Narrative



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

def text
  @text
end

#timingDateTimeObject

0-1 dateTime



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

def timingDateTime
  @timingDateTime
end

#timingPeriodObject

0-1 Period



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

def timingPeriod
  @timingPeriod
end

#timingTimingObject

0-1 Timing



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

def timingTiming
  @timingTiming
end

#whenUsedObject

0-1 Period



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

def whenUsed
  @whenUsed
end

Instance Method Details

#resourceTypeObject



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

def resourceType
  'DeviceUseStatement'
end