<?xml version="1.0" encoding="UTF-8"?>

<Consent xmlns="http://hl7.org/fhir">
  <id value="0dcc5d4c-bf24-4c06-b02e-be5bc24587e2"/>
  <meta>
    <profile value="https://gematik.de/fhir/erpchrg/StructureDefinition/GEM_ERPCHRG_PR_Consent"/>
  </meta>
  <status value="active"/>
  <scope>
    <coding>
      <system value="http://terminology.hl7.org/CodeSystem/consentscope"/>
      <code value="patient-privacy"/>
      <display value="Privacy Consent"/>
    </coding>
  </scope>
  <category>
    <coding>
      <system value="https://gematik.de/fhir/erpchrg/CodeSystem/GEM_ERPCHRG_CS_ConsentType"/>
      <code value="CHARGCONS"/>
      <display value="Consent for saving electronic charge item"/>
    </coding>
  </category>
  <patient>
    <identifier>
      <system value="http://fhir.de/sid/gkv/kvid-10"/>
      <value value="P987654321"/>
      <assigner>
        <identifier>
          <system value="http://fhir.de/sid/arge-ik/iknr"/>
          <value value="168140950"/>
        </identifier>
      </assigner>
    </identifier>
  </patient>
  <dateTime value="2028-10-01T15:29:00.434+00:00"/>
  <policyRule>
    <coding>
      <system value="http://terminology.hl7.org/CodeSystem/v3-ActCode"/>
      <code value="OPTIN"/>
    </coding>
  </policyRule>
</Consent>