Stream: IG creation
Topic: IGPub Error: Element 'ImplementationGuide.page.kind' missing
Chris Moesel (Mar 25 2018 at 22:15):
In my ig.xml, I have the following:
<page> <source value="index.html" /> <title value="Breast Cancer Interoperability" /> <kind value="page" /> </page>
Despite that, I receive the following error reported by the IG publisher:
Path: ImplementationGuide/1: ImplementationGuide.page
Severity: error
Message: Profile http://hl7.org/fhir/StructureDefinition/ImplementationGuide, Element 'ImplementationGuide.page.kind': minimum required = 1, but only found 0
I found a recent git commit (5dac06227a32b40f48765f4e813e9cf1a64616fe) saying this is fixed, but my Auto-Build from this morning still contained this error.
Grahame Grieve (Mar 26 2018 at 03:34):
Lloyd's fix probably wouldn't have fixed that
Grahame Grieve (Mar 26 2018 at 03:37):
@Lloyd McKenzie tying to make sense of your changes here:
going from R3 to R4:
if (src.hasKind()) if (!src.getKind().equals(org.hl7.fhir.dstu3.model.ImplementationGuide.GuidePageKind.PAGE)) tgt.addExtension(org.hl7.fhir.r4.utils.ToolingExtensions.EXT_GENERATED_PAGE, new org.hl7.fhir.r4.model.BooleanType(true));
going from R4 to R3:
if (src.hasExtension(org.hl7.fhir.r4.utils.ToolingExtensions.EXT_GENERATED_PAGE) && src.getExtensionString(org.hl7.fhir.r4.utils.ToolingExtensions.EXT_GENERATED_PAGE).equals("true")) tgt.setKind(org.hl7.fhir.dstu3.model.ImplementationGuide.GuidePageKind.PAGE);
Grahame Grieve (Mar 26 2018 at 03:38):
I read that as:
kind = page round trips to no kind (see Chris' error)
kind != page round trips to kind = page
Grahame Grieve (Mar 26 2018 at 06:23):
I've made a fix to this
Grahame Grieve (Mar 26 2018 at 06:27):
btw, Lloyd, I want to make a substantiative change to fix this one
Grahame Grieve (Mar 26 2018 at 06:27):
before ballot
Lloyd McKenzie (Mar 26 2018 at 14:23):
The "generate page" extension sayd "This is not a PAGE kind - it's something else that's generated". So if kind=page, no extension. If kind was anything else, then you get the extension. Code from R4->R3 is wrong. Challenge there is we don't have information on what to set kind to if it shouldn't be PAGE.
Grahame Grieve (Mar 26 2018 at 19:00):
something other than page, I think, is all that matters, based on the code of the IG publisher
Chris Moesel (Mar 27 2018 at 00:34):
Thanks for the fix, @Grahame Grieve. This message is confirming that I've re-run the build and that error has gone away.
Last updated: Apr 12 2022 at 19:14 UTC