{
  "resourceType": "StructureDefinition",
  "id": "England-CarePlan-Flag",
  "url": "https://fhir.nhs.uk/England/StructureDefinition/England-CarePlan-Flag",
  "version": "0.1.0",
  "name": "EnglandCarePlanFlag",
  "title": "England Care Plan Flag",
  "status": "draft",
  "date": "2025-03-03",
  "publisher": "NHS England",
  "contact": [
    {
      "name": "NHS England",
      "telecom": [
        {
          "system": "email",
          "value": "interoperabilityteam@nhs.net",
          "use": "work",
          "rank": 1
        }
      ]
    }
  ],
  "description": "Defines the structure for the CarePlan resource associated with the Flag resource, representing safeguarding plans such as Child Protection Plans (CPP).",
  "purpose": "This profile provides a structured representation of a CarePlan in the Flag system, detailing the safeguarding status of a child under CP-IS, including Looked After Child (LAC), Child Protection Plan (CPP), and Unborn Child Protection (UCP).",
  "copyright": "Copyright © 2025 NHS England. Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.",
  "fhirVersion": "4.0.1",
  "mapping": [
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/fivews",
      "name": "FiveWs Pattern Mapping"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "CarePlan",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/CarePlan",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "CarePlan.id",
        "path": "CarePlan.id",
        "mustSupport": true
      },
      {
        "id": "CarePlan.status",
        "path": "CarePlan.status",
        "mustSupport": true
      },
      {
        "id": "CarePlan.category",
        "path": "CarePlan.category",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "CarePlan.subject",
        "path": "CarePlan.subject",
        "mustSupport": true
      },
      {
        "id": "CarePlan.period",
        "path": "CarePlan.period",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "CarePlan.careTeam",
        "path": "CarePlan.careTeam",
        "min": 1,
        "mustSupport": true
      }
    ]
  }
}