ÚNICAS Rare Diseases HL7 FHIR Implementation Guide
0.0.12 - draft

ÚNICAS Rare Diseases HL7 FHIR Implementation Guide - Local Development build (v0.0.12) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions

Resource Profile: UNICASEncounter - Mappings

Draft as of 2026-10-13

Mappings for the UNICASEncounter resource profile.

Mappings to Structures in this Implementation Guide

No Mappings Found

Mappings to other Structures

No Mappings Found

Other Mappings

NameWorkflow PatternFiveWs Pattern MappingRIM MappingHL7 V2 Mappingdoco
Encounter
Event
workflow.encounter
  • Entity
  • Role
  • or Act
  • PatientEncounter[@moodCode='EVN']
Encounter / id
Encounter / meta
Encounter / implicitRules
Encounter / language
Encounter / text
Act.text?
Encounter / contained
N/A
Encounter / extension
N/A
Encounter / modifierExtension
N/A
Encounter / identifier
Event.identifier
FiveWs.identifier
.id
PV1-19
Encounter / identifier / id
n/a
Encounter / identifier / extension
n/a
Encounter / identifier / use
Role.code or implied by context
N/A
Encounter / identifier / type
Role.code or implied by context
CX.5
Encounter / identifier / system
II.root or Role.id.root
CX.4 / EI-2-4
Encounter / identifier / value
II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)
CX.1 / EI.1
Encounter / identifier / period
Role.effectiveTime or implied by context
CX.7 + CX.8
Encounter / identifier / assigner
II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper
  • CX.4 / (CX.4
  • CX.9
  • CX.10)
Encounter / status
Event.status
FiveWs.status
.statusCode
  • 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 / class
FiveWs.class
.inboundRelationship[typeCode=SUBJ].source[classCode=LIST].code
PV1-2
Encounter / class / id
n/a
Encounter / class / extension
n/a
Encounter / class / coding
  • union(.
  • ./translation)
  • C*E.1-8
  • C*E.10-22
Encounter / class / coding / id
n/a
Encounter / class / coding / extension
n/a
Encounter / class / coding / system
./codeSystem
C*E.3
Encounter / class / coding / version
./codeSystemVersion
C*E.7
Encounter / class / coding / code
./code
C*E.1
Encounter / class / coding / display
CV.displayName
C*E.2 - but note this is not well followed
Encounter / class / coding / userSelected
CD.codingRationale
Sometimes implied by being first
Encounter / class / text
./originalText[mediaType/code="text/plain"]/data
C*E.9. But note many systems use C*E.2 for this
Encounter / priority
FiveWs.grade
.priorityCode
PV2-25
Encounter / type
Event.code
FiveWs.what[x]
.code
PV1-4 / PV1-18
Encounter / serviceType
Event.code
n/a
PV1-10
Encounter / serviceType / id
n/a
Encounter / serviceType / extension
n/a
Encounter / serviceType / concept
N/A
Encounter / serviceType / concept / id
n/a
Encounter / serviceType / concept / extension
n/a
Encounter / serviceType / concept / coding
  • union(.
  • ./translation)
  • C*E.1-8
  • C*E.10-22
Encounter / serviceType / concept / coding / id
n/a
Encounter / serviceType / concept / coding / extension
n/a
Encounter / serviceType / concept / coding / system
./codeSystem
C*E.3
Encounter / serviceType / concept / coding / version
./codeSystemVersion
C*E.7
Encounter / serviceType / concept / coding / code
./code
C*E.1
Encounter / serviceType / concept / coding / display
CV.displayName
C*E.2 - but note this is not well followed
Encounter / serviceType / concept / coding / userSelected
CD.codingRationale
Sometimes implied by being first
Encounter / serviceType / concept / text
./originalText[mediaType/code="text/plain"]/data
C*E.9. But note many systems use C*E.2 for this
Encounter / serviceType / reference
N/A
Encounter / subject
Event.subject
FiveWs.subject[x]
.participation[typeCode=SBJ]/role[classCode=PAT]
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 / identifier / id
n/a
Encounter / subject / identifier / extension
n/a
Encounter / subject / identifier / use
Role.code or implied by context
N/A
Encounter / subject / identifier / type
Role.code or implied by context
CX.5
Encounter / subject / identifier / type / id
n/a
Encounter / subject / identifier / type / extension
n/a
Encounter / subject / identifier / type / coding
  • union(.
  • ./translation)
  • C*E.1-8
  • C*E.10-22
