This
page
is
part
of
the
FHIR
Specification
(v3.0.2:
STU
3).
(v3.3.0:
R4
Ballot
2).
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
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"
"http://hl7.org/fhir/StructureMap/supplyrequest-transform"
=
supplyRequestTransform
uses
"http://hl7.org/fhir/StructureDefinition/ActivityDefinition"
"http://hl7.org/fhir/StructureDefinition/ActivityDefinition"
as
source
uses
"http://hl7.org/fhir/StructureDefinition/SupplyRequest"
"http://hl7.org/fhir/StructureDefinition/SupplyRequest"
as
target
group
main
input
"source":
"source":
ActivityDefinition
as
source
input
"target":
"target":
SupplyRequest
as
target
"status":
"status":
for
source.id
make
target.status
=
'draft'
"category":
"category":
for
source.id
make
target.category
=
'non-stock'
"priority":
"priority":
for
source.id
make
target.priority
=
'routine'
"quantity":
"quantity":
for
source.quantity
make
target.orderedItem.quantity
"item":
"item":
for
source.code
make
target.orderedItem.itemCodeableConcept
"when":
"when":
for
source.id
make
target.occurrenceDateTime
=
Now()
"authoredOn":
"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.