FHIR Chat · equivalent bundles? · conformance

Stream: conformance

Topic: equivalent bundles?


view this post on Zulip 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:

  1. different id's within the bundles should not matter, also if referenced via type\id or uuid should not matter
  2. different positions of resources within the bundle should be ignored
  3. 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 ?

view this post on Zulip 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.

view this post on Zulip René Spronk (Dec 14 2021 at 12:59):

For other bundle types, this boils down to a discussion of equivalence between 2 resources.

view this post on Zulip 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)

view this post on Zulip Jens Villadsen (Dec 14 2021 at 19:02):

interesting thought

view this post on Zulip 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