FHIR Billing SDK

Evaluates FHIR billing Accounts and charges against admitted Billing Core rule sets through the Cognovis FHIR SDK. All SDKs.

License: Apache-2.0. Licensor: cognovis GmbH.

Install

.npmrc
@cognovis:registry=https://npm.cognovis.de
npm install @cognovis/fhir-billing-sdk

Worked example

Evaluate synthetic cases against one rule set

rule-set.json
{
  "schemaVersion": 2,
  "semanticMajor": 4,
  "id": "example-rules",
  "rules": [
    {
      "id": "at-most-one-cleaning",
      "class": "quantity-limit",
      "mustUnderstand": true,
      "effect": "reject",
      "priority": 1,
      "parameters": {
        "selector": { "system": "https://example.invalid/CodeSystem/fee", "codes": ["CLEAN"] },
        "maximum": 1
      }
    }
  ]
}
cases.jsonl
{"id":"one-cleaning","asOf":"2026-11-06","lines":[{"id":"l1","code":{"system":"https://example.invalid/CodeSystem/fee","code":"CLEAN"},"quantity":1,"unitPrice":{"value":"20.00","currency":"EUR"}}],"facts":{}}
{"id":"two-cleanings","asOf":"2026-11-06","lines":[{"id":"l1","code":{"system":"https://example.invalid/CodeSystem/fee","code":"CLEAN"},"quantity":2,"unitPrice":{"value":"20.00","currency":"EUR"}}],"facts":{}}
npx fhir-billing-check evaluate --rule-set rule-set.json --cases cases.jsonl

Dependencies

PackageRange
@cognovis/fhir-billing-engine^0.43.0
@cognovis/fhir-billing-rules^0.43.0
@cognovis/fhir-billing-types^0.43.0

Peer dependencies

PackageRange
@cognovis/fhir-sdk^0.35.0 || ^0.34.0 || ^0.33.0 || ^0.32.0 || ^0.31.0 || ^0.30.0 || ^0.28.0 || ^0.27.0 || ^0.24.0 || ^0.23.3 || ^0.15.12 || ^0.16.1 || ^0.17.2 || ^0.18.0 || ^0.19.0 || ^0.20.0 || ^0.21.0 || ^0.22.0

Entry points

Notice

FHIR Billing SDK
Copyright 2026 cognovis GmbH
Licensed under the Apache License, Version 2.0.

README

The README below is the one published in @cognovis/fhir-billing-sdk 0.51.0. @cognovis/fhir-billing-sdk installs without a token: https://npm.cognovis.de serves the @cognovis scope anonymously, and the .npmrc scope line above is all an install needs, whatever the README says about credentials.

@cognovis/fhir-billing-sdk

Billing SDK of the cognovis Health Platform. It evaluates FHIR R4 billing Accounts and prospective charges against admitted Billing Core rule sets, reads its evidence through @cognovis/fhir-sdk, and ships the fhir-billing-check command for standalone evaluation and comparison.

The rule contract and the reference engine are the separate Billing Core packages @cognovis/fhir-billing-types, @cognovis/fhir-billing-rules and @cognovis/fhir-billing-engine from cognovis/fhir-billing-core; this package depends on their published releases.

npm install @cognovis/fhir-billing-sdk @cognovis/fhir-sdk

The operations, their inputs, failure explanations and cost model are described in the Billing SDK guide, which ships in the package as docs/guide.md.

Source and problem reports

The package ships its TypeScript source in src/. The source maps in dist/ resolve to those files, so a debugger and go-to-definition open the original source. The repository the package is built from is not public.

Report a problem by email to info@cognovis.de. Name the package version and include the input that shows the problem, with synthetic data only.

License

Apache License 2.0; see LICENSE and NOTICE. The license applies only to cognovis-authored material. Referenced FHIR specifications, packages, terminology, tariff catalogs and trademarks keep their own terms; no external tariff catalog is redistributed here.