Stream: committers
Topic: Java validator for R5
Rik Smithies (Jan 14 2020 at 18:14):
For R5, what combination of version settings should I use on the command line and in my profiles:
e.g.
java -jar org.hl7.fhir.validator.jar "example.xml" ... -version 4.2.0
and in my profile
<StructureDefinition xmlns="http://hl7.org/fhir">
...
<fhirVersion value="4.2.0"/> <!-- R5 -->
With 4.2.0 the validator says: FHIR Version current, definitions from hl7.fhir.r5.core#current
But then it says
- load file: example-profile.xml - ignored due to error: Unsupported version current
Grahame Grieve (Jan 14 2020 at 19:03):
don't specify any version
Grahame Grieve (Jan 14 2020 at 19:03):
don't specify any version
Rik Smithies (Jan 14 2020 at 19:34):
missing it out on the command line, and it defaults to R5 anyway. But commenting out "fhirVersion" in the structureDef XML makes no difference, I still get "Unsupported version current"
Grahame Grieve (Jan 14 2020 at 19:39):
right, that's got nothing to do with what's in the instances
Rik Smithies (Jan 14 2020 at 20:41):
but then it wont load my profile and so wont validate against it. I dont understand how to get it to use my R5 profile.
Grahame Grieve (Jan 14 2020 at 20:43):
no I don't understand that. it will load your profile if you refer to it
Grahame Grieve (Jan 14 2020 at 20:43):
(in the command line parameters)
Rik Smithies (Jan 14 2020 at 20:46):
java -jar org.hl7.fhir.validator.jar "examples\MATest-create.xml" -ig profiles\Authorization
and in the folder "profiles\Authorization" I have put my profile. But it won't load the profile, giving that error message.
Perhaps there are other issues with the profile, but all I have to go on is the "unsupported version current" message.
Grahame Grieve (Jan 14 2020 at 20:49):
even if you don't specify a version?
Rik Smithies (Jan 14 2020 at 20:50):
that is the exact command line, cut and pasted. Previously I had a "-version" on the end but not now.
Grahame Grieve (Jan 14 2020 at 20:52):
can you send me your example and profile and I'll make sure I can get it working here
Rik Smithies (Jan 14 2020 at 20:54):
If its not a simple fix I will try to debug it a little more, create a minimal instance, and then send it over
Grahame Grieve (Jan 14 2020 at 20:55):
it probably is a simple fix, in fact, I think I've made it. I just want to confirm before doing a release
Last updated: Apr 12 2022 at 19:14 UTC