Implementation
Support
This
page
is
part
of
the
FHIR
Specification
(v4.3.0:
R4B
(v5.0.0-ballot:
R5
Ballot
-
STU
see
ballot
notes
).
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
| FHIR Infrastructure Work Group | Maturity Level : N/A | Standards Status : Informative | Compartments : Not linked to any defined compartments |
Raw Turtle (+ also see Turtle/RDF Format Specification )
Transforms an ActivityDefinition to a SupplyRequest
@prefix fhir: <http://hl7.org/fhir/> . @prefix owl: <http://www.w3.org/2002/07/owl#> . @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . # - resource -------------------------------------------------------------------[] a fhir:StructureMap;[a fhir:StructureMap; fhir:nodeRole fhir:treeRoot; fhir:Resource.id [ fhir:value "supplyrequest-transform"]; fhir:DomainResource.text [fhir:Narrative.status [ fhir:value "generated" ]fhir:Narrative.status [ fhir:value "generated" ]; fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\">\nmap "http://hl7.org/fhir/StructureMap/supplyrequest-transform" = supplyRequestTransform\n\nuses "http://hl7.org/fhir/StructureDefinition/ActivityDefinition" as source\nuses "http://hl7.org/fhir/StructureDefinition/SupplyRequest" as target\n\ngroup main\n input "source": ActivityDefinition as source\n input "target": SupplyRequest as target\n\n "status": for source.id make target.status = 'draft'\n "category": for source.id make target.category = 'non-stock'\n "priority": for source.id make target.priority = 'routine'\n "quantity": for source.quantity make target.orderedItem.quantity\n "item": for source.code make target.orderedItem.itemCodeableConcept\n "when": for source.id make target.occurrenceDateTime = Now()\n "authoredOn": for source.id make target.authoredOn = Now()\n </div>" ]; fhir:StructureMap.url [ fhir:value "http://hl7.org/fhir/StructureMap/supplyrequest-transform"]; fhir:StructureMap.identifier [ fhir:index 0; fhir:Identifier.system [ fhir:value "urn:ietf:rfc:3986" ]; fhir:Identifier.value [ fhir:value "urn:oid:2.16.840.1.113883.4.642.13.1" ] ]; fhir:StructureMap.name [ fhir:value "Transform from an ActivityDefinition to a SupplyRequest"]; fhir:StructureMap.status [ fhir:value "draft"];fhir:StructureMap.experimental [ fhir:value "true"];fhir:StructureMap.structure [ fhir:index 0;fhir:StructureMap.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/activitydefinition" ]; fhir:StructureMap.mode [ fhir:value "source" ]fhir:StructureMap.structure.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/activitydefinition"; fhir:link <http://hl7.org/fhir/StructureDefinition/activitydefinition> ]; fhir:StructureMap.structure.mode [ fhir:value "source" ] ], [ fhir:index 1;fhir:StructureMap.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/supplyrequest" ]; fhir:StructureMap.mode [ fhir:value "target" ]fhir:StructureMap.structure.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/supplyrequest"; fhir:link <http://hl7.org/fhir/StructureDefinition/supplyrequest> ]; fhir:StructureMap.structure.mode [ fhir:value "target" ] ]; fhir:StructureMap.group [ fhir:index 0;fhir:StructureMap.name [ fhir:value "main" ]; fhir:StructureMap.typeMode [ fhir:value "none" ]; fhir:StructureMap.input [fhir:StructureMap.group.name [ fhir:value "main" ]; fhir:StructureMap.group.input [ fhir:index 0;fhir:StructureMap.name [ fhir:value "source" ]; fhir:StructureMap.type [ fhir:value "ActivityDefinition" ]; fhir:StructureMap.mode [ fhir:value "source" ]fhir:StructureMap.group.input.name [ fhir:value "source" ]; fhir:StructureMap.group.input.type [ fhir:value "ActivityDefinition" ]; fhir:StructureMap.group.input.mode [ fhir:value "source" ] ], [ fhir:index 1;fhir:StructureMap.name [ fhir:value "target" ]; fhir:StructureMap.type [ fhir:value "SupplyRequest" ]; fhir:StructureMap.mode [ fhir:value "target" ]fhir:StructureMap.group.input.name [ fhir:value "target" ]; fhir:StructureMap.group.input.type [ fhir:value "SupplyRequest" ]; fhir:StructureMap.group.input.mode [ fhir:value "target" ] ];fhir:StructureMap.rule [fhir:StructureMap.group.rule [ fhir:index 0;fhir:StructureMap.name [ fhir:value "status" ]; fhir:StructureMap.source [fhir:StructureMap.group.rule.name [ fhir:value "status" ]; fhir:StructureMap.group.rule.source [ fhir:index 0;fhir:StructureMap.context [ fhir:value "source" ]; fhir:StructureMap.element [ fhir:value "id" ]; fhir:StructureMap.variable [ fhir:value "a" ]fhir:StructureMap.group.rule.source.context [ fhir:value "source" ]; fhir:StructureMap.group.rule.source.element [ fhir:value "id" ]; fhir:StructureMap.group.rule.source.variable [ fhir:value "a" ] ];fhir:StructureMap.target [fhir:StructureMap.group.rule.target [ fhir:index 0;fhir:StructureMap.context [ fhir:value "target" ]; fhir:StructureMap.contextType [ fhir:value "variable" ]; fhir:StructureMap.element [ fhir:value "status" ]; fhir:StructureMap.transform [ fhir:value "evaluate" ]; fhir:StructureMap.parameter [fhir:StructureMap.group.rule.target.context [ fhir:value "target" ]; fhir:StructureMap.group.rule.target.element [ fhir:value "status" ]; fhir:StructureMap.group.rule.target.transform [ fhir:value "evaluate" ]; fhir:StructureMap.group.rule.target.parameter [ fhir:index 0;fhir:StructureMap.value [ fhir:value "'draft'" ]fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "'draft'" ] ] ] ], [ fhir:index 1;fhir:StructureMap.name [ fhir:value "category" ]; fhir:StructureMap.source [fhir:StructureMap.group.rule.name [ fhir:value "category" ]; fhir:StructureMap.group.rule.source [ fhir:index 0;fhir:StructureMap.context [ fhir:value "source" ]; fhir:StructureMap.element [ fhir:value "id" ]; fhir:StructureMap.variable [ fhir:value "a" ]fhir:StructureMap.group.rule.source.context [ fhir:value "source" ]; fhir:StructureMap.group.rule.source.element [ fhir:value "id" ]; fhir:StructureMap.group.rule.source.variable [ fhir:value "a" ] ];fhir:StructureMap.target [fhir:StructureMap.group.rule.target [ fhir:index 0;fhir:StructureMap.context [ fhir:value "target" ]; fhir:StructureMap.contextType [ fhir:value "variable" ]; fhir:StructureMap.element [ fhir:value "category" ]; fhir:StructureMap.transform [ fhir:value "evaluate" ]; fhir:StructureMap.parameter [fhir:StructureMap.group.rule.target.context [ fhir:value "target" ]; fhir:StructureMap.group.rule.target.element [ fhir:value "category" ]; fhir:StructureMap.group.rule.target.transform [ fhir:value "evaluate" ]; fhir:StructureMap.group.rule.target.parameter [ fhir:index 0;fhir:StructureMap.value [ fhir:value "'non-stock'" ]fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "'non-stock'" ] ] ] ], [ fhir:index 2;fhir:StructureMap.name [ fhir:value "priority" ]; fhir:StructureMap.source [fhir:StructureMap.group.rule.name [ fhir:value "priority" ]; fhir:StructureMap.group.rule.source [ fhir:index 0;fhir:StructureMap.context [ fhir:value "source" ]; fhir:StructureMap.element [ fhir:value "id" ]; fhir:StructureMap.variable [ fhir:value "a" ]fhir:StructureMap.group.rule.source.context [ fhir:value "source" ]; fhir:StructureMap.group.rule.source.element [ fhir:value "id" ]; fhir:StructureMap.group.rule.source.variable [ fhir:value "a" ] ];fhir:StructureMap.target [fhir:StructureMap.group.rule.target [ fhir:index 0;fhir:StructureMap.context [ fhir:value "target" ]; fhir:StructureMap.contextType [ fhir:value "variable" ]; fhir:StructureMap.element [ fhir:value "priority" ]; fhir:StructureMap.transform [ fhir:value "evaluate" ]; fhir:StructureMap.parameter [fhir:StructureMap.group.rule.target.context [ fhir:value "target" ]; fhir:StructureMap.group.rule.target.element [ fhir:value "priority" ]; fhir:StructureMap.group.rule.target.transform [ fhir:value "evaluate" ]; fhir:StructureMap.group.rule.target.parameter [ fhir:index 0;fhir:StructureMap.value [ fhir:value "'routine'" ]fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "'routine'" ] ] ] ], [ fhir:index 3;fhir:StructureMap.name [ fhir:value "quantity" ]; fhir:StructureMap.source [fhir:StructureMap.group.rule.name [ fhir:value "quantity" ]; fhir:StructureMap.group.rule.source [ fhir:index 0;fhir:StructureMap.context [ fhir:value "source" ]; fhir:StructureMap.element [ fhir:value "quantity" ]; fhir:StructureMap.variable [ fhir:value "a" ]fhir:StructureMap.group.rule.source.context [ fhir:value "source" ]; fhir:StructureMap.group.rule.source.element [ fhir:value "quantity" ]; fhir:StructureMap.group.rule.source.variable [ fhir:value "a" ] ];fhir:StructureMap.target [fhir:StructureMap.group.rule.target [ fhir:index 0;fhir:StructureMap.context [ fhir:value "target" ]; fhir:StructureMap.contextType [ fhir:value "variable" ]; fhir:StructureMap.element [ fhir:value "category" ]; fhir:StructureMap.transform [ fhir:value "copy" ]fhir:StructureMap.group.rule.target.context [ fhir:value "target" ]; fhir:StructureMap.group.rule.target.element [ fhir:value "category" ]; fhir:StructureMap.group.rule.target.transform [ fhir:value "copy" ] ] ], [ fhir:index 4;fhir:StructureMap.name [ fhir:value "item" ]; fhir:StructureMap.source [fhir:StructureMap.group.rule.name [ fhir:value "item" ]; fhir:StructureMap.group.rule.source [ fhir:index 0;fhir:StructureMap.context [ fhir:value "source" ]; fhir:StructureMap.element [ fhir:value "code" ]; fhir:StructureMap.variable [ fhir:value "a" ]fhir:StructureMap.group.rule.source.context [ fhir:value "source" ]; fhir:StructureMap.group.rule.source.element [ fhir:value "code" ]; fhir:StructureMap.group.rule.source.variable [ fhir:value "a" ] ];fhir:StructureMap.target [fhir:StructureMap.group.rule.target [ fhir:index 0;fhir:StructureMap.context [ fhir:value "target" ]; fhir:StructureMap.contextType [ fhir:value "variable" ]; fhir:StructureMap.element [ fhir:value "orderedItem.itemCodeableConcept" ]; fhir:StructureMap.transform [ fhir:value "copy" ]fhir:StructureMap.group.rule.target.context [ fhir:value "target" ]; fhir:StructureMap.group.rule.target.element [ fhir:value "orderedItem.itemCodeableConcept" ]; fhir:StructureMap.group.rule.target.transform [ fhir:value "copy" ] ] ], [ fhir:index 5;fhir:StructureMap.name [ fhir:value "when" ]; fhir:StructureMap.source [fhir:StructureMap.group.rule.name [ fhir:value "when" ]; fhir:StructureMap.group.rule.source [ fhir:index 0;fhir:StructureMap.context [ fhir:value "source" ]; fhir:StructureMap.element [ fhir:value "id" ]; fhir:StructureMap.variable [ fhir:value "a" ]fhir:StructureMap.group.rule.source.context [ fhir:value "source" ]; fhir:StructureMap.group.rule.source.element [ fhir:value "id" ]; fhir:StructureMap.group.rule.source.variable [ fhir:value "a" ] ];fhir:StructureMap.target [fhir:StructureMap.group.rule.target [ fhir:index 0;fhir:StructureMap.context [ fhir:value "target" ]; fhir:StructureMap.contextType [ fhir:value "variable" ]; fhir:StructureMap.element [ fhir:value "occurrenceDateTime" ]; fhir:StructureMap.transform [ fhir:value "evaluate" ]; fhir:StructureMap.parameter [fhir:StructureMap.group.rule.target.context [ fhir:value "target" ]; fhir:StructureMap.group.rule.target.element [ fhir:value "occurrenceDateTime" ]; fhir:StructureMap.group.rule.target.transform [ fhir:value "evaluate" ]; fhir:StructureMap.group.rule.target.parameter [ fhir:index 0;fhir:StructureMap.value [ fhir:value "now()" ]fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "now()" ] ] ] ], [ fhir:index 6;fhir:StructureMap.name [ fhir:value "authoredOn" ]; fhir:StructureMap.source [fhir:StructureMap.group.rule.name [ fhir:value "authoredOn" ]; fhir:StructureMap.group.rule.source [ fhir:index 0;fhir:StructureMap.context [ fhir:value "source" ]; fhir:StructureMap.element [ fhir:value "id" ]; fhir:StructureMap.variable [ fhir:value "a" ]fhir:StructureMap.group.rule.source.context [ fhir:value "source" ]; fhir:StructureMap.group.rule.source.element [ fhir:value "id" ]; fhir:StructureMap.group.rule.source.variable [ fhir:value "a" ] ];fhir:StructureMap.target [fhir:StructureMap.group.rule.target [ fhir:index 0;fhir:StructureMap.context [ fhir:value "target" ]; fhir:StructureMap.contextType [ fhir:value "variable" ]; fhir:StructureMap.element [ fhir:value "authoredOn" ]; fhir:StructureMap.transform [ fhir:value "evaluate" ]; fhir:StructureMap.parameter [fhir:StructureMap.group.rule.target.context [ fhir:value "target" ]; fhir:StructureMap.group.rule.target.element [ fhir:value "authoredOn" ]; fhir:StructureMap.group.rule.target.transform [ fhir:value "evaluate" ]; fhir:StructureMap.group.rule.target.parameter [ fhir:index 0;fhir:StructureMap.value [ fhir:value "now()" ]fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "now()" ] ] ] ]] .]] . # - ontology header ------------------------------------------------------------ [a owl:Ontology; owl:imports fhir:fhir.ttl] . # -------------------------------------------------------------------------------------
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.
FHIR
®©
HL7.org
2011+.
FHIR
Release
4B
(v4.3.0)
hl7.fhir.r4b.core#4.3.0
R5
Ballot
hl7.fhir.core#5.0.0-ballot
generated
on
Sat,
May
28,
Sep
10,
2022
12:57+1000.
05:06+1000.
Links:
Search
|
Version
History
|
Table
of
Contents
|
Glossary
|
QA
Page
|
Compare
to
R4
R4B
|
Compare
to
R5
Draft
|
|
Propose
a
change