Segment IAM in FHIR

How segment IAM (Patient Adverse Reaction Information) becomes FHIR R4 resources, from the HL7 Version 2 to FHIR guide.

HL7 v2 definition
Definition of IAM in HL7 v2 2.8
Maps
AllergyIntolerance

To AllergyIntolerance20 rows

HL7 v2 sourcev2 typeFHIR elementFHIR typeConditions and notes
IAM-2Allergen Type Code
CWEcategorycode
IAM-2Allergen Type Code
CWEcategory.extension[1].urluri
Value "http://hl7.org/fhir/StructureDefinition/alternate-codes"
IAM-2Allergen Type Code
CWEcategory.extension[1].valueCodeableConceptCodeableConcept
Code map v2-0127
IAM-2Allergen Type Code
CWEtypecode
IAM-3Allergen Code/Mnemonic/Description
CWEcode[1]CodeableConcept
IAM-4Allergy Severity Code
CWEreaction.severitycode
If severity was not used equivalent to criticalityCode map reaction-event-severity
IAM-4Allergy Severity Code
CWEcriticalitycode
If severity was used equivalent to criticalityCode map allergy-intolerance-criticality
IAM-4Allergy Severity Code
CWEcriticality.extension[1].urluri
If severity was used equivalent to criticalityValue "http://hl7.org/fhir/StructureDefinition/alternate-codes"
IAM-4Allergy Severity Code
CWEcriticality.extension[1].valueCodeableConceptCodeableConcept
If severity was used equivalent to criticalityCode map table-hl70128-original-to-v2-0128
IAM-5Allergy Reaction Code
STreaction.manifestation.textCodeableConcept
IAM-7Allergy Unique Identifier
EIidentifieridentifier
IAM-11Onset Date
DTonsetDateTimedateTime
IAM-12Onset Date Text
STonsetStringstring
If IF IAM-11 NOT VALUED
IAM-13Reported Date/Time
DTMrecordedDatedateTime
IAM-14Reported By
XPNrecorder.reference(Practitioner.name)HumanName
If IF IAM-15 NOT VALUEDIf IAM-15 is not valued, not always 100% clear this is a practitioner, so much review locally.
IAM-14Reported By
XPNrecorder.reference(Patient[1].name)HumanName
If IF IAM-15 EQUALS "SEL"
IAM-14Reported By
XPNrecorder.reference(RelatedPerson.name)HumanName
If IF IAM-15 VALUED AND NOT "SEL"
IAM-15Relationship To Patient Code
CWErecorder.reference(RelatedPerson.relationship)CodeableConcept
If IF IAM-15 VALUED AND NOT "SEL"Code map v3-rolecode
IAM-17Allergy Clinical Status Code
CWEclinicalStatusCodeableConcept
IAM-27Clinician Identified Code
CWEcode[1]CodeableConcept