coop-care / paid

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".
GNU Lesser General Public License v3.0
10 stars 3 forks source link

Try to get rid of FTAM #33

Closed westnordost closed 3 years ago

westnordost commented 3 years ago

According to the kostentraeger.json, there are a few institutions that do not accept Email but only FTAM.

Also, on NPM, I could not find a single library for handling communication with FTAM. Implementing the FTAM protocol ourselves is likely pretty much effort.

This is a problem, because this library will not be fully functional until it can send receipts for any insuree.

I did a little search in kostentraeger.json and found that only 8 institutions, all from the AOK, only accept FTAM. I followed the links for one and for that one, it would work without:

180295017 (AOK Nordost Region MVP)
  |
  | Kostenträger  
  |
  v
180295017 (AOK Nordost Region MVP)
  |
  | Datenannahmestelle
  |
  v
100395611 (AOK Nordost Region MVP)
this one only accepts FTAM: ftam.gkvi.de:5000
  |
  | Datenannahmestelle ohne Entschlüsselungsbefugnis (for Mecklenburg-Vorpommern)
  |
  v
100295017 (gkv informatik)
this one accepts Email: da@dta.aok.de, FTAM: ftam.gkvi.de:5000

So, interesting that both point to the same FTAM... also interesting that the email address is from aok.de, not from gkv informatik... So, if we ignore that 100395611 accepts data and select 100295017 to send data to (but encrypt it for 100395611), we could use email in this case.

Maybe this is possible for all 8 institutions that only accept FTAM. If yes, FTAM could be removed completely.

Implementation

westnordost commented 3 years ago

Looks good! The only warnings generated are for Mobil Krankenkasse, for which there is already a ticket.

  IK 101520078 (Mobil Krankenkasse) links to IK 101520078 for data but neither that IK nor an IK it links to accepts SMTP (email)
  IK 101520078 (Mobil Krankenkasse) links to IK 101520078 for data but neither that IK nor an IK it links to accepts SMTP (email)
  IK 101520078 (Mobil Krankenkasse) links to IK 101520078 for data but neither that IK nor an IK it links to accepts SMTP (email)
  IK 101520078 (Mobil Krankenkasse) links to IK 101520078 for data but neither that IK nor an IK it links to accepts SMTP (email)
  IK 101520078 (Mobil Krankenkasse) links to IK 101520078 for data but neither that IK nor an IK it links to accepts SMTP (email)
  IK 101520078 (Mobil Krankenkasse) links to IK 101520078 for data but neither that IK nor an IK it links to accepts SMTP (email)
  IK 103524394 (VIACTIV Krankenkasse Ost) links to IK 102193234 for data but neither that IK nor an IK it links to accepts SMTP (email)
  IK 103524407 (VIACTIV Krankenkasse) links to IK 102193234 for data but neither that IK nor an IK it links to accepts SMTP (email)
  IK 104526376 (VIACTIV Krankenkasse) links to IK 102193234 for data but neither that IK nor an IK it links to accepts SMTP (email)
  IK 104529255 (VIACTIV Krankenkasse Ost) links to IK 102193234 for data but neither that IK nor an IK it links to accepts SMTP (email)