Stream: shorthand
Topic: Binary reference
Etienne Cantineau (Jun 29 2020 at 09:02):
Hello, i have a serviceRequest resource with a reference to a binary file
- contained = annexSR2
- supportingInfo = Reference(annexSR2)
I get an error from the publisher: dom-3 telling me it needs a #. Indeed instead of getting in reference #annexSR2, sushi generates Binary/annexSR2.
Any idea how to solve that?
Nick Freiter (Jun 29 2020 at 11:59):
Looks like SUSHI does not correctly check for when a Reference
is to a resource that is contained. Until we fix that, you can do something like the following as a workaround:
* contained = annexSR2
* supportingInfo.reference = "#annexSR2"
I know it isn't ideal, since then if you change the id
of annexSR2
, you have to remember to update it in multiple places, but I think this is the best way to do it until we fix Reference
s to contained resources.
Nick Freiter (Jun 29 2020 at 12:03):
I made an issue to track this here: https://github.com/FHIR/sushi/issues/508
Last updated: Apr 12 2022 at 19:14 UTC