This
page
is
part
of
the
FHIR
Specification
(v3.0.2:
(v4.0.1:
R4
-
Mixed
Normative
and
STU
3).
)
in
it's
permanent
home
(it
will
always
be
available
at
this
URL).
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
R4
R3
| Clinical Decision Support Work Group | Maturity Level : N/A |
|
Compartments : Not linked to any defined compartments |
This
is
the
narrative
for
the
resource.
See
also
the
XML
or
,
JSON
or
Turtle
format.
OPERATION: Apply
The official URL for this operation definition is:
http://hl7.org/fhir/OperationDefinition/PlanDefinition-apply
The apply operation applies a PlanDefinition to a given context
URL: [base]/PlanDefinition/$apply
URL: [base]/PlanDefinition/[id]/$apply
Parameters
| Use | Name | Cardinality | Type | Binding | Documentation |
| IN |
|
|
|
The
| |
| IN | subject | 1..* |
string
( reference ) |
The
subject(s)
that
is/are
the
target
of
the
plan
to
be
|
|
| IN | encounter | 0..1 |
( reference ) |
The encounter in context, if any |
|
| IN | practitioner | 0..1 |
( reference ) |
The practitioner applying the plan definition |
|
| IN | organization | 0..1 |
( reference ) |
The organization applying the plan definition |
|
| IN | userType | 0..1 | CodeableConcept |
The type of user initiating the request, e.g. patient, healthcare provider, or specific type of healthcare provider (physician, nurse, etc.) |
|
| IN | userLanguage | 0..1 | CodeableConcept |
Preferred language of the person using the system |
|
| IN | userTaskContext | 0..1 | CodeableConcept |
The task the system user is performing, e.g. laboratory results review, medication list review, etc. This information can be used to tailor decision support outputs, such as recommended information resources |
|
| IN | setting | 0..1 | CodeableConcept |
The
current
setting
of
the
request
(inpatient,
outpatient,
|
|
| IN | settingContext | 0..1 | CodeableConcept |
Additional detail about the setting of the request, if any |
|
| OUT | return | 1..1 | CarePlan |
The CarePlan that is the result of applying the plan definition |
The
result
of
this
operation
is
a
CarePlan
resource,
resource
with
activities
a
single
activity
represented
by
a
RequestGroup.
The
RequestGroup
will
have
actions
for
each
of
the
applicable
actions
in
the
plan
based
on
evaluating
the
applicability
condition
in
context.
For
each
applicable
action,
the
activitydefinition
definition
is
applied
as
described
in
the
$apply
operation
of
the
ActivityDefinition
resource,
and
the
resulting
resource
is
added
as
an
activity
to
the
CarePlan.
If
the
ActivityDefinition
includes
library
references,
those
libraries
will
be
available
to
the
evaluated
expressions.
If
those
libraries
have
parameters,
those
parameters
will
be
bound
by
name
to
the
parameters
given
to
the
operation.
In
addition,
parameters
to
the
$apply
operation
are
available
within
dynamicValue
expressions
as
context
variables,
accessible
by
the
name
of
the
parameter,
prefixed
with
a
percent
(%)
symbol.
For
a
more
detailed
description,
refer
to
the
PlanDefinition
and
ActivityDefinition
resource
documentation
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.