FHIR Chat · Error: Unknown type Expression at · IG creation

Stream: IG creation

Topic: Error: Unknown type Expression at


view this post on Zulip Brian Postlethwaite (Feb 14 2020 at 02:48):

New to recent builds, I have an R4 questionnaire that has valueExpression extensions in it...

org.hl7.fhir.exceptions.FHIRException: Unknown type Expression at org.hl7.fhir.convertors.VersionConvertor_30_50.convertType(VersionConvertor_30_50.java:3187) at org.hl7.fhir.convertors.VersionConvertor_30_50.convertExtension(VersionConvertor_30_50.java:417) at org.hl7.fhir.convertors.VersionConvertor_30_50.copyElement(VersionConvertor_30_50.java:102) at org.hl7.fhir.convertors.conv30_50.Questionnaire30_50.convertQuestionnaireItemComponent(Questionnaire30_50.java:128) at org.hl7.fhir.convertors.conv30_50.Questionnaire30_50.convertQuestionnaireItemComponent(Questionnaire30_50.java:161) at org.hl7.fhir.convertors.conv30_50.Questionnaire30_50.convertQuestionnaire(Questionnaire30_50.java:119) at org.hl7.fhir.convertors.VersionConvertor_30_50.convertResource(VersionConvertor_30_50.java:4850) at org.hl7.fhir.igtools.publisher.Publisher.generateRegistryUploadZip(Publisher.java:4728) at org.hl7.fhir.igtools.publisher.Publisher.generateZips(Publisher.java:4613) at org.hl7.fhir.igtools.publisher.Publisher.generate(Publisher.java:4364) at org.hl7.fhir.igtools.publisher.Publisher.createIg(Publisher.java:815) at org.hl7.fhir.igtools.publisher.Publisher.execute(Publisher.java:665) at org.hl7.fhir.igtools.publisher.Publisher.main(Publisher.java:6945)

Is this something that is known, or should I go look into the code to see if I can spot something?

view this post on Zulip Grahame Grieve (Feb 14 2020 at 03:46):

do you get a stack dump?

view this post on Zulip Brian Postlethwaite (Feb 14 2020 at 03:55):

Sorry, yes

org.hl7.fhir.exceptions.FHIRException: Unknown type Expression at
org.hl7.fhir.convertors.VersionConvertor_30_50.convertType(VersionConvertor_30_50.java:3187) at
org.hl7.fhir.convertors.VersionConvertor_30_50.convertExtension(VersionConvertor_30_50.java:417) at
org.hl7.fhir.convertors.VersionConvertor_30_50.copyElement(VersionConvertor_30_50.java:102) at
org.hl7.fhir.convertors.conv30_50.Questionnaire30_50.convertQuestionnaireItemComponent(Questionnaire30_50.java:128) at
org.hl7.fhir.convertors.conv30_50.Questionnaire30_50.convertQuestionnaireItemComponent(Questionnaire30_50.java:161) at
org.hl7.fhir.convertors.conv30_50.Questionnaire30_50.convertQuestionnaire(Questionnaire30_50.java:119) at
org.hl7.fhir.convertors.VersionConvertor_30_50.convertResource(VersionConvertor_30_50.java:4850) at
org.hl7.fhir.igtools.publisher.Publisher.generateRegistryUploadZip(Publisher.java:4728) at
org.hl7.fhir.igtools.publisher.Publisher.generateZips(Publisher.java:4613) at
org.hl7.fhir.igtools.publisher.Publisher.generate(Publisher.java:4364) at
org.hl7.fhir.igtools.publisher.Publisher.createIg(Publisher.java:815) at
org.hl7.fhir.igtools.publisher.Publisher.execute(Publisher.java:665) at
org.hl7.fhir.igtools.publisher.Publisher.main(Publisher.java:6945)

Whitespace was messing up the carriage returns

view this post on Zulip Brian Postlethwaite (Feb 14 2020 at 06:26):

From my looking at the stack, not sure why it would downgrade to the STU3 format, is that for the registry? Is there a way to turn that off (can't see it in the code) - if not can I add one?
https://github.com/HL7/fhir-ig-publisher/blob/2bbc3a2a5ac307b9c34258e11ec78f4ee3568cbb/org.hl7.fhir.publisher.core/src/main/java/org/hl7/fhir/igtools/publisher/Publisher.java#L4728

view this post on Zulip Brian Postlethwaite (Feb 14 2020 at 06:36):

@Grahame Grieve, Yup, looking at the code referenced below, there is no mapping for the Expression type back to STU3, so what should occur in this case, should the resource just not be converted?
Have we had this case where a new extension type was introduced and a resource was being down converted for the registry?
https://github.com/hapifhir/org.hl7.fhir.core/blob/17eb1c41f7300f6e407cb043ed8b27d1ed2b3783/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/VersionConvertor_30_50.java#L3187

view this post on Zulip Grahame Grieve (Feb 15 2020 at 02:32):

oh this is in code that is trying to produce R3 copies for the registry but this is not a thing anymore, so i'm going to get around to removing it

view this post on Zulip Brian Postlethwaite (Feb 15 2020 at 04:13):

Thanks. Is that to comment out the zip registry stage? (so I can do it locally)

view this post on Zulip Grahame Grieve (Feb 15 2020 at 04:39):

yes

view this post on Zulip Kevin Mayfield (Feb 15 2020 at 08:30):

Also happening on GraphDefinition and MessageDefinition. Stu3 (works on R4)

view this post on Zulip Grahame Grieve (Feb 17 2020 at 00:59):

please report stack dumps on this issue, so we can actually know what the problem is

view this post on Zulip Brian Postlethwaite (Feb 17 2020 at 01:33):

Both I assume, is that github issue or jira tracker?

view this post on Zulip Grahame Grieve (Feb 17 2020 at 01:38):

well.... we seem to be in disarray on that question. We have 2 camps well trained to use only one of those. and a third camp trained to just report issues here.\

view this post on Zulip Brian Postlethwaite (Feb 17 2020 at 01:41):

So, where would you like to look?

view this post on Zulip Grahame Grieve (Feb 17 2020 at 01:45):

github, I think. what I really want is:

  • what the author thinks is wrong
  • how to reproduce it (GH branch preferred)
  • where exactly to look in the output to see the problem

view this post on Zulip Brian Postlethwaite (Feb 17 2020 at 01:56):

Roger.

view this post on Zulip Brian Postlethwaite (Feb 18 2020 at 00:36):

The SDC Guide gets the issue too, will log on github

view this post on Zulip Brian Postlethwaite (Feb 18 2020 at 00:36):

https://build.fhir.org/ig/HL7/sdc/branches/master/build.log

view this post on Zulip Brian Postlethwaite (Feb 18 2020 at 00:42):

This what you're looking for @Grahame Grieve ?
https://github.com/HL7/fhir-ig-publisher/issues/61

view this post on Zulip Brian Postlethwaite (Feb 18 2020 at 00:43):

I was going to comment out the call to org.hl7.fhir.igtools.publisher.Publisher.generateRegistryUploadZip in Publisher.java:4613

view this post on Zulip Grahame Grieve (Feb 18 2020 at 00:50):

I already have.

view this post on Zulip Brian Postlethwaite (Feb 18 2020 at 00:53):

Cool, so next release will catch it (I can see the change in there now, thanks again)


Last updated: Apr 12 2022 at 19:14 UTC