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

<Invoice xmlns="http://hl7.org/fhir">
  <id value="dunning-block-dipag-example"/>
  <meta>
    <profile value="https://gematik.de/fhir/dipag/StructureDefinition/dipag-rechnung"/>
  </meta>
  <text>
    <status value="extensions"/><div xmlns="http://www.w3.org/1999/xhtml"><p class="res-header-id"><b>Generated Narrative: Invoice dunning-block-dipag-example</b></p><a name="dunning-block-dipag-example"> </a><a name="hcdunning-block-dipag-example"> </a><div style="display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%"><p style="margin-bottom: 0px"/><p style="margin-bottom: 0px">Profile: <a href="https://simplifier.net/resolve?scope=de.gematik.dipag@1.4.0&amp;canonical=https://gematik.de/fhir/dipag/StructureDefinition/dipag-rechnung">Digitale Patientenrechnung Rechnung</a></p></div><p><b>Digitale Patientenrechnung Extension Behandlungsart</b>: <a href="http://terminology.hl7.org/7.5.0/CodeSystem-v3-ActCode.html#v3-ActCode-AMB">ActCode: AMB</a> (ambulatory)</p><p><b>Digitale Patientenrechnung Extension Fachrichtung</b>: <a href="https://simplifier.net/resolve?scope=de.gematik.dipag@1.4.0&amp;canonical=http://ihe-d.de/CodeSystems/AerztlicheFachrichtungen#AerztlicheFachrichtungen-ALLG">Aerztliche Fachrichtungen: ALLG</a> (Allgemeinmedizin)</p><p><b>Billing Tax Exemption Reason</b>: <span title="Codes:{https://example.invalid/CodeSystem/tax-exemption-reason medical-care}">medical-care</span></p><blockquote><p><b>Billing Dunning Block</b></p><ul><li>blocked: true</li><li>reason: <span title="Codes:">Instalment plan agreed with the patient</span></li></ul></blockquote><p><b>identifier</b>: Rechnungsnummer/INV-2026-0043</p><p><b>status</b>: issued</p><p><b>type</b>: <span title="Codes:{https://gematik.de/fhir/dipag/CodeSystem/dipag-rechnung-abrechnungsart-cs GOÄ}">Gebührenordnung für Ärzte</span></p><p><b>subject</b>: <a href="#hcdunning-block-dipag-example/patient-example">Synthetic Example  (no stated gender), DoB Unknown ( http://fhir.de/sid/gkv/kvid-10#NamingSystemKVID#X110411675)</a></p><p><b>recipient</b>: <a href="#hcdunning-block-dipag-example/patient-example">Synthetic Patient</a></p><p><b>date</b>: 2026-09-19</p><blockquote><p><b>participant</b></p><p><b>role</b>: <span title="Codes:{https://gematik.de/fhir/dipag/CodeSystem/dipag-participant-role-cs leistungserbringer}">Leistungserbringer</span></p><p><b>actor</b>: Identifier: <code>https://example.invalid/practitioner</code>/example</p></blockquote><blockquote><p><b>participant</b></p><p><b>role</b>: <span title="Codes:{https://gematik.de/fhir/dipag/CodeSystem/dipag-participant-role-cs forderungsinhaber}">Forderungsinhaber</span></p><p><b>actor</b>: Identifier: <code>https://example.invalid/organization</code>/receivable-holder</p></blockquote><p><b>issuer</b>: <a href="#hcdunning-block-dipag-example/issuer-example">Organization Synthetic invoice issuer</a></p><blockquote><p><b>lineItem</b></p><p><b>sequence</b>: 1</p><p><b>chargeItem</b>: Identifier: <code>https://example.invalid/charge-item</code>/example</p><blockquote><p><b>priceComponent</b></p><p><b>type</b>: base price</p><h3>Amounts</h3><table class="grid"><tr><td style="display: none">-</td><td><b>Value</b></td><td><b>Currency</b></td></tr><tr><td style="display: none">*</td><td>125.4</td><td>Euro</td></tr></table></blockquote><blockquote><p><b>priceComponent</b></p><p><b>type</b>: tax</p><p><b>code</b>: <span title="Codes:{urn:un:unece:uncefact:codelist:standard:5305 E}">E</span></p><h3>Amounts</h3><table class="grid"><tr><td style="display: none">-</td><td><b>Value</b></td><td><b>Currency</b></td></tr><tr><td style="display: none">*</td><td>0</td><td>Euro</td></tr></table></blockquote></blockquote><h3>TotalNets</h3><table class="grid"><tr><td style="display: none">-</td><td><b>Value</b></td><td><b>Currency</b></td></tr><tr><td style="display: none">*</td><td>125.4</td><td>Euro</td></tr></table><h3>TotalGrosses</h3><table class="grid"><tr><td style="display: none">-</td><td><b>Value</b></td><td><b>Currency</b></td></tr><tr><td style="display: none">*</td><td>125.4</td><td>Euro</td></tr></table><p><b>paymentTerms</b>: </p><div><p>Payment instructions are encoded in the primitive extensions.</p>
</div><hr/><blockquote><p class="res-header-id"><b>Generated Narrative: Patient #patient-example</b></p><a name="dunning-block-dipag-example/patient-example"> </a><a name="hcdunning-block-dipag-example/patient-example"> </a><p style="border: 1px #661aff solid; background-color: #e6e6ff; padding: 10px;">Synthetic Example  (no stated gender), DoB Unknown ( http://fhir.de/sid/gkv/kvid-10#NamingSystemKVID#X110411675)</p><hr/><table class="grid"><tr><td style="background-color: #f3f5da" title="Record is active">Active:</td><td colspan="3">true</td></tr></table></blockquote><hr/><blockquote><p class="res-header-id"><b>Generated Narrative: Organization #issuer-example</b></p><a name="dunning-block-dipag-example/issuer-example"> </a><a name="hcdunning-block-dipag-example/issuer-example"> </a><p><b>active</b>: true</p><p><b>name</b>: Synthetic invoice issuer</p></blockquote></div>
  </text>
  <contained>
    <Patient>
      <id value="patient-example"/>
      <identifier>
        <system value="http://fhir.de/sid/gkv/kvid-10"/>
        <value value="X110411675"/>
      </identifier>
      <active value="true"/>
      <name>
        <family value="Example"/>
        <given value="Synthetic"/>
      </name>
    </Patient>
  </contained>
  <contained>
    <Organization>
      <id value="issuer-example"/>
      <active value="true"/>
      <name value="Synthetic invoice issuer"/>
    </Organization>
  </contained>
  <extension url="https://gematik.de/fhir/dipag/StructureDefinition/dipag-behandlungsart">
    <valueCoding>
      <system value="http://terminology.hl7.org/CodeSystem/v3-ActCode"/>
      <code value="AMB"/>
    </valueCoding>
  </extension>
  <extension url="https://gematik.de/fhir/dipag/StructureDefinition/dipag-fachrichtung">
    <valueCoding>
      <system value="http://ihe-d.de/CodeSystems/AerztlicheFachrichtungen"/>
      <code value="ALLG"/>
    </valueCoding>
  </extension>
  <extension url="https://fhir.cognovis.de/billing/StructureDefinition/billing-tax-exemption-reason">
    <valueCodeableConcept>
      <coding>
        <system value="https://example.invalid/CodeSystem/tax-exemption-reason"/>
        <code value="medical-care"/>
      </coding>
    </valueCodeableConcept>
  </extension>
  <extension url="https://fhir.cognovis.de/billing/StructureDefinition/billing-dunning-block">
    <extension url="blocked">
      <valueBoolean value="true"/>
    </extension>
    <extension url="reason">
      <valueCodeableConcept>
        <text value="Instalment plan agreed with the patient"/>
      </valueCodeableConcept>
    </extension>
  </extension>
  <identifier>
    <type>
      <coding>
        <system value="https://gematik.de/fhir/dipag/CodeSystem/dipag-rechnung-identifier-type-cs"/>
        <code value="invoice"/>
      </coding>
    </type>
    <system value="https://example.invalid/invoice-number"/>
    <value value="INV-2026-0043"/>
  </identifier>
  <status value="issued"/>
  <type>
    <coding>
      <system value="https://gematik.de/fhir/dipag/CodeSystem/dipag-rechnung-abrechnungsart-cs"/>
      <code value="GOÄ"/>
    </coding>
  </type>
  <subject>
    <reference value="#patient-example"/>
  </subject>
  <recipient>
    <reference value="#patient-example"/>
    <identifier>
      <system value="http://fhir.de/sid/gkv/kvid-10"/>
      <value value="X110411675"/>
    </identifier>
    <display value="Synthetic Patient"/>
  </recipient>
  <date value="2026-09-19"/>
  <participant>
    <role>
      <coding>
        <system value="https://gematik.de/fhir/dipag/CodeSystem/dipag-participant-role-cs"/>
        <code value="leistungserbringer"/>
      </coding>
    </role>
    <actor>
      <identifier>
        <system value="https://example.invalid/practitioner"/>
        <value value="example"/>
      </identifier>
    </actor>
  </participant>
  <participant>
    <role>
      <coding>
        <system value="https://gematik.de/fhir/dipag/CodeSystem/dipag-participant-role-cs"/>
        <code value="forderungsinhaber"/>
      </coding>
    </role>
    <actor>
      <identifier>
        <system value="https://example.invalid/organization"/>
        <value value="receivable-holder"/>
      </identifier>
    </actor>
  </participant>
  <issuer>
    <reference value="#issuer-example"/>
  </issuer>
  <lineItem>
    <sequence value="1"/>
    <chargeItemReference>
      <identifier>
        <system value="https://example.invalid/charge-item"/>
        <value value="example"/>
      </identifier>
    </chargeItemReference>
    <priceComponent>
      <type value="base"/>
      <amount>
        <value value="125.4"/>
        <currency value="EUR"/>
      </amount>
    </priceComponent>
    <priceComponent>
      <type value="tax"/>
      <code>
        <coding>
          <system value="urn:un:unece:uncefact:codelist:standard:5305"/>
          <code value="E"/>
        </coding>
      </code>
      <amount>
        <value value="0"/>
        <currency value="EUR"/>
      </amount>
    </priceComponent>
  </lineItem>
  <totalNet>
    <value value="125.4"/>
    <currency value="EUR"/>
  </totalNet>
  <totalGross>
    <value value="125.4"/>
    <currency value="EUR"/>
  </totalGross>
  <paymentTerms value="Payment instructions are encoded in the primitive extensions.">
    <extension url="https://gematik.de/fhir/dipag/StructureDefinition/dipag-zahlungsziel">
      <valueDate value="2026-10-03"/>
    </extension>
    <extension url="https://gematik.de/fhir/dipag/StructureDefinition/DiPagPaymentTo">
      <extension url="account">
        <valueString value="DE02120300000000202051"/>
      </extension>
      <extension url="bank">
        <valueString value="Synthetic Bank"/>
      </extension>
      <extension url="branch">
        <valueString value="BYLADEM1001"/>
      </extension>
      <extension url="accountHolderName">
        <valueString value="Synthetic Receivable Holder"/>
      </extension>
    </extension>
  </paymentTerms>
</Invoice>