<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="CaregiverPatientConsent" />
  <url value="https://novoheal.my/fhir/StructureDefinition/CaregiverPatientConsent" />
  <name value="CaregiverPatientConsent" />
  <status value="draft" />
  <fhirVersion value="4.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="Consent" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Consent" />
  <derivation value="constraint" />
  <differential>
    <element id="Consent.status">
      <path value="Consent.status" />
      <definition value="caregiver consent request status: proposed" />
    </element>
    <element id="Consent.scope">
      <path value="Consent.scope" />
      <fixedCodeableConcept>
        <coding>
          <code value="patient-privacy" />
          <display value="Privacy Consent" />
        </coding>
      </fixedCodeableConcept>
    </element>
    <element id="Consent.category">
      <path value="Consent.category" />
      <fixedCodeableConcept>
        <coding>
          <code value="ICOL" />
          <display value="information collection" />
        </coding>
      </fixedCodeableConcept>
    </element>
    <element id="Consent.policyRule">
      <path value="Consent.policyRule" />
      <fixedCodeableConcept>
        <coding>
          <code value="hipaa-npp" />
          <display value="HIPAA Notice of Privacy Practices" />
        </coding>
      </fixedCodeableConcept>
    </element>
    <element id="Consent.policyRule.text">
      <path value="Consent.policyRule.text" />
      <short value="Consent request" />
      <definition value="Dear {Patient Name},&#xD;&#xA;I, {Caregiver Name} from {Organization Name}, am requesting your permission to access and update your healthcare records.&#xD;&#xA;&#xD;&#xA;This access will help us provide you with better healthcare services, such as:&#xD;&#xA;Monitoring your vital signs and symptoms.&#xD;&#xA;Updating your health records for accurate medical tracking.&#xD;&#xA;&#xD;&#xA;Your information will be handled in compliance with HIPAA regulations, ensuring confidentiality and secure handling.&#xD;&#xA;&#xD;&#xA;Duration of Access: 90 Days&#xD;&#xA;Purpose of Access: For providing healthcare services and updating medical records.&#xD;&#xA;&#xD;&#xA;Note: You can revoke your consent at any time by accessing the settings in this app" />
    </element>
  </differential>
</StructureDefinition>