LinuxForHealth / FHIR

The LinuxForHealth FHIR® Server and related projects
https://linuxforhealth.github.io/FHIR
Apache License 2.0
330 stars 157 forks source link

Add operationoutcomes for errors during bulkdata export #1161

Open albertwang-ibm opened 4 years ago

albertwang-ibm commented 4 years ago

We need to aligned with the updated FHIR bulkdata export spec to provide operationoutcomes for errors during the export just like what we did for bulkdata import. The javabatch job needs to generate ndjson file(s) for the errors and push to COS and bulkdata operation need to add them to the "error" part of the response.

{ "transactionTime": "[instant]", "request" : "[base]/Patient/$export?_type=Patient,Observation", "requiresAccessToken" : true, "output" : [{ "type" : "Patient", "url" : "http://serverpath2/patient_file_1.ndjson" },{ "type" : "Patient", "url" : "http://serverpath2/patient_file_2.ndjson" },{ "type" : "Observation", "url" : "http://serverpath2/observation_file_1.ndjson" }], "error" : [{ "type" : "OperationOutcome", "url" : "http://serverpath2/err_file_1.ndjson" }], "extension":{"http://myserver.example.org/extra-property": true} }

prb112 commented 3 years ago

Team: please confirm that this is implemented and/if not work it.