Encounter / subject / identifier / type / coding / id
n/a
Encounter / subject / identifier / type / coding / extension
n/a
Encounter / subject / identifier / type / coding / system
./codeSystem
C*E.3
Encounter / subject / identifier / type / coding / version
./codeSystemVersion
C*E.7
Encounter / subject / identifier / type / coding / code
./code
C*E.1
Encounter / subject / identifier / type / coding / display
CV.displayName
C*E.2 - but note this is not well followed
Encounter / subject / identifier / type / coding / userSelected
CD.codingRationale
Sometimes implied by being first
Encounter / subject / identifier / type / text
./originalText[mediaType/code="text/plain"]/data
C*E.9. But note many systems use C*E.2 for this
Encounter / subject / identifier / system
II.root or Role.id.root
CX.4 / EI-2-4
Encounter / subject / identifier / value
II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)
CX.1 / EI.1
Encounter / subject / identifier / period
Role.effectiveTime or implied by context
CX.7 + CX.8
Encounter / subject / identifier / assigner
II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper
  • CX.4 / (CX.4
  • CX.9
  • CX.10)
Encounter / subject / display
N/A
Encounter / subjectStatus
Encounter / episodeOfCare
FiveWs.context
n/a
  • PV1-54
  • PV1-53
Encounter / basedOn
Event.basedOn
.reason.ClinicalDocument
Encounter / careTeam
n/a
Encounter / partOf
Event.partOf
  • .inboundRelationship[typeCode=COMP].source[classCode=COMP
  • moodCode=EVN]
Encounter / serviceProvider
Event.performer.actor
.participation[typeCode=PRF].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 / identifier / id
n/a
Encounter / serviceProvider / identifier / extension
n/a
Encounter / serviceProvider / identifier / use
Role.code or implied by context
N/A
Encounter / serviceProvider / identifier / type
Role.code or implied by context
CX.5
Encounter / serviceProvider / identifier / system
II.root or Role.id.root
CX.4 / EI-2-4
Encounter / serviceProvider / identifier / value
II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)
CX.1 / EI.1
Encounter / serviceProvider / identifier / period
Role.effectiveTime or implied by context
CX.7 + CX.8
Encounter / serviceProvider / identifier / assigner
II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper
  • CX.4 / (CX.4
  • CX.9
  • CX.10)
Encounter / serviceProvider / display
N/A
Encounter / participant
Event.performer
.participation[typeCode=PRF]
ROL
Encounter / participant / id
n/a
Encounter / participant / extension
n/a
Encounter / participant / modifierExtension
N/A
Encounter / participant / type
Event.performer.function
.functionCode
ROL-3 (or maybe PRT-4)
Encounter / participant / type / id
n/a
Encounter / participant / type / extension
n/a
Encounter / participant / type / coding
  • union(.
  • ./translation)
  • C*E.1-8
  • C*E.10-22
Encounter / participant / type / coding / id
n/a
Encounter / participant / type / coding / extension
n/a
Encounter / participant / type / coding / system
./codeSystem
C*E.3
Encounter / participant / type / coding / version
./codeSystemVersion
C*E.7
Encounter / participant / type / coding / code
./code
C*E.1
Encounter / participant / type / coding / display
CV.displayName
C*E.2 - but note this is not well followed
Encounter / participant / type / coding / userSelected
CD.codingRationale
Sometimes implied by being first
Encounter / participant / type / text
./originalText[mediaType/code="text/plain"]/data
C*E.9. But note many systems use C*E.2 for this
Encounter / participant / period
.time
  • ROL-5
  • ROL-6 (or maybe PRT-5)
