QI-Core Implementation Guide
4.1.0 - release

Publication Build: This will be filled in by the publication tooling

## Resource Profile: QICoreAllergyIntolerance - Mappings

Mappings for the qicore-allergyintolerance resource profile.

### Mappings for Argonaut-DQ-DSTU2 (http://unknown.org/Argonaut-DQ-DSTU2)

QICoreAllergyIntolerance
AllergyIntolerance | AllergyIntolerance
clinicalStatus | AllergyIntolerance.status
verificationStatus | AllergyIntolerance.status
code | AllergyIntolerance.substance
patient | AllergyIntolerance.patient

### Mappings for RIM Mapping (http://hl7.org/v3)

QICoreAllergyIntolerance
AllergyIntolerance | Entity. Role, or Act, Observation[classCode=OBS, moodCode=EVN]
text | Act.text?
contained | N/A
modifierExtension | N/A
identifier | id
clinicalStatus | Observation ACT .inboundRelationship[typeCode=COMP].source[classCode=OBS, code="clinicalStatus", moodCode=EVN].value
verificationStatus | Observation ACT .inboundRelationship[typeCode=COMP].source[classCode=OBS, code="verificationStatus", moodCode=EVN].value
type | code
category | value < IntoleranceValue (Agent)
criticality | inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=SEV, value <= SeverityObservation (Severity Level)]
code | substance/product: .participation[typeCode=CAGNT].role[classCode=ADMM].player[classCode=MAT, determinerCode=KIND, code <= ExposureAgentEntityType] negated/excluded substance/product: .participation[typeCode=CAGNT, negationInd=true].role[classCode=ADMM].player[classCode=MAT, determinerCode=KIND, code <= ExposureAgentEntityType] positive or negated/excluded condition/situation: Observation.code=ASSERTION; Observation.value
patient | .participation[typeCode=SBJ].role[classCode=PAT]
encounter | .inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN]
onset[x] | effectiveTime.low
recordedDate | .participation[typeCode=AUT].time
recorder | .participation[typeCode=AUT].role
asserter | .participation[typeCode=INF].role
lastOccurrence | outBoundRelationship[typeCode=SUBJ].target[classCode=OBS, moodCode=EVN, code <= CommonClinicalObservationType, value <= ObservationValue (Reaction Type)].effectiveTime
note | subjectOf.observationEvent[code="annotation"].value
reaction | outBoundRelationship[typeCode=SUBJ].target[classCode=OBS, moodCode=EVN, code <= CommonClinicalObservationType, value <= ObservationValue (Reaction Type)]
id | n/a
modifierExtension | N/A
substance | outBoundRelationship[typeCode=SAS].target[classCode=SBADM, code <= ExposureCode].participation[typeCode=CSM].role[classCode=ADMM].player[classCode=MAT, determinerCode=KIND, code <= ExposureAgentEntityType]
manifestation | code
description | text
onset | effectiveTime.low
severity | inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=SEV, value <= SeverityObservation (Severity Level)]
exposureRoute | outBoundRelationship[typeCode=SAS].target[classCode=SBADM, code <= ExposureCode].routeCode
note | subjectOf.observationEvent[code="annotation"].value

### Mappings for FiveWs Pattern Mapping (http://hl7.org/fhir/fivews)

QICoreAllergyIntolerance
AllergyIntolerance |
identifier | FiveWs.identifier
clinicalStatus | FiveWs.status
verificationStatus | FiveWs.status
type | FiveWs.class
category | FiveWs.class
criticality | FiveWs.grade
code | FiveWs.what[x]
patient | FiveWs.subject[x], FiveWs.subject
encounter | FiveWs.context
onset[x] | FiveWs.init
recordedDate | FiveWs.recorded
recorder | FiveWs.author
asserter | FiveWs.source

### Mappings for HL7 v2 Mapping (http://hl7.org/v2)

QICoreAllergyIntolerance
AllergyIntolerance |
identifier | IAM-7
type | IAM-9
category | AL1-2
criticality | AL1-4
code | AL1-3 / IAM-3
patient | (PID-3)
recordedDate | IAM-13
asserter | IAM-14 (if patient) / IAM-18 (if practitioner)
reaction |
manifestation | AL1-5
onset | AL1-6