Class: FHIR::DSTU2::AllergyIntolerance

Inherits:
Model
  • Object
show all
Includes:
Hashable, Json, Xml
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

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

#categoryObject

0-1 code



84
85
86
# File 'lib/fhir_dstu2_models/fhir/resources/AllergyIntolerance.rb', line 84

def category
  @category
end

#containedObject

0-* [ Resource ]



71
72
73
# File 'lib/fhir_dstu2_models/fhir/resources/AllergyIntolerance.rb', line 71

def contained
  @contained
end

#criticalityObject

0-1 code



82
83
84
# File 'lib/fhir_dstu2_models/fhir/resources/AllergyIntolerance.rb', line 82

def criticality
  @criticality
end

#extensionObject

0-* [ Extension ]



72
73
74
# File 'lib/fhir_dstu2_models/fhir/resources/AllergyIntolerance.rb', line 72

def extension
  @extension
end

#idObject

0-1 id



66
67
68
# File 'lib/fhir_dstu2_models/fhir/resources/AllergyIntolerance.rb', line 66

def id
  @id
end

#identifierObject

0-* [ Identifier ]



74
75
76
# File 'lib/fhir_dstu2_models/fhir/resources/AllergyIntolerance.rb', line 74

def identifier
  @identifier
end

#implicitRulesObject

0-1 uri



68
69
70
# File 'lib/fhir_dstu2_models/fhir/resources/AllergyIntolerance.rb', line 68

def implicitRules
  @implicitRules
end

#languageObject

0-1 code



69
70
71
# File 'lib/fhir_dstu2_models/fhir/resources/AllergyIntolerance.rb', line 69

def language
  @language
end

#lastOccurenceObject

0-1 dateTime



85
86
87
# File 'lib/fhir_dstu2_models/fhir/resources/AllergyIntolerance.rb', line 85

def lastOccurence
  @lastOccurence
end

#metaObject

0-1 Meta



67
68
69
# File 'lib/fhir_dstu2_models/fhir/resources/AllergyIntolerance.rb', line 67

def meta
  @meta
end

#modifierExtensionObject

0-* [ Extension ]



73
74
75
# File 'lib/fhir_dstu2_models/fhir/resources/AllergyIntolerance.rb', line 73

def modifierExtension
  @modifierExtension
end

#noteObject

0-1 Annotation



86
87
88
# File 'lib/fhir_dstu2_models/fhir/resources/AllergyIntolerance.rb', line 86

def note
  @note
end

#onsetObject

0-1 dateTime



75
76
77
# File 'lib/fhir_dstu2_models/fhir/resources/AllergyIntolerance.rb', line 75

def onset
  @onset
end

#patientObject

1-1 Reference()



78
79
80
# File 'lib/fhir_dstu2_models/fhir/resources/AllergyIntolerance.rb', line 78

def patient
  @patient
end

#reactionObject

0-* [ AllergyIntolerance::Reaction ]



87
88
89
# File 'lib/fhir_dstu2_models/fhir/resources/AllergyIntolerance.rb', line 87

def reaction
  @reaction
end

#recordedDateObject

0-1 dateTime



76
77
78
# File 'lib/fhir_dstu2_models/fhir/resources/AllergyIntolerance.rb', line 76

def recordedDate
  @recordedDate
end

#recorderObject

0-1 Reference()



77
78
79
# File 'lib/fhir_dstu2_models/fhir/resources/AllergyIntolerance.rb', line 77

def recorder
  @recorder
end

#reporterObject

0-1 Reference()



79
80
81
# File 'lib/fhir_dstu2_models/fhir/resources/AllergyIntolerance.rb', line 79

def reporter
  @reporter
end

#statusObject

0-1 code



81
82
83
# File 'lib/fhir_dstu2_models/fhir/resources/AllergyIntolerance.rb', line 81

def status
  @status
end

#substanceObject

1-1 CodeableConcept



80
81
82
# File 'lib/fhir_dstu2_models/fhir/resources/AllergyIntolerance.rb', line 80

def substance
  @substance
end

#textObject

0-1 Narrative



70
71
72
# File 'lib/fhir_dstu2_models/fhir/resources/AllergyIntolerance.rb', line 70

def text
  @text
end

#typeObject

0-1 code



83
84
85
# File 'lib/fhir_dstu2_models/fhir/resources/AllergyIntolerance.rb', line 83

def type
  @type
end

Instance Method Details

#resourceTypeObject



89
90
91
# File 'lib/fhir_dstu2_models/fhir/resources/AllergyIntolerance.rb', line 89

def resourceType
  'AllergyIntolerance'
end