Stream: conformance
Topic: 4.1.0: confused about fhir versions
Patrick Werner (Feb 03 2020 at 20:07):
looking at http://hl7.org/fhir/directory.html is can't find a FHIR version 4.1.0. But the current java validator uses StructureDefinitions with version 4.1.0. When trying to use -snapshot with the validator i get errors like:
Exception in thread "main" org.hl7.fhir.exceptions.FHIRException: Error loading StructureDefinition-goal-reasonRejected.json: Unknown FHIRVersion code '4.1.0'
at org.hl7.fhir.r5.context.SimpleWorkerContext.fromDefinitions(SimpleWorkerContext.java:223)
at org.hl7.fhir.r5.validation.ValidationEngine.loadDefinitions(ValidationEngine.java:341)
at org.hl7.fhir.r5.validation.ValidationEngine.loadInitialDefinitions(ValidationEngine.java:288)
at org.hl7.fhir.r5.validation.ValidationEngine.<init>(ValidationEngine.java:320)
at org.hl7.fhir.r5.validation.Validator.main(Validator.java:570)
Caused by: java.lang.IllegalArgumentException: Unknown FHIRVersion code '4.1.0'
at org.hl7.fhir.r5.model.Enumerations$FHIRVersionEnumFactory.fromCode(Enumerations.java:6590)
at org.hl7.fhir.r5.model.Enumerations$FHIRVersionEnumFactory.fromCode(Enumerations.java:6537)
at org.hl7.fhir.r5.formats.JsonParser.parseEnumeration(JsonParser.java:87)
at org.hl7.fhir.r5.formats.JsonParser.parseStructureDefinitionProperties(JsonParser.java:24641)
at org.hl7.fhir.r5.formats.JsonParser.parseStructureDefinition(JsonParser.java:24560)
at org.hl7.fhir.r5.formats.JsonParser.parseResource(JsonParser.java:29203)
at org.hl7.fhir.r5.formats.JsonParserBase.parse(JsonParserBase.java:113)
at org.hl7.fhir.r5.context.SimpleWorkerContext.loadFromFileJson(SimpleWorkerContext.java:298)
at org.hl7.fhir.r5.context.SimpleWorkerContext.loadDefinitionItem(SimpleWorkerContext.java:233)
at org.hl7.fhir.r5.context.SimpleWorkerContext.fromDefinitions(SimpleWorkerContext.java:220)
... 4 more
Patrick Werner (Feb 03 2020 at 20:08):
org.hl7.fhir.r5.model.Enumerations doesn't contain 4.1.0. Am i confused or the validator?
Grahame Grieve (Feb 03 2020 at 20:09):
something is confused. are you using an old version of the validator?
Patrick Werner (Feb 03 2020 at 20:16):
no, the current master locally build
Grahame Grieve (Feb 03 2020 at 20:18):
how you running it then?
Patrick Werner (Feb 03 2020 at 20:30):
oh, my bad. I cleared the fhir package cache and tried it again. Works now. Sorry for bothering.
Grahame Grieve (Feb 03 2020 at 21:12):
hmm. I screwed something up the past then
Patrick Werner (Feb 03 2020 at 21:42):
snapshot looks good. Only odd thing it messes up special characters like Umlauts
Patrick Werner (Feb 03 2020 at 21:43):
checked and debugged the code, couldn‘t find the cause of it
Patrick Werner (Feb 03 2020 at 21:43):
the writer streams or string-> byte conversions are looking good to me
Last updated: Apr 12 2022 at 19:14 UTC