{
  "resourceType": "StructureDefinition",
  "id": "SelfMonitorCarePlan",
  "url": "https://Novoheal.my/fhir/StructureDefinition/SelfMonitorCarePlan",
  "version": "0.01",
  "name": "SelfMonitorCarePlan",
  "status": "draft",
  "date": "2024",
  "description": "Create a care plan for each mobile user (patient) who has measurements or activities to be monitored either by themselves or by a caregiver",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "CarePlan",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/CarePlan",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "CarePlan.extension:carePlanSubjectCode",
        "path": "CarePlan.extension",
        "sliceName": "carePlanSubjectCode",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://novoheal.my/fhir/StructureDefinition/CarePlanSubjectCode"
            ]
          }
        ],
        "isModifier": false
      },
      {
        "id": "CarePlan.status",
        "path": "CarePlan.status",
        "definition": "active - upon created"
      },
      {
        "id": "CarePlan.intent",
        "path": "CarePlan.intent",
        "short": "plan",
        "fixedCode": "plan"
      },
      {
        "id": "CarePlan.category",
        "path": "CarePlan.category",
        "short": "Self Monitor Care Plan",
        "definition": "Home health and wellness plan",
        "fixedCodeableConcept": {
          "coding": [
            {
              "system": "http://snomed.info/sct",
              "code": "734163000",
              "display": "Care plan (record artifact)"
            }
          ]
        }
      },
      {
        "id": "CarePlan.subject",
        "path": "CarePlan.subject",
        "short": "Patient or Caregiver Self Monitoring Care Plan"
      },
      {
        "id": "CarePlan.subject.identifier.type",
        "path": "CarePlan.subject.identifier.type",
        "definition": "The codeded type is used to categorize the care plan's purpose: measurement or activity.",
        "fixedCodeableConcept": {
          "text": "measurement | activity"
        }
      },
      {
        "id": "CarePlan.addresses",
        "path": "CarePlan.addresses",
        "max": "0"
      },
      {
        "id": "CarePlan.activity",
        "path": "CarePlan.activity",
        "definition": "Identifies a planned action to occur as part of the plan.  For example, a measurement to be monitor, exercise to perform, lab tests to perform, self-monitoring, education, etc."
      },
      {
        "id": "CarePlan.activity.detail.dailyAmount.unit",
        "path": "CarePlan.activity.detail.dailyAmount.unit",
        "code": [
          {
            "system": "http://unitsofmeasure.org"
          }
        ]
      },
      {
        "id": "CarePlan.activity.detail.quantity",
        "path": "CarePlan.activity.detail.quantity",
        "max": "0"
      },
      {
        "id": "CarePlan.activity.detail.quantity.unit",
        "path": "CarePlan.activity.detail.quantity.unit",
        "code": [
          {
            "system": "http://unitsofmeasure.org"
          }
        ]
      }
    ]
  }
}