CPG CarePlan Apply
The apply operation applies any conditional logic within a CarePlan to a given context
Metadata
hl7.org/fhir- Canonical URL
- http://hl7.org/fhir/uv/cpg/OperationDefinition/cpg-careplan-apply
- Code
- $apply
- Kind
- operation
- Affects State
- No
- Publisher
- HL7 (FHIR Project)
Invocation Context
Implementation Notes
The result of this operation is the updated CarePlan resource that is the result of applying any optional logic in any RequestGroup activities in the input CarePlan. The resulting RequestGroups will have actions for each of the applicable actions in the requestgroup based on evaluating the applicability condition in context. For each applicable action, the 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. Note that result of this operation is transient (i.e. none of the resources created by the operation are persisted in the server, they are all returned as contained resources in the result). The result effectively represents a proposed set of activities, and it is up to the caller to determine whether and how those activities are actually carried out.
Input Parameters (16)
Output Parameters (1)
Additional Information
- Version
- 1.0.0
- Date
- 2019-11-01T09:29:23+11:00