Mappings for the documentreference resource.
DocumentReference | Document[classCode="DOC" and moodCode="EVN"] |
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 | ./code |
class | .outboundRelationship[typeCode="COMP].target[classCode="LIST", moodCode="EVN"].code |
subject | .participation[typeCode="SBJ"].role[typeCode="PAT"] |
created | .effectiveTime[type="TS"] |
indexed | .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 |
code | .outboundRelationship.typeCode |
target | .target[classCode="DOC", moodCode="EVN"].id |
description | .outboundRelationship[typeCode="SUBJ"].target.text |
securityLabel | .confidentialityCode |
content | document.text |
attachment | document.text |
format | document.text |
context | outboundRelationship[typeCode="SUBJ"].target[classCode<'ACT'] |
encounter | unique(highest(./outboundRelationship[typeCode="SUBJ" and isNormalActRelationship()], priorityNumber)/target[moodCode="EVN" and classCode=("ENC", "PCPR") and isNormalAct]) |
event | .code |
period | .effectiveTime |
facilityType | .participation[typeCode="LOC"].role[classCode="DSDLOC"].code |
practiceSetting | .participation[typeCode="LOC"].role[classCode="DSDLOC"].code |
sourcePatientInfo | .participation[typeCode="SBJ"].role[typeCode="PAT"] |
related | ./outboundRelationship[typeCode="PERT" and isNormalActRelationship()] / target[isNormalAct] |
identifier | ./outboundRelationship[typeCode="PERT" and isNormalActRelationship()] / target[isNormalAct] .id |
ref | ./outboundRelationship[typeCode="PERT" and isNormalActRelationship()] / target[isNormalAct].text.reference |
DocumentReference | |
masterIdentifier | DocumentEntry.uniqueId |
identifier | DocumentEntry.entryUUID |
status | DocumentEntry status |
docStatus | |
type | DocumentEntry.type |
class | DocumentEntry.class |
subject | DocumentEntry.patientId |
created | DocumentEntry.submissionTime |
indexed | DocumentEntry.submissionTime |
author | DocumentEntry.author |
authenticator | DocumentEntry.legalAuthenticator |
custodian | |
relatesTo | |
code | DocumentEntry Associations type |
target | DocumentEntry Associations reference |
description | DocumentEntry.description |
securityLabel | DocumentEntry.confidentialityCode |
content | |
attachment | DocumentEntry.mimeType DocumentEntry.languageCode DocumentEntry.URI DocumentEntry.size DocumentEntry.hash DocumentEntry.title |
format | DocumentEntry.formatCode |
context | |
encounter | |
event | DocumentEntry.eventCodeList |
period | DocumentEntry.serviceStartTime DocumentEntry.serviceStopTime |
facilityType | DocumentEntry.healthcareFacilityTypeCode |
practiceSetting | DocumentEntry.practiceSettingCode |
sourcePatientInfo | DocumentEntry.sourcePatientInfo DocumentEntry.sourcePatientId |
related | DocumentEntry.referenceIdList |
identifier | |
ref | |