FHIR Chat · Validator: unknown CodeSystems throws error · implementers

Stream: implementers

Topic: Validator: unknown CodeSystems throws error


view this post on Zulip Patrick Werner (Aug 05 2019 at 14:34):

The java validator and tx.fhir.org are throwing errors when trying to validate codes from an unknown CodeSystem.
This should be a Warning instead.

view this post on Zulip Vy Ho (Aug 05 2019 at 15:40):

USAID

view this post on Zulip Grahame Grieve (Aug 05 2019 at 21:26):

indeed, it should be a warning. So can you be specific about what you are doing/calling and what the validation response is?

view this post on Zulip Reece Adamson (Jan 10 2020 at 12:41):

I've also noticed this as well and this example( patient-example.json) throws an error with Unknown Code System http://hl7.org/fhir/v2/0203 when I run java -jar org.hl7.fhir.validator.jar patient-example.json -version 4.0.
Version of the validator is FHIR Validation tool Version 4.1.41-SNAPSHOT (Git# bdab9a78b39a). Built 2019-12-31T14:32:35.701+11:00 (10 days old)

I didn't see a method in ValidationEngine.java similar to setAnyExtensionsAllowed to change these to warnings.

Is there a way to change unknown CodeSystem errors to warnings ? Happy to help find a solution by testing and digging in further.

view this post on Zulip Grahame Grieve (Jan 13 2020 at 03:54):

so that is not a R4 patient, and the error message is correct. If you validate that against R3, there's no error. If you valdiate it against R4, that is correctly an error - Note that it's not an unknown code system, because there's nothing defined in hl7.org/fhir that is not knowable for the validator. So it's an illegal code system

view this post on Zulip Reece Adamson (Jan 13 2020 at 17:28):

Thanks for the clarification! I can see how it is an illegal code system because the code is included in the extensible ValueSet bound to the profile. I don't think the current "Unknown Code System" error message conveys the actual issue.

view this post on Zulip Grahame Grieve (Jan 13 2020 at 19:54):

the issue is that the code system itself is not valid.

view this post on Zulip Reece Adamson (Jan 13 2020 at 20:04):

Gotcha. I misinterpreted your original response, but understand now.


Last updated: Apr 12 2022 at 19:14 UTC