FHIR Chat · rendering 'intermediate' tree views · IG creation

Stream: IG creation

Topic: rendering 'intermediate' tree views


view this post on Zulip Eric Haas (Apr 19 2018 at 16:07):

If create profile 'Foo' based on a US-Core Profile would it be possible to create fragments to show the combined differential tree view of Foo + USCore in addition to the Foo differential and Snapshot? Here is an example wher e that would be helpful... https://argonautproject.github.io/clinicalnotes/StructureDefinition-example-dr.html#sd-1-1formal-views-of-profile-content

view this post on Zulip Eric Haas (Apr 19 2018 at 16:09):

by possible I really mean would it be really challenging and painful to do this.

view this post on Zulip Michel Rutten (Apr 19 2018 at 16:23):

If I understand correctly, you would like to merge the differential constraints from separate layered profiles, e.g. combine diff constraints from base profile with diff constraints from derived profile?
Maybe you can use a trick. Suppose profile C constrains profile B, and profile B constraints profile A.
1) Generate snapshot component for the profile C, derived from profile B
2) Replace the original differential component with the generated snapshot
3) Hack the StructureDefinition.base, change from B url to A url
4) Re-open the hacked profile in Forge
5) Forge will now recalculate the diff with respect to the new base (A)
6) In effect, the re-generated diff now contains all merged constraints from profile B & C with respect to profile A.
Not sure this works, but I think Simone Heckman has also discovered (and used) this hack a while ago.

view this post on Zulip Eric Haas (Apr 19 2018 at 16:35):

Yes that is an option (essentially manually constructing the intermediate diff) . Its an extra step in publishing two two profiles to show a step wise transition in a single view. thanks for the tip

view this post on Zulip Lloyd McKenzie (Apr 19 2018 at 17:39):

I'm not sure the IGPublisher has the cyode to calculate the diff - which would be a pre-requisite to doing something like this. Agree it would be a nice feature, but given how huge a pain calculating snapshots is, not likely something I see happening without sponsorship by a project that wants to pay for it (and even then we'd think twice given the maintenance effort - though hopefully that'll be less once StructureDefinition is normative.

view this post on Zulip Eric Haas (Apr 20 2018 at 00:12):

I updated the sd.html template for an optional second differential to display. like Michel described above you have to have to create the fragment with a second profile and manually add the fragment into an autogenerated include file. Its a total hack and don't know if its worth it. Screen-Shot-2018-04-19-at-1.41.53-PM.png


Last updated: Apr 12 2022 at 19:14 UTC