Modifying .reference elements in Patient record output #1331
-
We are attempting to upload a large number of Synthea patient data into a FHIR server; however, we have discovered that all reference url's in the output are invalid and as a result are rejected by the FHIR profile. Solution is to either remove all .reference elements from the .json files or somehow have the program generate valid reference url's. Worst-case scenario would be to modify the core code to suppress the .reference elements. Can someone advise if...
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
We regularly test this output with the HAPI server, so it would be useful if you can go into the specifics of your situation. Synthea has a number of ways you can alter the FHIR output, specifically (abridged # exporters that use XML or JSON can enable or disable 'pretty printing'
exporter.pretty_print = true
exporter.fhir.transaction_bundle = true
# using bulk_data=true will ignore exporter.pretty_print
exporter.fhir.bulk_data = false
|
Beta Was this translation helpful? Give feedback.
-
Attached is a .json with generated patient and encounter data. When trying to upload to my Smile FHIR instance all references generate errors...
When .reference elements are removed the remaining data is uploaded successfully. |
Beta Was this translation helpful? Give feedback.
Did you load the
hospitalInformation*.json
andpractitionerInformation*.json
files first?Those two files contain the shared dependencies (Organization, Location, Practitioner) that I described above.