FHIR Chat · Publisher 1.1.44 first entry is not a Composition · implementers

Stream: implementers

Topic: Publisher 1.1.44 first entry is not a Composition


view this post on Zulip David Gutknecht (Dec 01 2020 at 12:11):

Hello,
my IG was compiling well with the last publisher version, but since the 1.1.44 I get the following stack trace:
Stack Dump (for debugging): (01:51.0931)
org.hl7.fhir.exceptions.FHIRException: Invalid document - first entry is not a Composition
at org.hl7.fhir.r5.renderers.BundleRenderer.render(BundleRenderer.java:66)
at org.hl7.fhir.r5.renderers.ResourceRenderer.render(ResourceRenderer.java:84)
at org.hl7.fhir.igtools.publisher.Publisher.getXhtml(Publisher.java:7872)
at org.hl7.fhir.igtools.publisher.Publisher.saveDirectResourceOutputs(Publisher.java:7189)
at org.hl7.fhir.igtools.publisher.Publisher.generateHtmlOutputs(Publisher.java:6629)
at org.hl7.fhir.igtools.publisher.Publisher.generate(Publisher.java:4885)
at org.hl7.fhir.igtools.publisher.Publisher.createIg(Publisher.java:884)
at org.hl7.fhir.igtools.publisher.Publisher.execute(Publisher.java:728)
at org.hl7.fhir.igtools.publisher.Publisher.main(Publisher.java:8397)

And I'm sure that the Bundle example has the Composition as first entry.

Any idea ?

Best regards,
David

view this post on Zulip Lloyd McKenzie (Dec 01 2020 at 20:20):

Have you tried with 1.1.45?

view this post on Zulip Grahame Grieve (Dec 02 2020 at 03:34):

The next release with add more debugging to help sort this out. Or you could tell me how to reproduce it

view this post on Zulip David Gutknecht (Dec 02 2020 at 07:04):

Hello @Grahame Grieve , @Lloyd McKenzie ,
with version FHIR IG Publisher Version 1.1.45 I have the same stacktrace.
Grahame I will upload the last version to github, this way you will be able to access everything.

view this post on Zulip David Gutknecht (Dec 02 2020 at 07:23):

The ig is available under https://github.com/DavidGutknecht/mni-ig

view this post on Zulip Kathrin Riech (Dec 02 2020 at 10:23):

I have a similar error message since the last publisher update:
Stack Dump (for debugging): (00:33.0828)
org.hl7.fhir.exceptions.FHIRException: Unable to connect to terminology server. Error = An error fetching the server's capability statement: Connect timed out
at org.hl7.fhir.r5.context.SimpleWorkerContext.connectToTSServer(SimpleWorkerContext.java:303)
at org.hl7.fhir.igtools.publisher.Publisher.initializeFromIg(Publisher.java:1867)
at org.hl7.fhir.igtools.publisher.Publisher.initialize(Publisher.java:1452)
at org.hl7.fhir.igtools.publisher.Publisher.execute(Publisher.java:722)
at org.hl7.fhir.igtools.publisher.Publisher.main(Publisher.java:8404)
Caused by: org.hl7.fhir.r5.utils.client.EFhirClientException: An error fetching the server's capability statement: Connect timed out
at org.hl7.fhir.r5.utils.client.FHIRToolingClient.handleException(FHIRToolingClient.java:325)
at org.hl7.fhir.r5.utils.client.FHIRToolingClient.getCapabilitiesStatementQuick(FHIRToolingClient.java:157)
at org.hl7.fhir.convertors.txClient.TerminologyClientR5.getCapabilitiesStatementQuick(TerminologyClientR5.java:99)
at org.hl7.fhir.r5.context.SimpleWorkerContext.connectToTSServer(SimpleWorkerContext.java:299)
... 4 more

Any idea?

view this post on Zulip Kirstine Rosenbeck Gøeg (Dec 02 2020 at 12:34):

Hi @Kathrin Riech . I had a similar error earlier, but my Implementation guide is building now.

view this post on Zulip Kathrin Riech (Dec 02 2020 at 13:04):

@Kirstine Rosenbeck Gøeg did you change anythig in your code?

view this post on Zulip Kirstine Rosenbeck Gøeg (Dec 02 2020 at 13:06):

No, I did not - that was what I wanted to communicate, sorry.

view this post on Zulip Kathrin Riech (Dec 02 2020 at 13:07):

Mine is building now as well. Thank you very much @Kirstine Rosenbeck Gøeg !

view this post on Zulip David Gutknecht (Dec 04 2020 at 10:22):

Did a new Check with Version 1.1.48
I still have troubles but I have more informations in the stacktrace

org.hl7.fhir.exceptions.FHIRException: Invalid document 'mni-patientOverview-bundle-example1' - first entry is not a Composition ('Composition')
at org.hl7.fhir.r5.renderers.BundleRenderer.render(BundleRenderer.java:66)
at org.hl7.fhir.r5.renderers.ResourceRenderer.render(ResourceRenderer.java:84)
at org.hl7.fhir.igtools.publisher.Publisher.getXhtml(Publisher.java:7888)
at org.hl7.fhir.igtools.publisher.Publisher.saveDirectResourceOutputs(Publisher.java:7205)

view this post on Zulip David Gutknecht (Dec 04 2020 at 10:23):

Attached the file.
I don't understand, the first entry is a Composition.
mni-patientOverview-bundle-example1.json

view this post on Zulip David Gutknecht (Dec 04 2020 at 10:31):

Is it because the composition mni-patientOverview-composition is based on clinical-document ?

view this post on Zulip Grahame Grieve (Dec 04 2020 at 10:34):

first entry is not a Composition ('Composition')

It's not a Composition; it's a Composition

view this post on Zulip Grahame Grieve (Dec 04 2020 at 10:34):

I don't know how that could be any clearer

view this post on Zulip Grahame Grieve (Dec 04 2020 at 10:35):

at least, nothing could be clearer that the code itself is the problem

view this post on Zulip Grahame Grieve (Dec 04 2020 at 10:35):

in this case, missing a not on the comparison.

view this post on Zulip Grahame Grieve (Dec 04 2020 at 10:35):

Will be fixed next release

view this post on Zulip David Gutknecht (Dec 04 2020 at 10:57):

Ok Thanks ! :dancing:


Last updated: Apr 12 2022 at 19:14 UTC