alex-therapeutics / diga-api-client

Production-ready java library for DiGA (Digital Health Application) manufacturers to integrate with DiGA API endpoints for code validation and billing.
https://github.com/alex-therapeutics/diga-api-client
Apache License 2.0
32 stars 13 forks source link

Create and send valid billing requests (XRechnung) #2

Closed fongie closed 3 years ago

fongie commented 3 years ago
fongie commented 3 years ago

What we know so far:

Resources:

fongie commented 3 years ago

there is an xsd by itplr-kosit here https://github.com/itplr-kosit/xrechnung-visualization/blob/master/src/xsd/xrechnung-semantic-model.xsd

there are test invoices at itplr-kosit too, here https://github.com/itplr-kosit/xrechnung-testsuite/tree/master/src/test/business-cases/standard

test invoices can be sent using process code TDRE0

the gkv documentation refers to "standard" tests for xrechnungs such as the validator. I think the best

fongie commented 3 years ago

according to itpl-kosit it seems like you can send xrechnung both in UN/CEFACT - an european comittee for standardization (or something) - or in UBL - universal business language

bitmarck's example is in UN/CEFACT but UBL certainly looks easier to read. Also, the UBL invoices seem to be using the field names that are in the gkv documentation (InvoiceLine for example - not present in the UN/CEFACT version).

not sure which one to use

fongie commented 3 years ago

more english info here https://invoice-portal.de/en/xrechnung-en/

fongie commented 3 years ago

there is a GS1 standard containing xsds (!) which is based on UN/CEFACT CII - like xrechnung. here https://www.gs1.org/standards/gs1-uncefact-xml-profiles/gs1-un-cefact-xml-cross-industry-invoice/2012 atleast it will make it easier to understand what the non-diga specific elements mean, the pdf has nice descriptions

fongie commented 3 years ago

cross industry invoice schemas referred to in bitmarcks xrechnung bill can be found here! https://github.com/ConnectingEurope/eInvoicing-EN16931/tree/master/cii/schema/D16B%20SCRDM%20(Subset)/coupled%20clm/CII/uncefact/data/standard