German Dental FHIR Profiles (R4)
0.65.0 - trial-use Germany

German Dental FHIR Profiles (R4) - Downloaded Version null See the Directory of published versions

Billing Mapping Guide

Billing Mapping Guide

This page tells a producer how to map the billing records of a practice management system to FHIR: line versions, what a billing document billed, invoice totals and tax, settlement bookings, the prosthetics billing case and the additional-cost filling. It states the rules of ADR-009 Decisions 7 and 8, each with a synthetic example. Every example on this page validates offline with HL7 Validator 7.0.6 and -tx n/a, as the Offline Validation page describes.

The resources are the open profiles of this guide and base R4:

Fact Resource
A billing line ChargeItem, DentalBillingLineDE
An invoice outside the TI Invoice, DentalInvoiceDE
An invoice through the TI Invoice, GozInvoiceDE (DiPag); once cancelled, base R4 Invoice
A claim to an insurer Claim
A settlement booking PaymentReconciliation, with the billing case Account the invoice names
An open receivable Observation receivable-outstanding-balance on the billing case Account (Billing DE open balance)

Line lineage

A source often keeps several versions of one billing line: a replaced version keeps its amount and names its predecessor. All versions of one line form a lineage.

  • One logical ChargeItem per lineage. A replacing source version updates that resource; it never becomes a second resource, so a line is never counted twice. ChargeItem.identifier carries the lineage identifier.
  • A server that keeps history keeps the older versions as a convenience, not as a contract. No reader has to resolve a version (vread, _history) to know what was billed: many servers store a version-specific reference as a plain URI that reference search never matches, and bulk loads do not keep versions.
  • A line the source deletes ends as the lineage's ChargeItem with status entered-in-error, unless a TI invoice has cited that resource (see below).

Examples: ExampleLineageGozLine (the lineage L-2026-0401 after its line was corrected from factor 2.3 to 1.8) and ExampleLineageDeletedLine (a deleted line, entered-in-error).

Billed snapshot

What a billing document billed travels with the document, never through a version of the ChargeItem.

Claim

A Claim.item carries what was billed in its own elements: productOrService (the code), quantity, factor where the fee schedule has one, unitPrice and net. This also covers a billing case that lists line versions that have since been replaced.

Example: ExampleBilledClaimQuarter, a quarterly claim whose second item carries quantity 2, unit price 12.00 EUR and net 24.00 EUR.

Invoice outside the TI: a contained copy

An Invoice.lineItem carries only the charge and its price components; it has no quantity, and chargeItem[x] is either a reference or a code. So an invoice outside the TI cites each billed line as a contained copy of the ChargeItem as billed. The copy is immutable with the invoice. It carries the lineage identifier where the lineage has one, and its partOf names the lineage's ChargeItem (by reference, by the lineage identifier, or both).

A change after invoicing cancels the invoice; the correction is a new invoice with a copy of the replacing version:

  ExampleSnapshotInvoiceCancelled ExampleSnapshotInvoiceCorrected
status cancelled, with cancelledReason issued
Contained copy of L-2026-0401 factor 2.3, 98.00 EUR factor 1.8, 76.70 EUR
partOf of the copy ChargeItem/ExampleLineageGozLine and L-2026-0401 the same

The logical ChargeItem shows the current version (factor 1.8); the cancelled invoice still shows what it billed (factor 2.3).

TI invoice: frozen ChargeItems

