Generating Bundles without conditional references #1332
-
Synthea by default generates resources with conditional references to Locations, Organizations, and Practitioners.
If you turn off transaction bundles it generates them as logical references instead.
Is there a way to get it to generate them as regular literal/relative references? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 4 replies
-
You mean like this? "managingOrganization": [ {
"reference": "Organization/05cc5056-7af4-3afb-9a5a-d7a1c23a2509",
"display": "KINDRED AT HOME"
} ] No, there is no configuration setting to support this at this time. Assuming you are loading the data into a FHIR server, that would require the server allow you to set the resource ID when you create it, which is atypical behavior. See https://hl7.org/fhir/R4/http.html#create
In the transaction, the server should rewrite those conditional references to actual identifiers, as described here https://hl7.org/fhir/R4/http.html#trules. If you have a different use-case that needs references of this variety, the FHIR exporters would require modification. |
Beta Was this translation helpful? Give feedback.
-
Otherwise you'd have to use PUT operations in the supplemental hospitalinformation/practitionerinformation bundles so the resource IDs would match if they were applied to a FHIR server.. I think. |
Beta Was this translation helpful? Give feedback.
-
Churning it in my head a bit, maybe that's the most general/generic option that could be useful for other use cases and still be fully FHIR compliant. |
Beta Was this translation helpful? Give feedback.
-
When producing .ndjson files, Synthea generates conditional references to Locations, Organizations, and Practitioners. Searching through the FHIR specs, it seems that conditional references are only allowed within Bundles. Adding an option to generate literal references instead of conditional references would allow to produce valid .ndjson files. |
Beta Was this translation helpful? Give feedback.
Created issue #1333