FHIR Chat · Failure to process fhir-mCODE-ig · IG creation

Stream: IG creation

Topic: Failure to process fhir-mCODE-ig


view this post on Zulip Saul Kravitz (Jun 09 2020 at 20:28):

Trying to build using the latest v0.12.7 and the latest IG Publisher.... the sushi build is successful, IG Publisher crashes with the message:

FHIR IG Publisher Version 1.0.100-SNAPSHOT (Git# 6c6b419dd19f). Built 2020-06-07T09:06:40.927+10:00 (64 hours old)
Detected Java version: 1.8.0_242 from /Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home/jre on x86_64 (64bit). 3641MB available
Parameters: -ig ig.ini
dir = /Users/skravitz/git/fhir-mCODE-ig/fsh/build, path = /Users/skravitz/.rvm/gems/ruby-2.6.3/bin:/Users/skravitz/.rvm/gems/ruby-2.6.3@global/bin:/Users/skravitz/.rvm/rubies/ruby-2.6.3/bin:/Users/skravitz/opt/anaconda3/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/munki:/Users/skravitz/.rvm/bin
Run time = Tuesday, June 9, 2020 12:01:26 PM EDT (2020-06-09T12:01:26-04:00)
Package Cache: /Users/skravitz/.fhir/packages (00:00.0173)
Load Template from hl7.fhir.template#0.1.0 (00:02.0418)
Load Template from hl7.base.template#0.1.0 (00:02.0619)
Load Template from fhir.base.template#0.1.0 (00:02.0649)

onLoad.findSpreadsheets:

onLoad.updateIg:
[xslt] Processing /Users/skravitz/git/fhir-mCODE-ig/fsh/build/template/onLoad-ig-working.xml to /Users/skravitz/git/fhir-mCODE-ig/fsh/build/template/onLoad-ig-updated.xml
[xslt] Loading stylesheet /Users/skravitz/git/fhir-mCODE-ig/fsh/build/template/scripts/onLoad.xslt

onLoad.extend:

onLoad:
Root directory: /Users/skravitz/git/fhir-mCODE-ig/fsh/build (00:09.0222)
Core Package hl7.fhir.r4.core#4.0.1
Terminology Cache is at /Users/skravitz/git/fhir-mCODE-ig/fsh/build/input-cache/txcache. 5 files in cache (00:29.0919)
Connect to Terminology Server at http://tx.fhir.org (00:32.0962)
Load Package hl7.fhir.pubpack#0.0.5
Load Package hl7.fhir.xver-extensions#0.0.4
Initialization complete (00:37.0428)
Load Content (00:37.0430)
Processing Conformance Resources (00:38.0863)
Terminology server: Check for supported code systems for http://snomed.info/sct (00:43.0466)
Exception in thread "main" java.lang.Error: Access single value, but value count is 2
at org.hl7.fhir.r5.renderers.utils.ElementWrappers$PropertyWrapperMetaElement.value(ElementWrappers.java:299)
at org.hl7.fhir.r5.renderers.DiagnosticReportRenderer.render(DiagnosticReportRenderer.java:51)
at org.hl7.fhir.r5.renderers.ResourceRenderer.render(ResourceRenderer.java:76)
at org.hl7.fhir.igtools.publisher.Publisher.generateNarratives(Publisher.java:1034)
at org.hl7.fhir.igtools.publisher.Publisher.loadConformance(Publisher.java:3610)
at org.hl7.fhir.igtools.publisher.Publisher.createIg(Publisher.java:836)
at org.hl7.fhir.igtools.publisher.Publisher.execute(Publisher.java:698)
at org.hl7.fhir.igtools.publisher.Publisher.main(Publisher.java:7533)

@Nick Freiter has divined that the problem is example mCODECancerGenomicsReportExample01 which looks valid to us, specifically the category element. IG Publisher doesn't like its (required) two elements. Deleting one or the other allows the build to succeed.

view this post on Zulip Nick Freiter (Jun 10 2020 at 12:00):

CancerGenomicsProfile: http://hl7.org/fhir/us/mcode/StructureDefinition-mcode-cancer-genomics-report.html
Example of this profile causing an issue: http://hl7.org/fhir/us/mcode/DiagnosticReport-mCODECancerGenomicsReportExample01.html

As mentioned, when either element in the category array on the example is deleted, the build succeeds. You should be able to reproduce this using the latest version of the IG Publisher and the fhir-mCODE-ig

view this post on Zulip Grahame Grieve (Jun 10 2020 at 12:03):

I can no problem, thanks.

view this post on Zulip Grahame Grieve (Jun 10 2020 at 12:03):

will be fixed next release


Last updated: Apr 12 2022 at 19:14 UTC