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

Confirm each `response XML Transmission Reference` #230

Closed zdavatz closed 3 years ago

zdavatz commented 3 years ago
  1. We need to confirm each response XML Transmission Reference
  2. See chapter 2.4.4. https://github.com/zdavatz/amiko-osx/files/6918414/B_ClientSchnittstellen_Leistungsabrechnung-V3.9-de.pdf
  3. With Curl we can confirm as following: curl -ks -X PUT --header "Content-Type: application/json" -d '{"status":"CONFIRMED"}' https://212.51.146.241:8100/md/ela/downloads/9c0e8433-f5e9f20/status --header "X-CLIENT-ID: 1000007582" --header "Content-Type: multipart/form-data" --header "Authorization: Basic XXXX"
  4. The response XML Transmission Reference has to be taken from 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"
  5. Important: the invoice XML Transmission Reference the application receives after sending the invoice XML is not the same like the response XML Transmission Reference you get when accessing md/ela/downloads?limit=500.
  6. To confirm a response XML Transmission Reference you need the response XML Transmission Reference from md/ela/downloads?limit=500. The doctors GLN is found in the invoice Response XML.
  7. To be able to associate the response XML Transmission Reference you need to only download the files that belong to the doctor's GLN
  8. The doctor's GLN is in the Tag to -> <invoice:transport ... to="2099988889941">
  9. Once confirmed, the response XML Transmission Reference is gone from the Medidata Server, you can no longer find it with curl -kvL -O --resolve --location --request GET "https://212.51.146.241:8100/md/ela/downloads/7c81e183-26e6-47c4-9134-a36dd01494c6" --header "X-CLIENT-ID: 1000007582" --header "Content-Type: multipart/form-data" --header "Authorization: Basic XXXX"