Stream: implementers
Topic: Re-slicing
Rick Geimer (Jul 20 2017 at 14:34):
Does anyone have a good example of re-slicing against a base profile? I've got a Pharmacist Care Plan Document that inherits from the C-CDA on FHIR Care Plan Document, and needs to a) further constrain the existing Interventions section, and b) add a new Payers section.
I tried following the documentation on this, but frankly it's a bit sparse. Here is the file in question.
https://github.com/HL7/PhCP/blob/master/resources/StructureDefinition-PhCP-Composition.xml
It looks ok in Forge, but when I run the IG publisher the new Payer section and the resliced Interventions section are not appearing in either the differential or the snapshot, which leaves me wondering if the syntax is wrong or if there is a bug in the IG publisher.
Michel Rutten (Jul 20 2017 at 14:43):
Hi @Rick Geimer, please note that the Forge UI does not yet support re-slicing. However the underlying snapshot generator in the FHIR .NET API does support re-slicing. So Forge should (...unsupported...) be able to open profiles with re-slicing, although you cannot edit the re-slices.
Michel Rutten (Jul 20 2017 at 14:44):
For an example of complex re-slicing, see Chris Grenz's examples:
https://github.com/chrisgrenz/FHIR-Primer
Rick Geimer (Jul 20 2017 at 15:14):
@Michel Rutten Thanks Michel! I'll review Chris's reslice example. FYI, I submitted some Forge feedback over the last few days, as I encountered a few bugs editing profiles that constrain other profiles.
Michel Rutten (Jul 20 2017 at 15:18):
Thank you for the feedback!
FYI I'm working on an update with couple of bugfixes. This includes a fix for issues with derived profiles, where sometimes profile constraints would disappear or move to another element. Stay tuned...
Rick Geimer (Jul 20 2017 at 15:24):
I guess I should ask, @Grahame Grieve @Lloyd McKenzie , does the IG Publisher support re-slicing?
Lloyd McKenzie (Jul 20 2017 at 15:44):
I think so, but all I've done is work with existing slices and add new ones, I haven't tried adding new discriminators
Rick Geimer (Jul 20 2017 at 17:48):
@Lloyd McKenzie Do you have an example of adding new slices to existing ones in a derived profile? If you have a syntax that you know works with the IG publisher I'd like to copy it.
Lloyd McKenzie (Jul 21 2017 at 03:28):
Removed
Last updated: Apr 12 2022 at 19:14 UTC