FHIR Chat · Rendering slices · IG creation

Stream: IG creation

Topic: Rendering slices


view this post on Zulip Josh Mandel (Jan 06 2022 at 20:18):

looking at https://hl7.org/fhir/us/carin-bb/2022Jan/StructureDefinition-C4BB-ExplanationOfBenefit-Outpatient-Institutional.html

image.png

... I'm not sure if these are already being tracked elsewhere, but the way the valueString slicing is rendered is confusing for me. I think the meaning is "there will always be a string here, and only a string". If that's the case, why isn't valueString nested under the slicing group, the way that other constrained slices are nested?

view this post on Zulip Grahame Grieve (Jan 06 2022 at 20:43):

because the slicing definition may have children of it's own, which are separate from the slices themselves

view this post on Zulip Grahame Grieve (Jan 06 2022 at 20:43):

so the slices are not shown as children of the slicing, but as siblings following it

view this post on Zulip Josh Mandel (Jan 06 2022 at 20:48):

Hmm, do you mean if a profile is re-slicing this one? Trying to follow this comment (right now I understand as much as: the example I showed is a special simple case of a more general pattern, and the tree rendering opts for consistency at the general level).

view this post on Zulip Grahame Grieve (Jan 06 2022 at 20:49):

the example I showed is a special simple case of a more general pattern, and the tree rendering opts for consistency at the general level

yes

view this post on Zulip Grahame Grieve (Jan 06 2022 at 20:49):

not so much re-slicing.

view this post on Zulip Grahame Grieve (Jan 06 2022 at 20:49):

a sliced element has

  • the definition of the slicing
  • one or more slice definitions

view this post on Zulip Grahame Grieve (Jan 06 2022 at 20:50):

the definition of the slicing is not just "this is how slices are differentiated" but also "and this is rules that apply to every slice"

view this post on Zulip Josh Mandel (Jan 06 2022 at 20:51):

You mean the content of ElementDefinition.slicing.rules?

view this post on Zulip Josh Mandel (Jan 06 2022 at 20:52):

Uh, I see this changes between Differential and Snapshot.

Differential:

differential.png

Snapshot:

snapshot.png

view this post on Zulip Grahame Grieve (Jan 06 2022 at 20:52):

the content of ElementDefinition.slicing.rules is "the definition of the slicing". The rest of the ElementDefinition - and any children element that follow the ElementDefinition that sets up the slicing- that's also going to be rendered

view this post on Zulip Grahame Grieve (Jan 06 2022 at 20:52):

hmm. that shouldn't be.

view this post on Zulip John Moehrke (Jan 07 2022 at 13:05):

.


Last updated: Apr 12 2022 at 19:14 UTC