Class: FHIR::DSTU2::AllergyIntolerance::Reaction

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

Constant Summary collapse

METADATA =
{
  'id' => { 'type' => 'id', 'path' => 'Reaction.id', 'min' => 0, 'max' => 1 },
  'extension' => { 'type' => 'Extension', 'path' => 'Reaction.extension', 'min' => 0, 'max' => Float::INFINITY },
  'modifierExtension' => { 'type' => 'Extension', 'path' => 'Reaction.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
  'substance' => { 'valid_codes' => { 'http://snomed.info/sct' => [] }, 'type' => 'CodeableConcept', 'path' => 'Reaction.substance', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'example', 'uri' => 'http://hl7.org/fhir/ValueSet/substance-code' } },
  'certainty' => { 'valid_codes' => { 'http://hl7.org/fhir/reaction-event-certainty' => ['unlikely', 'likely', 'confirmed'] }, 'type' => 'code', 'path' => 'Reaction.certainty', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://hl7.org/fhir/ValueSet/reaction-event-certainty' } },
  'manifestation' => { 'valid_codes' => { 'http://snomed.info/sct' => [] }, 'type' => 'CodeableConcept', 'path' => 'Reaction.manifestation', 'min' => 1, 'max' => Float::INFINITY, 'binding' => { 'strength' => 'example', 'uri' => 'http://hl7.org/fhir/ValueSet/manifestation-codes' } },
  'description' => { 'type' => 'string', 'path' => 'Reaction.description', 'min' => 0, 'max' => 1 },
  'onset' => { 'type' => 'dateTime', 'path' => 'Reaction.onset', 'min' => 0, 'max' => 1 },
  'severity' => { 'valid_codes' => { 'http://hl7.org/fhir/reaction-event-severity' => ['mild', 'moderate', 'severe'] }, 'type' => 'code', 'path' => 'Reaction.severity', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://hl7.org/fhir/ValueSet/reaction-event-severity' } },
  'exposureRoute' => { 'valid_codes' => { 'http://snomed.info/sct' => [] }, 'type' => 'CodeableConcept', 'path' => 'Reaction.exposureRoute', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'example', 'uri' => 'http://hl7.org/fhir/ValueSet/route-codes' } },
  'note' => { 'type' => 'Annotation', 'path' => 'Reaction.note', 'min' => 0, 'max' => 1 }
}

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

#certaintyObject

0-1 code



57
58
59
# File 'lib/fhir_dstu2_models/fhir/resources/AllergyIntolerance.rb', line 57

def certainty
  @certainty
end

#descriptionObject

0-1 string



59
60
61
# File 'lib/fhir_dstu2_models/fhir/resources/AllergyIntolerance.rb', line 59

def description
  @description
end

#exposureRouteObject

0-1 CodeableConcept



62
63
64
# File 'lib/fhir_dstu2_models/fhir/resources/AllergyIntolerance.rb', line 62

def exposureRoute
  @exposureRoute
end

#extensionObject

0-* [ Extension ]



54
55
56
# File 'lib/fhir_dstu2_models/fhir/resources/AllergyIntolerance.rb', line 54

def extension
  @extension
end

#idObject

0-1 id



53
54
55
# File 'lib/fhir_dstu2_models/fhir/resources/AllergyIntolerance.rb', line 53

def id
  @id
end

#manifestationObject

1-* [ CodeableConcept ]



58
59
60
# File 'lib/fhir_dstu2_models/fhir/resources/AllergyIntolerance.rb', line 58

def manifestation
  @manifestation
end

#modifierExtensionObject

0-* [ Extension ]



55
56
57
# File 'lib/fhir_dstu2_models/fhir/resources/AllergyIntolerance.rb', line 55

def modifierExtension
  @modifierExtension
end

#noteObject

0-1 Annotation



63
64
65
# File 'lib/fhir_dstu2_models/fhir/resources/AllergyIntolerance.rb', line 63

def note
  @note
end

#onsetObject

0-1 dateTime



60
61
62
# File 'lib/fhir_dstu2_models/fhir/resources/AllergyIntolerance.rb', line 60

def onset
  @onset
end

#severityObject

0-1 code



61
62
63
# File 'lib/fhir_dstu2_models/fhir/resources/AllergyIntolerance.rb', line 61

def severity
  @severity
end

#substanceObject

0-1 CodeableConcept



56
57
58
# File 'lib/fhir_dstu2_models/fhir/resources/AllergyIntolerance.rb', line 56

def substance
  @substance
end