This page is part of the FHIR Specification (v5.0.0-ballot: FHIR R5 Ballot Preview). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions . Page versions: R5 R4B R4 R3
Example StructureMap/supplyrequest-transform (Narrative)
This is the narrative for the resource. See also the XML, JSON or Turtle format. This example conforms to the profile StructureMap.
map "http://hl7.org/fhir/StructureMap/supplyrequest-transform" = supplyRequestTransform
uses "http://hl7.org/fhir/StructureDefinition/ActivityDefinition" as source
uses "http://hl7.org/fhir/StructureDefinition/SupplyRequest" as target
group main
input "source": ActivityDefinition as source
input "target": SupplyRequest as target
"status": for source.id make target.status = 'draft'
"category": for source.id make target.category = 'non-stock'
"priority": for source.id make target.priority = 'routine'
"quantity": for source.quantity make target.orderedItem.quantity
"item": for source.code make target.orderedItem.itemCodeableConcept
"when": for source.id make target.occurrenceDateTime = Now()
"authoredOn": for source.id make target.authoredOn = Now()
Usage note: every effort has been made to ensure that the
examples are correct and useful, but they are not a normative part
of the specification.