臺灣中醫實作指引
0.1.0 - ci-build

臺灣中醫實作指引, published by 衛生福利部國家中醫藥研究所. This guide is not an authorized publication; it is the continuous build for version 0.1.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/nricmig/Nricm_TWCMIG/ and changes regularly. See the Directory of published versions

Resource Profile: EncounterTWCM - Mappings

Draft as of 2026-10-07

Mappings for the encounter-twcm 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:medicalIdentity
Encounter / modifierExtension
N/A
Encounter / identifier
Event.identifier
.id
FiveWs.identifier
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
CD
CE/CNE/CWE
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
.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
CV
CE/CNE/CWE subset one of the sets of component 1-3 or 4-6
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
CD
CE/CNE/CWE
Encounter / serviceType
CD
CE/CNE/CWE
Encounter / serviceType / id
n/a
Encounter / serviceType / extension
Encounter / serviceType / Slices for coding
CV
CE/CNE/CWE subset one of the sets of component 1-3 or 4-6
Encounter / serviceType / Slices for coding / coding:TWMedicalDepartmentSCT
CV
CE/CNE/CWE subset one of the sets of component 1-3 or 4-6
Encounter / serviceType / Slices for coding / coding:TWMedicalDepartmentSCT / id
n/a
Encounter / serviceType / Slices for coding / coding:TWMedicalDepartmentSCT / extension
Encounter / serviceType / Slices for coding / coding:TWMedicalDepartmentSCT / system
./codeSystem
C*E.3
Encounter / serviceType / Slices for coding / coding:TWMedicalDepartmentSCT / version
./codeSystemVersion
C*E.7
Encounter / serviceType / Slices for coding / coding:TWMedicalDepartmentSCT / code
./code
C*E.1
Encounter / serviceType / Slices for coding / coding:TWMedicalDepartmentSCT / display
CV.displayName
C*E.2 - but note this is not well followed
Encounter / serviceType / Slices for coding / coding:TWMedicalDepartmentSCT / userSelected
CD.codingRationale
Sometimes implied by being first
Encounter / serviceType / Slices for coding / coding:TWMedicalConsultationDepartment
CV
CE/CNE/CWE subset one of the sets of component 1-3 or 4-6
Encounter / serviceType / Slices for coding / coding:TWMedicalConsultationDepartment / id
n/a
Encounter / serviceType / Slices for coding / coding:TWMedicalConsultationDepartment / extension
Encounter / serviceType / Slices for coding / coding:TWMedicalConsultationDepartment / system
./codeSystem
C*E.3
Encounter / serviceType / Slices for coding / coding:TWMedicalConsultationDepartment / version
./codeSystemVersion
C*E.7
Encounter / serviceType / Slices for coding / coding:TWMedicalConsultationDepartment / code
./code
C*E.1
Encounter / serviceType / Slices for coding / coding:TWMedicalConsultationDepartment / display
CV.displayName
C*E.2 - but note this is not well followed
Encounter / serviceType / Slices for coding / coding:TWMedicalConsultationDepartment / userSelected
CD.codingRationale
Sometimes implied by being first
Encounter / serviceType / Slices for coding / coding:TWMedicalTreatmentDepartment
CV
CE/CNE/CWE subset one of the sets of component 1-3 or 4-6
Encounter / serviceType / Slices for coding / coding:TWMedicalTreatmentDepartment / id
n/a
Encounter / serviceType / Slices for coding / coding:TWMedicalTreatmentDepartment / extension
Encounter / serviceType / Slices for coding / coding:TWMedicalTreatmentDepartment / system
./codeSystem
C*E.3
Encounter / serviceType / Slices for coding / coding:TWMedicalTreatmentDepartment / version
./codeSystemVersion
C*E.7
Encounter / serviceType / Slices for coding / coding:TWMedicalTreatmentDepartment / code
./code
C*E.1
Encounter / serviceType / Slices for coding / coding:TWMedicalTreatmentDepartment / display
CV.displayName
C*E.2 - but note this is not well followed
Encounter / serviceType / Slices for coding / coding:TWMedicalTreatmentDepartment / userSelected
CD.codingRationale
Sometimes implied by being first
Encounter / serviceType / text
./originalText[mediaType/code="text/plain"]/data
C*E.9. But note many systems use C*E.2 for this
Encounter / priority
CD
CE/CNE/CWE
Encounter / subject
Event.subject
.participation[typeCode=SBJ]/role[classCode=PAT]
FiveWs.subject
PID-3
Encounter / episodeOfCare
Event.context
n/a
FiveWs.context
  • PV1-54
  • PV1-53
Encounter / basedOn
Event.basedOn
.reason.ClinicalDocument
Encounter / participant
Event.performer
.participation[typeCode=PFM]
ROL
Encounter / participant / id
n/a
Encounter / participant / extension
n/a
Encounter / participant / modifierExtension
N/A
Encounter / participant / type
CD
CE/CNE/CWE
Encounter / participant / period
.time
  • ROL-5
  • ROL-6 (or maybe PRT-5)
Encounter / participant / individual
Event.performer.actor
.role
FiveWs.who
ROL-4
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
CD
CE/CNE/CWE
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
CD
CE/CNE/CWE
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
CD
CE/CNE/CWE
Encounter / hospitalization / reAdmission
CD
CE/CNE/CWE
Encounter / hospitalization / dietPreference
CD
CE/CNE/CWE
Encounter / hospitalization / specialCourtesy
CD
CE/CNE/CWE
Encounter / hospitalization / specialArrangement
CD
CE/CNE/CWE
Encounter / hospitalization / destination
.participation[typeCode=DST]
PV1-37
Encounter / hospitalization / dischargeDisposition
CD
CE/CNE/CWE
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
CD
CE/CNE/CWE
Encounter / location / period
.time
Encounter / serviceProvider
Event.performer.actor
.particiaption[typeCode=PFM].role
PL.6 & PL.1
Encounter / partOf
Event.partOf
  • .inboundRelationship[typeCode=COMP].source[classCode=COMP
  • moodCode=EVN]

doco Documentation for this format