HL7 FHIR Implementation Guide: Sri Lanka
0.1.0 - STU1

HL7 FHIR Implementation Guide: Sri Lanka, published by Jembi Health Systems. This is not an authorized publication; it is the continuous build for version 0.1.0. This version is based on the current content of https://github.com/jembi/Sri-Lanka and changes regularly. See the Directory of published versions

## Resource Profile: Allergies - Mappings

Active as of 2023-11-10

Mappings for the allergy-intolerance resource profile.

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

Allergies
AllergyIntolerance | Entity. Role, or Act, Observation[classCode=OBS, moodCode=EVN]
text | Act.text?
contained | N/A
extension | 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
id | n/a
extension | n/a
coding | union(., ./translation)
text | ./originalText[mediaType/code="text/plain"]/data
patient | .participation[typeCode=SBJ].role[classCode=PAT]
encounter | .inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN]
onset[x] | effectiveTime.low
onset[x] (onsetDateTime) | 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
extension | 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)

Allergies
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
onset[x] (onsetDateTime) | FiveWs.init
recordedDate | FiveWs.recorded
recorder | FiveWs.author
asserter | FiveWs.source

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

Allergies
AllergyIntolerance |
identifier | IAM-7
type | IAM-9
category | AL1-2
criticality | AL1-4
code | AL1-3 / IAM-3
coding | C*E.1-8, C*E.10-22
text | C*E.9. But note many systems use C*E.2 for this
patient | (PID-3)
recordedDate | IAM-13
asserter | IAM-14 (if patient) / IAM-18 (if practitioner)
reaction |
manifestation | AL1-5
onset | AL1-6