Class: FHIR::DSTU2::AllergyIntolerance
- Defined in:
- lib/fhir_dstu2_models/fhir/resources/AllergyIntolerance.rb
Defined Under Namespace
Classes: Reaction
Constant Summary collapse
- SEARCH_PARAMS =
['category', 'criticality', 'date', 'identifier', 'last-date', 'manifestation', 'onset', 'patient', 'recorder', 'reporter', 'route', 'severity', 'status', 'substance', 'type']
- METADATA =
{ 'id' => { 'type' => 'id', 'path' => 'AllergyIntolerance.id', 'min' => 0, 'max' => 1 }, 'meta' => { 'type' => 'Meta', 'path' => 'AllergyIntolerance.meta', 'min' => 0, 'max' => 1 }, 'implicitRules' => { 'type' => 'uri', 'path' => 'AllergyIntolerance.implicitRules', 'min' => 0, 'max' => 1 }, 'language' => { 'type' => 'code', 'path' => 'AllergyIntolerance.language', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://tools.ietf.org/html/bcp47' } }, 'text' => { 'type' => 'Narrative', 'path' => 'AllergyIntolerance.text', 'min' => 0, 'max' => 1 }, 'contained' => { 'type' => 'Resource', 'path' => 'AllergyIntolerance.contained', 'min' => 0, 'max' => Float::INFINITY }, 'extension' => { 'type' => 'Extension', 'path' => 'AllergyIntolerance.extension', 'min' => 0, 'max' => Float::INFINITY }, 'modifierExtension' => { 'type' => 'Extension', 'path' => 'AllergyIntolerance.modifierExtension', 'min' => 0, 'max' => Float::INFINITY }, 'identifier' => { 'type' => 'Identifier', 'path' => 'AllergyIntolerance.identifier', 'min' => 0, 'max' => Float::INFINITY }, 'onset' => { 'type' => 'dateTime', 'path' => 'AllergyIntolerance.onset', 'min' => 0, 'max' => 1 }, 'recordedDate' => { 'type' => 'dateTime', 'path' => 'AllergyIntolerance.recordedDate', 'min' => 0, 'max' => 1 }, 'recorder' => { 'type' => 'Reference', 'path' => 'AllergyIntolerance.recorder', 'min' => 0, 'max' => 1 }, 'patient' => { 'type' => 'Reference', 'path' => 'AllergyIntolerance.patient', 'min' => 1, 'max' => 1 }, 'reporter' => { 'type' => 'Reference', 'path' => 'AllergyIntolerance.reporter', 'min' => 0, 'max' => 1 }, 'substance' => { 'valid_codes' => { 'http://snomed.info/sct' => ['160244002', '429625007', '409137002', '428607008'] }, 'type' => 'CodeableConcept', 'path' => 'AllergyIntolerance.substance', 'min' => 1, 'max' => 1, 'binding' => { 'strength' => 'example', 'uri' => 'http://hl7.org/fhir/ValueSet/allergyintolerance-substance-code' } }, 'status' => { 'valid_codes' => { 'http://hl7.org/fhir/allergy-intolerance-status' => ['active', 'unconfirmed', 'confirmed', 'inactive', 'resolved', 'refuted', 'entered-in-error'] }, 'type' => 'code', 'path' => 'AllergyIntolerance.status', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://hl7.org/fhir/ValueSet/allergy-intolerance-status' } }, 'criticality' => { 'valid_codes' => { 'http://hl7.org/fhir/allergy-intolerance-criticality' => ['CRITL', 'CRITH', 'CRITU'] }, 'type' => 'code', 'path' => 'AllergyIntolerance.criticality', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://hl7.org/fhir/ValueSet/allergy-intolerance-criticality' } }, 'type' => { 'valid_codes' => { 'http://hl7.org/fhir/allergy-intolerance-type' => ['allergy', 'intolerance'] }, 'type' => 'code', 'path' => 'AllergyIntolerance.type', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://hl7.org/fhir/ValueSet/allergy-intolerance-type' } }, 'category' => { 'valid_codes' => { 'http://hl7.org/fhir/allergy-intolerance-category' => ['food', 'medication', 'environment', 'other'] }, 'type' => 'code', 'path' => 'AllergyIntolerance.category', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://hl7.org/fhir/ValueSet/allergy-intolerance-category' } }, 'lastOccurence' => { 'type' => 'dateTime', 'path' => 'AllergyIntolerance.lastOccurence', 'min' => 0, 'max' => 1 }, 'note' => { 'type' => 'Annotation', 'path' => 'AllergyIntolerance.note', 'min' => 0, 'max' => 1 }, 'reaction' => { 'type' => 'AllergyIntolerance::Reaction', 'path' => 'AllergyIntolerance.reaction', 'min' => 0, 'max' => Float::INFINITY } }
Instance Attribute Summary collapse
-
#category ⇒ Object
0-1 code.
-
#contained ⇒ Object
0-* [ Resource ].
-
#criticality ⇒ Object
0-1 code.
-
#extension ⇒ Object
0-* [ Extension ].
-
#id ⇒ Object
0-1 id.
-
#identifier ⇒ Object
0-* [ Identifier ].
-
#implicitRules ⇒ Object
0-1 uri.
-
#language ⇒ Object
0-1 code.
-
#lastOccurence ⇒ Object
0-1 dateTime.
-
#meta ⇒ Object
0-1 Meta.
-
#modifierExtension ⇒ Object
0-* [ Extension ].
-
#note ⇒ Object
0-1 Annotation.
-
#onset ⇒ Object
0-1 dateTime.
-
#patient ⇒ Object
1-1 Reference().
-
#reaction ⇒ Object
0-* [ AllergyIntolerance::Reaction ].
-
#recordedDate ⇒ Object
0-1 dateTime.
-
#recorder ⇒ Object
0-1 Reference().
-
#reporter ⇒ Object
0-1 Reference().
-
#status ⇒ Object
0-1 code.
-
#substance ⇒ Object
1-1 CodeableConcept.
-
#text ⇒ Object
0-1 Narrative.
-
#type ⇒ Object
0-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
#category ⇒ Object
0-1 code
84 85 86 |
# File 'lib/fhir_dstu2_models/fhir/resources/AllergyIntolerance.rb', line 84 def category @category end |
#contained ⇒ Object
0-* [ Resource ]
71 72 73 |
# File 'lib/fhir_dstu2_models/fhir/resources/AllergyIntolerance.rb', line 71 def contained @contained end |
#criticality ⇒ Object
0-1 code
82 83 84 |
# File 'lib/fhir_dstu2_models/fhir/resources/AllergyIntolerance.rb', line 82 def criticality @criticality end |
#extension ⇒ Object
0-* [ Extension ]
72 73 74 |
# File 'lib/fhir_dstu2_models/fhir/resources/AllergyIntolerance.rb', line 72 def extension @extension end |
#id ⇒ Object
0-1 id
66 67 68 |
# File 'lib/fhir_dstu2_models/fhir/resources/AllergyIntolerance.rb', line 66 def id @id end |
#identifier ⇒ Object
0-* [ Identifier ]
74 75 76 |
# File 'lib/fhir_dstu2_models/fhir/resources/AllergyIntolerance.rb', line 74 def identifier @identifier end |
#implicitRules ⇒ Object
0-1 uri
68 69 70 |
# File 'lib/fhir_dstu2_models/fhir/resources/AllergyIntolerance.rb', line 68 def implicitRules @implicitRules end |
#language ⇒ Object
0-1 code
69 70 71 |
# File 'lib/fhir_dstu2_models/fhir/resources/AllergyIntolerance.rb', line 69 def language @language end |
#lastOccurence ⇒ Object
0-1 dateTime
85 86 87 |
# File 'lib/fhir_dstu2_models/fhir/resources/AllergyIntolerance.rb', line 85 def lastOccurence @lastOccurence end |
#meta ⇒ Object
0-1 Meta
67 68 69 |
# File 'lib/fhir_dstu2_models/fhir/resources/AllergyIntolerance.rb', line 67 def @meta end |
#modifierExtension ⇒ Object
0-* [ Extension ]
73 74 75 |
# File 'lib/fhir_dstu2_models/fhir/resources/AllergyIntolerance.rb', line 73 def modifierExtension @modifierExtension end |
#note ⇒ Object
0-1 Annotation
86 87 88 |
# File 'lib/fhir_dstu2_models/fhir/resources/AllergyIntolerance.rb', line 86 def note @note end |
#onset ⇒ Object
0-1 dateTime
75 76 77 |
# File 'lib/fhir_dstu2_models/fhir/resources/AllergyIntolerance.rb', line 75 def onset @onset end |
#patient ⇒ Object
1-1 Reference()
78 79 80 |
# File 'lib/fhir_dstu2_models/fhir/resources/AllergyIntolerance.rb', line 78 def patient @patient end |
#reaction ⇒ Object
0-* [ AllergyIntolerance::Reaction ]
87 88 89 |
# File 'lib/fhir_dstu2_models/fhir/resources/AllergyIntolerance.rb', line 87 def reaction @reaction end |
#recordedDate ⇒ Object
0-1 dateTime
76 77 78 |
# File 'lib/fhir_dstu2_models/fhir/resources/AllergyIntolerance.rb', line 76 def recordedDate @recordedDate end |
#recorder ⇒ Object
0-1 Reference()
77 78 79 |
# File 'lib/fhir_dstu2_models/fhir/resources/AllergyIntolerance.rb', line 77 def recorder @recorder end |
#reporter ⇒ Object
0-1 Reference()
79 80 81 |
# File 'lib/fhir_dstu2_models/fhir/resources/AllergyIntolerance.rb', line 79 def reporter @reporter end |
#status ⇒ Object
0-1 code
81 82 83 |
# File 'lib/fhir_dstu2_models/fhir/resources/AllergyIntolerance.rb', line 81 def status @status end |
#substance ⇒ Object
1-1 CodeableConcept
80 81 82 |
# File 'lib/fhir_dstu2_models/fhir/resources/AllergyIntolerance.rb', line 80 def substance @substance end |
#text ⇒ Object
0-1 Narrative
70 71 72 |
# File 'lib/fhir_dstu2_models/fhir/resources/AllergyIntolerance.rb', line 70 def text @text end |
#type ⇒ Object
0-1 code
83 84 85 |
# File 'lib/fhir_dstu2_models/fhir/resources/AllergyIntolerance.rb', line 83 def type @type end |
Instance Method Details
#resourceType ⇒ Object
89 90 91 |
# File 'lib/fhir_dstu2_models/fhir/resources/AllergyIntolerance.rb', line 89 def resourceType 'AllergyIntolerance' end |