Finnish Implementation Guide for SMART App Launch
2.0.0-rc3 - qa-preview

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

## Resource Profile: FiSMARTAllergyIntolerance - Mappings

Draft as of 2025-06-01

Mappings for the fi-smart-allergy-intolerance resource profile.

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

FiSMARTAllergyIntolerance
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
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
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)

FiSMARTAllergyIntolerance
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)

FiSMARTAllergyIntolerance
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