A TI invoice (GozInvoiceDE on DiPag dipag-rechnung) must cite each line by a chargeItemReference to a ChargeItem resource, so it freezes the resource it cites:

  • Once an issued TI invoice cites a ChargeItem, that resource is never changed again, also after the invoice is cancelled, so the cancelled invoice still shows what it billed.
  • A change after invoicing cancels the invoice. The replacing version becomes a new ChargeItem with the same lineage identifier, which the corrected invoice cites. A line that did not change keeps its frozen ChargeItem, and the corrected invoice cites it again.
  • A line deleted without replacement: the deletion cancels the invoice, the frozen resource keeps status billed (not entered-in-error), no new ChargeItem is made, and the corrected invoice, if any, leaves the line out.
  • A frozen resource counts only through its invoice. Once that invoice is cancelled it counts for nothing, so each line is still counted once.
  • A cancelled TI invoice keeps status cancelled, like any other invoice. DiPag fixes Invoice.status of dipag-rechnung to issued, so the cancelled invoice no longer claims GozInvoiceDE: it stays the same Invoice (same identifier, lines, totals and VAT exemption reason, still citing its frozen ChargeItem resources) as a base R4 Invoice with status cancelled and cancelledReason, with or without a correction. A corrected TI invoice also names the invoice it replaces in the DiPag extension Korrekturrechnung (DiPagInvoiceReplaces).

Example: the source corrected one line (L-2026-0501, factor 2.3 to 1.8) and deleted another (L-2026-0502) after invoicing.

Resource Status Cited by
ExampleTiLineChangedFrozen (L-2026-0501, factor 2.3) billed, frozen replaced invoice
ExampleTiLineDeletedFrozen (L-2026-0502) billed, frozen replaced invoice
ExampleTiLineChangedReplacement (L-2026-0501, factor 1.8) billed corrected invoice
ExampleTiInvoiceReplaced cancelled, base R4 Invoice ExampleTiInvoiceCorrected in Korrekturrechnung

Invoice totals and tax

Invoice type

Invoice.type names the invoice type from the Dental invoice types: a private invoice (private), a prosthetics own-share invoice (prosthetics-own-share) or an additional-cost invoice under § 28 Abs. 2 SGB V (additional-cost). The binding is preferred and the element is optional, so an invoice without a type stays valid. A source invoice type outside these three is not decoded: the producer leaves Invoice.type out rather than guessing one. An internal collective invoice of the practice's own laboratory is no claim against a patient and is never emitted as an Invoice.

Totals

  • For an invoice outside the TI (DentalInvoiceDE), totalNet is the sum of the line base amounts, which are net, and totalGross adds the line tax amounts. When the source's stored components add up to the invoice amount, totalNet is that amount less the tax and totalGross is the invoice amount.
  • A TI invoice (GozInvoiceDE) follows DiPag instead: the line amount BruttoBetrag is gross and its Steuern component is the tax it already contains, so totalGross is the sum of the line amounts, totalNet is that sum less the line taxes, and the tax is not added again.
  • Paid, open, dunning-fee and cancelled amounts are settlement facts. They never enter totalNet or totalGross.
  • A cancelled invoice keeps status cancelled, also through the TI (see above). A correction is a new Invoice.

Tax per line

Tax stays per line: one tax price component per line, as the Dental Invoice page and the Billing DE general private invoice contract require. A source that stores tax only per invoice (the total tax amount, the reduced and the standard rate, and the parts taxed at each rate) still emits one invoice line per billed line, so each line keeps its own billed snapshot. Lines are never merged per rate. The stored total tax is authoritative and is never re-derived.

The producer reconciles the stored total tax per rate group:

  1. Groups. Each taxed line belongs to the group of its rate (the stored reduced or standard rate). A group is taxed when the source stores a taxed part greater than zero for its rate; a taxed part of zero, or none, leaves the group untaxed. A taxed line in an untaxed group, or a taxed group with no line at its rate, means the producer reports the invoice instead of emitting it. With no taxed group the stored total must be zero; a nonzero stored total is reported.
  2. Group tax. When both groups are taxed, the reduced-rate group's tax is its rate times its stored taxed part, rounded to the cent, and the standard-rate group's tax is the stored total less that. When only one group is taxed, that group's tax is the stored total.
  3. Line tax. Within each group, each line's tax is its rate times its net, rounded to the cent, except the group's largest line (by net; among equal nets the first in source order), whose tax is the group's tax less the tax of the group's other lines. The line taxes of a group add up to its group tax, and the group taxes add up to the stored total.
  4. Plausibility per group. When a group's largest line then differs from its own rounded tax (its rate times its net, rounded to the cent) by more than one cent per taxed line of that group (counting only the group's own lines), or a group or a line would need a negative tax, the producer reports the invoice instead of emitting it. A stored taxed part that does not match the nets of its group shows up here.
  5. Fallback. A source that does not store its per-rate taxed parts cannot reconcile per rate. It keeps the single-line remainder: each taxed line's tax is its rate times its net, rounded, except the largest standard-rate line when there is one, otherwise the largest reduced-rate line, which takes the stored total less the tax of all other lines. That line is checked against its own rounded tax with one cent per taxed line of its rate, and a negative tax is reported. The fallback can report a valid mixed-rate invoice; it never emits a wrong amount.

