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

<Bundle xmlns="http://hl7.org/fhir">
  <id value="ExampleERPCHRGConsentSearchset"/>
  <type value="searchset"/>
  <total value="1"/>
  <link>
    <relation value="self"/>
    <url value="https://erp-ref.example.org/Consent?category=CHARGCONS"/>
  </link>
  <entry>
    <fullUrl value="https://erp-ref.example.org/Consent/ChargeItemConsent-Response"/>
    <resource>
      <Consent>
        <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>
    </resource>
    <search>
      <mode value="match"/>
    </search>
  </entry>
</Bundle>