Encounter / participant / actor
Event.performer.actor
FiveWs.who
.role
ROL-4
Encounter / participant / actor / id
n/a
Encounter / participant / actor / extension
n/a
Encounter / participant / actor / reference
N/A
Encounter / participant / actor / type
N/A
Encounter / participant / actor / identifier
.identifier
Encounter / participant / actor / identifier / id
n/a
Encounter / participant / actor / identifier / Slices for extension
n/a
Encounter / participant / actor / identifier / Slices for extension / extension:numeroColegiadoProfesionalSanitario
Encounter / participant / actor / identifier / use
Role.code or implied by context
N/A
Encounter / participant / actor / identifier / type
Role.code or implied by context
CX.5
Encounter / participant / actor / identifier / type / id
n/a
Encounter / participant / actor / identifier / type / extension
n/a
Encounter / participant / actor / identifier / type / coding
  • union(.
  • ./translation)
  • C*E.1-8
  • C*E.10-22
Encounter / participant / actor / identifier / type / coding / id
n/a
Encounter / participant / actor / identifier / type / coding / extension
n/a
Encounter / participant / actor / identifier / type / coding / system
./codeSystem
C*E.3
Encounter / participant / actor / identifier / type / coding / version
./codeSystemVersion
C*E.7
Encounter / participant / actor / identifier / type / coding / code
./code
C*E.1
Encounter / participant / actor / identifier / type / coding / display
CV.displayName
C*E.2 - but note this is not well followed
Encounter / participant / actor / identifier / type / coding / userSelected
CD.codingRationale
Sometimes implied by being first
Encounter / participant / actor / identifier / type / text
./originalText[mediaType/code="text/plain"]/data
C*E.9. But note many systems use C*E.2 for this
Encounter / participant / actor / identifier / system
II.root or Role.id.root
CX.4 / EI-2-4
Encounter / participant / actor / identifier / value
II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)
CX.1 / EI.1
Encounter / participant / actor / identifier / period
Role.effectiveTime or implied by context
CX.7 + CX.8
Encounter / participant / actor / identifier / assigner
II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper
  • CX.4 / (CX.4
  • CX.9
  • CX.10)
Encounter / participant / actor / display
N/A
Encounter / appointment
Event.basedOn
  • .outboundRelationship[typeCode=FLFS].target[classCode=ENC
  • moodCode=APT]
SCH-1 / SCH-2
Encounter / appointment / id
n/a
Encounter / appointment / extension
n/a
Encounter / appointment / reference
N/A
Encounter / appointment / type
N/A
Encounter / appointment / identifier
.identifier
Encounter / appointment / identifier / id
n/a
Encounter / appointment / identifier / extension
n/a
Encounter / appointment / identifier / use
Role.code or implied by context
N/A
Encounter / appointment / identifier / type
Role.code or implied by context
CX.5
Encounter / appointment / identifier / system
II.root or Role.id.root
CX.4 / EI-2-4
Encounter / appointment / identifier / value
II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)
CX.1 / EI.1
Encounter / appointment / identifier / period
Role.effectiveTime or implied by context
CX.7 + CX.8
Encounter / appointment / identifier / assigner
II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper
  • CX.4 / (CX.4
  • CX.9
  • CX.10)
Encounter / appointment / display
N/A
Encounter / virtualService
N/A
Encounter / actualPeriod
Event.occurrence[x]
FiveWs.done[x]
.effectiveTime (low & high)
  • PV1-44
  • PV1-45
Encounter / plannedStartDate
PV2-8
Encounter / plannedEndDate
PV2-9
Encounter / length
Event.occurrence[x]
.lengthOfStayQuantity
(PV1-45 less PV1-44) iff ( (PV1-44 not empty) and (PV1-45 not empty) ); units in minutes or PV2-11 (which is actual length in days)
Encounter / reason
Encounter / reason / id
n/a
Encounter / reason / extension
n/a
Encounter / reason / modifierExtension
N/A
Encounter / reason / use
Encounter / reason / value
Event.reason
FiveWs.why[x]
.reasonCode
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 / reason / value / id
n/a
Encounter / reason / value / extension
n/a
Encounter / reason / value / concept
N/A
Encounter / reason / value / concept / id
n/a
Encounter / reason / value / concept / extension
n/a
Encounter / reason / value / concept / coding
  • union(.
  • ./translation)
  • C*E.1-8
  • C*E.10-22
