inferno-framework / fhir-validator-app

A standalone app for validating FHIR resources against an optional Implementation Guide
Apache License 2.0
33 stars 12 forks source link

Ethnicity Coding Error when it shouldn't be #91

Open dletter opened 2 years ago

dletter commented 2 years ago

Validating against hl7.fhir.us.core and us-core-patient profile.

Getting: Patient.extension[1].extension[0].value.ofType(Coding): The Coding provided (urn:oid:2.16.840.1.113883.6.238#2186-5) is not in the value set http://hl7.org/fhir/us/core/ValueSet/omb-ethnicity-category, and a code is required from this value set. (error message = Not in value set http://hl7.org/fhir/us/core/ValueSet/omb-ethnicity-category) on line 218. Jump to error.

for:

            {
                "url" : "ombCategory",
                "valueCoding" : {
                    "system" : "urn:oid:2.16.840.1.113883.6.238",
                    "code" : "2186-5",
                    "display" : "Not Hispanic or Latino"
                }               
            }

2186-5 is the code for Not Hispanic or Latino, and should be valid. The exact same code is passing US Core 3.1.1 Patient 2.10 test in Inferno Validation.

yunwwang commented 2 years ago

@dletter Inferno validator uses tx.fhir.org to do the terminology validation. This is an error on tx.fhir.org.

tx.fhir.org returns an OperationOutcome for http://tx.fhir.org/r4/ValueSet/omb-ethnicity-category/$expand.

I think this is similar to the issue you raised on zulip https://chat.fhir.org/#narrow/stream/179166-implementers/topic/US.20Core.20Patient.20Example.20failing.20Inferno.20Validator.3F