<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="SelfMonitorCarePlan" />
  <url value="https://Novoheal.my/fhir/StructureDefinition/SelfMonitorCarePlan" />
  <version value="0.01" />
  <name value="SelfMonitorCarePlan" />
  <status value="draft" />
  <date value="2024" />
  <description value="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 value="4.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="CarePlan" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/CarePlan" />
  <derivation value="constraint" />
  <differential>
    <element id="CarePlan.extension:carePlanSubjectCode">
      <path value="CarePlan.extension" />
      <sliceName value="carePlanSubjectCode" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="https://novoheal.my/fhir/StructureDefinition/CarePlanSubjectCode" />
      </type>
      <isModifier value="false" />
    </element>
    <element id="CarePlan.status">
      <path value="CarePlan.status" />
      <definition value="active - upon created" />
    </element>
    <element id="CarePlan.intent">
      <path value="CarePlan.intent" />
      <short value="plan" />
      <fixedCode value="plan" />
    </element>
    <element id="CarePlan.category">
      <path value="CarePlan.category" />
      <short value="Self Monitor Care Plan" />
      <definition value="Home health and wellness plan" />
      <fixedCodeableConcept>
        <coding>
          <system value="http://snomed.info/sct" />
          <code value="734163000" />
          <display value="Care plan (record artifact)" />
        </coding>
      </fixedCodeableConcept>
    </element>
    <element id="CarePlan.subject">
      <path value="CarePlan.subject" />
      <short value="Patient or Caregiver Self Monitoring Care Plan" />
    </element>
    <element id="CarePlan.subject.identifier.type">
      <path value="CarePlan.subject.identifier.type" />
      <definition value="The codeded type is used to categorize the care plan's purpose: measurement or activity." />
      <fixedCodeableConcept>
        <text value="measurement | activity" />
      </fixedCodeableConcept>
    </element>
    <element id="CarePlan.addresses">
      <path value="CarePlan.addresses" />
      <max value="0" />
    </element>
    <element id="CarePlan.activity">
      <path value="CarePlan.activity" />
      <definition value="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." />
    </element>
    <element id="CarePlan.activity.detail.dailyAmount.unit">
      <path value="CarePlan.activity.detail.dailyAmount.unit" />
      <code>
        <system value="http://unitsofmeasure.org" />
      </code>
    </element>
    <element id="CarePlan.activity.detail.quantity">
      <path value="CarePlan.activity.detail.quantity" />
      <max value="0" />
    </element>
    <element id="CarePlan.activity.detail.quantity.unit">
      <path value="CarePlan.activity.detail.quantity.unit" />
      <code>
        <system value="http://unitsofmeasure.org" />
      </code>
    </element>
  </differential>
</StructureDefinition>