Stream: inferno
Topic: Program Edition + Validator Service Version
Weiyu Zhang (Nov 23 2021 at 23:49):
Hi all,
I'm running into an odd issue with some Observation tests in program edition v1.8.1, and I think it's caused by an issue in the underlying Inferno validator wrapper v1.2.0/FHIR validator v5.2.0 (that's already been fixed in later versions of the validator). Are there any plans to update the program edition to use a later version of the validator wrapper/FHIR validator?
The specific issue I'm hitting is reference type validation on an extension - the only extension on the resource in question is the following, which allows for a reference to any resource.
{
"valueReference": {
"reference": "DocumentReference/eXhoWyVAhNGFlK.MzFqhY4yvaRWENTinvQ2labjUbYzo3",
"type": "DocumentReference"
},
"url": "http://hl7.org/fhir/StructureDefinition/workflow-supportingInfo"
}
However, we're getting the following error back in the program edition: Observation.extension[0].value.ofType(Reference): The type 'DocumentReference' is not a valid Target for this element (must be one of [])
.
I've tried the same resource against later versions of the Inferno validator wrapper, and this issue goes away in v1.3.0 and later (looks related to the underlying FHIR validator upgrade to 5.3.11).
I'm happy to share the resource we're testing/more setup details/convert this into a github issue if that'll be better!
Thanks in advance!
Yunwei Wang (Nov 24 2021 at 14:39):
Hello @Weiyu Zhang Yes I can confirm this is an issue on FHIR validator v5.2.10. This is the error I received from validator_cli.jar (v5.2.10):
Error @ Observation.extension[0].value.ofType(Reference) (line 6, col88) :
The type 'DocumentReference' is not a valid Target for this element (must be one of [])
which matches what you have seen from Inferno.
Do you mind to create a GitHub Issue here with your sample resource?
Thank you
Weiyu Zhang (Nov 26 2021 at 18:49):
Thanks for looking into this @Yunwei Wang! Submitted as https://github.com/onc-healthit/inferno-program/issues/411
Last updated: Apr 12 2022 at 19:14 UTC