German Ambulatory Billing FHIR Contract (R4)
0.9.0 - release
German Ambulatory Billing FHIR Contract (R4) - Downloaded Version null See the Directory of published versions
This page tells an implementer, or a coding agent working for one, where to obtain the official German fee catalogs and how to turn them into the native FHIR resources that Billing Core and Billing DE read. It is written so that an agent can follow it step by step.
This package ships no catalog rows and no rule values (see the Terminology Policy and the Billing Rule Contract). The catalogs you acquire stay inside your own installation. Do not commit them to a public repository, and do not republish them under any canonical, including a cognovis one. This page is implementation guidance, not legal advice: check the terms of each source before you load it.
| Catalog | Issuer and source | Publication status | Classification in this package |
|---|---|---|---|
| GOZ (dental fee ordinance) | Federal ordinance, consolidated text at https://www.gesetze-im-internet.de/goz_1987/; BZÄK (https://www.bzaek.de) publishes commentary | Public law | Tier 1 |
| GOÄ (medical fee ordinance) | Federal ordinance, consolidated text at https://www.gesetze-im-internet.de/go__1982/; Bundesärztekammer (https://www.bundesaerztekammer.de) publishes commentary and analog recommendations | Public law | Tier 1 |
| BEMA (statutory dental services) | KZBV (https://www.kzbv.de) | Issuer-distributed under the issuer's terms | Tier 2 |
| BEL II (statutory dental laboratory services) | Agreed between the GKV-Spitzenverband and the VDZI; distributed by KZBV and VDZI (https://www.vdzi.net) | Issuer-distributed under the issuer's terms | Tier 2 |
| EBZ specification with the DPF finding and therapy abbreviations | KZBV, for software producers that implement the electronic dental application procedure | Issuer-distributed under the issuer's terms | Not a fee catalog; clinical and planning codes |
| BEB '97 (private dental laboratory services) | VDZI | Issuer-distributed under the issuer's terms | Unclassified; content-free here |
| EBM and the KBV key tables | KBV (https://www.kbv.de), including its distribution to certified practice software | Issuer-distributed under the issuer's terms | Tier 2 |
Only the ordinance text of GOZ and GOÄ is public law. Commentary, analog lists, and annotations by the chambers are not part of the ordinance and need their own permission. For every other catalog, the issuer's terms decide whether and how you may store and use it; you obtain it through your own membership, licence, or software certification.
For each retrieved file, record:
retrievedAt, an ISO 8601 instant);sha256:<64 lowercase hex>;producerVersion);complete, partial, or unknown.In the catalog edition of step 5 these fields go to three places. Each
BillingCatalogSource record has exactly six members: sourceUri,
sourceVersion (the edition), sourceDigest, retrievedAt, producerVersion
and completeness; the decoder refuses any other member. The effective period
becomes the manifest's publicationPeriod, and the issuer becomes
Library.publisher. Evaluation fails closed for an edition whose evidence is missing,
unadmitted, expired, incompatible or digest-mismatched (see the
Billing Rule Contract).
Load one CodeSystem per catalog and edition into your FHIR server. Its url
is the Coding.system your ChargeItems, ChargeItemDefinitions and rule
selectors use, and its version names the edition:
| Catalog | CodeSystem.url and Coding.system |
|---|---|
| GOÄ | http://fhir.de/CodeSystem/bäk/goä |
| GOZ | http://fhir.de/CodeSystem/bzaek/goz |
| BEMA | https://fhir.cognovis.de/dental/CodeSystem/bema |
| BEB '97 | https://fhir.cognovis.de/dental/CodeSystem/beb97 |
| EBM | https://fhir.kbv.de/CodeSystem/KBV_CS_EBM |
| BEL II | https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_BEL |
content: not-present
CodeSystems. Your local copy keeps the same url, adds the edition as
version, and sets content: complete (or fragment when you load only
part of the catalog).caseSensitive: true and keep each code exactly as the issuer prints
it, including inner spaces.CodeSystem.copyright and publisher as the issuer states them.Write one immutable ChargeItemDefinition per code and price interval:
url and version: a canonical under a domain you control, and a new
version whenever the price or its effective period changes. Never change a
published version in place.status: active; effectivePeriod: the interval the price applies to.code: exactly one coding with the catalog system and code from step 3.propertyGroup.priceComponent: a base component with the monetary
amount (ISO 4217 currency) whenever you know it. A base component with
only a factor (points) and no amount is a points-only price: Billing Core
treats the unit price as unknown, not zero, computes no amount from the
points, and a value-limit rule then returns needs-review with
UNIT_PRICE_UNAVAILABLE. Resolve the amount (points times point value) in
your converter when your rules depend on prices.extension https://fhir.cognovis.de/billing/StructureDefinition/billing-catalog-points
(valueDecimal) for a point-valued catalog such as BEMA, BEL II, EBM, GOÄ or
GOZ, because R4 has no native points element.The price history examples show the shape with a synthetic code system.
A catalog edition is a native Library with type library-type#asset-collection
and the identifier artifact-kind|catalog-edition
(https://fhir.cognovis.de/billing-core/sid/artifact-kind). It has:
application/json attachment, the edition manifest: schemaVersion 1,
kind billing-catalog-edition, catalogScope, publicationPeriod, and
the sources from step 2;relatedArtifact of type composed-of per member, written as exact
canonical|version: every ChargeItemDefinition of the edition and, when the
edition has one, its rule-set Library;Library.publisher naming the issuer of the source, kept separate from the
source records;source-publication-digest and member-set-digest identifiers.Do not compute the digests yourself. Build the Library with buildBillingLibrary
from the npm package @cognovis/fhir-billing-rules (Apache-2.0, published on
https://npm.cognovis.de and readable without credentials). Pass it, besides
the manifest and the member links, every ChargeItemDefinition of the edition
as a full resource in catalogDefinitions; the builder refuses an edition
without them. It writes each definition's content digest on its composed-of
entry (extension
https://fhir.cognovis.de/billing-core/extension/catalog-definition-digest),
so the member-set digest covers the prices, and it writes the identifiers.
For an edition that is not bound to Contracts, the builder does not refuse a
catalogDefinitions list that misses a linked definition; it writes that
member without a digest, and the Billing SDK refuses the edition later, when
an evaluation resolves the definition. Check that every composed-of link to
a ChargeItemDefinition carries the digest extension before you store the
edition. The
GOÄ catalog edition example shows
the general shape; it was written before the definition digests and lacks
them, so use the builder's output, not the example, as your template.
Rules and their values come from you or your rule-set author, never from this
package. Write the rule set as a JSON file that follows the JSON Schema
billing-rule-set.schema.json, shipped in @cognovis/fhir-billing-rules as
schema/billing-rule-set.schema.json:
{
"$schema": "./node_modules/@cognovis/fhir-billing-rules/schema/billing-rule-set.schema.json",
"schemaVersion": 2,
"semanticMajor": 4,
"id": "my-rule-set",
"rules": []
}
Each rule names the catalog system from step 3 in its selector. Then wrap the
payload with buildBillingLibrary as kind rule-set: a Library of type
library-type#logic-library with the identifier artifact-kind|rule-set, the
rule-set digest, the payload without $schema as its one application/json
attachment, and a required publisher that names who maintains the rules. The
example rule set shows the
carrier; its two rules are illustrations, not rules to adopt.
The Billing SDK evaluates a catalog edition or rule set only when an admission record of the tenant binds it. There is no allow-all default. The producer that imports an edition writes the record when it admits it:
Provenance whose meta.profile carries the Billing Core record marker
https://fhir.cognovis.de/billing-core/StructureDefinition/billing-admission
(a marker the SDK reads, not a published StructureDefinition);target: exactly the admitted Library;billing-admission-tenant naming the tenant;billing-admitted-artifact per admitted artifact, with kind
(catalog-edition or rule-set), canonical, version, digest, the
sourceSetDigest of a catalog edition, and the publisher of a rule set;billing-admitted-configured-rules
shards that bind each configured rule by digest.Build these records with encodeBillingAdmission from
@cognovis/fhir-billing-rules rather than by hand, and write a new record for
every new edition version. Before you store a record, check it in two steps:
decodeBillingAdmission from the same package checks its shape only; then
compare, as the Billing SDK does when it evaluates:
target with the id of the Library the record admits: the
catalog-edition Library for an edition, the rule-set Library for a
standalone rule set;decodeBillingLibrary reports for that Library: a catalog-edition
artifact's canonical, version, digest and sourceSetDigest with the
edition Library; a rule-set artifact's canonical, version and
digest with the rule-set Library, which for an edition is its rule-set
member, not the target;rule-set artifact's admitted publisher with that rule-set Library's
publisher, not the edition's; when the rule-set Library names no
publisher, the admitted rule set names none either.A record for a standalone rule set binds no catalog-edition artifact. A
record with the wrong tenant, another Library as target, a stale digest or a
different publisher decodes cleanly, and the Billing SDK then refuses the
edition or rule set for that tenant.
Set the registry for the @cognovis scope once:
npm config set @cognovis:registry https://npm.cognovis.de
npm install @cognovis/fhir-billing-rules @cognovis/fhir-billing-sdk
Check the rule set against the schema, then with the decoder of the
fhir-billing-check command from @cognovis/fhir-billing-sdk:
npx ajv-cli@5 validate --spec=draft2020 \
-s node_modules/@cognovis/fhir-billing-rules/schema/billing-rule-set.schema.json \
-d my-rule-set.json
npx fhir-billing-check evaluate --rule-set my-rule-set.json --cases /dev/null
fhir-billing-check evaluate with no cases decodes the rule set (a bare file
or the rule-set Library) and prints nothing: exit 0 when it is valid, exit 2
with the reason when it is not. The decoder is the authority; it also refuses
what the schema cannot state, such as duplicate rule ids. With synthetic cases
it prints one decision record per case, and fhir-billing-check evaluate
--bundle <file> --as-of <date> evaluates synthetic billing cases in a FHIR
Bundle against the catalog edition and rule set it holds. It admits the
supplied artifacts itself, so it does not check your admission records; check
those as step 7 describes.
Validate the converted CodeSystems, ChargeItemDefinitions and Libraries with
the official HL7 FHIR Validator against this package, offline if you need to.
Add # and the exact package version to the -ig argument to pin it. The
admission Provenance records are not part of this run, because their profile
marker is no StructureDefinition the validator can load:
java -jar validator_cli.jar -version 4.0.1 \
-ig de.cognovis.fhir.billing -tx n/a \
CodeSystem-*.json ChargeItemDefinition-*.json Library-*.json