{
  "resourceType": "OperationDefinition",
  "id": "-s-apply",
  "text": {
    "status": "extensions",
    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h2>apply</h2><p>OPERATION: apply</p><p>The official URL for this operation definition is: </p><pre>https://careplan.devtest.systematic-ehealth.com/fhir/OperationDefinition/-s-apply</pre><div><p>This operation creates a careplan for a specific episodeOfCare using this PlanDefinition as a template.</p>\n</div><p>URL: [base]/$apply</p><p>Parameters</p><table class=\"grid\"><tr><td><b>Use</b></td><td><b>Name</b></td><td><b>Cardinality</b></td><td><b>Type</b></td><td><b>Binding</b></td><td><b>Documentation</b></td></tr><tr><td>IN</td><td>planDefinition</td><td>0..1</td><td><a href=\"http://hl7.org/fhir/R4/references.html#Reference\">Reference</a></td><td/><td/></tr><tr><td>IN</td><td>episodeOfCare</td><td>0..1</td><td><a href=\"http://hl7.org/fhir/R4/references.html#Reference\">Reference</a></td><td/><td/></tr></table></div>"
  },
  "url": "https://careplan.devtest.systematic-ehealth.com/fhir/OperationDefinition/-s-apply",
  "version": "2022.1",
  "name": "apply",
  "title": "Create a careplan",
  "status": "active",
  "kind": "operation",
  "date": "2022-01-18T09:57:29+00:00",
  "publisher": "Systematic | Trifork",
  "contact": [
    {
      "name": "Systematic | Trifork",
      "telecom": [
        {
          "system": "url",
          "value": "http://ehealth.sundhed.dk"
        }
      ]
    }
  ],
  "description": "This operation creates a careplan for a specific episodeOfCare using this PlanDefinition as a template.",
  "affectsState": true,
  "code": "apply",
  "system": true,
  "type": false,
  "instance": false,
  "parameter": [
    {
      "name": "planDefinition",
      "use": "in",
      "min": 0,
      "max": "1",
      "type": "Reference"
    },
    {
      "name": "episodeOfCare",
      "use": "in",
      "min": 0,
      "max": "1",
      "type": "Reference"
    }
  ]
}