PAID, also known as "Pflegeabrechnung in Deutschland", is a library written in typescript for care billing with payers in Germany ("Pflegekassen" and "Krankenkassen") according to § 105 SGB XI and § 302 SGB V.
npm install paid-care
First we need to download & parse some data:
The data should be persisted in a file or localStorage
. It can potentially change daily but should
at least be fetched once a quarter of a year.
import fetchInstitutionLists from "kostentraeger/fetcher"
import { serializeInstitutionLists } from "kostentraeger/json_serializer"
const institutionListsParseResult = await fetchInstitutionLists()
// each item in the kostentraegerParseResult array contains fileName and warnings in case you want to log them
const stringifiedInstitutionLists = serializeInstitutionLists(institutionListsParseResult.map(it => it.institutionList))
import { InstitutionListsIndex } from "kostentraeger/index"
import { deserializeInstitutionLists } from "kostentraeger/json_serializer"
const institutionLists = deserializeInstitutionLists(stringifiedInstitutionLists)
const index = new InstitutionListsIndex(institutionLists)
TODO
npm install
npm run test
npm run build