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

Handle billing for insurance companies without postal address #12

Closed fongie closed 3 years ago

fongie commented 3 years ago

Problem

The billing validator (XRechnung, not the diga specific part, but CII part) does not accept bills without the buyer's postal address. However, there is at least one (BH, BKK Herkules) and probably more companies in the mapping file (Krankenkasse....DiGA.xml) which do not have postal information. How do we handle those?

Solution

?

fongie commented 3 years ago

According to Bitmarck's DiGA FAQ, they state (google translated):

For the use of the XRechnung in the context of DiGA a modified specification of XRechnung developed (DiGA-XRechnung). The route ID as well as the address data are technically at DiGA not required because addressing is based solely on the IK of the Invoice recipient takes place. However, the corresponding fields must nevertheless according to the standard X-invoice format also for the Billing of a DiGA can be assigned (dummy) values.

Route id is "Leitweg-ID".

This means that in cases where there is no postal address then that is fine but we must fill in dummy values there =)

fongie commented 3 years ago

so solution is: when creating the invoice ( in the xml writer class), if the insurance info postal fields are null, fill in some sensible dummy values instead and send the invoice anyway