Mappings for the VA.MHV.PHR.documentReference resource profile.
MHVdocumentReference |
DocumentReference | Entity. Role, or Act, Document[classCode="DOC" and moodCode="EVN"] |
text | Act.text? |
contained | N/A |
extension | N/A |
modifierExtension | N/A |
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" |
type | ./code |
id | n/a |
extension | n/a |
coding | union(., ./translation) |
coding (LO) | union(., ./translation) |
id | n/a |
extension | n/a |
system | ./codeSystem |
version | ./codeSystemVersion |
code | ./code |
display | CV.displayName |
userSelected | CD.codingRationale |
text | ./originalText[mediaType/code="text/plain"]/data |
category | .outboundRelationship[typeCode="COMP].target[classCode="LIST", moodCode="EVN"].code |
category (us-core) | .outboundRelationship[typeCode="COMP].target[classCode="LIST", moodCode="EVN"].code |
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"] |
id | n/a |
extension | n/a |
reference | N/A |
type | N/A |
identifier | .identifier |
display | N/A |
content | document.text |
id | n/a |
extension | n/a |
modifierExtension | N/A |
attachment | document.text |
id | n/a |
extension | n/a |
contentType | ./mediaType, ./charset |
data | ./data |
title | ./title/data |
creation | N/A (needs data type R3 proposal) |
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]) |
period | .effectiveTime |
related | ./outboundRelationship[typeCode="PERT" and isNormalActRelationship()] / target[isNormalAct] |
MHVdocumentReference |
DocumentReference | when describing a CDA |
type | ClinicalDocument/code/@code
The typeCode should be mapped from the ClinicalDocument/code element to a set of document type codes configured in the affinity domain. One suggested coding system to use for typeCode is LOINC, in which case the mapping step can be omitted. |
category | Derived from a mapping of /ClinicalDocument/code/@code to an Affinity Domain specified coded value to use and coding system. Affinity Domains are encouraged to use the appropriate value for Type of Service, based on the LOINC Type of Service (see Page 53 of the LOINC User's Manual). Must be consistent with /ClinicalDocument/code/@code |
category (us-core) | Derived from a mapping of /ClinicalDocument/code/@code to an Affinity Domain specified coded value to use and coding system. Affinity Domains are encouraged to use the appropriate value for Type of Service, based on the LOINC Type of Service (see Page 53 of the LOINC User's Manual). Must be consistent with /ClinicalDocument/code/@code |
subject | ClinicalDocument/recordTarget/ |
author | ClinicalDocument/author |
authenticator | ClinicalDocument/legalAuthenticator |
content | |
attachment | ClinicalDocument/languageCode, ClinicalDocument/title, ClinicalDocument/date |
context | |
period | ClinicalDocument/documentationOf/
serviceEvent/effectiveTime/low/
@value --> ClinicalDocument/documentationOf/
serviceEvent/effectiveTime/high/
@value |
related | ClinicalDocument/relatedDocument |
MHVdocumentReference |
DocumentReference | |
identifier | DocumentEntry.entryUUID |
status | DocumentEntry.availabilityStatus |
type | DocumentEntry.type |
category | DocumentEntry.class |
category (us-core) | DocumentEntry.class |
subject | DocumentEntry.patientId |
author | DocumentEntry.author |
authenticator | DocumentEntry.legalAuthenticator |
content | |
attachment | DocumentEntry.mimeType, DocumentEntry.languageCode, DocumentEntry.URI, DocumentEntry.size, DocumentEntry.hash, DocumentEntry.title, DocumentEntry.creationTime |
context | |
period | DocumentEntry.serviceStartTime, DocumentEntry.serviceStopTime |
related | DocumentEntry.referenceIdList |