FHIR Chat · Profile Diffing Tool · IG creation

Stream: IG creation

Topic: Profile Diffing Tool


view this post on Zulip Lisa Nelson (Jul 09 2020 at 14:10):

@Grahame Grieve I recall you had once showed during the IG Creation Training course (in Atlanta or San Antonio--can't recall where) a tool for diffing two profiles to see where they are not the same. Can you remind me where that tool lives and if any further developments have been made or are planned for this capability. I'm especially interested in being able to compare two profiles on the same resource, then comparing two versions of the same profile (a newer version to a prior version) to easily see what has changed.

view this post on Zulip Grahame Grieve (Jul 09 2020 at 20:46):

yes I have invested in it significantly. It's still mainly available as a command line tool as part of the validator, though we are working on that now

view this post on Zulip Grahame Grieve (Jul 09 2020 at 20:49):

java -jar org.hl7.fhir.validator.jar  -version 4.0 -compare -dest c:\temp\compare -left http://hl7.org/fhir/uv/ipa/CapabilityStatement/ipa-server -leftName IPA -right http://hl7.org/fhir/us/core/CapabilityStatement/us-core-server -rightName USCore -ig hl7.fhir.uv.ipa#current -ig hl7.fhir.us.core

view this post on Zulip May Terry (Jan 13 2021 at 02:50):

@Grahame Grieve - do the -left and -right parameters support static resources in a directory, or does it have to be URLs? Reason is that I've tried running this with validator_cli.jar and it wasn't able to find the resource files. For example, this generates an error: java -jar validator_cli.jar -version 4.0 -compare -dest . -left StructureDefinition-mcode-cancer-patient-STU1.json -leftName CancerPatientSTU1 -right StructureDefinition-mcode-cancer-patient-STU2.json -rightName CancerPatientSTU2 -ig hl7.fhir.us.mcode#current -ig hl7.fhir.us.core of file not found. And I have both the validator jar and the resource files to compare in the same directory.

view this post on Zulip May Terry (Jan 13 2021 at 03:48):

Also, is there any documentation on doing the profile diff? I don't see it in https://confluence.hl7.org/display/FHIR/Using+the+FHIR+Validator

view this post on Zulip Grahame Grieve (Jan 14 2021 at 05:58):

I did some doco somewhere... don't remember where though

view this post on Zulip Grahame Grieve (Jan 14 2021 at 05:59):

but left and right are always URLs. it's the -ig parameter that would specify the file names to load them from

view this post on Zulip Jose Costa Teixeira (Jan 14 2021 at 09:04):

Grahame Grieve said:

I did some doco somewhere... don't remember where though

was it this presentation?
image.png

view this post on Zulip Jose Costa Teixeira (Jan 14 2021 at 09:05):

this was the FHIR IG training before the Atlanta WGM


Last updated: Apr 12 2022 at 19:14 UTC