Error from the HAPI FHIR server on a binding we have on the “value” element

Dear FHIR community,

We are trying to validate an Observation profile and we get an error from the HAPI FHIR server on a binding we have on the “value” element. Note that the value set we are binding is custom and we are using SNOMED codes.

Here is the profile:

Here are the value sets:

simplifier/ehealth4u/cyehr-vs-drugormedicationtype

*** The links are obscured because of posting restrictions.

Here is the error:

None of the codings provided are in the value set ‘Cyprus EHR Value Set: Drug Use Status’ (_/fhir/ValueSet/cyehr-vs-drugusestatus), and a coding from this value set is required) (codes = snomed/sct#3610550000 )

The value set exists in HAPI server and the code is correct

  • Initially we thought that the Display was creating this error since the Display on the ValueSet was custom and different from the one that SNOMED provides, we even modified the Displays to match, however we did not get an actual positive result. The error is still there.

Similar errors where we have the ValueSets:

None of the codings provided are in the value set ‘Cyprus EHR Value Set: Drug Or Medication Type’ (_/fhir/ValueSet/cyehr-vs-drugormedicationtype), and a coding should come from this value set unless it has no suitable code (note that the validator cannot judge what is suitable) (codes = snomed/sct#229003004 )

We had similar issues with other custom made ValueSets. In the following test case, we try to create an allergy resource. The custom value set exists, the concept is present inside the ValueSet, doing a concept-lookup operation returns the same results but doing a validate-code operation on the ValueSet returns an error “No codes in ValueSet belong to CodeSystem with URL snomed/sct "”.

Follows screenshots of what data is present

None of the codings provided are in the value set ‘Cyprus EHR Value Set: eHDSI Status Code’ (_/fhir/ValueSet/cyehr-vs-ehdsistatuscode ), and a coding from this value set is required) (codes = snomed/sct#55561003 )

_/fhir/ValueSet/cyehr-vs-ehdsistatuscode :

_hapi-host_fhir/CodeSystem/$lookup?system=snomed/sct&code=55561003

Response → ResourceType: “Parameters”, name,display,abstract.

hapi-host/fhir/ValueSet/$validate-code?url=_/fhir/ValueSet/cyehr-vs-ehdsistatuscode&system=_snomed/sct&code=55561003

Response → Unable to validate code → No codes in ValueSet belong to CodeSystem with URL: ___

There’s nothing obvious in what you’ve reported but plenty of spaces for things that are not obvious to be a problem, but there’s so many profiles and value sets involved that a quick scan doesn’t reveal what the problem is. Does the command line validator think things are OK? If you think that’s wrong, you can submit an issue against happy core with all the various profiles and value sets wrapped up in a zip file, along with the command you use to run the validator. If the validator thinks it’s all ok, and the HAPI server does not, then you have some set up issue in the hapi server, and you might be able to get help here: Zulip