FHIR Chat · reference to binary in bundle · implementers

Stream: implementers

Topic: reference to binary in bundle


view this post on Zulip Lauri Karppinen (Oct 16 2018 at 05:30):

Hi. I have a bundle where i have patient, observations, device and binary. I just implemented binary resource of pdf and realized that server does not accept reference from observation to binary. If I understood correctly: "Invalid reference found at path 'Bundle.entry.resource.related.target'. Resource type 'Binary' is not valid for this path". I'm using: http://hapi.fhir.org/baseDstu3/ for testing my code. I'm able to post binary alone and inside bundle if I delete the reference to it. So my question is why I can't have reference from observation to binary? Did I completely misunderstood something? Thanks!

view this post on Zulip Lloyd McKenzie (Oct 16 2018 at 05:36):

In STU3, you can point to a Binary using the valueAttachment element. (The URL goes in valueAttachment.url). So your "related.target" would point to another Observation which would have a value of the Binary. Or perhaps the Binary would be the value of your current Observation or one of its components - if the Binary were something that was not interpretable except as part of the overall observation.

view this post on Zulip Lauri Karppinen (Oct 16 2018 at 05:49):

thanks! I try to figure this out.


Last updated: Apr 12 2022 at 19:14 UTC