{
  "resourceType": "StructureDefinition",
  "url": "http://fhir.synapxe.sg/StructureDefinition/profile-care-plan",
  "name": "CarePlan",
  "status": "active",
  "description": "This resource defines the clinical programme assigned to the patient. Details like the programme category, the period of enrollment and the patient id will be stored.",
  "fhirVersion": "5.0.0",
  "kind": "resource",
  "abstract": false,
  "type": "CarePlan",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/CarePlan",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "CarePlan.identifier",
        "path": "CarePlan.identifier",
        "max": "0"
      },
      {
        "id": "CarePlan.instantiatesCanonical",
        "path": "CarePlan.instantiatesCanonical",
        "min": 1,
        "max": "1",
        "fixedCanonical": "http://fhir.synapxe.sg/PlanDefinition/telehealth/rcm"
      },
      {
        "id": "CarePlan.instantiatesUri",
        "path": "CarePlan.instantiatesUri",
        "max": "0"
      },
      {
        "id": "CarePlan.basedOn",
        "path": "CarePlan.basedOn",
        "max": "0"
      },
      {
        "id": "CarePlan.replaces",
        "path": "CarePlan.replaces",
        "max": "0"
      },
      {
        "id": "CarePlan.partOf",
        "path": "CarePlan.partOf",
        "max": "0"
      },
      {
        "id": "CarePlan.intent",
        "path": "CarePlan.intent",
        "fixedCode": "plan"
      },
      {
        "id": "CarePlan.category",
        "path": "CarePlan.category",
        "min": 1,
        "max": "1",
        "binding": {
          "strength": "required",
          "description": "Identifies program category in RCM",
          "valueSet": "http://fhir.synapxe.sg/ValueSet/rcm-program-category"
        }
      },
      {
        "id": "CarePlan.category.coding",
        "path": "CarePlan.category.coding",
        "min": 1
      },
      {
        "id": "CarePlan.category.coding.system",
        "path": "CarePlan.category.coding.system",
        "min": 1,
        "fixedUri": "http://fhir.synapxe.sg/CodeSystem/rcm-program-category"
      },
      {
        "id": "CarePlan.category.coding.version",
        "path": "CarePlan.category.coding.version",
        "max": "0"
      },
      {
        "id": "CarePlan.category.coding.code",
        "path": "CarePlan.category.coding.code",
        "min": 1
      },
      {
        "id": "CarePlan.category.coding.display",
        "path": "CarePlan.category.coding.display",
        "min": 1
      },
      {
        "id": "CarePlan.category.coding.userSelected",
        "path": "CarePlan.category.coding.userSelected",
        "max": "0"
      },
      {
        "id": "CarePlan.category.text",
        "path": "CarePlan.category.text",
        "max": "0"
      },
      {
        "id": "CarePlan.title",
        "path": "CarePlan.title",
        "max": "0"
      },
      {
        "id": "CarePlan.description",
        "path": "CarePlan.description",
        "max": "0"
      },
      {
        "id": "CarePlan.subject",
        "path": "CarePlan.subject",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://fhir.synapxe.sg/StructureDefinition/profile-patient"
            ]
          }
        ]
      },
      {
        "id": "CarePlan.subject.reference",
        "path": "CarePlan.subject.reference",
        "min": 1
      },
      {
        "id": "CarePlan.subject.type",
        "path": "CarePlan.subject.type",
        "max": "0",
        "fixedUri": "Patient"
      },
      {
        "id": "CarePlan.subject.identifier",
        "path": "CarePlan.subject.identifier",
        "max": "0"
      },
      {
        "id": "CarePlan.subject.display",
        "path": "CarePlan.subject.display",
        "max": "0"
      },
      {
        "id": "CarePlan.encounter",
        "path": "CarePlan.encounter",
        "max": "0"
      },
      {
        "id": "CarePlan.period",
        "path": "CarePlan.period",
        "min": 1
      },
      {
        "id": "CarePlan.period.start",
        "path": "CarePlan.period.start",
        "min": 1
      },
      {
        "id": "CarePlan.period.end",
        "path": "CarePlan.period.end",
        "min": 1
      },
      {
        "id": "CarePlan.created",
        "path": "CarePlan.created",
        "min": 1
      },
      {
        "id": "CarePlan.custodian",
        "path": "CarePlan.custodian",
        "max": "0"
      },
      {
        "id": "CarePlan.contributor",
        "path": "CarePlan.contributor",
        "max": "0"
      },
      {
        "id": "CarePlan.careTeam",
        "path": "CarePlan.careTeam",
        "max": "0"
      },
      {
        "id": "CarePlan.addresses",
        "path": "CarePlan.addresses",
        "max": "0"
      },
      {
        "id": "CarePlan.supportingInfo",
        "path": "CarePlan.supportingInfo",
        "max": "0"
      },
      {
        "id": "CarePlan.goal",
        "path": "CarePlan.goal",
        "max": "0"
      },
      {
        "id": "CarePlan.activity",
        "path": "CarePlan.activity",
        "max": "0"
      },
      {
        "id": "CarePlan.note",
        "path": "CarePlan.note",
        "max": "0"
      }
    ]
  }
}