Stream: conformance
Topic: equivalent bundles?
Oliver Egger (Dec 14 2021 at 12:50):
we are looking into how to compare if (document) bundles are equivalent, but don't have to be equal:
- different id's within the bundles should not matter, also if referenced via type\id or uuid should not matter
- different positions of resources within the bundle should be ignored
- narrative text, meta elements, extensions to narrative, comments should be ignored
is there somebody who has already done work in this area and has some tips? or even java code? has the java validator some code which could help with that @Grahame Grieve and @Mark Iantorno ?
René Spronk (Dec 14 2021 at 12:56):
Interesting challenge, I'm not sure you can ignore text however, as that's an integral part of a FHIR Document.
René Spronk (Dec 14 2021 at 12:59):
For other bundle types, this boils down to a discussion of equivalence between 2 resources.
Grahame Grieve (Dec 14 2021 at 19:01):
I haven't done anything like that in the java code. It would be useful though - a comparison framework built on base that takes an advisor to check whether to compare elementsm and if so, how to check them (order, id, extensions, everything, treat one as a pattern)
Jens Villadsen (Dec 14 2021 at 19:02):
interesting thought
John Moehrke (Dec 14 2021 at 22:08):
very useful, but also highly dependent on the policy definition of what equivalent looks like. not sure your stated policy would be universal.
Last updated: Apr 12 2022 at 19:14 UTC