Invocations

URL: [base]/PlanDefinition/[id]/$apply

Parameters (In)

NameCardinalityTypeStructureDefinitionDocumentation
patient1..1ReferencePatient

The patient that is the target of the plan to be applied

encounter0..1ReferenceEncounter

The encounter in context, if any

practitioner0..1ReferencePractitioner

The practitioner applying the plan definition

organization0..1ReferenceOrganization

The organization applying the plan definition

userType0..1CodeableConcept

The type of user initiating the request, e.g. patient, healthcare provider, or specific type of healthcare provider (physician, nurse, etc.)

userLanguage0..1CodeableConcept

Preferred language of the person using the system

userTaskContext0..1CodeableConcept

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

setting0..1CodeableConcept

The current setting of the request (inpatient, outpatient, etc)

settingContext0..1CodeableConcept

Additional detail about the setting of the request, if any

Return Values (Out)

NameCardinalityTypeDocumentation
return1..1CarePlan

The CarePlan that is the result of applying the plan definition

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