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

Validation does not error when display is not the same as the display defined in the CodeSystem #4853

Closed
StevenXLi opened this issue May 10, 2023 · 0 comments

Comments

@StevenXLi
Copy link
Contributor

Describe the bug
When validating resources that contain a Coding/CodeableConcept that uses the code and display from a CodeSystem that's in the persistence, the resulting message will not include any errors about the display not being the same as the one in the CodeSystem.
The page here outlines that the display should be checked if it's valid: https://hl7.org/fhir/R4/validation.html

To Reproduce
Steps to reproduce the behavior:

  1. Create a CodeSystem with at least one concept (examples can be found here)
  2. Create a ValueSet that include the CodeSystem that was just created
  3. Allow for the ValueSet to be loaded and expanded
  4. Valdate a resource that contains a Coding/CodeableConcept that uses the code defined in the CodeSystem that was made, with a different display than the one in the CodeSystem
  5. Observe no error in the message returned

Expected behavior
Error should be present in the message

Environment (please complete the following information):

  • HAPI FHIR Version: 6.7.0
  • OS: MacOS
  • Browser: chrome
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant