Amakomaya Nepal FHIR Implementation Guide
2.0.0 - ci-build Nepal

Amakomaya Nepal FHIR Implementation Guide - Local Development build (v2.0.0) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions

## Resource Profile: AMKDocumentReference - Mappings

Active as of 2026-08-21

Mappings for the amk-document-reference resource profile.

#### Mappings to Structures in this Implementation Guide

No Mappings Found

#### Mappings to other Structures

No Mappings Found

#### Other Mappings

Name | Workflow Pattern | FiveWs Pattern Mapping | RIM Mapping | FHIR Composition | XDS metadata equivalent | CDA (R2) | HL7 V2 Mapping
--- | --- | --- | --- | --- | --- | --- | ---
DocumentReference | Event | infrastructure.documents | Entity Role or Act Document[classCode="DOC" and moodCode="EVN"] | when describing a Composition | DocumentEntry | when describing a CDA |
id |  |  |  |  |  |  |
meta |  |  |  |  |  |  |
implicitRules |  |  |  |  |  |  |
language |  |  |  |  |  |  |
text |  |  | Act.text? |  |  |  |
contained |  |  | N/A |  |  |  |
extension |  |  | N/A |  |  |  |
modifierExtension |  |  | N/A |  |  |  |
identifier | Event.identifier | FiveWs.identifier | .id / .setId | Composition.identifier | DocumentEntry.entryUUID DocumentEntry.uniqueId | ClinicalDocument/id | TXA-12
version |  | FiveWs.version |  | Composition.version |  |  |
basedOn | Event.basedOn |  | .outboundRelationship[typeCode=FLFS].target |  | DocumentEntry.referenceIdList |  |
status | Event.status | FiveWs.status | .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" .completionCode="AU" && ./statusCode[isNormalDatatype()]="complete" and ./inboundRelationship[typeCode="SUBJ" and isNormalActRelationship()]/source[subsumesCode("ActClass#CACT") and moodCode="EVN" and domainMember("ReviseDocument" .completionCode=NI && ./statusCode[isNormalDatatype()]="obsolete" |  | DocumentEntry.availabilityStatus |  | TXA-19
docStatus |  | FiveWs.status | .statusCode | Composition.status |  |  | TXA-17
modality |  | FiveWs.class |  |  |  |  |
type | Event.code | FiveWs.what[x] | ./code | Composition.type | DocumentEntry.typeCode | 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. | TXA-2
category | Event.category | FiveWs.what[x] | .outboundRelationship[typeCode="COMP].target[classCode="LIST" moodCode="EVN"].code | Composition.category | DocumentEntry.classCode | 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 | Event.subject | FiveWs.subject | .participation[typeCode="SBJ"].role[typeCode="PAT"] | Composition.subject | DocumentEntry.patientId | ClinicalDocument/recordTarget/ | PID-3 (No standard way to define a Practitioner or Group subject in HL7 V2 MDM message)
context | Event.encounter | FiveWs.context | unique(highest(./outboundRelationship[typeCode="SUBJ" and isNormalActRelationship()] priorityNumber)/target[moodCode="EVN" and classCode=("ENC" "PCPR") and isNormalAct]) | Composition.encounter |  |  |
event |  |  | .code | Composition.event.detail | DocumentEntry.eventCodeList |  |
related |  |  | ./outboundRelationship[typeCode="PERT" and isNormalActRelationship()] / target[isNormalAct] | Composition.event.detail | DocumentEntry.referenceIdList |  |
id |  |  | n/a |  |  |  |
extension |  |  | n/a |  |  |  |
modifierExtension |  |  | N/A |  |  |  |
code |  |  |  |  |  |  |
target |  |  |  |  |  |  |
bodyStructure |  |  | .targetSiteCode |  |  |  |
facilityType |  |  | .participation[typeCode="LOC"].role[classCode="DSDLOC"].code | usually from a mapping to a local ValueSet | DocumentEntry.healthcareFacilityTypeCode | usually a mapping to a local ValueSet. Must be consistent with /clinicalDocument/code |
practiceSetting |  |  | .participation[typeCode="LOC"].role[classCode="DSDLOC"].code | usually from a mapping to a local ValueSet | DocumentEntry.practiceSettingCode | usually from a mapping to a local ValueSet |
period | Event.occurrence[x] | FiveWs.done[x] | .effectiveTime | Composition.event.period | DocumentEntry.serviceStartTime DocumentEntry.serviceStopTime | ClinicalDocument/documentationOf/ serviceEvent/effectiveTime/low/ @value --> ClinicalDocument/documentationOf/ serviceEvent/effectiveTime/high/ @value |
date | Event.recorded | FiveWs.recorded | .availabilityTime[type="TS"] | Composition.date |  |  |
author | Event.performer.actor | FiveWs.author | .participation[typeCode="AUT"].role[classCode="ASSIGNED"] | Composition.author | DocumentEntry.author | ClinicalDocument/author | TXA-9 (No standard way to indicate a Device in HL7 V2 MDM message)
attester | Event.performer |  | .participation[typeCode="AUTHEN"].role[classCode="ASSIGNED"] | Composition.attester | DocumentEntry.legalAuthenticator | .authenticator/.legalAuthenticator |
id |  |  | n/a |  |  |  |
extension |  |  | n/a |  |  |  |
modifierExtension |  |  | N/A |  |  |  |
mode | Event.performer.function |  | unique(./modeCode) | Composition.attester.mode |  | implied by .authenticator/.legalAuthenticator |
time |  |  | ./time[type="TS" and isNormalDatatype()] | Composition.attester.time |  | .authenticator.time |
party | Event.performer.actor | FiveWs.witness | ./role[classCode="ASSIGNED" and isNormalRole]/player[determinerCode="INST" and classCode=("DEV" "PSN") and isNormalEntity()] or ./role[classCode="ASSIGNED" and isNormalRole and not(player)]/scoper[determinerCode="INST" and classCode="ORG" and isNormalEntity()] | Composition.attester.party |  | .authenticator.assignedEnttty | TXA-10
custodian |  |  | .participation[typeCode="RCV"].role[classCode="CUST"].scoper[classCode="ORG" and determinerCode="INST"] | Composition.custodian |  |  |
relatesTo |  |  | .outboundRelationship | Composition.relatesTo | DocumentEntry Associations |  |
id |  |  | n/a |  |  |  |
extension |  |  | n/a |  |  |  |
modifierExtension |  |  | N/A |  |  |  |
code |  |  | .outboundRelationship.typeCode | Composition.relatesTo.type | DocumentEntry Associations type | ClinicalDocument/relatedDocument/typeCode |
target |  |  | .target[classCode="DOC" moodCode="EVN"].id | Composition.relatesTo.targetReference | DocumentEntry Associations reference | ClinicalDocument/relatedDocument/parentDocument |
description |  |  | .outboundRelationship[typeCode="SUBJ"].target.text |  | DocumentEntry.comments |  | TXA-25
securityLabel |  |  | .confidentialityCode | Bundle.meta.security | DocumentEntry.confidentialityCode | ClinicalDocument/confidentialityCode/@code | TXA-18
content |  |  | document.text | Bundle(Composition+*) |  |  |
id |  |  | n/a |  |  |  |
extension |  |  | n/a |  |  |  |
modifierExtension |  |  | N/A |  |  |  |
attachment |  |  | document.text | Composition.language Composition.title Composition.date | DocumentEntry.mimeType DocumentEntry.languageCode DocumentEntry.repositoryUniqueId DocumentEntry.URI DocumentEntry.size DocumentEntry.hash DocumentEntry.title DocumentEntry.creationTime | ClinicalDocument/languageCode ClinicalDocument/title ClinicalDocument/date | TXA-3 for mime type
id |  |  | n/a |  |  |  |
extension |  |  | n/a |  |  |  |
contentType |  |  | ./mediaType ./charset |  |  |  | ED.2+ED.3/RP.2+RP.3. Note conversion may be needed if old style values are being used
language |  |  | ./language |  |  |  |
data |  |  | ./data |  |  |  | ED.5
url |  |  | ./reference/literal |  |  |  | RP.1+RP.2 - if they refer to a URL (see v2.6)
size |  |  | N/A (needs data type R3 proposal) |  |  |  |
hash |  |  | :ED/integrityCheckAlgorithm="SHA-1"] |  |  |  |
title |  |  | ./title/data |  |  |  |
creation |  |  | N/A (needs data type R3 proposal) |  |  |  |
height |  |  | .outboundRelationship[typeCode="COMP].target[classCode="OBS" moodCode="EVN" code="<CODE>"].value |  |  |  |
width |  |  | .outboundRelationship[typeCode="COMP].target[classCode="OBS" moodCode="EVN" code="<CODE>"].value |  |  |  |
frames |  |  | .outboundRelationship[typeCode="COMP].target[classCode="OBS" moodCode="EVN" code="<CODE>"].value |  |  |  |
duration |  |  | .outboundRelationship[typeCode="COMP].target[classCode="OBS" moodCode="EVN" code="<CODE>"].value |  |  |  |
pages |  |  |  |  |  |  |
profile |  |  | document.text | Composition.meta.profile | DocumentEntry.formatCode | derived from the IHE Profile or Implementation Guide templateID |
id |  |  | n/a |  |  |  |
extension |  |  | n/a |  |  |  |
modifierExtension |  |  | N/A |  |  |  |
value[x] |  |  | document.text | Composition.meta.profile | DocumentEntry.formatCode | derived from the IHE Profile or Implementation Guide templateID |
Documentation for this format