Encounter / reason / value / concept / coding / id
n/a
Encounter / reason / value / concept / coding / extension
n/a
Encounter / reason / value / concept / coding / system
./codeSystem
C*E.3
Encounter / reason / value / concept / coding / version
./codeSystemVersion
C*E.7
Encounter / reason / value / concept / coding / code
./code
C*E.1
Encounter / reason / value / concept / coding / display
CV.displayName
C*E.2 - but note this is not well followed
Encounter / reason / value / concept / coding / userSelected
CD.codingRationale
Sometimes implied by being first
Encounter / reason / value / concept / text
./originalText[mediaType/code="text/plain"]/data
C*E.9. But note many systems use C*E.2 for this
Encounter / reason / value / reference
N/A
Encounter / diagnosis
.outboundRelationship[typeCode=RSON]
Encounter / diagnosis / id
n/a
Encounter / diagnosis / extension
n/a
Encounter / diagnosis / modifierExtension
N/A
Encounter / diagnosis / condition
Event.reason
FiveWs.why[x]
.outboundRelationship[typeCode=RSON].target
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 / condition / id
n/a
Encounter / diagnosis / condition / extension
n/a
Encounter / diagnosis / condition / concept
N/A
Encounter / diagnosis / condition / reference
N/A
Encounter / diagnosis / condition / reference / id
n/a
Encounter / diagnosis / condition / reference / extension
n/a
Encounter / diagnosis / condition / reference / reference
N/A
Encounter / diagnosis / condition / reference / type
N/A
Encounter / diagnosis / condition / reference / identifier
.identifier
Encounter / diagnosis / condition / reference / identifier / id
n/a
Encounter / diagnosis / condition / reference / identifier / extension
n/a
Encounter / diagnosis / condition / reference / identifier / use
Role.code or implied by context
N/A
Encounter / diagnosis / condition / reference / identifier / type
Role.code or implied by context
CX.5
Encounter / diagnosis / condition / reference / identifier / system
II.root or Role.id.root
CX.4 / EI-2-4
Encounter / diagnosis / condition / reference / identifier / value
II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)
CX.1 / EI.1
Encounter / diagnosis / condition / reference / identifier / period
Role.effectiveTime or implied by context
CX.7 + CX.8
Encounter / diagnosis / condition / reference / identifier / assigner
II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper
  • CX.4 / (CX.4
  • CX.9
  • CX.10)
Encounter / diagnosis / condition / reference / display
N/A
Encounter / diagnosis / use
n/a
DG1-6 (Diagnosis Type)
Encounter / account
.pertains.A_Account
Encounter / dietPreference
  • .outboundRelationship[typeCode=COMP].target[classCode=SBADM
  • moodCode=EVN
  • code="diet"]
PV1-38
Encounter / specialArrangement
.specialArrangementCode
PV1-15 / OBR-30 / OBR-43
Encounter / specialCourtesy
.specialCourtesiesCode
PV1-16
Encounter / admission
  • .outboundRelationship[typeCode=COMP].target[classCode=ENC
  • moodCode=EVN]
Encounter / admission / id
n/a
Encounter / admission / extension
n/a
Encounter / admission / modifierExtension
N/A
Encounter / admission / preAdmissionIdentifier
.id
PV1-5
Encounter / admission / origin
.participation[typeCode=ORG].role
Encounter / admission / admitSource
.admissionReferralSourceCode
PV1-14
Encounter / admission / reAdmission
n/a
PV1-13
Encounter / admission / destination
.participation[typeCode=DST]
PV1-37
Encounter / admission / 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
FiveWs.where[x]
.role
PV1-3 / PV1-6 / PV1-11 / PV1-42 / PV1-43
Encounter / location / status
.role.statusCode
Encounter / location / form
Encounter / location / period
.time

doco Documentation for this format

ÚNICAS está impulsado por el Consejo Interterritorial del Sistema Nacional de Salud, y financiado con fondos Next Generation de la Unión Europea, en el marco del Plan de Recuperación, Transformación y Resiliencia del Gobierno de España. El Ministerio de Sanidad ejerce la coordinación del proyecto, y Cataluña lidera la parte del desarrollo de los activos tecnológicos para su implementación.