Stream: implementers
Topic: Compare resources
Timo Rosenblatt (Mar 31 2021 at 07:32):
Hello,
is there a good tool to compare resources and display the differences?
I've got several files from different organizations exporting the same data, but in different order.
This renders comparison tools like WinMerge pretty much useless.
Is there a similar tool for FHIR resources?
Greg A (Mar 31 2021 at 12:25):
Timo Rosenblatt said:
Hello,
is there a good tool to compare resources and display the differences?I've got several files from different organizations exporting the same data, but in different order.
This renders comparison tools like WinMerge pretty much useless.Is there a similar tool for FHIR resources?
Would something like this help? http://www.jsondiff.com/
Timo Rosenblatt (Mar 31 2021 at 13:52):
No, unfortunately, we got all resources in xml, but thanks
Rik Smithies (Mar 31 2021 at 14:38):
xml element order in FHIR is fixed, so order shouldn't be a problem within a resource. Or is this multiple resources? Or repeating elements? You could always sort the data and compare the output. Some "differs" like BeyondCompare let you run a script as part of the diff, so a bit of xslt to selectively sort/canonicalise some things may help.
Greg A (Mar 31 2021 at 15:04):
Timo Rosenblatt said:
No, unfortunately, we got all resources in xml, but thanks
There are similar tools for XML ( ie., https://extendsclass.com/xml-diff.html )
Simone Heckmann (Apr 01 2021 at 15:14):
@Timo Rosenblatt Guessing from your eMail-Adress, you're probably dealing with a document type Bundle where the entries are in arbitrary order?
Not that this helps with the issue at hand, but if you have any questions regarding the specification itself (eRezept, I'm guessing...?), please join the German community on https://chat.fhir.org/#narrow/stream/179183-german-.28d-a-ch.29
Timo Rosenblatt (Apr 06 2021 at 06:04):
Great - thanks for the link.
And yes - it's been about an E-Rezept Bundle with entries in a different order compared to the old examples on GitHub.
Seems to be better after the latest Titus update, though
Last updated: Apr 12 2022 at 19:14 UTC