Stream: IG creation
Topic: Type slice rendering issue
Lloyd McKenzie (Nov 16 2020 at 15:58):
If you take a look at the differential here: https://build.fhir.org/ig/HL7/fhir-sdoh-clinicalcare/StructureDefinition-SDOHCC-Observation-ScreeningResponseBase-1.html and look at effective[x], you'll see that the effectivePeriod slice is listed twice - once because it's one of the allowed types in the base and once because there's a specific slice declared in the differential. Also, the slices are rendered differently. The slices should only appear once and should be consistent in rendering whether constrained or not.
Grahame Grieve (Nov 16 2020 at 23:00):
the slice isn't listed twice. The first time, it shows the possible types for the base, and then it displays the slices
Lloyd McKenzie (Nov 16 2020 at 23:07):
effective[x] is labeled as "Slice Definition". Listing effectiveDate as an allowed element as well as a slice is redundant and confusing. Intrinsically, if you've got a polymorphic type, your list of supported types is a list of slices. If some are further constrained and others aren't, that shouldn't affect how you're rendering them
Grahame Grieve (Nov 16 2020 at 23:09):
perhaps. I'm just explaining why it is how it is. Making the change you propose isn't quick and easy
Lloyd McKenzie (Nov 16 2020 at 23:11):
I recognize that. It's not a critical/urgent fix, but I think it should be added to the list of things to address at some point. The way it is now is confusing.
Last updated: Apr 12 2022 at 19:14 UTC