Care Coordination and 360 Referrals (Proof of Concept)
0.1.0 - proof-of-concept United Kingdom flag

Care Coordination and 360 Referrals (Proof of Concept) - Local Development build (v0.1.0) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions

Resource Profile: Hospital Spell - Mappings

Draft as of 2026-11-03

Mappings for the HospitalSpell resource profile.

Mappings to Structures in this Implementation Guide

No Mappings Found

Mappings to other Structures

No Mappings Found

Other Mappings

NameWorkflow PatternRIM MappingFiveWs Pattern MappingHL7 v2 Mappingdoco
Encounter
Event
Encounter[@moodCode='EVN']
Encounter / id
Encounter / meta
Encounter / implicitRules
Encounter / language
Encounter / text
Act.text?
Encounter / contained
N/A
Encounter / Slices for extension
Encounter / Slices for extension / extension:dischargeMethod
Encounter / modifierExtension
N/A
Encounter / Slices for identifier
Event.identifier
.id
FiveWs.identifier
PV1-19
Encounter / Slices for identifier / identifier:HospitalSpellIdentifier
Event.identifier
.id
FiveWs.identifier
PV1-19
Encounter / status
Event.status
.statusCode
FiveWs.status
  • No clear equivalent in HL7 v2; active/finished could be inferred from PV1-44
  • PV1-45
  • PV2-24; inactive could be inferred from PV2-16
Encounter / statusHistory
n/a
Encounter / statusHistory / id
n/a
Encounter / statusHistory / extension
n/a
Encounter / statusHistory / modifierExtension
N/A
Encounter / statusHistory / status
n/a
Encounter / statusHistory / period
n/a
Encounter / class
.inboundRelationship[typeCode=SUBJ].source[classCode=LIST].code
FiveWs.class
PV1-2
Encounter / classHistory
n/a
Encounter / classHistory / id
n/a
Encounter / classHistory / extension
n/a
Encounter / classHistory / modifierExtension
N/A
Encounter / classHistory / class
n/a
Encounter / classHistory / period
n/a
Encounter / type
Event.code
.code
FiveWs.class
PV1-4 / PV1-18
Encounter / serviceType
Event.code
n/a
PV1-10
Encounter / priority
.priorityCode
FiveWs.grade
PV2-25
Encounter / subject
Event.subject
.participation[typeCode=SBJ]/role[classCode=PAT]
FiveWs.subject
PID-3
Encounter / subject / id
n/a
Encounter / subject / extension
n/a
Encounter / subject / reference
N/A
Encounter / subject / type
N/A
Encounter / subject / identifier
.identifier
Encounter / subject / display
N/A
Encounter / episodeOfCare
Event.context
n/a
FiveWs.context
  • PV1-54
  • PV1-53
Encounter / basedOn
Event.basedOn
.reason.ClinicalDocument
Encounter / Slices for participant
Event.performer
.participation[typeCode=PFM]
ROL
Encounter / Slices for participant / participant:All Slices
Encounter / Slices for participant / participant:All Slices / id
n/a
Encounter / Slices for participant / participant:All Slices / extension
n/a
Encounter / Slices for participant / participant:All Slices / modifierExtension
N/A
Encounter / Slices for participant / participant:All Slices / type
Event.performer.function
.functionCode
ROL-3 (or maybe PRT-4)
Encounter / Slices for participant / participant:All Slices / type / id
n/a
Encounter / Slices for participant / participant:All Slices / type / extension
n/a
Encounter / Slices for participant / participant:All Slices / type / coding
  • union(.
  • ./translation)
  • C*E.1-8
  • C*E.10-22
