zdavatz / amiko-osx

AmiKo Desitin for AmiKo OS X
https://apps.apple.com/ch/app/amiko-desitin/id708142753?mt=12
GNU General Public License v3.0
3 stars 2 forks source link

Implement pickup of `invoice XML status` and local saving of `invoice response XML` from the insurance company (via Medidata) #214

Closed zdavatz closed 3 years ago

zdavatz commented 3 years ago

Important: The transmission reference for the invoice XML and the transmission reference for the invoice response XML can not be linked by Medidata. We have to do this via the GLN from the physician. The transmission reference is always only valid either for the invoice XML or the invoice response XML.

  1. The Response for each invoice has to be picked up from Medidata. The response XML is reference by the response XML transmissionReference. Each invoice XML transmissionReference has to saved to the patient for which the XML was sent so we can check the status of the invoice XML. The status of the invoice XML can be DONE, PROCESSING or ERROR.
  2. The status of the invoice XML has to be visualised in the AmiKo App in a separate Window (Medidata Antworten), see: https://github.com/zdavatz/amiko-osx/issues/229
  3. After sending the invoice XML and receiving the invoice XML Transmission Reference and waiting for about 45 sec, you get the list of all Replies from the insurance company with the response XML Transmission References: curl -kvL -O --resolve --location --request GET "https://212.51.146.241:8100/md/ela/downloads?limit=500" --header "X-CLIENT-ID: 1000007582" --header "Content-Type: multipart/form-data" --header "Authorization: Basic XXX" - see chapter 2.4.2. The response XML Transmission References are not connected to the invoice XML TransmissionReference. The invoice XML TransmissionReference is related to the invoice to send to the insurance company via Medidata. The response XML Transmission References is related to answer you receive from the insurance company.
  4. The invoice XML Transmission Reference and the response XML Transmission Reference have to be matched via the GLN of the doctor. This is a sample of Response XML c91d89fd-7f55-4a6f-8ff4-c5fa4b3ac710.txt
  5. The doctor's GLN is in the Tag to -> <invoice:transport ... to="2099988889941"> in the invoice Response XML.
  6. Once the detailed response has been downloaded and saved locally (see https://github.com/zdavatz/amiko-osx/issues/231), we can delete the original response as shown here: https://github.com/zdavatz/amiko-osx/issues/230
  7. The Window Medidata Antworten will show a) the status for each invoice XML that has been sent to Medidata. b) when you click on the .amk file name in the list open the XML response from the insurance company.
zdavatz commented 3 years ago

Somehow I can not yet pick up the Medidata responses: medidata_response_not_working