FHIR Chat · a profile of a profile using the other profile slices? · IG creation

Stream: IG creation

Topic: a profile of a profile using the other profile slices?


view this post on Zulip John Moehrke (Oct 27 2021 at 14:07):

Is it possible to have a profile that uses the slices defined in a parent profile from another IG?
Working on a profile of IPS, and don't want to re-invent all the section slices.

view this post on Zulip Lloyd McKenzie (Oct 27 2021 at 14:19):

Not without inheriting from that profile

view this post on Zulip John Moehrke (Oct 27 2021 at 14:22):

inheriting... meaning what?

view this post on Zulip John Moehrke (Oct 27 2021 at 14:22):

I have a depends on

view this post on Zulip Lloyd McKenzie (Oct 27 2021 at 14:28):

If you depend on the profile, then all of those slices should be showing up in your snapshot already...

view this post on Zulip John Moehrke (Oct 27 2021 at 14:29):

okay, then I will continue to bang my head against it. The depends on might not be setup properly, but I though I did it right

view this post on Zulip Jean Duteau (Oct 27 2021 at 14:34):

i have a number of abstract profiles that are used in children profiles and reuse the slices. I even have one that adds new slices to the same element that was sliced in the parent.

view this post on Zulip Jean Duteau (Oct 27 2021 at 14:34):

https://bcgov.github.io/MOH-HCIM-FHIR/StructureDefinition-BCPatientBusinessParameters.html

view this post on Zulip John Moehrke (Oct 27 2021 at 14:36):

excellent news.

view this post on Zulip John Moehrke (Oct 27 2021 at 14:42):

@Jean Duteau can you point me at the FSH?

view this post on Zulip Jean Duteau (Oct 27 2021 at 14:43):

https://github.com/bcgov/MOH-HCIM-FHIR/blob/main/input/fsh/Parameters.fsh

view this post on Zulip John Moehrke (Oct 27 2021 at 14:44):

I have done that within an IG... I am now trying to do it accross IGs...

view this post on Zulip John Moehrke (Oct 27 2021 at 14:45):

anyway, I am struggling with simply indicating that my profile has a parent that is the IPS Composition

view this post on Zulip Jean Duteau (Oct 27 2021 at 14:48):

ah right, i missed that you were doing it across IGs

view this post on Zulip John Moehrke (Oct 27 2021 at 14:48):

I have a dependency on IPS 1.0.0
But the following fails in sushi as not finding the IPS Composition profile

Profile:   IHE_QORE_Composition
Parent: http://hl7.org/fhir/uv/ips/StructureDefinition/Composition-uv-ips
Id:             IHE.QRPH.QORE.Composition
Title: "Quality Outcomes Reporting for EMS"

view this post on Zulip John Moehrke (Oct 27 2021 at 14:51):

sushi error

error Parent http://hl7.org/fhir/uv/ips/StructureDefinition/Composition-uv-ips not found for IHE_QORE_Composition
  File: C:\Users\johnm\Git\QRPH.QORE\input\fsh\QORE_Composition.fsh
  Line: 1 - 183

view this post on Zulip John Moehrke (Oct 27 2021 at 14:52):

also tried the shorter "Name" given in IPS -- CompositionUvIps

view this post on Zulip Jean Duteau (Oct 27 2021 at 14:53):

hmm, that's not slicing specific, but rather that it can't find the profile. do you see the IPS in your ~/.fhir/packages directory?

view this post on Zulip Jean Duteau (Oct 27 2021 at 14:56):

I just tested this in my guide and it worked:
In sushi-config:

dependencies:
  hl7.fhir.us.core: 4.0.0
  hl7.fhir.us.medmorph: 0.1.0
  hl7.fhir.uv.ips: 1.0.0

In FSH:

Profile: ICSRComposition
Parent: http://hl7.org/fhir/uv/ips/StructureDefinition/Composition-uv-ips
Id: ibm-fda-icsr-composition
Title: "ICSR Composition"
Description: "The fields needed to represent the document metadata of a ICSR Report."

view this post on Zulip John Moehrke (Oct 27 2021 at 14:58):

bingo... the problem was my dependencies was using URL

view this post on Zulip John Moehrke (Oct 27 2021 at 14:58):

thanks

view this post on Zulip John Moehrke (Oct 27 2021 at 14:58):

now I just have 143 errors to go

view this post on Zulip Jean Duteau (Oct 27 2021 at 14:59):

dibs out on fixing those! :stuck_out_tongue_wink:

view this post on Zulip John Moehrke (Oct 27 2021 at 14:59):

I would be glad to let you give them a try


Last updated: Apr 12 2022 at 19:14 UTC