Stream: implementers
Topic: Problem in profiling STU3 resource via Forge
Mustafa Yuksel (Sep 01 2016 at 14:55):
Hi all,
Within the scope of a European Commission supported research & innovation project (http://www.c3-cloud.eu/), we are trying to create our own profile on top of the CarePlan
resource via Forge. All is fine while working with DSTU2 resources; however we need to proceed with STU3 and could not make it work in Forge.
First we downloaded the StructureDefinition
of CarePlan
from 2016Sep STU3 and tried to open it in Forge (13.2 for DSTU2 1.02), and got invalid resource format exception. Then we noticed that there is a Forge specific pack of STU3 definitions at http://hl7.org/fhir/2016Sep/downloads.html. We extracted the CarePlan
structure definition from that pack, and again tried to open it via Forge, but this time I get the following exception: Unexpected ElementDefinition at index 132 with path 'CarePlan.participant.id' from basePath = 'CarePlan'. The STU3 version does not have the participant
attribute, so it seems like Forge is somehow checking against the DSTU2 version of CarePlan
.
We could not find a STU3 specific release of Forge either. So, my question is, how can we profile a STU3 resource?
Thanks in advance.
Brian Nantz (Sep 01 2016 at 18:55):
I would also like to create a Profile for a STU3 Task resource. What is the recommended way to do this? Can I somehow contribute to a STU3 release of Forge to get this done more collaboratively?
Grahame Grieve (Sep 01 2016 at 21:16):
@Michel Rutten - this is for you to comment on. but this is work in progress
Michel Rutten (Sep 02 2016 at 11:04):
@Mustafa Yuksel & @Brian Nantz The current public Forge release (v13.2) is based on a version of the FHIR.NET API that only supports known resource types. If you try to open a StructureDef for an unknown resource type (e.g. a new STU3 resource), then the API fails to deserialize the XML and throws an exception.
We've updated the API and Forge to support unknown resource types. The new Forge release is still under development and not available yet. We'll publish a new Forge release in about 2 weeks for the upcoming HL7 WGM. With the new Forge release, you will be able to profile new (STU3) resources based on DSTU2 StructureDefinitions. This requires an custom version of validation.zip and a bit of hacking. Unfortunately the current custom validation.zip on the download section is not 100% correct and needs some corrections. So I am reluctant to release this to the community right now, as I expect to receive a lot of support questions from users - which I don't have time to handle...
Mustafa Yuksel (Sep 02 2016 at 11:46):
@Michel Rutten Thank you so much for the detailed explanation. I am looking forward to trying the new release of Forge.
Grahame Grieve (Sep 02 2016 at 12:21):
CarePlan is not a new resource?
Michel Rutten (Sep 02 2016 at 12:35):
Correct. However Forge 13.2 does not yet support the new custom validation.zip.
Brian Nantz (Sep 02 2016 at 19:49):
Thank you @Michel Rutten for the roadmap plan! If there is anything I can help you with to expedite this please let me know.
Michel Rutten (Sep 02 2016 at 20:44):
@Brian Nantz thank you for offering to contribute! For now, I need to focus on finishing the next release. After that, I may be able to spend some time on STU3-on-DSTU2 support. Could be that the upcoming Forge release handles the current custom validation.zip, or maybe the xml's still need some corrections - which I would gladly delegate ;p
Mustafa Yuksel (Oct 10 2016 at 13:43):
Hi @Michel Rutten, when can we expect to have the new Forge release to have STU3 (on-DSTU2) support?
Michel Rutten (Oct 10 2016 at 13:49):
Hi @Mustafa Yuksel we will officially update all our tools to STU3 after publication of the new FHIR spec. There is a preliminary workaround that allows you to create STU3 profiles using the current release. However this requires a bit of hacking and (due to time constraints) we can only provide support for this to our paying customers.
Mustafa Yuksel (Oct 10 2016 at 14:03):
Thanks @Michel Rutten
Last updated: Apr 12 2022 at 19:14 UTC