臺灣社政領域基礎實作指引
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: RelatedPersonTWSSBase - Mappings

Draft as of 2026-08-10

Mappings for the RelatedPerson-twss-base resource profile.

Mappings to Structures in this Implementation Guide

NameMapping to TWSSBase RelatedPersondoco
.. RelatedPerson
    ... id
      ... meta
        ... implicitRules
          ... text
            ... contained
              ... Slices for extension
              .... extension:nationality
              .... extension:ethnicGroup
              .... extension:maritalStatus
              .... extension:isPrimaryCaregiver
              .... extension:isGuardian
              .... extension:isPrimaryContact
              .... extension:isLegalRepresentative
              .... extension:age
              .... extension:identifierUnknown
              ... modifierExtension
                ... Slices for identifier
                .... identifier:All Slices
                ..... id
                  ..... extension
                    ..... use
                      ..... type
                        ..... system
                          ..... value
                            ..... period
                              ..... assigner
                                .... identifier:idCardNumber
                                ..... id
                                  ..... extension
                                    ..... use
                                      ..... type
                                        ...... id
                                          ...... extension
                                            ...... coding
                                              ....... id
                                                ....... extension
                                                  ....... system
                                                    ....... version
                                                      ....... code
                                                        ....... display
                                                          ....... userSelected
                                                            ...... text
                                                              ..... system
                                                                ..... value
                                                                  ..... period
                                                                    ..... assigner
                                                                      .... identifier:relationNumber
                                                                      ..... id
                                                                        ..... extension
                                                                          ..... use
                                                                            ..... type
                                                                              ...... id
                                                                                ...... extension
                                                                                  ...... coding
                                                                                    ....... id
                                                                                      ....... extension
                                                                                        ....... system
                                                                                          ....... version
                                                                                            ....... code
                                                                                              ....... display
                                                                                                ....... userSelected
                                                                                                  ...... text
                                                                                                    ..... system
                                                                                                      ..... value
                                                                                                        ..... period
                                                                                                          ..... assigner
                                                                                                            ... active
                                                                                                              ... patient
                                                                                                                ... relationship
                                                                                                                ... name
                                                                                                                .... id
                                                                                                                  .... extension
                                                                                                                    .... use
                                                                                                                      .... text
                                                                                                                        .... family
                                                                                                                          .... given
                                                                                                                            .... prefix
                                                                                                                              .... suffix
                                                                                                                                .... period
                                                                                                                                  ... telecom
                                                                                                                                  .... id
                                                                                                                                    .... extension
                                                                                                                                      .... system
                                                                                                                                        .... value
                                                                                                                                          .... use
                                                                                                                                            .... rank
                                                                                                                                              .... period
                                                                                                                                                ... gender
                                                                                                                                                ... birthDate
                                                                                                                                                ... address
                                                                                                                                                ... photo
                                                                                                                                                  ... period
                                                                                                                                                    ... communication
                                                                                                                                                      .... id
                                                                                                                                                        .... extension
                                                                                                                                                          .... modifierExtension
                                                                                                                                                            .... language
                                                                                                                                                              .... preferred

                                                                                                                                                                doco Documentation for this format

                                                                                                                                                                Mappings to other Structures

                                                                                                                                                                No Mappings Found

                                                                                                                                                                Other Mappings

                                                                                                                                                                NameRIM MappingFiveWs Pattern MappingHL7 v2 Mappingdoco
                                                                                                                                                                .. RelatedPerson
                                                                                                                                                                role
                                                                                                                                                                ... id
                                                                                                                                                                ... meta
                                                                                                                                                                ... implicitRules
                                                                                                                                                                ... text
                                                                                                                                                                Act.text?
                                                                                                                                                                ... contained
                                                                                                                                                                N/A
                                                                                                                                                                ... Slices for extension
                                                                                                                                                                .... extension:nationality
                                                                                                                                                                .... extension:ethnicGroup
                                                                                                                                                                .... extension:maritalStatus
                                                                                                                                                                .... extension:isPrimaryCaregiver
                                                                                                                                                                .... extension:isGuardian
                                                                                                                                                                .... extension:isPrimaryContact
                                                                                                                                                                .... extension:isLegalRepresentative
                                                                                                                                                                .... extension:age
                                                                                                                                                                .... extension:identifierUnknown
                                                                                                                                                                ... modifierExtension
                                                                                                                                                                N/A
                                                                                                                                                                ... Slices for identifier
                                                                                                                                                                .id
                                                                                                                                                                FiveWs.identifier
                                                                                                                                                                NK1-33
                                                                                                                                                                .... identifier:All Slices
                                                                                                                                                                ..... id
                                                                                                                                                                n/a
                                                                                                                                                                ..... extension
                                                                                                                                                                n/a
                                                                                                                                                                ..... use
                                                                                                                                                                Role.code or implied by context
                                                                                                                                                                N/A
                                                                                                                                                                ..... type
                                                                                                                                                                Role.code or implied by context
                                                                                                                                                                CX.5
                                                                                                                                                                ..... system
                                                                                                                                                                II.root or Role.id.root
                                                                                                                                                                CX.4 / EI-2-4
                                                                                                                                                                ..... value
                                                                                                                                                                II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)
                                                                                                                                                                CX.1 / EI.1
                                                                                                                                                                ..... period
                                                                                                                                                                Role.effectiveTime or implied by context
                                                                                                                                                                CX.7 + CX.8
                                                                                                                                                                ..... 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)
                                                                                                                                                                .... identifier:idCardNumber
                                                                                                                                                                .id
                                                                                                                                                                FiveWs.identifier
                                                                                                                                                                NK1-33
                                                                                                                                                                ..... id
                                                                                                                                                                n/a
                                                                                                                                                                ..... extension
                                                                                                                                                                n/a
                                                                                                                                                                ..... use
                                                                                                                                                                Role.code or implied by context
                                                                                                                                                                N/A
                                                                                                                                                                ..... type
                                                                                                                                                                Role.code or implied by context
                                                                                                                                                                CX.5
                                                                                                                                                                ...... id
                                                                                                                                                                n/a
                                                                                                                                                                ...... extension
                                                                                                                                                                n/a
                                                                                                                                                                ...... coding
                                                                                                                                                                • union(.
                                                                                                                                                                • ./translation)
                                                                                                                                                                • C*E.1-8
                                                                                                                                                                • C*E.10-22
                                                                                                                                                                ....... id
                                                                                                                                                                n/a
                                                                                                                                                                ....... extension
                                                                                                                                                                n/a
                                                                                                                                                                ....... system
                                                                                                                                                                ./codeSystem
                                                                                                                                                                C*E.3
                                                                                                                                                                ....... version
                                                                                                                                                                ./codeSystemVersion
                                                                                                                                                                C*E.7
                                                                                                                                                                ....... code
                                                                                                                                                                ./code
                                                                                                                                                                C*E.1
                                                                                                                                                                ....... display
                                                                                                                                                                CV.displayName
                                                                                                                                                                C*E.2 - but note this is not well followed
                                                                                                                                                                ....... userSelected
                                                                                                                                                                CD.codingRationale
                                                                                                                                                                Sometimes implied by being first
                                                                                                                                                                ...... text
                                                                                                                                                                ./originalText[mediaType/code="text/plain"]/data
                                                                                                                                                                C*E.9. But note many systems use C*E.2 for this
                                                                                                                                                                ..... system
                                                                                                                                                                II.root or Role.id.root
                                                                                                                                                                CX.4 / EI-2-4
                                                                                                                                                                ..... value
                                                                                                                                                                II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)
                                                                                                                                                                CX.1 / EI.1
                                                                                                                                                                ..... period
                                                                                                                                                                Role.effectiveTime or implied by context
                                                                                                                                                                CX.7 + CX.8
                                                                                                                                                                ..... 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)
                                                                                                                                                                .... identifier:relationNumber
                                                                                                                                                                .id
                                                                                                                                                                FiveWs.identifier
                                                                                                                                                                NK1-33
                                                                                                                                                                ..... id
                                                                                                                                                                n/a
                                                                                                                                                                ..... extension
                                                                                                                                                                n/a
                                                                                                                                                                ..... use
                                                                                                                                                                Role.code or implied by context
                                                                                                                                                                N/A
                                                                                                                                                                ..... type
                                                                                                                                                                Role.code or implied by context
                                                                                                                                                                CX.5
                                                                                                                                                                ...... id
                                                                                                                                                                n/a
                                                                                                                                                                ...... extension
                                                                                                                                                                n/a
                                                                                                                                                                ...... coding
                                                                                                                                                                • union(.
                                                                                                                                                                • ./translation)
                                                                                                                                                                • C*E.1-8
                                                                                                                                                                • C*E.10-22
                                                                                                                                                                ....... id
                                                                                                                                                                n/a
                                                                                                                                                                ....... extension
                                                                                                                                                                n/a
                                                                                                                                                                ....... system
                                                                                                                                                                ./codeSystem
                                                                                                                                                                C*E.3
                                                                                                                                                                ....... version
                                                                                                                                                                ./codeSystemVersion
                                                                                                                                                                C*E.7
                                                                                                                                                                ....... code
                                                                                                                                                                ./code
                                                                                                                                                                C*E.1
                                                                                                                                                                ....... display
                                                                                                                                                                CV.displayName
                                                                                                                                                                C*E.2 - but note this is not well followed
                                                                                                                                                                ....... userSelected
                                                                                                                                                                CD.codingRationale
                                                                                                                                                                Sometimes implied by being first
                                                                                                                                                                ...... text
                                                                                                                                                                ./originalText[mediaType/code="text/plain"]/data
                                                                                                                                                                C*E.9. But note many systems use C*E.2 for this
                                                                                                                                                                ..... system
                                                                                                                                                                II.root or Role.id.root
                                                                                                                                                                CX.4 / EI-2-4
                                                                                                                                                                ..... value
                                                                                                                                                                II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)
                                                                                                                                                                CX.1 / EI.1
                                                                                                                                                                ..... period
                                                                                                                                                                Role.effectiveTime or implied by context
                                                                                                                                                                CX.7 + CX.8
                                                                                                                                                                ..... 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)
                                                                                                                                                                ... active
                                                                                                                                                                .statusCode
                                                                                                                                                                FiveWs.status
                                                                                                                                                                ... patient
                                                                                                                                                                scoper[classCode=PSN|ANM and determinerCode='INSTANCE']/playedRole[classCode='PAT']/id
                                                                                                                                                                PID-3
                                                                                                                                                                ... relationship
                                                                                                                                                                code
                                                                                                                                                                FiveWs.class
                                                                                                                                                                NK1-3
                                                                                                                                                                ... name
                                                                                                                                                                name
                                                                                                                                                                NK1-2
                                                                                                                                                                .... id
                                                                                                                                                                n/a
                                                                                                                                                                .... extension
                                                                                                                                                                n/a
                                                                                                                                                                .... use
                                                                                                                                                                unique(./use)
                                                                                                                                                                • XPN.7
                                                                                                                                                                • but often indicated by which field contains the name
                                                                                                                                                                .... text
                                                                                                                                                                ./formatted
                                                                                                                                                                implied by XPN.11
                                                                                                                                                                .... family
                                                                                                                                                                ./part[partType = FAM]
                                                                                                                                                                XPN.1/FN.1
                                                                                                                                                                .... given
                                                                                                                                                                ./part[partType = GIV]
                                                                                                                                                                XPN.2 + XPN.3
                                                                                                                                                                .... prefix
                                                                                                                                                                ./part[partType = PFX]
                                                                                                                                                                XPN.5
                                                                                                                                                                .... suffix
                                                                                                                                                                ./part[partType = SFX]
                                                                                                                                                                XPN/4
                                                                                                                                                                .... period
                                                                                                                                                                ./usablePeriod[type="IVL<TS>"]
                                                                                                                                                                XPN.13 + XPN.14
                                                                                                                                                                ... telecom
                                                                                                                                                                telecom
                                                                                                                                                                NK1-5 / NK1-6 / NK1-40
                                                                                                                                                                .... id
                                                                                                                                                                n/a
                                                                                                                                                                .... extension
                                                                                                                                                                n/a
                                                                                                                                                                .... system
                                                                                                                                                                ./scheme
                                                                                                                                                                XTN.3
                                                                                                                                                                .... value
                                                                                                                                                                ./url
                                                                                                                                                                XTN.1 (or XTN.12)
                                                                                                                                                                .... use
                                                                                                                                                                unique(./use)
                                                                                                                                                                XTN.2 - but often indicated by field
                                                                                                                                                                .... rank
                                                                                                                                                                n/a
                                                                                                                                                                n/a
                                                                                                                                                                .... period
                                                                                                                                                                ./usablePeriod[type="IVL<TS>"]
                                                                                                                                                                N/A
                                                                                                                                                                ... gender
                                                                                                                                                                administrativeGender
                                                                                                                                                                NK1-15
                                                                                                                                                                ... birthDate
                                                                                                                                                                player.birthTime
                                                                                                                                                                ... address
                                                                                                                                                                addr
                                                                                                                                                                NK1-4
                                                                                                                                                                ... photo
                                                                                                                                                                player[classCode='PSN' and determinerCode='INSTANCE']/desc
                                                                                                                                                                OBX-5 - needs a profile
                                                                                                                                                                ... period
                                                                                                                                                                .effectiveTime
                                                                                                                                                                FiveWs.done[x]
                                                                                                                                                                ... communication
                                                                                                                                                                LanguageCommunication
                                                                                                                                                                .... id
                                                                                                                                                                n/a
                                                                                                                                                                .... extension
                                                                                                                                                                n/a
                                                                                                                                                                .... modifierExtension
                                                                                                                                                                N/A
                                                                                                                                                                .... language
                                                                                                                                                                player[classCode=PSN|ANM and determinerCode=INSTANCE]/languageCommunication/code
                                                                                                                                                                .... preferred
                                                                                                                                                                preferenceInd

                                                                                                                                                                doco Documentation for this format