Mappings for the DocumentReference-twcore resource profile.
TWCoreDocumentReference |
DocumentReference | Entity. Role, or Act, Document[classCode="DOC" and moodCode="EVN"] |
text | Act.text? |
contained | 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 |
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 |
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] |
TWCoreDocumentReference |
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 |
TWCoreDocumentReference |
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 |