Stream: tooling
Topic: Error for unresolvable system URIs
Ken Sinn (Dec 08 2020 at 15:01):
I noticed in the recent releases (I'm using last week's build), HL7 CLI Validator tries to resolve identifier.system and codesystem uris as well. These were previously only warnings/information, but are now hard errors. Was there a reason for this change in behaviour? Our understanding was that identifier.system URIs are not required to be resolvable, since they are only identifiers.
@Grahame Grieve
Lloyd McKenzie (Dec 08 2020 at 15:42):
You need to grab the most recent validator. This is now fixed.
Ken Sinn (Dec 21 2020 at 13:53):
Should QuestionnaireResponse.questionnaire.reference URLs be resolvable? This is resulting in an Error in the latest build (improvement over the previous stack dump), but wondering if this should be a warning instead of an error, since the reference is of type Canonical.
Lloyd McKenzie (Dec 21 2020 at 15:15):
What version of the validator are you using? This was a problem a week or so ago, but I believe it's not an issue anymore?
Ken Sinn (Dec 21 2020 at 15:20):
Just grabbed it two hours ago.
C:\Users\ken.sinn\Downloads\MTO>java -jar validator_cli.jar -version 4.0.1 -ig ObjectStoreIG ObjectStoreIG\example-bundle-messagebundle.json
FHIR Validation tool Version 5.2.12 (Git# fa2a8ad4e25c). Built 2020-12-18T13:38:39.43Z (3 days old)
Java: 1.8.0_121 from C:\Program Files (x86)\Java\jre1.8.0_121 on x86 (32bit). 247MB available
Paths: Current = C:\Users\ken.sinn\Downloads\MTO, Package Cache = C:\Users\ken.sinn\.fhir\packages
Params: -version 4.0.1 -ig ObjectStoreIG ObjectStoreIG\example-bundle-messagebundle.json
Loading
Load FHIR v4.0 from hl7.fhir.r4.core#4.0.1 - 4575 resources (00:06.0542)
Load hl7.terminology#2.0.0 - 3749 resources (00:01.0351)
Terminology server http://tx.fhir.org - Version 1.9.369 (00:01.0999)
Load ObjectStoreIG - 21 resources (00:00.0397)
Get set... go (00:00.0041)
Validating
Validate ObjectStoreIG\example-bundle-messagebundle.json Load hl7.fhir.uv.sdc#2.7.0 - 60 resources (00:02.0483)
00:00.0404
Done. Times: Loading: 00:10.0563, validation: 00:02.0888
FAILURE: 1 errors, 3 warnings, 2 notes
Error @ Bundle.entry[5].resource.ofType(QuestionnaireResponse).questionnaire (line 268, col82) : URL value 'http://hl7.org/fhir/uv/sdc/Questionnaire/54127-6|2015' does not resolve
Lloyd McKenzie (Dec 21 2020 at 16:07):
Ah, that's because it's defined in the HL7 namespace. The validator expects to know everything defined in HL7. If you're going to validate stuff declared in the HL7 space, you have to use the -ig parameter to pass in the .tgz file for that IG.
Ken Sinn (Dec 23 2020 at 13:07):
I changed the namespace, so that doesn't fix the issue. The validator is still trying to resolve against the questionnaire canonical. I'm already using a -ig parameter as well.
C:\Users\Downloads>java -jar validator_cli.jar -version 4.0.1 -ig ObjectStoreIG ObjectStoreIG\example-bundle-messagebundle.json
FHIR Validation tool Version 5.2.12 (Git# fa2a8ad4e25c). Built 2020-12-18T13:38:39.43Z (4 days old)
Java: 1.8.0_121 from C:\Program Files (x86)\Java\jre1.8.0_121 on x86 (32bit). 247MB available
Paths: Current = C:\Users\Downloads, Package Cache = C:\Users\.fhir\packages
Params: -version 4.0.1 -ig ObjectStoreIG ObjectStoreIG\example-bundle-messagebundle.json
Loading
Load FHIR v4.0 from hl7.fhir.r4.core#4.0.1 - 4575 resources (00:06.0545)
Load hl7.terminology#2.0.0 - 3749 resources (00:01.0375)
Terminology server http://tx.fhir.org - Version 1.9.369 (00:01.0825)
Load ObjectStoreIG - 23 resources (00:00.0493)
Get set... go (00:00.0064)
Validating
Validate ObjectStoreIG\example-bundle-messagebundle.json 00:02.0628
Done. Times: Loading: 00:10.0536, validation: 00:02.0628
FAILURE: 1 errors, 3 warnings, 1 notes
Error @ Bundle.entry[5].resource.ofType(QuestionnaireResponse).questionnaire (line 268, col85) : URL value 'http://random.org/fhir/uv/sdc/Questionnaire/54127-6|2015' does not resolve
Warning @ Bundle.entry[5].resource.ofType(QuestionnaireResponse) (line 268, col85) : The questionnaire 'http://random.org/fhir/uv/sdc/Questionnaire/54127-6|2015' could not be resolved, so no validation can be performed against the base questionnaire
Lloyd McKenzie (Dec 23 2020 at 14:54):
@Grahame Grieve
Grahame Grieve (Dec 23 2020 at 19:21):
do you wnat ot share the example you are validating?
Ken Sinn (Dec 23 2020 at 19:38):
I simplified the example to the following:
{
"resourceType": "QuestionnaireResponse",
"id": "questionnaireresponse-sdc-example-ussg-fht-answers",
"questionnaire": "http://random.org/fhir/uv/sdc/Questionnaire/54127-6|2015",
"status": "in-progress",
"authored": "2008-01-17"
}
C:\Users\ken.sinn\Downloads>java -jar validator_cli.jar -version 4.0.1 ObjectStoreIG\example-quesresponse.json
FHIR Validation tool Version 5.2.12 (Git# fa2a8ad4e25c). Built 2020-12-18T13:38:39.43Z (5 days old)
Java: 1.8.0_121 from C:\Program Files (x86)\Java\jre1.8.0_121 on x86 (32bit). 247MB available
Paths: Current = C:\Users\ken.sinn\Downloads, Package Cache = C:\Users\ken.sinn\.fhir\packages
Params: -version 4.0.1 ObjectStoreIG\example-quesresponse.json
Loading
Load FHIR v4.0 from hl7.fhir.r4.core#4.0.1 - 4575 resources (00:07.0050)
Load hl7.terminology#2.0.0 - 3749 resources (00:01.0698)
Terminology server http://tx.fhir.org - Version 1.9.369 (00:02.0017)
Get set... go (00:00.0056)
Validating
Validate ObjectStoreIG\example-quesresponse.json 00:00.0206
Done. Times: Loading: 00:11.0073, validation: 00:00.0207
FAILURE: 1 errors, 1 warnings, 0 notes
Error @ QuestionnaireResponse.questionnaire (line 5, col85) : URL value 'http://random.org/fhir/uv/sdc/Questionnaire/54127-6|2015' does not resolve
Warning @ QuestionnaireResponse (line 5, col85) : The questionnaire 'http://random.org/fhir/uv/sdc/Questionnaire/54127-6|2015' could not be resolved, so no validation can be performed against the base questionnaire
Last updated: Apr 12 2022 at 19:14 UTC