This page is part of the FHIR Specification (v3.0.2: STU 3). 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
. Page versions: R5 R4B R4 R3
Structuremap-supplyrequest-transform
This is the narrative for the resource. See also the XML or JSON 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()
    
 
Other examples that reference this example:
ActivityDefinition/Blood Tubes Supply
 
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.