Skip to content

PlanDefinition $apply Operation

c-schuler edited this page Oct 17, 2017 · 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

  • Locally
    • Build project: mvn install
    • Spin up server: mvn -Djetty.http.port=XXXX jetty:run
    • Load the PlanDefinition and any resources it references.
    • Make request:
      http://localhost:8080/cqf-ruler/baseDstu3/PlanDefinition/ID/$apply
      
  • Remotely

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