Stream: implementers
Topic: replacement-slicing
Nick George (Sep 26 2018 at 17:12):
Hello again, another slicing question:
I'm curious about what seem like full-field replacement slices that don't have slicing rules - example:
http://hl7.org/fhir/familymemberhistory.profile.json defines an element with "id": "FamilyMemberHistory.relationship", but profile
http://hl7.org/fhir/familymemberhistory-genetic.profile.json has NO element with this id. Instead it is fully replaced by a slice with
"id": "FamilyMemberHistory.relationship:relationship", and the modification "mustSupport": true (and sliceName and base)
Why is this defined as a slice instead of just modifying the field and noting it in the differential? is it valid to remove the base field like that (and therefore have slicing rules on a field with a slice)?
Nick George (Sep 26 2018 at 17:13):
oops, correction to last parenthetical: (and therefore have NO slicing rules on a field with a slice)
Nick George (Sep 26 2018 at 17:20):
my temptation is is to say "if slice name equals last token of pathpart, just treat as a modification of the base element". is that correct? are there specific times when that has to be done with a slice as opposed to just a modification noted in differential?
Lloyd McKenzie (Sep 26 2018 at 18:09):
There's no semantics around slicenames beyond that if they're the same in a derived model and a base model, they're referring to the same slice. Not sure what's going on with the FamilyMemberHistory profiles. The slice declaration on relationship is an error because slicing is not declared. Can you submit a change request for us to fix that? (And fix our tools so they catch the issue in the future...)
Nick George (Sep 26 2018 at 18:15):
there are many such cases
Nick George (Sep 26 2018 at 18:16):
another weird one is "id": "FamilyMemberHistory.born[x]:bornage", which is a full-field replacement of "id": "FamilyMemberHistory.born[x]", but there the name changes
Nick George (Sep 26 2018 at 18:21):
(again, the profile definition drops the unsliced FamilyMemberHistory.born[x] elements entirely)
Nick George (Sep 26 2018 at 19:00):
can you link me to info on submitting change requests? I have a handful of small inconsistencies I've found, and could batch them into a suggested change
Last updated: Apr 12 2022 at 19:14 UTC