Encounter / Slices for participant / participant:All Slices / type / coding / id
n/a
Encounter / Slices for participant / participant:All Slices / type / coding / extension
n/a
Encounter / Slices for participant / participant:All Slices / type / coding / system
./codeSystem
C*E.3
Encounter / Slices for participant / participant:All Slices / type / coding / version
./codeSystemVersion
C*E.7
Encounter / Slices for participant / participant:All Slices / type / coding / code
./code
C*E.1
Encounter / Slices for participant / participant:All Slices / type / coding / display
CV.displayName
C*E.2 - but note this is not well followed
Encounter / Slices for participant / participant:All Slices / type / coding / userSelected
CD.codingRationale
Sometimes implied by being first
Encounter / Slices for participant / participant:All Slices / type / text
./originalText[mediaType/code="text/plain"]/data
C*E.9. But note many systems use C*E.2 for this
Encounter / Slices for participant / participant:All Slices / period
.time
  • ROL-5
  • ROL-6 (or maybe PRT-5)
Encounter / Slices for participant / participant:All Slices / individual
Event.performer.actor
.role
FiveWs.who
ROL-4
Encounter / Slices for participant / participant:referringDoctor
Event.performer
.participation[typeCode=PFM]
ROL
Encounter / Slices for participant / participant:referringDoctor / id
n/a
Encounter / Slices for participant / participant:referringDoctor / extension
n/a
Encounter / Slices for participant / participant:referringDoctor / modifierExtension
N/A
Encounter / Slices for participant / participant:referringDoctor / type
Event.performer.function
.functionCode
ROL-3 (or maybe PRT-4)
Encounter / Slices for participant / participant:referringDoctor / type / id
n/a
Encounter / Slices for participant / participant:referringDoctor / type / extension
n/a
Encounter / Slices for participant / participant:referringDoctor / type / coding
  • union(.
  • ./translation)
  • C*E.1-8
  • C*E.10-22
Encounter / Slices for participant / participant:referringDoctor / type / text
./originalText[mediaType/code="text/plain"]/data
C*E.9. But note many systems use C*E.2 for this
Encounter / Slices for participant / participant:referringDoctor / period
.time
  • ROL-5
  • ROL-6 (or maybe PRT-5)
Encounter / Slices for participant / participant:referringDoctor / individual
Event.performer.actor
.role
FiveWs.who
ROL-4
Encounter / Slices for participant / participant:referringDoctor / individual / id
n/a
Encounter / Slices for participant / participant:referringDoctor / individual / extension
n/a
Encounter / Slices for participant / participant:referringDoctor / individual / reference
N/A
Encounter / Slices for participant / participant:referringDoctor / individual / type
N/A
Encounter / Slices for participant / participant:referringDoctor / individual / identifier
.identifier
Encounter / Slices for participant / participant:referringDoctor / individual / display
N/A
Encounter / Slices for participant / participant:admittingDoctor
Event.performer
.participation[typeCode=PFM]
ROL
Encounter / Slices for participant / participant:admittingDoctor / id
n/a
Encounter / Slices for participant / participant:admittingDoctor / extension
n/a
Encounter / Slices for participant / participant:admittingDoctor / modifierExtension
N/A
Encounter / Slices for participant / participant:admittingDoctor / type
Event.performer.function
.functionCode
ROL-3 (or maybe PRT-4)
Encounter / Slices for participant / participant:admittingDoctor / type / id
n/a
Encounter / Slices for participant / participant:admittingDoctor / type / extension
n/a
Encounter / Slices for participant / participant:admittingDoctor / type / coding
  • union(.
  • ./translation)
  • C*E.1-8
  • C*E.10-22
Encounter / Slices for participant / participant:admittingDoctor / type / text
./originalText[mediaType/code="text/plain"]/data
C*E.9. But note many systems use C*E.2 for this
Encounter / Slices for participant / participant:admittingDoctor / period
.time
  • ROL-5
  • ROL-6 (or maybe PRT-5)
Encounter / Slices for participant / participant:admittingDoctor / individual
Event.performer.actor
.role
FiveWs.who
ROL-4
Encounter / Slices for participant / participant:admittingDoctor / individual / id
n/a
Encounter / Slices for participant / participant:admittingDoctor / individual / extension
n/a
Encounter / Slices for participant / participant:admittingDoctor / individual / reference
N/A
Encounter / Slices for participant / participant:admittingDoctor / individual / type
N/A
Encounter / Slices for participant / participant:admittingDoctor / individual / identifier
.identifier
Encounter / Slices for participant / participant:admittingDoctor / individual / display
N/A
Encounter / appointment
Event.basedOn
  • .outboundRelationship[typeCode=FLFS].target[classCode=ENC
  • moodCode=APT]
