Stream: shorthand
Topic: changing derivedFrom path from parent
Bob Milius (Apr 10 2020 at 14:31):
In my IG, I'm creating profiles based on profiles found in the Clinical Genomics Reporting IG. For example, I'm creating a profile whose parent is the Haplotype Observation profile. In Haplotype, derivedFrom
is sliced using pattern on resolve().code
. In my profile, which is based on Haplotype, I want to add a slice for derivedFrom
for a profile for MolecularSequence. The MolecularSequence resource is one of the acceptable references for derivedFrom
in the base Observation resource. But because MolecularSequence doesn't have a code, any attempt to create a slice in my derived profile to reference a profile on MS results in an error. I'm assuming it's getting the slice pattern and path from the parent.
Basically I have two questions. First, is it possible to add a derivedFrom
slice with a discriminator path different from the parent profile (e.g., maybe resolve().type
)? Second, if so, how do I do it in FSH?
Mark Kramer (Apr 13 2020 at 20:32):
Bob, I don't think that's possible. The discriminator applies to all the slices.
Bob Milius (Apr 13 2020 at 22:55):
Thanks, @Mark Kramer That's what I was beginning to suspect.
Last updated: Apr 12 2022 at 19:14 UTC