FHIR Chat · Displaying cardinality and DataTypes in the differential · IG creation

Stream: IG creation

Topic: Displaying cardinality and DataTypes in the differential


view this post on Zulip Halina Labikova (Nov 01 2019 at 18:19):

Using the oldschool method of spreadsheets + publisher, the resulting IG displays cardinalities and datatypes in the diff even when they're the same as the base resource, like so ->
pasted image
I'm not able to get this display when creating my resources through forge; any advice?

view this post on Zulip Grahame Grieve (Nov 01 2019 at 20:30):

compare the structure definitions in the final specification, the differentials. the rendering is driven directly by the structureDefinitinos

view this post on Zulip Lloyd McKenzie (Nov 01 2019 at 20:36):

Forge only includes elements in the differential if they're actually different. This is generally better behaviour. If the spreadsheet approach was smarter, it would probably strip out the unchanged data too

view this post on Zulip Michel Rutten (Nov 02 2019 at 11:08):

Confirmed, Forge only includes actual constraints in the diff; all values inherited from (equal to) the base are excluded. A rendering of the generated diff will reflect this.

view this post on Zulip Halina Labikova (Nov 08 2019 at 21:30):

A bit late to respond to this, but for me it's a point in favor of using the spreadsheets. The render displays the diff cardinalities in a darker font, like so-> pasted image so as an implementer I can get all the relevant information from glancing at the diff page, without needing to go back and forth between that snapshot.

view this post on Zulip Grahame Grieve (Nov 08 2019 at 21:32):

that's nothing to do with spreadsheets, since spreadsheets are converted to structure definitions before the publication process gets started

view this post on Zulip Halina Labikova (Nov 08 2019 at 21:49):

Well, using spreadsheets (or, better say, a script that uses the spreadsheets) allows me to include data in the differential of StructureDefinitions in a way that better suits my needs (even if it means diverging from the very definition of differential)

view this post on Zulip Grahame Grieve (Nov 08 2019 at 21:49):

umm, why can't you do the same with sturcture definitions?

view this post on Zulip Halina Labikova (Nov 08 2019 at 21:51):

You mean authoring SDs by hand? Or by forge and then manually adjusting the jsons?
(^not that I would find the manual approach crazy, just not scaleable)

view this post on Zulip Lloyd McKenzie (Nov 08 2019 at 22:41):

The rendering should show the greyed-out cardinalities even if they're not in the snapshot

view this post on Zulip Halina Labikova (Nov 09 2019 at 02:47):

@Lloyd McKenzie [pasted image] hmmmm. This is my render and my StructureDefs don't look out of ordinary (https://chat.fhir.org/user_uploads/10155/DM8pXB9n8Vey_uAZbk6cBZvb/pasted_image.png)


Last updated: Apr 12 2022 at 19:14 UTC