Skip to content
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

Validator is throwing an incorrect error for the Patient resource relating to Race and Ethncity #183

Open
medhost-jhrpcek opened this issue Jul 15, 2024 · 3 comments

Comments

@medhost-jhrpcek
Copy link

Using the patient example json :
https://hl7.org/fhir/us/core/STU6/Patient-example.json.html

Setting the us core to : hl7.fhir.us.core#6.1.0

Receiving these information and errors even though that OID is correct.

Information
Line: 42, Col:12
The definition for the Code System with URI 'urn:oid:2.16.840.1.113883.6.238' doesn't provide any codes so the code cannot be validated

Error
Line: 42, Col:12
The code provided (urn:oid:2.16.840.1.113883.6.238#1586-7) was not found in the value set 'Detailed Race' (http://hl7.org/fhir/us/core/ValueSet/detailed-race|6.1.0), and a code from this value set is required: The provided code 'urn:oid:2.16.840.1.113883.6.238#1586-7 ('Shoshone')' was not found in the value set 'http://hl7.org/fhir/us/core/ValueSet/detailed-race|6.1.0'

Error
Line: 50, Col:12
The code provided (urn:oid:2.16.840.1.113883.6.238#2036-2) was not found in the value set 'Detailed Race' (http://hl7.org/fhir/us/core/ValueSet/detailed-race|6.1.0), and a code from this value set is required: The provided code 'urn:oid:2.16.840.1.113883.6.238#2036-2 ('Filipino')' was not found in the value set 'http://hl7.org/fhir/us/core/ValueSet/detailed-race|6.1.0'

@grahamegrieve
Copy link
Collaborator

is this issue reproducible with the command line validator?

@medhost-jhrpcek
Copy link
Author

medhost-jhrpcek commented Jul 17, 2024

Yes it is. Using the patient example json: https://hl7.org/fhir/us/core/STU6/Patient-example.json.html

java -Xmx2048m -jar validator_cli.jar Concept.json -version 4.0.1 -ig hl7.fhir.us.core#6.1.0 -tx n/a

FAILURE: 1 errors, 11 warnings, 8 notes
Error @ Patient.extension[0].extension[3].value.ofType(Coding) (line 42, col7): The code provided (urn:oid:2.16.840.1.113883.6.238#1586-7) was not found in the value set 'Detailed Race' (http://hl7.org/fhir/us/core/ValueSet/detailed-race|6.1.0), and a code from this value set is required: The provided code 'urn:oid:2.16.840.1.113883.6.238#1586-7 ('Shoshone')' was not found in the value set 'http://hl7.org/fhir/us/core/ValueSet/detailed-race|6.1.0'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants