Skip to content

PlanDefinition $apply Operation

JP edited this page Sep 20, 2022 · 7 revisions

The PlanDefinition $apply operation iterates through a PlanDefinition's actions and dynamically creates a CarePlan based on the action's condition criteria.

Usage

Example

  • Load the following files into your local cqf-ruler implementation or the publicly available server:

  • GET [Base]/PlanDefinition/apply-example/$apply

  • You should get the following response:

    {
      "resourceType": "CarePlan",
      "definition": [
        {
          "reference": "apply-example"
        }
      ],
      "status": "draft",
      "title": "This is a dynamic definition!"
    }
Clone this wiki locally