-
Notifications
You must be signed in to change notification settings - Fork 162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Resource validation does not respond with error when a code is not found in a Remote Terminology system #1766
Comments
Could you provide an example? If this involves validating a resource, it will likely be possible to replicate via a fhir-test-cases entry: https://github.com/FHIR/fhir-test-cases/blob/master/validator/manifest.json I can help with this process if provided with example resources, code systems, etc. |
After a discussion with @codeforgreen, the problem is that some terminology servers do not return issues for code validations. {
"resourceType": "Parameters",
"parameter": [
{
"name": "result",
"valueBoolean": false
},
{
"name": "code",
"valueCode": "10xxxxx"
},
{
"name": "system",
"valueUri": "http://terminology.hl7.org/CodeSystem/icd9cm"
},
{
"name": "message",
"valueString": "Unknown code '10xxxxx' in the CodeSystem 'http://terminology.hl7.org/CodeSystem/icd9cm' version '1.0.0'; The provided code 'http://terminology.hl7.org/CodeSystem/icd9cm#10xxxxx' was not found in the value set 'http://fhir.infoway-inforoute.ca/io/psca/ValueSet/ICD9CM%7C1.0.0'"
}
]
} In this case, the InstanceValidator has no issues to process from the server, and will not report any problems for the validation. Making a unit test for this can't be done in fhir-test-cases, because all of the tests hit a conformant server, which will always return the expected issues. I will try to code something that simulates this via mocks. |
That doesn't make sense - the code validation still returned false, so there should be an resulting ValidationMessage But on the other hand, we do not support non-compliant terminology servers so this issue should be closed |
According to the FHIR spec, issues can be missing from the output for versions prior to R5. |
I'm reading the spec the same way. R4 doesn't specify an issues property.
|
There is a test in hapi-fhir testValidateResourceContainingLoincCode which will fail if in the issues are not populated in the mocked validator in addMockedValueSets. |
Terminology services that support the validator must conform to the requirements (and test cases) documented here: https://github.com/FHIR/fhir-test-cases/tree/master/tx. And yes, that includes some things that are not defined in R4, only later. I'm happy to look at this case, because in this case, the lack of an issues shouldn't be a factor. However in general, some things we might just say, not a compliant server, not going to be fixed/supported |
Sorry for the late response on this thread. We've performed a backport of this part of the R5 spec (populate However if there are usages of any other remote terminology servers that will not return I leave it up to you if you'd like to add this test case and restore the behaviour back. Feel free to close this issue otherwise. |
One more thing I wanted to add. I see that the validation module runs on R5. It's possible to canonicalize prior versions to R5 using |
No description provided.
The text was updated successfully, but these errors were encountered: