Stream: conformance
Topic: GF#13545 - Add ElementDefinition.slicing.constraining
Grahame Grieve (Jul 26 2018 at 23:21):
I have an issue with the disposition of GF#13545 - the disposition says to add an element to ElementDefinition.slicing. but it would actually be used on a slice, not when setting the slice up. And slices are characterised by not having a slicing element. So this would completely wreck all our snapshot logic. Which I really don't want to do, and which was not the intent of the disposition
Grahame Grieve (Jul 26 2018 at 23:22):
so I propose to add it to ElementDefinition directly, calling it 'sliceConstrains' with type string so you can identify what it constrains
Michel Rutten (Jul 27 2018 at 11:12):
And slices are characterised by not having a slicing element
What about a derived profile that introduces a reslice on an existing named slice inherited from the base profile?
Base profile
- elem (slicing intro)
- elem:sliceA
- elem:sliceB
Derived profile
- elem (slicing intro)
- elem:sliceA
- elem:sliceB (slicing intro)
- elem:sliceB/reslice1
- elem:sliceB/reslice2
Michel Rutten (Jul 27 2018 at 11:21):
As for the proposal of a new property, wouldn't a boolean value be sufficient? If a slice in a derived profile is intended to constrain an existing slice in the base profile, then the base profile _must_ contain a slice with the same name. If the base element is removed/renamed, this invariant is violated on the derived profile and logic can detect that. So repeating the slice name seems redundant....?
Grahame Grieve (Jul 27 2018 at 20:41):
well, so you're right, it's even more important that we don't add more slicings into that mix
Grahame Grieve (Jul 27 2018 at 20:42):
if we nominated what slice we were deriving from, then we could have less complex naming rules. But you're right, we've worked around that now and it's probably not a good thing to rock that boat
Michel Rutten (Jul 30 2018 at 10:02):
if we nominated what slice we were deriving from, then we could have less complex naming rules.
You mean for re-slicing? Yes, if an extension would specify the associated base element name, then reslice would no longer need to include the base slice name as as prefix (redundant). We could change this, but I'm not sure if the benefits are sufficient.
Last updated: Apr 12 2022 at 19:14 UTC