SCH-1 / SCH-2
Encounter / period
Event.occurrence[x]
.effectiveTime (low & high)
FiveWs.done[x]
  • PV1-44
  • PV1-45
Encounter / period / id
n/a
Encounter / period / extension
n/a
Encounter / period / start
./low
DR.1
Encounter / period / end
./high
DR.2
Encounter / length
Event.occurrence[x]
.lengthOfStayQuantity
(PV1-45 less PV1-44) iff ( (PV1-44 not empty) and (PV1-45 not empty) ); units in minutes
Encounter / reasonCode
Event.reasonCode
.reasonCode
FiveWs.why[x]
PV2-3 is nominally constrained to inpatient admissions; HL7 v2 makes no vocabulary suggestions for PV2-3; would not expect PV2 segment or PV2-3 to be in use in all implementations )
Encounter / reasonReference
Event.reasonCode
.reasonCode
FiveWs.why[x]
PV2-3 is nominally constrained to inpatient admissions; HL7 v2 makes no vocabulary suggestions for PV2-3; would not expect PV2 segment or PV2-3 to be in use in all implementations )
Encounter / diagnosis
.outboundRelationship[typeCode=RSON]
Encounter / diagnosis / id
n/a
Encounter / diagnosis / extension
n/a
Encounter / diagnosis / modifierExtension
N/A
Encounter / diagnosis / condition
Event.reasonReference
.outboundRelationship[typeCode=RSON].target
FiveWs.why[x]
Resources that would commonly referenced at Encounter.indication would be Condition and/or Procedure. These most closely align with DG1/PRB and PR1 respectively.
Encounter / diagnosis / use
n/a
Encounter / diagnosis / rank
.outboundRelationship[typeCode=RSON].priority
Encounter / account
.pertains.A_Account
Encounter / hospitalization
  • .outboundRelationship[typeCode=COMP].target[classCode=ENC
  • moodCode=EVN]
Encounter / hospitalization / id
n/a
Encounter / hospitalization / extension
n/a
Encounter / hospitalization / modifierExtension
N/A
Encounter / hospitalization / preAdmissionIdentifier
.id
PV1-5
Encounter / hospitalization / origin
.participation[typeCode=ORG].role
Encounter / hospitalization / admitSource
.admissionReferralSourceCode
PV1-14
Encounter / hospitalization / reAdmission
n/a
PV1-13
Encounter / hospitalization / dietPreference
  • .outboundRelationship[typeCode=COMP].target[classCode=SBADM
  • moodCode=EVN
  • code="diet"]
PV1-38
Encounter / hospitalization / specialCourtesy
.specialCourtesiesCode
PV1-16
Encounter / hospitalization / specialArrangement
.specialArrangementCode
PV1-15 / OBR-30 / OBR-43
Encounter / hospitalization / destination
.participation[typeCode=DST]
PV1-37
Encounter / hospitalization / dischargeDisposition
.dischargeDispositionCode
PV1-36
Encounter / location
.participation[typeCode=LOC]
Encounter / location / id
n/a
Encounter / location / extension
n/a
Encounter / location / modifierExtension
N/A
Encounter / location / location
Event.location
.role
FiveWs.where[x]
PV1-3 / PV1-6 / PV1-11 / PV1-42 / PV1-43
Encounter / location / status
.role.statusCode
Encounter / location / physicalType
Encounter / location / period
.time
Encounter / serviceProvider
Event.performer.actor
.particiaption[typeCode=PFM].role
PL.6 & PL.1
Encounter / serviceProvider / id
n/a
Encounter / serviceProvider / extension
n/a
Encounter / serviceProvider / reference
N/A
Encounter / serviceProvider / type
N/A
Encounter / serviceProvider / identifier
.identifier
Encounter / serviceProvider / display
N/A
Encounter / partOf
Event.partOf
  • .inboundRelationship[typeCode=COMP].source[classCode=COMP
  • moodCode=EVN]

doco Documentation for this format