Class: FHIR::DSTU2::Observation::Component
- 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
-
#code ⇒ Object
1-1 CodeableConcept.
-
#dataAbsentReason ⇒ Object
0-1 CodeableConcept.
-
#extension ⇒ Object
0-* [ Extension ].
-
#id ⇒ Object
0-1 id.
-
#modifierExtension ⇒ Object
0-* [ Extension ].
-
#referenceRange ⇒ Object
0-* [ Observation::ReferenceRange ].
-
#valueAttachment ⇒ Object
0-1 Attachment.
-
#valueCodeableConcept ⇒ Object
0-1 CodeableConcept.
-
#valueDateTime ⇒ Object
0-1 dateTime.
-
#valuePeriod ⇒ Object
0-1 Period.
-
#valueQuantity ⇒ Object
0-1 Quantity.
-
#valueRange ⇒ Object
0-1 Range.
-
#valueRatio ⇒ Object
0-1 Ratio.
-
#valueSampledData ⇒ Object
0-1 SampledData.
-
#valueString ⇒ Object
0-1 string.
-
#valueTime ⇒ Object
0-1 time.
Method Summary
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
#code ⇒ Object
1-1 CodeableConcept
130 131 132 |
# File 'lib/fhir_dstu2_models/fhir/resources/Observation.rb', line 130 def code @code end |
#dataAbsentReason ⇒ Object
0-1 CodeableConcept
141 142 143 |
# File 'lib/fhir_dstu2_models/fhir/resources/Observation.rb', line 141 def dataAbsentReason @dataAbsentReason end |
#extension ⇒ Object
0-* [ Extension ]
128 129 130 |
# File 'lib/fhir_dstu2_models/fhir/resources/Observation.rb', line 128 def extension @extension end |
#id ⇒ Object
0-1 id
127 128 129 |
# File 'lib/fhir_dstu2_models/fhir/resources/Observation.rb', line 127 def id @id end |
#modifierExtension ⇒ Object
0-* [ Extension ]
129 130 131 |
# File 'lib/fhir_dstu2_models/fhir/resources/Observation.rb', line 129 def modifierExtension @modifierExtension end |
#referenceRange ⇒ Object
0-* [ Observation::ReferenceRange ]
142 143 144 |
# File 'lib/fhir_dstu2_models/fhir/resources/Observation.rb', line 142 def referenceRange @referenceRange end |
#valueAttachment ⇒ Object
0-1 Attachment
137 138 139 |
# File 'lib/fhir_dstu2_models/fhir/resources/Observation.rb', line 137 def valueAttachment @valueAttachment end |
#valueCodeableConcept ⇒ Object
0-1 CodeableConcept
132 133 134 |
# File 'lib/fhir_dstu2_models/fhir/resources/Observation.rb', line 132 def valueCodeableConcept @valueCodeableConcept end |
#valueDateTime ⇒ Object
0-1 dateTime
139 140 141 |
# File 'lib/fhir_dstu2_models/fhir/resources/Observation.rb', line 139 def valueDateTime @valueDateTime end |
#valuePeriod ⇒ Object
0-1 Period
140 141 142 |
# File 'lib/fhir_dstu2_models/fhir/resources/Observation.rb', line 140 def valuePeriod @valuePeriod end |
#valueQuantity ⇒ Object
0-1 Quantity
131 132 133 |
# File 'lib/fhir_dstu2_models/fhir/resources/Observation.rb', line 131 def valueQuantity @valueQuantity end |
#valueRange ⇒ Object
0-1 Range
134 135 136 |
# File 'lib/fhir_dstu2_models/fhir/resources/Observation.rb', line 134 def valueRange @valueRange end |
#valueRatio ⇒ Object
0-1 Ratio
135 136 137 |
# File 'lib/fhir_dstu2_models/fhir/resources/Observation.rb', line 135 def valueRatio @valueRatio end |
#valueSampledData ⇒ Object
0-1 SampledData
136 137 138 |
# File 'lib/fhir_dstu2_models/fhir/resources/Observation.rb', line 136 def valueSampledData @valueSampledData end |
#valueString ⇒ Object
0-1 string
133 134 135 |
# File 'lib/fhir_dstu2_models/fhir/resources/Observation.rb', line 133 def valueString @valueString end |
#valueTime ⇒ Object
0-1 time
138 139 140 |
# File 'lib/fhir_dstu2_models/fhir/resources/Observation.rb', line 138 def valueTime @valueTime end |