FHIR Chat · IG Publisher problems with Bundles · IG creation

Stream: IG creation

Topic: IG Publisher problems with Bundles


view this post on Zulip John Moehrke (May 28 2021 at 22:48):

I have isolated two problems with IG Publisher and Bundles
1) Some bundles are not showing up in Artifacts, when they should
2) A List resource in a Bundle with a .subject that is populated will crash the publisher

view this post on Zulip John Moehrke (May 28 2021 at 22:49):

I have created a Test IG that ONLY contains the problem bundle

view this post on Zulip John Moehrke (May 28 2021 at 22:49):

GitHub https://github.com/JohnMoehrke/testBundle

view this post on Zulip John Moehrke (May 28 2021 at 22:49):

Build http://build.fhir.org/ig/JohnMoehrke/testBundle/branches/main/Bundle-ex-dummyProvideDocumentBundle.html

view this post on Zulip John Moehrke (May 28 2021 at 22:50):

To see the #2 problem, take the comments off of line 9 of the patieht.fsh file

view this post on Zulip John Moehrke (May 28 2021 at 22:50):

@Lloyd McKenzie @Grahame Grieve

view this post on Zulip John Moehrke (May 28 2021 at 22:52):

I do not think this is a Sushi problem. I think it is creating the json properly

view this post on Zulip Lloyd McKenzie (May 28 2021 at 23:09):

#1 I think is just pending a release. What's the stack trace for #2?

view this post on Zulip John Moehrke (May 29 2021 at 13:12):

yes, I understood #1 was already pending. I created this for #2, and just happened to observe it also showed 1

view this post on Zulip John Moehrke (May 29 2021 at 13:12):

Failed build http://build.fhir.org/ig/JohnMoehrke/testBundle/branches/main/failure/build.log

onGenerate.extend:

onGenerate:
Exception in thread "main" java.lang.Error: Wrong node type - node is Text ('null/Subject: ')
    at org.hl7.fhir.utilities.xhtml.XhtmlNode.addTag(XhtmlNode.java:200)
    at org.hl7.fhir.utilities.xhtml.XhtmlNode.ah(XhtmlNode.java:642)
    at org.hl7.fhir.r5.renderers.ResourceRenderer.renderReference(ResourceRenderer.java:187)
    at org.hl7.fhir.r5.renderers.ResourceRenderer.renderReference(ResourceRenderer.java:172)
    at org.hl7.fhir.r5.renderers.ListRenderer.shortForRef(ListRenderer.java:205)
    at org.hl7.fhir.r5.renderers.ListRenderer.render(ListRenderer.java:129)
    at org.hl7.fhir.r5.renderers.ListRenderer.render(ListRenderer.java:33)
    at org.hl7.fhir.r5.renderers.ResourceRenderer.build(ResourceRenderer.java:55)
    at org.hl7.fhir.r5.renderers.BundleRenderer.render(BundleRenderer.java:298)
    at org.hl7.fhir.igtools.publisher.Publisher.getXhtml(Publisher.java:8048)
    at org.hl7.fhir.igtools.publisher.Publisher.saveDirectResourceOutputs(Publisher.java:7367)
    at org.hl7.fhir.igtools.publisher.Publisher.generateHtmlOutputs(Publisher.java:6800)
    at org.hl7.fhir.igtools.publisher.Publisher.generate(Publisher.java:5000)
    at org.hl7.fhir.igtools.publisher.Publisher.createIg(Publisher.java:901)
    at org.hl7.fhir.igtools.publisher.Publisher.execute(Publisher.java:745)
    at org.hl7.fhir.igtools.publisher.Publisher.main(Publisher.java:8577)

view this post on Zulip John Moehrke (Jun 01 2021 at 13:12):

@Grahame Grieve is this an IG publisher problem? Should I create an issue?

view this post on Zulip Grahame Grieve (Jun 01 2021 at 13:32):

no idea. I haven't investigated yet

view this post on Zulip John Moehrke (Jun 02 2021 at 12:03):

Note that adding to the List a .text extensions will also prevent the crash

view this post on Zulip Grahame Grieve (Jun 03 2021 at 00:42):

fixed next release

view this post on Zulip Michaela Ziegler (Dec 07 2021 at 19:22):

Grahame Grieve said:

fixed next release

Has this been fixed in the meantime? I ask because I have the problem at the element List.encounter.

view this post on Zulip Grahame Grieve (Dec 07 2021 at 19:24):

how do I reproduce?

view this post on Zulip Michaela Ziegler (Dec 07 2021 at 19:27):

Grahame Grieve said:

how do I reproduce?

ahdis/scs-versandservice: master
build logs

view this post on Zulip Grahame Grieve (Dec 08 2021 at 01:07):

fixed next release - I overlooked making the relevant change on one line of code


Last updated: Apr 12 2022 at 19:14 UTC