臺灣社政領域基礎實作指引
0.0.1 - ci-build

臺灣社政領域基礎實作指引, published by 衛生福利部社會及家庭署. This guide is not an authorized publication; it is the continuous build for version 0.0.1 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/sfaassn2025-source/base/ and changes regularly. See the Directory of published versions

Resource Profile: ActualServiceEncounterTWSSBase - Mappings

Draft as of 2026-08-10

Mappings for the ActualServiceEncounter-twss-base resource profile.

Mappings to Structures in this Implementation Guide

NameMapping to TWSSBase Actual Service Encounterdoco
.. Encounter
    ... id
      ... meta
        ... implicitRules
          ... language
            ... text
              ... contained
                ... extension
                  ... modifierExtension
                    ... identifier
                      ... status
                        ... statusHistory
                          .... id
                            .... extension
                              .... modifierExtension
                                .... status
                                  .... period
                                    ... class
                                      ... classHistory
                                        .... id
                                          .... extension
                                            .... modifierExtension
                                              .... class
                                                .... period
                                                  ... type
                                                    ... serviceType
                                                      ... priority
                                                        ... subject
                                                          ... episodeOfCare
                                                            ... basedOn
                                                              ... participant
                                                                .... id
                                                                  .... extension
                                                                    .... modifierExtension
                                                                      .... type
                                                                        .... period
                                                                          .... individual
                                                                            ... appointment
                                                                              ... period
                                                                                .... id
                                                                                  .... extension
                                                                                    .... start
                                                                                    .... end
                                                                                      ... length
                                                                                        ... reasonCode
                                                                                          ... reasonReference
                                                                                            ... diagnosis
                                                                                              .... id
                                                                                                .... extension
                                                                                                  .... modifierExtension
                                                                                                    .... condition
                                                                                                      .... use
                                                                                                        .... rank
                                                                                                          ... account
                                                                                                            ... hospitalization
                                                                                                              .... id
                                                                                                                .... extension
                                                                                                                  .... modifierExtension
                                                                                                                    .... preAdmissionIdentifier
                                                                                                                      .... origin
                                                                                                                        .... admitSource
                                                                                                                          .... reAdmission
                                                                                                                            .... dietPreference
                                                                                                                              .... specialCourtesy
                                                                                                                                .... specialArrangement
                                                                                                                                  .... destination
                                                                                                                                    .... dischargeDisposition
                                                                                                                                      ... location
                                                                                                                                        .... id
                                                                                                                                          .... extension
                                                                                                                                            .... modifierExtension
                                                                                                                                              .... location
                                                                                                                                                .... status
                                                                                                                                                  .... physicalType
                                                                                                                                                    .... period
                                                                                                                                                      ... serviceProvider
                                                                                                                                                        ... partOf

                                                                                                                                                          doco Documentation for this format

                                                                                                                                                          Mappings to other Structures

                                                                                                                                                          No Mappings Found

                                                                                                                                                          Other Mappings

                                                                                                                                                          NameWorkflow PatternRIM MappingFiveWs Pattern MappingHL7 v2 Mappingdoco
                                                                                                                                                          .. Encounter
                                                                                                                                                          Event
                                                                                                                                                          Encounter[@moodCode='EVN']
                                                                                                                                                          ... id
                                                                                                                                                          ... meta
                                                                                                                                                          ... implicitRules
                                                                                                                                                          ... language
                                                                                                                                                          ... text
                                                                                                                                                          Act.text?
                                                                                                                                                          ... contained
                                                                                                                                                          N/A
                                                                                                                                                          ... extension
                                                                                                                                                          N/A
                                                                                                                                                          ... modifierExtension
                                                                                                                                                          N/A
                                                                                                                                                          ... identifier
                                                                                                                                                          Event.identifier
                                                                                                                                                          .id
                                                                                                                                                          FiveWs.identifier
                                                                                                                                                          PV1-19
                                                                                                                                                          ... 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
                                                                                                                                                          ... statusHistory
                                                                                                                                                          n/a
                                                                                                                                                          .... id
                                                                                                                                                          n/a
                                                                                                                                                          .... extension
                                                                                                                                                          n/a
                                                                                                                                                          .... modifierExtension
                                                                                                                                                          N/A
                                                                                                                                                          .... status
                                                                                                                                                          n/a
                                                                                                                                                          .... period
                                                                                                                                                          n/a
                                                                                                                                                          ... class
                                                                                                                                                          .inboundRelationship[typeCode=SUBJ].source[classCode=LIST].code
                                                                                                                                                          FiveWs.class
                                                                                                                                                          PV1-2
                                                                                                                                                          ... classHistory
                                                                                                                                                          n/a
                                                                                                                                                          .... id
                                                                                                                                                          n/a
                                                                                                                                                          .... extension
                                                                                                                                                          n/a
                                                                                                                                                          .... modifierExtension
                                                                                                                                                          N/A
                                                                                                                                                          .... class
                                                                                                                                                          n/a
                                                                                                                                                          .... period
                                                                                                                                                          n/a
                                                                                                                                                          ... type
                                                                                                                                                          Event.code
                                                                                                                                                          .code
                                                                                                                                                          FiveWs.class
                                                                                                                                                          PV1-4 / PV1-18
                                                                                                                                                          ... serviceType
                                                                                                                                                          Event.code
                                                                                                                                                          n/a
                                                                                                                                                          PV1-10
                                                                                                                                                          ... priority
                                                                                                                                                          .priorityCode
                                                                                                                                                          FiveWs.grade
                                                                                                                                                          PV2-25
                                                                                                                                                          ... subject
                                                                                                                                                          Event.subject
                                                                                                                                                          .participation[typeCode=SBJ]/role[classCode=PAT]
                                                                                                                                                          FiveWs.subject
                                                                                                                                                          PID-3
                                                                                                                                                          ... episodeOfCare
                                                                                                                                                          Event.context
                                                                                                                                                          n/a
                                                                                                                                                          FiveWs.context
                                                                                                                                                          • PV1-54
                                                                                                                                                          • PV1-53
                                                                                                                                                          ... basedOn
                                                                                                                                                          Event.basedOn
                                                                                                                                                          .reason.ClinicalDocument
                                                                                                                                                          ... participant
                                                                                                                                                          Event.performer
                                                                                                                                                          .participation[typeCode=PFM]
                                                                                                                                                          ROL
                                                                                                                                                          .... id
                                                                                                                                                          n/a
                                                                                                                                                          .... extension
                                                                                                                                                          n/a
                                                                                                                                                          .... modifierExtension
                                                                                                                                                          N/A
                                                                                                                                                          .... type
                                                                                                                                                          Event.performer.function
                                                                                                                                                          .functionCode
                                                                                                                                                          ROL-3 (or maybe PRT-4)
                                                                                                                                                          .... period
                                                                                                                                                          .time
                                                                                                                                                          • ROL-5
                                                                                                                                                          • ROL-6 (or maybe PRT-5)
                                                                                                                                                          .... individual
                                                                                                                                                          Event.performer.actor
                                                                                                                                                          .role
                                                                                                                                                          FiveWs.who
                                                                                                                                                          ROL-4
                                                                                                                                                          ... appointment
                                                                                                                                                          Event.basedOn
                                                                                                                                                          • .outboundRelationship[typeCode=FLFS].target[classCode=ENC
                                                                                                                                                          • moodCode=APT]
                                                                                                                                                          SCH-1 / SCH-2
                                                                                                                                                          ... period
                                                                                                                                                          Event.occurrence[x]
                                                                                                                                                          .effectiveTime (low & high)
                                                                                                                                                          FiveWs.done[x]
                                                                                                                                                          • PV1-44
                                                                                                                                                          • PV1-45
                                                                                                                                                          .... id
                                                                                                                                                          n/a
                                                                                                                                                          .... extension
                                                                                                                                                          n/a
                                                                                                                                                          .... start
                                                                                                                                                          ./low
                                                                                                                                                          DR.1
                                                                                                                                                          .... end
                                                                                                                                                          ./high
                                                                                                                                                          DR.2
                                                                                                                                                          ... length
                                                                                                                                                          Event.occurrence[x]
                                                                                                                                                          .lengthOfStayQuantity
                                                                                                                                                          (PV1-45 less PV1-44) iff ( (PV1-44 not empty) and (PV1-45 not empty) ); units in minutes
                                                                                                                                                          ... 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 )
                                                                                                                                                          ... 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 )
                                                                                                                                                          ... diagnosis
                                                                                                                                                          .outboundRelationship[typeCode=RSON]
                                                                                                                                                          .... id
                                                                                                                                                          n/a
                                                                                                                                                          .... extension
                                                                                                                                                          n/a
                                                                                                                                                          .... modifierExtension
                                                                                                                                                          N/A
                                                                                                                                                          .... 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.
                                                                                                                                                          .... use
                                                                                                                                                          n/a
                                                                                                                                                          .... rank
                                                                                                                                                          .outboundRelationship[typeCode=RSON].priority
                                                                                                                                                          ... account
                                                                                                                                                          .pertains.A_Account
                                                                                                                                                          ... hospitalization
                                                                                                                                                          • .outboundRelationship[typeCode=COMP].target[classCode=ENC
                                                                                                                                                          • moodCode=EVN]
                                                                                                                                                          .... id
                                                                                                                                                          n/a
                                                                                                                                                          .... extension
                                                                                                                                                          n/a
                                                                                                                                                          .... modifierExtension
                                                                                                                                                          N/A
                                                                                                                                                          .... preAdmissionIdentifier
                                                                                                                                                          .id
                                                                                                                                                          PV1-5
                                                                                                                                                          .... origin
                                                                                                                                                          .participation[typeCode=ORG].role
                                                                                                                                                          .... admitSource
                                                                                                                                                          .admissionReferralSourceCode
                                                                                                                                                          PV1-14
                                                                                                                                                          .... reAdmission
                                                                                                                                                          n/a
                                                                                                                                                          PV1-13
                                                                                                                                                          .... dietPreference
                                                                                                                                                          • .outboundRelationship[typeCode=COMP].target[classCode=SBADM
                                                                                                                                                          • moodCode=EVN
                                                                                                                                                          • code="diet"]
                                                                                                                                                          PV1-38
                                                                                                                                                          .... specialCourtesy
                                                                                                                                                          .specialCourtesiesCode
                                                                                                                                                          PV1-16
                                                                                                                                                          .... specialArrangement
                                                                                                                                                          .specialArrangementCode
                                                                                                                                                          PV1-15 / OBR-30 / OBR-43
                                                                                                                                                          .... destination
                                                                                                                                                          .participation[typeCode=DST]
                                                                                                                                                          PV1-37
                                                                                                                                                          .... dischargeDisposition
                                                                                                                                                          .dischargeDispositionCode
                                                                                                                                                          PV1-36
                                                                                                                                                          ... location
                                                                                                                                                          .participation[typeCode=LOC]
                                                                                                                                                          .... id
                                                                                                                                                          n/a
                                                                                                                                                          .... extension
                                                                                                                                                          n/a
                                                                                                                                                          .... modifierExtension
                                                                                                                                                          N/A
                                                                                                                                                          .... location
                                                                                                                                                          Event.location
                                                                                                                                                          .role
                                                                                                                                                          FiveWs.where[x]
                                                                                                                                                          PV1-3 / PV1-6 / PV1-11 / PV1-42 / PV1-43
                                                                                                                                                          .... status
                                                                                                                                                          .role.statusCode
                                                                                                                                                          .... physicalType
                                                                                                                                                          .... period
                                                                                                                                                          .time
                                                                                                                                                          ... serviceProvider
                                                                                                                                                          Event.performer.actor
                                                                                                                                                          .particiaption[typeCode=PFM].role
                                                                                                                                                          PL.6 & PL.1
                                                                                                                                                          ... partOf
                                                                                                                                                          Event.partOf
                                                                                                                                                          • .inboundRelationship[typeCode=COMP].source[classCode=COMP
                                                                                                                                                          • moodCode=EVN]

                                                                                                                                                          doco Documentation for this format