Class: FHIR::DSTU2::Condition
- Defined in:
- lib/fhir_dstu2_models/fhir/resources/Condition.rb
Defined Under Namespace
Constant Summary collapse
- MULTIPLE_TYPES =
{ 'onset' => ['dateTime', 'Quantity', 'Period', 'Range', 'string'], 'abatement' => ['dateTime', 'Quantity', 'boolean', 'Period', 'Range', 'string'] }
- SEARCH_PARAMS =
['asserter', 'body-site', 'category', 'clinicalstatus', 'code', 'date-recorded', 'encounter', 'evidence', 'identifier', 'onset', 'onset-info', 'patient', 'severity', 'stage']
- METADATA =
{ 'id' => { 'type' => 'id', 'path' => 'Condition.id', 'min' => 0, 'max' => 1 }, 'meta' => { 'type' => 'Meta', 'path' => 'Condition.meta', 'min' => 0, 'max' => 1 }, 'implicitRules' => { 'type' => 'uri', 'path' => 'Condition.implicitRules', 'min' => 0, 'max' => 1 }, 'language' => { 'type' => 'code', 'path' => 'Condition.language', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://tools.ietf.org/html/bcp47' } }, 'text' => { 'type' => 'Narrative', 'path' => 'Condition.text', 'min' => 0, 'max' => 1 }, 'contained' => { 'type' => 'Resource', 'path' => 'Condition.contained', 'min' => 0, 'max' => Float::INFINITY }, 'extension' => { 'type' => 'Extension', 'path' => 'Condition.extension', 'min' => 0, 'max' => Float::INFINITY }, 'modifierExtension' => { 'type' => 'Extension', 'path' => 'Condition.modifierExtension', 'min' => 0, 'max' => Float::INFINITY }, 'identifier' => { 'type' => 'Identifier', 'path' => 'Condition.identifier', 'min' => 0, 'max' => Float::INFINITY }, 'patient' => { 'type' => 'Reference', 'path' => 'Condition.patient', 'min' => 1, 'max' => 1 }, 'encounter' => { 'type' => 'Reference', 'path' => 'Condition.encounter', 'min' => 0, 'max' => 1 }, 'asserter' => { 'type' => 'Reference', 'path' => 'Condition.asserter', 'min' => 0, 'max' => 1 }, 'dateRecorded' => { 'type' => 'date', 'path' => 'Condition.dateRecorded', 'min' => 0, 'max' => 1 }, 'code' => { 'valid_codes' => { 'http://snomed.info/sct' => [] }, 'type' => 'CodeableConcept', 'path' => 'Condition.code', 'min' => 1, 'max' => 1, 'binding' => { 'strength' => 'example', 'uri' => 'http://hl7.org/fhir/ValueSet/condition-code' } }, 'category' => { 'valid_codes' => { 'http://hl7.org/fhir/condition-category' => ['complaint', 'symptom', 'finding', 'diagnosis'] }, 'type' => 'CodeableConcept', 'path' => 'Condition.category', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'preferred', 'uri' => 'http://hl7.org/fhir/ValueSet/condition-category' } }, 'clinicalStatus' => { 'valid_codes' => { 'http://hl7.org/fhir/condition-clinical' => ['active', 'relapse', 'remission', 'resolved'] }, 'type' => 'code', 'path' => 'Condition.clinicalStatus', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'preferred', 'uri' => 'http://hl7.org/fhir/ValueSet/condition-clinical' } }, 'verificationStatus' => { 'valid_codes' => { 'http://hl7.org/fhir/condition-ver-status' => ['provisional', 'differential', 'confirmed', 'refuted', 'entered-in-error', 'unknown'] }, 'type' => 'code', 'path' => 'Condition.verificationStatus', 'min' => 1, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://hl7.org/fhir/ValueSet/condition-ver-status' } }, 'severity' => { 'valid_codes' => { 'http://snomed.info/sct' => ['399166001', '24484000', '6736007', '255604002'] }, 'type' => 'CodeableConcept', 'path' => 'Condition.severity', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'preferred', 'uri' => 'http://hl7.org/fhir/ValueSet/condition-severity' } }, 'onsetDateTime' => { 'type' => 'dateTime', 'path' => 'Condition.onset[x]', 'min' => 0, 'max' => 1 }, 'onsetQuantity' => { 'type' => 'Quantity', 'path' => 'Condition.onset[x]', 'min' => 0, 'max' => 1 }, 'onsetPeriod' => { 'type' => 'Period', 'path' => 'Condition.onset[x]', 'min' => 0, 'max' => 1 }, 'onsetRange' => { 'type' => 'Range', 'path' => 'Condition.onset[x]', 'min' => 0, 'max' => 1 }, 'onsetString' => { 'type' => 'string', 'path' => 'Condition.onset[x]', 'min' => 0, 'max' => 1 }, 'abatementDateTime' => { 'type' => 'dateTime', 'path' => 'Condition.abatement[x]', 'min' => 0, 'max' => 1 }, 'abatementQuantity' => { 'type' => 'Quantity', 'path' => 'Condition.abatement[x]', 'min' => 0, 'max' => 1 }, 'abatementBoolean' => { 'type' => 'boolean', 'path' => 'Condition.abatement[x]', 'min' => 0, 'max' => 1 }, 'abatementPeriod' => { 'type' => 'Period', 'path' => 'Condition.abatement[x]', 'min' => 0, 'max' => 1 }, 'abatementRange' => { 'type' => 'Range', 'path' => 'Condition.abatement[x]', 'min' => 0, 'max' => 1 }, 'abatementString' => { 'type' => 'string', 'path' => 'Condition.abatement[x]', 'min' => 0, 'max' => 1 }, 'stage' => { 'type' => 'Condition::Stage', 'path' => 'Condition.stage', 'min' => 0, 'max' => 1 }, 'evidence' => { 'type' => 'Condition::Evidence', 'path' => 'Condition.evidence', 'min' => 0, 'max' => Float::INFINITY }, 'bodySite' => { 'valid_codes' => { 'http://snomed.info/sct' => [] }, 'type' => 'CodeableConcept', 'path' => 'Condition.bodySite', 'min' => 0, 'max' => Float::INFINITY, 'binding' => { 'strength' => 'example', 'uri' => 'http://hl7.org/fhir/ValueSet/body-site' } }, 'notes' => { 'type' => 'string', 'path' => 'Condition.notes', 'min' => 0, 'max' => 1 } }
Instance Attribute Summary collapse
-
#abatementBoolean ⇒ Object
0-1 boolean.
-
#abatementDateTime ⇒ Object
0-1 dateTime.
-
#abatementPeriod ⇒ Object
0-1 Period.
-
#abatementQuantity ⇒ Object
0-1 Quantity.
-
#abatementRange ⇒ Object
0-1 Range.
-
#abatementString ⇒ Object
0-1 string.
-
#asserter ⇒ Object
0-1 Reference().
-
#bodySite ⇒ Object
0-* [ CodeableConcept ].
-
#category ⇒ Object
0-1 CodeableConcept.
-
#clinicalStatus ⇒ Object
0-1 code.
-
#code ⇒ Object
1-1 CodeableConcept.
-
#contained ⇒ Object
0-* [ Resource ].
-
#dateRecorded ⇒ Object
0-1 date.
-
#encounter ⇒ Object
0-1 Reference().
-
#evidence ⇒ Object
0-* [ Condition::Evidence ].
-
#extension ⇒ Object
0-* [ Extension ].
-
#id ⇒ Object
0-1 id.
-
#identifier ⇒ Object
0-* [ Identifier ].
-
#implicitRules ⇒ Object
0-1 uri.
-
#language ⇒ Object
0-1 code.
-
#meta ⇒ Object
0-1 Meta.
-
#modifierExtension ⇒ Object
0-* [ Extension ].
-
#notes ⇒ Object
0-1 string.
-
#onsetDateTime ⇒ Object
0-1 dateTime.
-
#onsetPeriod ⇒ Object
0-1 Period.
-
#onsetQuantity ⇒ Object
0-1 Quantity.
-
#onsetRange ⇒ Object
0-1 Range.
-
#onsetString ⇒ Object
0-1 string.
-
#patient ⇒ Object
1-1 Reference().
-
#severity ⇒ Object
0-1 CodeableConcept.
-
#stage ⇒ Object
0-1 Condition::Stage.
-
#text ⇒ Object
0-1 Narrative.
-
#verificationStatus ⇒ Object
1-1 code.
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
#abatementBoolean ⇒ Object
0-1 boolean
114 115 116 |
# File 'lib/fhir_dstu2_models/fhir/resources/Condition.rb', line 114 def abatementBoolean @abatementBoolean end |
#abatementDateTime ⇒ Object
0-1 dateTime
112 113 114 |
# File 'lib/fhir_dstu2_models/fhir/resources/Condition.rb', line 112 def abatementDateTime @abatementDateTime end |
#abatementPeriod ⇒ Object
0-1 Period
115 116 117 |
# File 'lib/fhir_dstu2_models/fhir/resources/Condition.rb', line 115 def abatementPeriod @abatementPeriod end |
#abatementQuantity ⇒ Object
0-1 Quantity
113 114 115 |
# File 'lib/fhir_dstu2_models/fhir/resources/Condition.rb', line 113 def abatementQuantity @abatementQuantity end |
#abatementRange ⇒ Object
0-1 Range
116 117 118 |
# File 'lib/fhir_dstu2_models/fhir/resources/Condition.rb', line 116 def abatementRange @abatementRange end |
#abatementString ⇒ Object
0-1 string
117 118 119 |
# File 'lib/fhir_dstu2_models/fhir/resources/Condition.rb', line 117 def abatementString @abatementString end |
#asserter ⇒ Object
0-1 Reference()
100 101 102 |
# File 'lib/fhir_dstu2_models/fhir/resources/Condition.rb', line 100 def asserter @asserter end |
#bodySite ⇒ Object
0-* [ CodeableConcept ]
120 121 122 |
# File 'lib/fhir_dstu2_models/fhir/resources/Condition.rb', line 120 def bodySite @bodySite end |
#category ⇒ Object
0-1 CodeableConcept
103 104 105 |
# File 'lib/fhir_dstu2_models/fhir/resources/Condition.rb', line 103 def category @category end |
#clinicalStatus ⇒ Object
0-1 code
104 105 106 |
# File 'lib/fhir_dstu2_models/fhir/resources/Condition.rb', line 104 def clinicalStatus @clinicalStatus end |
#code ⇒ Object
1-1 CodeableConcept
102 103 104 |
# File 'lib/fhir_dstu2_models/fhir/resources/Condition.rb', line 102 def code @code end |
#contained ⇒ Object
0-* [ Resource ]
94 95 96 |
# File 'lib/fhir_dstu2_models/fhir/resources/Condition.rb', line 94 def contained @contained end |
#dateRecorded ⇒ Object
0-1 date
101 102 103 |
# File 'lib/fhir_dstu2_models/fhir/resources/Condition.rb', line 101 def dateRecorded @dateRecorded end |
#encounter ⇒ Object
0-1 Reference()
99 100 101 |
# File 'lib/fhir_dstu2_models/fhir/resources/Condition.rb', line 99 def encounter @encounter end |
#evidence ⇒ Object
0-* [ Condition::Evidence ]
119 120 121 |
# File 'lib/fhir_dstu2_models/fhir/resources/Condition.rb', line 119 def evidence @evidence end |
#extension ⇒ Object
0-* [ Extension ]
95 96 97 |
# File 'lib/fhir_dstu2_models/fhir/resources/Condition.rb', line 95 def extension @extension end |
#id ⇒ Object
0-1 id
89 90 91 |
# File 'lib/fhir_dstu2_models/fhir/resources/Condition.rb', line 89 def id @id end |
#identifier ⇒ Object
0-* [ Identifier ]
97 98 99 |
# File 'lib/fhir_dstu2_models/fhir/resources/Condition.rb', line 97 def identifier @identifier end |
#implicitRules ⇒ Object
0-1 uri
91 92 93 |
# File 'lib/fhir_dstu2_models/fhir/resources/Condition.rb', line 91 def implicitRules @implicitRules end |
#language ⇒ Object
0-1 code
92 93 94 |
# File 'lib/fhir_dstu2_models/fhir/resources/Condition.rb', line 92 def language @language end |
#meta ⇒ Object
0-1 Meta
90 91 92 |
# File 'lib/fhir_dstu2_models/fhir/resources/Condition.rb', line 90 def @meta end |
#modifierExtension ⇒ Object
0-* [ Extension ]
96 97 98 |
# File 'lib/fhir_dstu2_models/fhir/resources/Condition.rb', line 96 def modifierExtension @modifierExtension end |
#notes ⇒ Object
0-1 string
121 122 123 |
# File 'lib/fhir_dstu2_models/fhir/resources/Condition.rb', line 121 def notes @notes end |
#onsetDateTime ⇒ Object
0-1 dateTime
107 108 109 |
# File 'lib/fhir_dstu2_models/fhir/resources/Condition.rb', line 107 def onsetDateTime @onsetDateTime end |
#onsetPeriod ⇒ Object
0-1 Period
109 110 111 |
# File 'lib/fhir_dstu2_models/fhir/resources/Condition.rb', line 109 def onsetPeriod @onsetPeriod end |
#onsetQuantity ⇒ Object
0-1 Quantity
108 109 110 |
# File 'lib/fhir_dstu2_models/fhir/resources/Condition.rb', line 108 def onsetQuantity @onsetQuantity end |
#onsetRange ⇒ Object
0-1 Range
110 111 112 |
# File 'lib/fhir_dstu2_models/fhir/resources/Condition.rb', line 110 def onsetRange @onsetRange end |
#onsetString ⇒ Object
0-1 string
111 112 113 |
# File 'lib/fhir_dstu2_models/fhir/resources/Condition.rb', line 111 def onsetString @onsetString end |
#patient ⇒ Object
1-1 Reference()
98 99 100 |
# File 'lib/fhir_dstu2_models/fhir/resources/Condition.rb', line 98 def patient @patient end |
#severity ⇒ Object
0-1 CodeableConcept
106 107 108 |
# File 'lib/fhir_dstu2_models/fhir/resources/Condition.rb', line 106 def severity @severity end |
#stage ⇒ Object
0-1 Condition::Stage
118 119 120 |
# File 'lib/fhir_dstu2_models/fhir/resources/Condition.rb', line 118 def stage @stage end |
#text ⇒ Object
0-1 Narrative
93 94 95 |
# File 'lib/fhir_dstu2_models/fhir/resources/Condition.rb', line 93 def text @text end |
#verificationStatus ⇒ Object
1-1 code
105 106 107 |
# File 'lib/fhir_dstu2_models/fhir/resources/Condition.rb', line 105 def verificationStatus @verificationStatus end |
Instance Method Details
#resourceType ⇒ Object
123 124 125 |
# File 'lib/fhir_dstu2_models/fhir/resources/Condition.rb', line 123 def resourceType 'Condition' end |