{
  "resourceType": "StructureDefinition",
  "id": "ie-core-careplan",
  "url": "https://hl7-ie.github.io/ie-core/fhir/ie/core/StructureDefinition/ie-core-careplan",
  "name": "IECoreCarePlan",
  "title": "IE Core CarePlan",
  "status": "draft",
  "description": "The IE Core CarePlan profile sets minimum expectations for the CarePlan resource to record, search, and fetch care plan data associated with a patient, based on Irish requirements.",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "CarePlan",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/CarePlan",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "CarePlan.text",
        "path": "CarePlan.text",
        "mustSupport": true
      },
      {
        "id": "CarePlan.text.status",
        "path": "CarePlan.text.status",
        "mustSupport": true,
        "binding": {
          "strength": "required",
          "valueSet": "https://hl7-ie.github.io/ie-core/fhir/ie/core/ValueSet/ie-core-narrative-status"
        }
      },
      {
        "id": "CarePlan.status",
        "path": "CarePlan.status",
        "mustSupport": true
      },
      {
        "id": "CarePlan.intent",
        "path": "CarePlan.intent",
        "mustSupport": true
      },
      {
        "id": "CarePlan.category",
        "path": "CarePlan.category",
        "slicing": {
          "discriminator": [
            {
              "type": "pattern",
              "path": "$this"
            }
          ],
          "rules": "open"
        },
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "CarePlan.category:AssessPlan",
        "path": "CarePlan.category",
        "sliceName": "AssessPlan",
        "min": 1,
        "max": "1",
        "patternCodeableConcept": {
          "coding": [
            {
              "code": "assess-plan",
              "system": "https://hl7-ie.github.io/ie-core/fhir/ie/core/CodeSystem/ie-core-codesystem",
              "display": "Assess and Plan"
            }
          ]
        },
        "mustSupport": true
      },
      {
        "id": "CarePlan.title",
        "path": "CarePlan.title",
        "comment": "HIQA PS 18.2.1 Name of care plan (Required).",
        "mustSupport": true
      },
      {
        "id": "CarePlan.description",
        "path": "CarePlan.description",
        "comment": "HIQA PS 18.2.2 Description of the care plan (Required).",
        "mustSupport": true
      },
      {
        "id": "CarePlan.subject",
        "path": "CarePlan.subject",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://hl7-ie.github.io/ie-core/fhir/ie/core/StructureDefinition/ie-core-patient"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "CarePlan.period",
        "path": "CarePlan.period",
        "comment": "HIQA PS 18.2.3 Care plan period (Optional)."
      },
      {
        "id": "CarePlan.addresses",
        "path": "CarePlan.addresses",
        "comment": "HIQA PS 18.2.4 Condition related to the care plan (Optional)."
      },
      {
        "id": "CarePlan.goal",
        "path": "CarePlan.goal",
        "comment": "HIQA PS 18.2.6 Care plan goal (Optional)."
      }
    ]
  }
}