You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The HAPI Validator fails for validating a value from a value set where codesystem versions are defined by asterisk with error message
HAPI-0702: Unable to expand ValueSet because CodeSystem could not be found: http://fhir.de/CodeSystem/bfarm/icd-10-gm|*)
To Reproduce
Steps to reproduce the behavior:
Provision the validator by environment variables like
which should use multiple same code system URIs but with different versions like "2014" to "2024". The codesystems are imported by an other package (de.medizininformatikinitiative.kerndatensatz.diagnose).
The validator error message for valid values:
The Coding provided (http://fhir.de/CodeSystem/bfarm/icd-10-gm#CensoredICDCode) is not in the value set 'ICD10GM' (http://fhir.de/ValueSet/bfarm/icd-10-gm|1.4.0), and a code is required from this value set. (error message = Failed to expand ValueSet 'http://fhir.de/ValueSet/bfarm/icd-10-gm' (in-memory). Could not validate code http://fhir.de/CodeSystem/bfarm/icd-10-gm#CensoredICDCode. Error was: HAPI-0702: Unable to expand ValueSet because CodeSystem could not be found: http://fhir.de/CodeSystem/bfarm/icd-10-gm|*)
If i manipulate the ValueSet by defining multiple concrete versions instead of *, the error "Unable to expand ValueSet because CodeSystem could not be found" does not occur anymore and values can be validated.
But even in this case HAPI seems to use not all codesystem versions/their values on validation, so some valid values which are not in newest codesystem version (or latest version defined in valueset?) anymore but in defined other versions are returned as not valid.
The text was updated successfully, but these errors were encountered:
Mandalka
changed the title
Validator fails for validating a value set where codesystem versions in compose are defined by asterisk
Validator fails for validating value from value set where codesystem versions in compose are defined by asterisk
Apr 23, 2024
Describe the bug
The HAPI Validator fails for validating a value from a value set where codesystem versions are defined by asterisk with error message
HAPI-0702: Unable to expand ValueSet because CodeSystem could not be found: http://fhir.de/CodeSystem/bfarm/icd-10-gm|*)
To Reproduce
Steps to reproduce the behavior:
Provision the validator by environment variables like
Validation of diagnoses with correct values from Valueset http://fhir.de/ValueSet/bfarm/icd-10-gm
Expected behavior
Expand ValueSet if codesystem versions defined by asterisk.
Environment (please complete the following information):
Additional context
The HAPI Validator fails for validating a value from a value set where versions are defined by asterisk (https://www.hl7.org/fhir/valueset-definitions.html#ValueSet.compose.include.version "The version of the code system that the codes are selected from, or the special version '*' for all versions.") like:
in URI http://fhir.de/ValueSet/bfarm/icd-10-gm (https://simplifier.net/packages/de.basisprofil.r4/1.4.0/files/656611/~json)
which should use multiple same code system URIs but with different versions like "2014" to "2024". The codesystems are imported by an other package (de.medizininformatikinitiative.kerndatensatz.diagnose).
The validator error message for valid values:
The Coding provided (http://fhir.de/CodeSystem/bfarm/icd-10-gm#CensoredICDCode) is not in the value set 'ICD10GM' (http://fhir.de/ValueSet/bfarm/icd-10-gm|1.4.0), and a code is required from this value set. (error message = Failed to expand ValueSet 'http://fhir.de/ValueSet/bfarm/icd-10-gm' (in-memory). Could not validate code http://fhir.de/CodeSystem/bfarm/icd-10-gm#CensoredICDCode. Error was: HAPI-0702: Unable to expand ValueSet because CodeSystem could not be found: http://fhir.de/CodeSystem/bfarm/icd-10-gm|*)
If i manipulate the ValueSet by defining multiple concrete versions instead of
*
, the error "Unable to expand ValueSet because CodeSystem could not be found" does not occur anymore and values can be validated.But even in this case HAPI seems to use not all codesystem versions/their values on validation, so some valid values which are not in newest codesystem version (or latest version defined in valueset?) anymore but in defined other versions are returned as not valid.
The text was updated successfully, but these errors were encountered: