FHIR Chat · structuredefinition comparisons · implementers

Stream: implementers

Topic: structuredefinition comparisons


view this post on Zulip Bryn Rhodes (Mar 10 2016 at 22:48):

Is anyone aware of existing tooling to compare structure definitions? i.e. the input is two structure definitions and the output is the differences between them?

view this post on Zulip Jason Walonoski (Mar 11 2016 at 12:58):

Bryn, I have written tools in Ruby to do this as part of Crucible.

view this post on Zulip Jason Walonoski (Mar 11 2016 at 13:00):

See this unit test which compares every single profile in the DSTU2 build tools against every other (for the same resourceType). Most of them FAIL (meaning the profiles are incompatible, the comparison successfully completes) so the tests are set to skip by default. If you want to change that behavior, comment out line 43.

view this post on Zulip Jason Walonoski (Mar 11 2016 at 13:01):

The code that actually does the comparison is here: https://github.com/fhir-crucible/fhir_dstu2_models/blob/master/lib/models/profiles/structuredefinition.rb#L235

view this post on Zulip Grahame Grieve (Mar 11 2016 at 21:05):

Why are they incompatible? How did you define that - from which perspective?

view this post on Zulip Jason Walonoski (Mar 11 2016 at 21:17):

My definition is: if you cannot have any instance of a Resource that satisfies both profiles then they are not compatible.

view this post on Zulip Jason Walonoski (Mar 11 2016 at 21:19):

If one sets cardinality of a field to 0..0 and another to 1..1 then they are incompatible, for example. If both set different required bindings, then they are incompatible. etc.

view this post on Zulip Grahame Grieve (Mar 11 2016 at 21:27):

So my comparison at http://hl7.org/implement/standards/fhir/daf-cqi.html finds daf and qicore almost completely compatible. Do you think my comparison is wrong?

view this post on Zulip Bryn Rhodes (Mar 11 2016 at 21:28):

@Jason Walonoski thanks!

view this post on Zulip Jason Walonoski (Mar 11 2016 at 21:37):

@Grahame Grieve Do I think your comparison is wrong? I doubt it, but my reports output on a resource level (e.g. Patient profiles), rather than at an implementation guide level (e.g. DAF or QICore), so I'd have to run everything and look at the output to compare mine to yours or change the way I output results.

view this post on Zulip Grahame Grieve (Mar 11 2016 at 22:37):

Well, it would be good to cross-compare

view this post on Zulip Bryn Rhodes (Mar 11 2016 at 22:38):

What I'm actually looking for is the difference between the DSTU2 resources and the current state.

view this post on Zulip Grahame Grieve (Mar 11 2016 at 22:43):

there's a comparison link at the foot of every page

view this post on Zulip Grahame Grieve (Mar 11 2016 at 22:43):

in the current build

view this post on Zulip Grahame Grieve (Mar 11 2016 at 22:44):

though I see the link is wrong. I'll haev to fix it


Last updated: Apr 12 2022 at 19:14 UTC