$apply

Apply

draftFHIR R3 package : Core3.0.2operation9 inputs1 output

The apply operation applies a PlanDefinition to a given context

Metadata

hl7.org/fhir
Canonical URL
http://hl7.org/fhir/OperationDefinition/PlanDefinition-apply
Code
$apply
Kind
operation
Affects State
No
Publisher
HL7 (FHIR Project)

Invocation Context

Can be invoked at:
Instance Level
Target Resources:
PlanDefinition

Implementation Notes

The result of this operation is a CarePlan resource, with activities for each of the applicable actions based on evaluating the applicability condition in context. For each applicable action, the activitydefinition 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

Input Parameters (9)

NameTypeCard.Description
patient*Reference1..1The patient that is the target of the plan to be applied
encounterReference0..1The encounter in context, if any
practitionerReference0..1The practitioner applying the plan definition
organizationReference0..1The organization applying the plan definition
userTypeCodeableConcept0..1The type of user initiating the request, e.g. patient, healthcare provider, or specific type of healthcare provider (physician, nurse, etc.)
userLanguageCodeableConcept0..1Preferred language of the person using the system
userTaskContextCodeableConcept0..1The 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
settingCodeableConcept0..1The current setting of the request (inpatient, outpatient, etc)
settingContextCodeableConcept0..1Additional detail about the setting of the request, if any

Output Parameters (1)

NameTypeCard.Description
returnCarePlan1..1The CarePlan that is the result of applying the plan definition

Additional Information

Date
2019-10-24T11:53:00+11:00