FHIR Bulk Data and ndjson
I am testing asynchronous Bulk Data retrieve with a large EHR vendor. When I retrieve the bulk data, they are returning ndjson (CONTENT-TYPE of "application/fhir+ndjson; charset=utf-8"). If I attempt to process that content using JSON functions - I get
ERROR #5035: General exception Name 'Parsing error' Code '3' Data ''
For example, the following generates the error
The error makes sense in that ndjson is not a valid json format (I assume at least).
But how then should ndjson be parsed in COS? I was going to use $listfromstring with a newline delimiter to separate out the resources, and then iterate through the list. Before I did so I thought I'd reach out to see how others have handled this, or if anyone knew if ISC would be adding special support for ndjson.