FHIR Chat · Label inheritance · shorthand

Stream: shorthand

Topic: Label inheritance


view this post on Zulip Halina Labikova (Mar 01 2021 at 20:38):

I just noticed that labels are not inherited when creating derived profiles. Aka if I create a parent profile

Profile: CancerRegimenRequest
Parent: RequestGroup
Id: CancerRegimenRequest
Title: "Cancer Regimen Request"
* code from CancerRegimenCodes (required)
* code ^label = "Cancer Regimen"

and then a child:

Profile: AndrogenDeprivationTherapy
Parent: CancerRegimenRequest
Id: AndrogenDeprivationTherapy
Title: "Androgen Deprivation Therapy"

The StructureDefinition of the child ADT request will not inherit the label. Is this done by design, or is it a bug?

view this post on Zulip Chris Moesel (Mar 01 2021 at 21:15):

Hi @Halina Labikova. By default, SUSHI only produces the differential elements. By definition, these only contain the data that is different from the parent. So I would not expect to see the label in the child profile (since it is not different from the parent). If you run SUSHI with the -s flag, which includes the snapshot elements, you'll see that SUSHI does put the label into the snapshot of the child profile.

If you're finding that the label is not in the child profile after running the SUSHI definitions (w/ differentials only) through the IG Publisher, then that may be a bug in the IG Publisher's snapshot generation (unless for some reason they intentionally do not carry over the label from parent to child).

view this post on Zulip Halina Labikova (Mar 01 2021 at 21:44):

I see, makes sense! Thank you


Last updated: Apr 12 2022 at 19:14 UTC