ahdis / fhir-mapping-tutorial

13 stars 12 forks source link

CSV transform #23

Closed Ayinks closed 1 year ago

Ayinks commented 3 years ago

Hello, I followed this tutorial to try a transformation from csv to fhir. I got the mapping of the csv done and after executing "POST {{host}}/r4/StructureMap/$transform?source=http://hl7.org/fhir/StructureMap/csv-transform", with my csv file as the body, I got the following error as operation outcome:

HTTP/1.1 500 Server Error Date: Mon, 01 Mar 2021 09:31:25 GMT X-Powered-By: HAPI FHIR 5.3.0-SNAPSHOT/1a2403400b/2021-02-15 REST Server (FHIR Server; FHIR 4.0.1/R4) X-Request-ID: 1BWrd2QshcTkMt45 Content-Type: application/fhir+xml;charset=utf-8 Transfer-Encoding: chunked Via: 1.1 google Alt-Svc: clear Connection: close

<OperationOutcome xmlns="http://hl7.org/fhir">

Could you please offer any guide on how to resolve this? I have attached my csv file, mapping file, result of structure map: csvmap.pdf csvtransform.txt structuremap result.pdf

Thank you

oliveregger commented 3 years ago

which server are you using? hapi-fhir server has not the capability to parse directly csv files, if you provide a PR for it, I'm happy to test it out. see also discussion on https://chat.fhir.org/#narrow/stream/179166-implementers/topic/StructureMap.20for.20FHIR.20to.2Ffrom.20CSV

Ayinks commented 3 years ago

which server are you using? hapi-fhir server has not the capability to parse directly csv files, if you provide a PR for it, I'm happy to test it out. see also discussion on https://chat.fhir.org/#narrow/stream/179166-implementers/topic/StructureMap.20for.20FHIR.20to.2Ffrom.20CSV

Thank you so much for your response. I used hapi fhir server. I will try it using using vonk server and see the outcome. I appreciate the link you sent too. It is helpful.