项目作者: coop-care

项目描述 :
PAID is library for care billing with payers in Germany according to § 105 SGB XI and § 302 SGB V. The project name is an acronym and stands for "Pflegeabrechnung in Deutschland".
高级语言: TypeScript
项目地址: git://github.com/coop-care/paid.git
创建时间: 2020-12-15T16:59:17Z
项目社区:https://github.com/coop-care/paid

开源协议:GNU Lesser General Public License v3.0

下载


PAID

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.

Include PAID library in your project

Install

  1. npm install paid-care

Usage

1. Get data, serialize

First we need to download & parse some data:

  • Institution data (who pays the receipts, where to send the receipts to and how, to whom to encrypt the receipts, …)
  • Public keys of institutions to encrypt to

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.

  1. import fetchInstitutionLists from "kostentraeger/fetcher"
  2. import { serializeInstitutionLists } from "kostentraeger/json_serializer"
  3. const institutionListsParseResult = await fetchInstitutionLists()
  4. // each item in the kostentraegerParseResult array contains fileName and warnings in case you want to log them
  5. const stringifiedInstitutionLists = serializeInstitutionLists(institutionListsParseResult.map(it => it.institutionList))

2. deserialize, use

  1. import { InstitutionListsIndex } from "kostentraeger/index"
  2. import { deserializeInstitutionLists } from "kostentraeger/json_serializer"
  3. const institutionLists = deserializeInstitutionLists(stringifiedInstitutionLists)
  4. const index = new InstitutionListsIndex(institutionLists)

3. Send Receipts

TODO

Build PAID library

Install

  1. npm install

Run tests

  1. npm run test

Build

  1. npm run build