This page is part of the 臺灣癌症用藥事前審查實作指引(TWPAS IG) (v1.0.2: Release) based on FHIR (HL7® FHIR® Standard) R4. The current version which supersedes this version is 1.0.4. For a full list of available versions, see the Directory of published versions
Active as of 2025-04-25 |
Mappings for the DocumentReference-twpas resource profile.
DocumentReferenceTWPAS | ||
DocumentReference | Event | |
masterIdentifier | Event.identifier | |
identifier | Event.identifier | |
status | Event.status | |
subject | Event.subject | |
date | Event.occurrence[x] | |
author | Event.performer.actor | |
authenticator | Event.performer.actor | |
custodian | Event.performer.actor | |
context | ||
encounter | Event.context |
DocumentReferenceTWPAS | ||
DocumentReference | when describing a Composition | |
masterIdentifier | Composition.identifier | |
docStatus | Composition.status | |
subject | Composition.subject | |
date | Composition.date | |
author | Composition.author | |
authenticator | Composition.attester | |
custodian | Composition.custodian | |
relatesTo | Composition.relatesTo | |
code | Composition.relatesTo.code | |
target | Composition.relatesTo.target | |
content | Bundle(Composition+*) | |
attachment | Composition.language, Composition.title, Composition.date | |
format | Composition.meta.profile | |
context | ||
encounter | Composition.encounter | |
period | Composition.event.period | |
facilityType | usually from a mapping to a local ValueSet | |
sourcePatientInfo | Composition.subject | |
related | Composition.event.detail |
DocumentReferenceTWPAS | ||
DocumentReference | Entity. Role, or Act, Document[classCode="DOC" and moodCode="EVN"] | |
text | Act.text? | |
contained | N/A | |
extension | N/A | |
modifierExtension | N/A | |
masterIdentifier | .id | |
identifier | .id / .setId | |
status | interim: .completionCode="IN" & ./statusCode[isNormalDatatype()]="active"; final: .completionCode="AU" && ./statusCode[isNormalDatatype()]="complete" and not(./inboundRelationship[typeCode="SUBJ" and isNormalActRelationship()]/source[subsumesCode("ActClass#CACT") and moodCode="EVN" and domainMember("ReviseDocument", code) and isNormalAct()]); amended: .completionCode="AU" && ./statusCode[isNormalDatatype()]="complete" and ./inboundRelationship[typeCode="SUBJ" and isNormalActRelationship()]/source[subsumesCode("ActClass#CACT") and moodCode="EVN" and domainMember("ReviseDocument", code) and isNormalAct() and statusCode="completed"]; withdrawn : .completionCode=NI && ./statusCode[isNormalDatatype()]="obsolete" | |
docStatus | .statusCode | |
type | n/a, CD | |
category | n/a, CD | |
id | n/a | |
coding | n/a, CV | |
id | n/a | |
system | ./codeSystem | |
version | ./codeSystemVersion | |
code | ./code | |
display | CV.displayName | |
userSelected | CD.codingRationale | |
text | ./originalText[mediaType/code="text/plain"]/data | |
subject | .participation[typeCode="SBJ"].role[typeCode="PAT"] | |
date | .availabilityTime[type="TS"] | |
author | .participation[typeCode="AUT"].role[classCode="ASSIGNED"] | |
authenticator | .participation[typeCode="AUTHEN"].role[classCode="ASSIGNED"] | |
custodian | .participation[typeCode="RCV"].role[classCode="CUST"].scoper[classCode="ORG" and determinerCode="INST"] | |
relatesTo | .outboundRelationship | |
id | n/a | |
extension | n/a | |
modifierExtension | N/A | |
code | .outboundRelationship.typeCode | |
target | .target[classCode="DOC", moodCode="EVN"].id | |
description | .outboundRelationship[typeCode="SUBJ"].target.text | |
securityLabel | n/a, CD | |
content | document.text | |
id | n/a | |
extension | n/a | |
modifierExtension | N/A | |
attachment | document.text | |
id | n/a | |
extension | n/a | |
contentType | ./mediaType, ./charset | |
language | ./language | |
data | ./data | |
url | ./reference/literal | |
size | N/A (needs data type R3 proposal) | |
hash | .integrityCheck[parent::ED/integrityCheckAlgorithm="SHA-1"] | |
title | ./title/data | |
creation | N/A (needs data type R3 proposal) | |
format | document.text | |
context | outboundRelationship[typeCode="SUBJ"].target[classCode<'ACT'] | |
id | n/a | |
extension | n/a | |
modifierExtension | N/A | |
encounter | unique(highest(./outboundRelationship[typeCode="SUBJ" and isNormalActRelationship()], priorityNumber)/target[moodCode="EVN" and classCode=("ENC", "PCPR") and isNormalAct]) | |
event | n/a, CD | |
period | .effectiveTime | |
facilityType | .participation[typeCode="LOC"].role[classCode="DSDLOC"].code | |
practiceSetting | n/a, CD | |
sourcePatientInfo | .participation[typeCode="SBJ"].role[typeCode="PAT"] | |
related | ./outboundRelationship[typeCode="PERT" and isNormalActRelationship()] / target[isNormalAct] |
DocumentReferenceTWPAS | ||
DocumentReference | when describing a CDA | |
masterIdentifier | ClinicalDocument/id | |
subject | ClinicalDocument/recordTarget/ | |
author | ClinicalDocument/author | |
authenticator | ClinicalDocument/legalAuthenticator | |
content | ||
attachment | ClinicalDocument/languageCode, ClinicalDocument/title, ClinicalDocument/date | |
format | derived from the IHE Profile or Implementation Guide templateID | |
context | ||
period | ClinicalDocument/documentationOf/ serviceEvent/effectiveTime/low/ @value --> ClinicalDocument/documentationOf/ serviceEvent/effectiveTime/high/ @value | |
facilityType | usually a mapping to a local ValueSet. Must be consistent with /clinicalDocument/code | |
sourcePatientInfo | ClinicalDocument/recordTarget/ | |
related | ClinicalDocument/relatedDocument |
DocumentReferenceTWPAS | ||
DocumentReference | ||
masterIdentifier | FiveWs.identifier | |
identifier | FiveWs.identifier | |
status | FiveWs.status | |
docStatus | FiveWs.status | |
subject | FiveWs.subject[x], FiveWs.subject | |
date | FiveWs.recorded | |
authenticator | FiveWs.witness | |
context | ||
encounter | FiveWs.context |
DocumentReferenceTWPAS | ||
DocumentReference | ||
masterIdentifier | TXA-12 | |
identifier | TXA-16? | |
status | TXA-19 | |
docStatus | TXA-17 | |
type | CE/CNE/CWE | |
category | CE/CNE/CWE | |
coding | CE/CNE/CWE subset one of the sets of component 1-3 or 4-6 | |
system | C*E.3 | |
version | C*E.7 | |
code | C*E.1 | |
display | C*E.2 - but note this is not well followed | |
userSelected | Sometimes implied by being first | |
text | C*E.9. But note many systems use C*E.2 for this | |
subject | PID-3 (No standard way to define a Practitioner or Group subject in HL7 v2 MDM message) | |
author | TXA-9 (No standard way to indicate a Device in HL7 v2 MDM message) | |
authenticator | TXA-10 | |
description | TXA-25 | |
securityLabel | CE/CNE/CWE | |
content | ||
attachment | TXA-3 for mime type | |
contentType | ED.2+ED.3/RP.2+RP.3. Note conversion may be needed if old style values are being used | |
data | ED.5 | |
url | RP.1+RP.2 - if they refer to a URL (see v2.6) | |
context | ||
event | CE/CNE/CWE | |
practiceSetting | CE/CNE/CWE |
DocumentReferenceTWPAS | ||
DocumentReference | ||
masterIdentifier | DocumentEntry.uniqueId | |
identifier | DocumentEntry.entryUUID | |
status | DocumentEntry.availabilityStatus | |
subject | DocumentEntry.patientId | |
author | DocumentEntry.author | |
authenticator | DocumentEntry.legalAuthenticator | |
relatesTo | DocumentEntry Associations | |
code | DocumentEntry Associations type | |
target | DocumentEntry Associations reference | |
description | DocumentEntry.comments | |
content | ||
attachment | DocumentEntry.mimeType, DocumentEntry.languageCode, DocumentEntry.URI, DocumentEntry.size, DocumentEntry.hash, DocumentEntry.title, DocumentEntry.creationTime | |
format | DocumentEntry.formatCode | |
context | ||
period | DocumentEntry.serviceStartTime, DocumentEntry.serviceStopTime | |
facilityType | DocumentEntry.healthcareFacilityTypeCode | |
sourcePatientInfo | DocumentEntry.sourcePatientInfo, DocumentEntry.sourcePatientId | |
related | DocumentEntry.referenceIdList |