{
  "resourceType" : "Invoice",
  "id" : "dipag-financial-facts-example",
  "meta" : {
    "profile" : ["https://gematik.de/fhir/dipag/StructureDefinition/dipag-rechnung"]
  },
  "text" : {
    "status" : "extensions",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: Invoice dipag-financial-facts-example</b></p><a name=\"dipag-financial-facts-example\"> </a><a name=\"hcdipag-financial-facts-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><p><b>identifier</b>: Rechnungsnummer/INV-2026-0042</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=\"#hcdipag-financial-facts-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=\"#hcdipag-financial-facts-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=\"#hcdipag-financial-facts-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>\n</div><hr/><blockquote><p class=\"res-header-id\"><b>Generated Narrative: Patient #patient-example</b></p><a name=\"dipag-financial-facts-example/patient-example\"> </a><a name=\"hcdipag-financial-facts-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=\"dipag-financial-facts-example/issuer-example\"> </a><a name=\"hcdipag-financial-facts-example/issuer-example\"> </a><p><b>active</b>: true</p><p><b>name</b>: Synthetic invoice issuer</p></blockquote></div>"
  },
  "contained" : [{
    "resourceType" : "Patient",
    "id" : "patient-example",
    "identifier" : [{
      "system" : "http://fhir.de/sid/gkv/kvid-10",
      "value" : "X110411675"
    }],
    "active" : true,
    "name" : [{
      "family" : "Example",
      "given" : ["Synthetic"]
    }]
  },
  {
    "resourceType" : "Organization",
    "id" : "issuer-example",
    "active" : true,
    "name" : "Synthetic invoice issuer"
  }],
  "extension" : [{
    "url" : "https://gematik.de/fhir/dipag/StructureDefinition/dipag-behandlungsart",
    "valueCoding" : {
      "system" : "http://terminology.hl7.org/CodeSystem/v3-ActCode",
      "code" : "AMB"
    }
  },
  {
    "url" : "https://gematik.de/fhir/dipag/StructureDefinition/dipag-fachrichtung",
    "valueCoding" : {
      "system" : "http://ihe-d.de/CodeSystems/AerztlicheFachrichtungen",
      "code" : "ALLG"
    }
  },
  {
    "url" : "https://fhir.cognovis.de/billing/StructureDefinition/billing-tax-exemption-reason",
    "valueCodeableConcept" : {
      "coding" : [{
        "system" : "https://example.invalid/CodeSystem/tax-exemption-reason",
        "code" : "medical-care"
      }]
    }
  }],
  "identifier" : [{
    "type" : {
      "coding" : [{
        "system" : "https://gematik.de/fhir/dipag/CodeSystem/dipag-rechnung-identifier-type-cs",
        "code" : "invoice"
      }]
    },
    "system" : "https://example.invalid/invoice-number",
    "value" : "INV-2026-0042"
  }],
  "status" : "issued",
  "type" : {
    "coding" : [{
      "system" : "https://gematik.de/fhir/dipag/CodeSystem/dipag-rechnung-abrechnungsart-cs",
      "code" : "GOÄ"
    }]
  },
  "subject" : {
    "reference" : "#patient-example"
  },
  "recipient" : {
    "reference" : "#patient-example",
    "identifier" : {
      "system" : "http://fhir.de/sid/gkv/kvid-10",
      "value" : "X110411675"
    },
    "display" : "Synthetic Patient"
  },
  "date" : "2026-09-19",
  "participant" : [{
    "role" : {
      "coding" : [{
        "system" : "https://gematik.de/fhir/dipag/CodeSystem/dipag-participant-role-cs",
        "code" : "leistungserbringer"
      }]
    },
    "actor" : {
      "identifier" : {
        "system" : "https://example.invalid/practitioner",
        "value" : "example"
      }
    }
  },
  {
    "role" : {
      "coding" : [{
        "system" : "https://gematik.de/fhir/dipag/CodeSystem/dipag-participant-role-cs",
        "code" : "forderungsinhaber"
      }]
    },
    "actor" : {
      "identifier" : {
        "system" : "https://example.invalid/organization",
        "value" : "receivable-holder"
      }
    }
  }],
  "issuer" : {
    "reference" : "#issuer-example"
  },
  "lineItem" : [{
    "sequence" : 1,
    "chargeItemReference" : {
      "identifier" : {
        "system" : "https://example.invalid/charge-item",
        "value" : "example"
      }
    },
    "priceComponent" : [{
      "type" : "base",
      "amount" : {
        "value" : 125.4,
        "currency" : "EUR"
      }
    },
    {
      "type" : "tax",
      "code" : {
        "coding" : [{
          "system" : "urn:un:unece:uncefact:codelist:standard:5305",
          "code" : "E"
        }]
      },
      "amount" : {
        "value" : 0,
        "currency" : "EUR"
      }
    }]
  }],
  "totalNet" : {
    "value" : 125.4,
    "currency" : "EUR"
  },
  "totalGross" : {
    "value" : 125.4,
    "currency" : "EUR"
  },
  "paymentTerms" : "Payment instructions are encoded in the primitive extensions.",
  "_paymentTerms" : {
    "extension" : [{
      "url" : "https://gematik.de/fhir/dipag/StructureDefinition/dipag-zahlungsziel",
      "valueDate" : "2026-10-03"
    },
    {
      "extension" : [{
        "url" : "account",
        "valueString" : "DE02120300000000202051"
      },
      {
        "url" : "bank",
        "valueString" : "Synthetic Bank"
      },
      {
        "url" : "branch",
        "valueString" : "BYLADEM1001"
      },
      {
        "url" : "accountHolderName",
        "valueString" : "Synthetic Receivable Holder"
      }],
      "url" : "https://gematik.de/fhir/dipag/StructureDefinition/DiPagPaymentTo"
    }]
  }
}