Class: FHIR::DSTU2::Observation::Component

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

Constant Summary collapse

MULTIPLE_TYPES =
{
  'value' => ['Quantity', 'CodeableConcept', 'string', 'Range', 'Ratio', 'SampledData', 'Attachment', 'time', 'dateTime', 'Period']
}
METADATA =
{
  'id' => { 'type' => 'id', 'path' => 'Component.id', 'min' => 0, 'max' => 1 },
  'extension' => { 'type' => 'Extension', 'path' => 'Component.extension', 'min' => 0, 'max' => Float::INFINITY },
  'modifierExtension' => { 'type' => 'Extension', 'path' => 'Component.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
  'code' => { 'valid_codes' => { 'http://loinc.org' => [] }, 'type' => 'CodeableConcept', 'path' => 'Component.code', 'min' => 1, 'max' => 1, 'binding' => { 'strength' => 'example', 'uri' => 'http://hl7.org/fhir/ValueSet/observation-codes' } },
  'valueQuantity' => { 'type' => 'Quantity', 'path' => 'Component.value[x]', 'min' => 0, 'max' => 1 },
  'valueCodeableConcept' => { 'type' => 'CodeableConcept', 'path' => 'Component.value[x]', 'min' => 0, 'max' => 1 },
  'valueString' => { 'type' => 'string', 'path' => 'Component.value[x]', 'min' => 0, 'max' => 1 },
  'valueRange' => { 'type' => 'Range', 'path' => 'Component.value[x]', 'min' => 0, 'max' => 1 },
  'valueRatio' => { 'type' => 'Ratio', 'path' => 'Component.value[x]', 'min' => 0, 'max' => 1 },
  'valueSampledData' => { 'type' => 'SampledData', 'path' => 'Component.value[x]', 'min' => 0, 'max' => 1 },
  'valueAttachment' => { 'type' => 'Attachment', 'path' => 'Component.value[x]', 'min' => 0, 'max' => 1 },
  'valueTime' => { 'type' => 'time', 'path' => 'Component.value[x]', 'min' => 0, 'max' => 1 },
  'valueDateTime' => { 'type' => 'dateTime', 'path' => 'Component.value[x]', 'min' => 0, 'max' => 1 },
  'valuePeriod' => { 'type' => 'Period', 'path' => 'Component.value[x]', 'min' => 0, 'max' => 1 },
  'dataAbsentReason' => { 'valid_codes' => { 'http://hl7.org/fhir/data-absent-reason' => ['unknown', 'asked', 'temp', 'not-asked', 'masked', 'unsupported', 'astext', 'error', 'NaN'] }, 'type' => 'CodeableConcept', 'path' => 'Component.dataAbsentReason', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'extensible', 'uri' => 'http://hl7.org/fhir/ValueSet/observation-valueabsentreason' } },
  'referenceRange' => { 'type' => 'Observation::ReferenceRange', 'path' => 'Component.referenceRange', 'min' => 0, 'max' => Float::INFINITY }
}

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

#codeObject

1-1 CodeableConcept



130
131
132
# File 'lib/fhir_dstu2_models/fhir/resources/Observation.rb', line 130

def code
  @code
end

#dataAbsentReasonObject

0-1 CodeableConcept



141
142
143
# File 'lib/fhir_dstu2_models/fhir/resources/Observation.rb', line 141

def dataAbsentReason
  @dataAbsentReason
end

#extensionObject

0-* [ Extension ]



128
129
130
# File 'lib/fhir_dstu2_models/fhir/resources/Observation.rb', line 128

def extension
  @extension
end

#idObject

0-1 id



127
128
129
# File 'lib/fhir_dstu2_models/fhir/resources/Observation.rb', line 127

def id
  @id
end

#modifierExtensionObject

0-* [ Extension ]



129
130
131
# File 'lib/fhir_dstu2_models/fhir/resources/Observation.rb', line 129

def modifierExtension
  @modifierExtension
end

#referenceRangeObject

0-* [ Observation::ReferenceRange ]



142
143
144
# File 'lib/fhir_dstu2_models/fhir/resources/Observation.rb', line 142

def referenceRange
  @referenceRange
end

#valueAttachmentObject

0-1 Attachment



137
138
139
# File 'lib/fhir_dstu2_models/fhir/resources/Observation.rb', line 137

def valueAttachment
  @valueAttachment
end

#valueCodeableConceptObject

0-1 CodeableConcept



132
133
134
# File 'lib/fhir_dstu2_models/fhir/resources/Observation.rb', line 132

def valueCodeableConcept
  @valueCodeableConcept
end

#valueDateTimeObject

0-1 dateTime



139
140
141
# File 'lib/fhir_dstu2_models/fhir/resources/Observation.rb', line 139

def valueDateTime
  @valueDateTime
end

#valuePeriodObject

0-1 Period



140
141
142
# File 'lib/fhir_dstu2_models/fhir/resources/Observation.rb', line 140

def valuePeriod
  @valuePeriod
end

#valueQuantityObject

0-1 Quantity



131
132
133
# File 'lib/fhir_dstu2_models/fhir/resources/Observation.rb', line 131

def valueQuantity
  @valueQuantity
end

#valueRangeObject

0-1 Range



134
135
136
# File 'lib/fhir_dstu2_models/fhir/resources/Observation.rb', line 134

def valueRange
  @valueRange
end

#valueRatioObject

0-1 Ratio



135
136
137
# File 'lib/fhir_dstu2_models/fhir/resources/Observation.rb', line 135

def valueRatio
  @valueRatio
end

#valueSampledDataObject

0-1 SampledData



136
137
138
# File 'lib/fhir_dstu2_models/fhir/resources/Observation.rb', line 136

def valueSampledData
  @valueSampledData
end

#valueStringObject

0-1 string



133
134
135
# File 'lib/fhir_dstu2_models/fhir/resources/Observation.rb', line 133

def valueString
  @valueString
end

#valueTimeObject

0-1 time



138
139
140
# File 'lib/fhir_dstu2_models/fhir/resources/Observation.rb', line 138

def valueTime
  @valueTime
end