Stream: IG creation
Topic: Error generating snapshots
Nick Freiter (Feb 05 2020 at 18:06):
We have been looking into changing our SUSHI compiler for FHIR Shorthand to only generate differentials and not snapshots, but we are hitting the following error in the IG Publisher:
pasted image
After some investigation, I think this might have something to do with circular dependencies. The profile that causes this error, TNMClinicalStageGroup, is based on another profile, CancerStageParent, which is based on Observation. The "focus" element on CancerStageParent is constrained as a reference to our PrimaryCancerCondition profile. But the "stage.assessment" element on PrimaryCancerCondition is a reference to TNMClinicalStageGroup, so the references are circular. As can be seen in the image above, the snapshot seems like it is getting terminated prematurely once it gets to "Observation.focus", and if I change the "focus" element on CancerStageParent to not reference PrimaryCancerCondition, the error goes away.
Should we be handling our circular dependencies differently?
Grahame Grieve (Feb 05 2020 at 19:20):
I'm not sure. Is this in the committed mcode?
Chris Moesel (Feb 05 2020 at 19:34):
Not yet. But it can be. Working on it.
Chris Moesel (Feb 05 2020 at 20:05):
Source code is on no-snapshots
branch: https://github.com/HL7/fhir-mCODE-ig/tree/no-snapshots
Chris Moesel (Feb 05 2020 at 20:36):
Built output: https://github.com/HL7/fhir-mCODE-ig/tree/no-snapshots
Chris Moesel (Feb 05 2020 at 20:37):
Build log (has some useful stuff): http://build.fhir.org/ig/HL7/fhir-mCODE-ig/branches/no-snapshots/build.log
Nick Freiter (Feb 11 2020 at 15:49):
Hey @Grahame Grieve, did you ever have any luck reproducing this issue?
Grahame Grieve (Feb 11 2020 at 19:52):
no it's on my list
Grahame Grieve (Feb 12 2020 at 04:38):
well, I have some progress. Now, trying to do that generates this:
Grahame Grieve (Feb 12 2020 at 04:58):
Attempt to use a snapshot on profile 'http://hl7.org/fhir/us/mcode/StructureDefinition/CancerStageParent' as Base for generating a snapshot for the profile http://hl7.org/fhir/us/mcode/StructureDefinition/TNMClinicalStageGroup before it is generated
Grahame Grieve (Feb 12 2020 at 05:04):
having captured the bug, it was clear that I was generating the snapshot when I didn't need to. So I cleaned it up and now it seems to generate ok
Nick Freiter (Feb 12 2020 at 13:51):
Oh great, thank you for taking a look!
Last updated: Apr 12 2022 at 19:14 UTC