Stream: conformance
Topic: Bundle.link invariant
Ardon Toonstra (Nov 16 2020 at 12:35):
The Search spec states that servers SHALL return the parameters that were used in a search through the self link in the Bundle. The Bundle resource does not contain an invariant for this. Are there reasons why this isn't a constraint in the Bundle?
Grahame Grieve (Nov 16 2020 at 12:53):
I don't ever remember any discussion about this, so probably oversight?
Ardon Toonstra (Nov 16 2020 at 12:59):
We noticed that some vendors miss implementing this part of the Bundle. I think that an invariant in the Bundle will help. I will create a ticket if it was indeed oversight.
Jason Walonoski (Nov 16 2020 at 13:49):
Not all Bundles are search results... so that may be why there is no invariant.
Lloyd McKenzie (Nov 16 2020 at 13:50):
It can be tied to the Bundle.type being search-set
Ardon Toonstra (Nov 16 2020 at 14:01):
Something like: type = 'searchset' implies link.where(relation = 'self' and url.exists()).exists()
Ardon Toonstra (Nov 16 2020 at 14:02):
Created https://jira.hl7.org/browse/FHIR-29699
Lloyd McKenzie (Nov 16 2020 at 14:06):
I think the URL has to exist within link, so can drop and url.exists()
Last updated: Apr 12 2022 at 19:14 UTC