Stream: IG creation
Topic: v1.1.x Localization warnings/build fail
Alexander Henket (Jul 05 2020 at 09:30):
(deleted)
Alexander Henket (Jul 05 2020 at 11:00):
(deleted)
Alexander Henket (Jul 05 2020 at 11:43):
My initial posts were about user errors. I fixed those. Not sure what to do about these:
FHIR IG Publisher Version 1.1.1 (Git# d3432fbc0971). Built 2020-07-04T00:36:51.739Z (34 hours old)
...
Processing Conformance Resources (00:22.0470)
Terminology server: Check for supported code systems for urn:iso:std:iso:3166 (00:31.0809)
?Attempting to localize message sdf-16: All element definitions must have unique ids (snapshot) ( (ids: ContactPoint,ContactPoint.id,ContactPoint.extension,ContactPoint.system,ContactPoint.system.id,ContactPoint.system.extension,ContactPoint.system.extension:EmailAddressTypeCodelist,ContactPoint.system.extension:EmailAddressTypeCodelist.id,ContactPoint.system.extension:EmailAddressTypeCodelist.extension,ContactPoint.system.extension:EmailAddressTypeCodelist.url,ContactPoint.system.extension:EmailAddressTypeCodelist.value[x],ContactPoint.system.extension:EmailAddressTypeCodelist.value[x]:valueCodeableConcept,ContactPoint.system.extension:TelecomTypeCodelist,ContactPoint.system.extension:TelecomTypeCodelist.id,ContactPoint.system.extension:TelecomTypeCodelist.extension,ContactPoint.system.extension:TelecomTypeCodelist.url,ContactPoint.system.extension:TelecomTypeCodelist.value[x],ContactPoint.system.extension:TelecomTypeCodelist.value[x]:valueCodeableConcept,ContactPoint.system.value,ContactPoint.value,ContactPoint.use,ContactPoint.use.id,ContactPoint.use.extension,ContactPoint.use.extension:EmailAddressTypeCodelist,ContactPoint.use.extension:EmailAddressTypeCodelist.id,ContactPoint.use.extension:EmailAddressTypeCodelist.extension,ContactPoint.use.extension:EmailAddressTypeCodelist.url,ContactPoint.use.extension:EmailAddressTypeCodelist.value[x],ContactPoint.use.extension:EmailAddressTypeCodelist.value[x]:valueCodeableConcept,ContactPoint.use.extension:EmailAddressTypeCodelist.value[x]:valueCodeableConcept,ContactPoint.use.extension:NumberTypeCodelist,ContactPoint.use.extension:NumberTypeCodelist.id,ContactPoint.use.extension:NumberTypeCodelist.extension,ContactPoint.use.extension:NumberTypeCodelist.url,ContactPoint.use.extension:NumberTypeCodelist.value[x],ContactPoint.use.extension:NumberTypeCodelist.value[x]:valueCodeableConcept,ContactPoint.use.value,ContactPoint.rank,ContactPoint.period)) [snapshot.element.id.trace('ids').isDistinct()], but no such equivalent message exists for the local en_US
Attempting to localize message sdf-17: All element definitions must have unique ids (diff) ( (ids: ContactPoint,ContactPoint.system,ContactPoint.system.extension,ContactPoint.system.extension:EmailAddressTypeCodelist,ContactPoint.system.extension:EmailAddressTypeCodelist.valueCodeableConcept:valueCodeableConcept,ContactPoint.system.extension:TelecomTypeCodelist,ContactPoint.system.extension:TelecomTypeCodelist.valueCodeableConcept:valueCodeableConcept,ContactPoint.value,ContactPoint.use,ContactPoint.use.extension,ContactPoint.use.extension:EmailAddressTypeCodelist,ContactPoint.use.extension:EmailAddressTypeCodelist.valueCodeableConcept:valueCodeableConcept,ContactPoint.use.extension:EmailAddressTypeCodelist.valueCodeableConcept:valueCodeableConcept,ContactPoint.use.extension:NumberTypeCodelist,ContactPoint.use.extension:NumberTypeCodelist.valueCodeableConcept:valueCodeableConcept)) [differential.element.id.trace('ids').isDistinct()], but no such equivalent message exists for the local en_US
Attempting to localize message eld-13: Types must be unique by the combination of code and profile [type.select(code & profile & targetProfile).isDistinct()], but no such equivalent message exists for the local en_US
???????Attempting to localize message sdf-8: In any snapshot, all the elements must be in the specified type [((%resource.kind = 'logical') or (element.first().path = %resource.type)) and element.tail().all(path.startsWith(%resource.snapshot.element.first().path & '.'))], but no such equivalent message exists for the local en_US
?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????Attempting to localize message eld-2: Min <= Max [min.empty() or max.empty() or (max = '*') or (min <= max.toInteger())], but no such equivalent message exists for the local en_US
???????????????????????????????????????????????????????????????Exception in thread "main" java.lang.Error: Access single value, but value count is 0
at org.hl7.fhir.r5.renderers.utils.ElementWrappers$PropertyWrapperMetaElement.value(ElementWrappers.java:303)
at org.hl7.fhir.r5.renderers.DiagnosticReportRenderer.render(DiagnosticReportRenderer.java:67)
at org.hl7.fhir.r5.renderers.ResourceRenderer.render(ResourceRenderer.java:76)
at org.hl7.fhir.igtools.publisher.Publisher.generateNarratives(Publisher.java:1068)
at org.hl7.fhir.igtools.publisher.Publisher.loadConformance(Publisher.java:3659)
at org.hl7.fhir.igtools.publisher.Publisher.createIg(Publisher.java:846)
at org.hl7.fhir.igtools.publisher.Publisher.execute(Publisher.java:708)
at org.hl7.fhir.igtools.publisher.Publisher.main(Publisher.java:7809)
Thoughts? Reproduction possible using source here: https://github.com/Nictiz/Nictiz-FHIR-IG
Alexander Henket (Jul 05 2020 at 11:45):
Note: this must be about something in my input as the vanilla sample-ig this was based on ran without this failure, but without more clues than what was presented it is almost impossible to debug
Jose Costa Teixeira (Jul 05 2020 at 12:21):
your zib-OutcomeOfCare2 has no subject. is that intended?
Jose Costa Teixeira (Jul 05 2020 at 12:31):
if you "fix" that, it seems to build OK (just as a workaround)
Jose Costa Teixeira (Jul 05 2020 at 13:19):
What is causing it seems to be the publisher: I think this is the error line that gives the code - perhaps there should be an if statement, since subject is not mandatory:
https://github.com/hapifhir/org.hl7.fhir.core/blob/master/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/renderers/DiagnosticReportRenderer.java#L67
Alexander Henket (Jul 05 2020 at 13:59):
... the example zib-OutcomeOfCare-02.xml ... indeed. Still produces a lot of question marks and things about Attempting to localize message
, but yes at least it finishes now.
Jose Costa Teixeira (Jul 05 2020 at 14:06):
https://github.com/Nictiz/Nictiz-FHIR-IG/blob/master/input/examples/zib-OutcomeOfCare-02.xml
Alexander Henket (Jul 05 2020 at 14:08):
Subject is required in the profile, but that should not be a reason for the validator to quit. It should be a reason to add that notion to QA.html
Jose Costa Teixeira (Jul 05 2020 at 14:15):
yes, I think it's the renderer that is "making it mandatory" by reading it and crashing if it is not found, so I guess we'll have to see with Grahame if that line of code should have a if statement
Grahame Grieve (Jul 05 2020 at 19:51):
the "?" is a debugging thing for me I missed when committing. sorry.
Grahame Grieve (Jul 05 2020 at 19:51):
I'll fix DiagnosticReport rendering
Grahame Grieve (Jul 05 2020 at 19:55):
the "Attempting to localize message" error is for me or Mark - nothing anyone else can do about these ones
Alexander Henket (Jul 06 2020 at 02:50):
Nice. Does that also mean I should be on the lookout for actual localization to Dutch for those messages?
Grahame Grieve (Jul 06 2020 at 02:52):
well, we've been working on localising the messages produced by the validator, but that hasn't extended to localising the messages produced by the invariants from profiles, and all of these messages you're referring to come from there
Alexander Henket (Jul 06 2020 at 07:00):
This morning I got a new run failure based on the same input source:
Stack Dump (for debugging): (01:40.0031)
java.lang.IllegalStateException: Not a JSON Object: null
at com.google.gson.JsonElement.getAsJsonObject(JsonElement.java:91)
at org.hl7.fhir.dstu3.formats.JsonParser.parseProvenanceProperties(JsonParser.java:15193)
at org.hl7.fhir.dstu3.formats.JsonParser.parseProvenance(JsonParser.java:15155)
at org.hl7.fhir.dstu3.formats.JsonParser.parseResource(JsonParser.java:19713)
at org.hl7.fhir.dstu3.formats.JsonParserBase.parse(JsonParserBase.java:122)
at org.hl7.fhir.igtools.publisher.Publisher.convertFromElement(Publisher.java:4930)
at org.hl7.fhir.igtools.publisher.Publisher.processProvenance(Publisher.java:928)
at org.hl7.fhir.igtools.publisher.Publisher.processProvenanceEntries(Publisher.java:902)
at org.hl7.fhir.igtools.publisher.Publisher.processProvenanceDetails(Publisher.java:888)
at org.hl7.fhir.igtools.publisher.Publisher.createIg(Publisher.java:857)
at org.hl7.fhir.igtools.publisher.Publisher.execute(Publisher.java:708)
at org.hl7.fhir.igtools.publisher.Publisher.main(Publisher.java:7809)
Alexander Henket (Jul 06 2020 at 07:00):
Given that, afaik, this is running the same source: is this a server thing?
Jose Costa Teixeira (Jul 06 2020 at 07:07):
not sure it's related but since yesterday there has been a change in the template, i noticed you have a file that you should remove in your input/history
Jose Costa Teixeira (Jul 06 2020 at 07:09):
the h1.json points to the sample IG file myObservation, which you don't have. Try removing that and see if it fixes the issue
Alexander Henket (Jul 06 2020 at 07:39):
It does. I really need to learn how to trouble shoot faster. Thanks!
Grahame Grieve (Jul 06 2020 at 07:43):
already found the Provenance one and it'll be fixed next release
Last updated: Apr 12 2022 at 19:14 UTC