Stream: implementers
Topic: Validator with Bundle entries
Eli-Jean Leyssens (Oct 07 2021 at 11:50):
I have a Bundle of type "message" with two entries. The first entry has a MessageHeader resource and the second entry has a DiagnosticReport resource. The Validator complains however:
Warning @ Bundle.entry[2] (line 44, col7) : Entry 'urn:uuid:5dacf442-dcba-4cd6-bbb6-82aca386d040' isn't reachable by traversing from first Bundle entry
The urn:uuid:5dacf442-dcba-4cd6-bbb6-82aca386d040 is the entry with the DiagnosticReport resource.
Do I have to structure this differently? Do I somehow have to add a reference to the DiagnosticReport resource in the MessageHeader or...?
Eli-Jean Leyssens (Oct 07 2021 at 13:28):
To answer my own question (just in case somebody runs into the same problem):
You need to add references to the resources of all the entries after the MessageHeader entry to the focus of the MessageHeader. So, in my case I needed to add a reference to the DiagnosticReport resource in the second entry to the focus of the MessageHeader.
Lloyd McKenzie (Oct 07 2021 at 13:28):
Yes, you absolutely must reference the DiagnosticReport from the MessageHeader. Every entry in your message must be reachable by traversing from the MessageHeader, though it doesn't have to be a direct connection. For example, if MessageHeader points to DiagnosticReport, DiagnosticReport points to Patient and Patient points to Organization, then you'd have met the requirement for all 3 resources. Reverse connections are also ok. So if a Provenance points to the DiagnosticReport, that still counts. Something sitting all by itself that isn't reachable when you traverse all the relationships is an error
Last updated: Apr 12 2022 at 19:14 UTC