A line the source does not tax carries a tax component of 0 with the category of the producer's tax decision for that line: its configuration or the line's own data, for example S for a requested service, E with the exemption reason for a medically indicated treatment. No category and no exemption is inferred from the kind of line. A line whose category requires tax that the source did not charge is reported, not emitted.

Worked examples

Reduced rate 7 % (AA), standard rate 19 % (S). Each example is an invoice whose lines cite their own contained billed copies.

Mixed rates (ExampleTaxInvoiceMixedRates): four lines of 10.08 EUR at 7 % and one line of 10.00 EUR at 19 %; stored taxed parts 40.32 EUR and 10.00 EUR, stored total tax 4.72 EUR.

Step Arithmetic Result
Reduced group tax 7 % × 40.32 = 2.8224 2.82 EUR
Standard group tax 4.72 − 2.82 1.90 EUR
Reduced lines 2 to 4 7 % × 10.08 = 0.7056 0.71 EUR each
Reduced line 1 (largest, first of equal nets) 2.82 − 3 × 0.71 0.69 EUR; off by 0.02 EUR ≤ 4 × 0.01 EUR
Standard line (sole line) 1.90; own rounded tax 19 % × 10.00 = 1.90 1.90 EUR
Sum 0.69 + 3 × 0.71 + 1.90 4.72 EUR, accepted

Totals: totalNet 50.32 EUR, totalGross 55.04 EUR.

The single-line fallback would give the standard-rate line 4.72 − 4 × 0.71 = 1.88 EUR, off by 0.02 EUR against a tolerance of one cent for its one line, and would report this valid invoice. That is why a source with per-rate taxed parts reconciles per rate group.

Reduced rate only (ExampleTaxInvoiceReducedOnly): four lines of 10.08 EUR at 7 %; stored taxed parts 40.32 EUR and 0.00 EUR (the standard-rate group is untaxed), stored total tax 2.82 EUR. The sole group takes 2.82 EUR: three lines 0.71 EUR, the first 2.82 − 3 × 0.71 = 0.69 EUR (off by 0.02 EUR ≤ 0.04 EUR); 0.69 + 3 × 0.71 = 2.82 EUR. Totals 40.32 EUR net, 43.14 EUR gross.

Standard rate only (ExampleTaxInvoiceStandardOnly): three lines of 10.03 EUR at 19 %; stored taxed part 30.09 EUR, stored total tax 5.72 EUR. The sole group takes 5.72 EUR: two lines 19 % × 10.03 = 1.9057 → 1.91 EUR, the first 5.72 − 2 × 1.91 = 1.90 EUR (off by 0.01 EUR ≤ 0.03 EUR); 1.90 + 2 × 1.91 = 5.72 EUR. Totals 30.09 EUR net, 35.81 EUR gross.

The single-line fallback gives the same line taxes for both single-rate examples.

Settlement bookings

A source keeps paid, open, dunning-fee and cancelled amounts on the invoice, but they follow from a journal of bookings. The bookings map to the Billing DE settlement contract: base PaymentReconciliation and Account, no wrapper profile. The source amount of a booking carries no sign; the booking kind gives the direction.

