US Veterans Health Administration FHIR Map Set Implementation Guide
2.5.0 - 260401a United States of America flag

US Veterans Health Administration FHIR Map Set Implementation Guide - Downloaded Version 2.5.0 See the Directory of published versions

StructureMap: Vpr2DocumentReferenceDocumentReference

Official URL: http://va.gov/fhir/StructureMap/Vpr2DocumentReferenceDocumentReference Version: 2.5.0
Draft as of 2026-03-31 Computable Name: Vpr2DocumentReferenceDocumentReference

map "http://va.gov/fhir/StructureMap/Vpr2DocumentReferenceDocumentReference" = "Vpr2DocumentReferenceDocumentReference"

uses "http://va.gov/fhir/StructureDefinition/VprDocument" alias VprDocument as source
uses "http://va.gov/fhir/StructureDefinition/DocumentReferenceDocumentReference" alias DocumentReferenceDocumentReference as target

group map(source document : VprDocument, target tgt : DocumentReferenceDocumentReference) <<type+>> {
  document.status as v -> tgt.docStatus = v;
  document.clinician as v -> tgt.author = v;
  document.parent as v ->  tgt.relatesTo as r0,  r0.target = v,  r0.code = '#appends';
  document.subject as v -> tgt.description = v;
  document.content as v ->  tgt.content as c0,  c0.attachment as a1,  a1.url = v;
  document.content as v ->  tgt.content as c0,  c0.attachment as a1,  a1.size = v;
  document.content as v ->  tgt.content as c0,  c0.attachment as a1,  a1.hash = v;
  document.encounter as v ->  tgt.context as c0,  c0.encounter = v;
  document.facility as v ->  tgt.context as c0,  c0.facilityType = v;
}