Booking Mapping Example
Invoice issued The Invoice with status issued ExampleGuideInvoiceAdditionalCost
Payment received A PaymentReconciliation.detail of type payment for the invoice, positive amount ExamplePaymentReceived
Payment taken back A detail of type adjustment for the same invoice, negative amount, predecessor naming the payment it takes back ExamplePaymentTakenBack
Transfer between two invoices A pair of adjustment details, minus on the one and plus on the other invoice; paymentAmount 0, because a transfer is not money received ExamplePaymentTransfer
Cancellation The Invoice status cancelled with cancelledReason; a correction is a new Invoice ExampleSnapshotInvoiceCancelled, ExampleTiInvoiceReplaced

None of these bookings changes totalNet or totalGross of an invoice.

Prosthetics billing case and own-share invoice

  • The total dentist fee of the billing case includes the GOZ fee. It is never read as the BEMA total.
  • The own-share Invoice (type prosthetics-own-share) carries the plan's lines, so totalNet and totalGross are the unreduced plan totals, the sum of those lines. The fund's share stands beside them as the deduction FestzuschussKasse in totalPriceComponent; it never reduces the totals.
  • The source's stored invoice amount is the patient's receivable. Its components add up to the own share, not to the plan total, so it is never written into totalNet or totalGross. It is a settlement amount, the open receivable of the billing case. With standard care it equals the plan total less the fund's share; with equal-type or different-type care it is often higher, which the source does not explain. The producer emits the receivable as stored and changes no line, total or deduction to make the two agree. It is the Billing DE open balance: a final Observation coded billing-financial-metric#receivable-outstanding-balance whose focus is the billing case Account, with the amount and ISO 4217 currency in valueQuantity, the source's measurement time in effectiveDateTime, the practice as performer, and a Provenance naming the source record that targets the Observation and the Account. Billing DE reads the version-specific form: focus is Account/{id}/_history/{version}, and the Provenance targets the exact Observation and Account versions. The example cites version 1 of each, which both declare in meta.versionId.
  • Case point sums are no line facts. A source that stores a point sum per line divides it by the count: each line carries the points of one rendering in billing-service-points and the count in quantity.

Examples: ExampleGuideInvoiceOwnShare (three lines, each citing its contained billed copy; totals 714.60 EUR net and 716.32 EUR gross, deduction FestzuschussKasse 420.00 EUR beside them), its receivable ExampleGuideOwnShareReceivable (318.50 EUR as stored, higher than 716.32 − 420.00 = 296.32 EUR, with ExampleGuideOwnShareReceivableProvenance) and ExampleBemaLineTwoRenderings (stored point sum 20, count 2: 10 points per rendering).

Additional-cost filling (§ 28 Abs. 2 SGB V)

An additional-cost filling is two lines on the same day and tooth: a BEMA line for the fund's share and a GOZ line for the additional cost. Each line carries the marker mehrkosten-28-2 (fund-share, additional-cost), set from the pair, never from the fee code. The zero-amount offset row of the pair is not emitted.

The additional-cost invoice (type additional-cost) carries the GOZ line. Its account is the plan the source names, and no plan is made up:

  1. the additional-cost agreement plan (DentalCostPlanDE of type mkv) where one exists;
  2. otherwise the prosthetics plan, where the additional cost belongs to one (that plan then has an own-share and an additional-cost invoice);
  3. otherwise the billing case the source assigns.

Examples: ExampleMehrkostenGozAdditionalCostWithPlan, ExampleMehrkostenBemaFundShareWithPlan and their invoice ExampleGuideInvoiceAdditionalCost, whose account is the mkv plan and whose line cites a contained copy of the GOZ line as billed, marker included; the copy's partOf references ExampleMehrkostenGozAdditionalCostWithPlan.

Facts left unmapped

No Dental or Billing DE carrier exists for the following source facts. They stay open: a producer does not emit them, and this guide defines no extension for them.

  • The dunning-fee booking.
  • The dunning level of an invoice. (A dunning block has a carrier: Billing DE billing-dunning-block.)
  • The hand-over of an invoice to a billing office.