FHIR Chat · Unknown code {urn:ietf:bcp:47}de for ‘urn:ietf:bcp:47#de’ · hapi

Stream: hapi

Topic: Unknown code {urn:ietf:bcp:47}de for ‘urn:ietf:bcp:47#de’


view this post on Zulip Alexander Dimitrov (Aug 04 2021 at 19:35):

Hi, I’m using a local hapi server which is in a docker (https://hub.docker.com/r/hapiproject/hapi) and also additionally I’m using for some testing purposes the public hapi FHIR server (http://hapi.fhir.org/baseR4). On both servers I’m getting the 'Unknown code {urn:ietf:bcp:47}de for ‘urn:ietf:bcp:47#de’' after trying to validate a bundle against a profile.

Here is the snippet of the Bundle which is causing the error:

...
<communication>
          <language>
            <coding>
              <system value="urn:ietf:bcp:47"/>
              <code value="de"/>
            </coding>
          </language>
          <preferred value="true"/>
</communication>
...

Would somebody know how I could resolve the error? Also which validator is actually built into HAPI?

view this post on Zulip Joel Schneider (Aug 04 2021 at 20:16):

It may be possible to resolve the error by loading content for the urn:ietf:bcp:47 code system.

Looks like the public HAPI server has a urn:ietf:bcp:47 CodeSystem resource, but the CodeSystem includes no CodeSystem.concept values, so it's unable to validate the de code.

curl --silent --request GET --url 'http://hapi.fhir.org/baseR4/CodeSystem?system=urn:ietf:bcp:47'
curl --silent --request GET --url 'http://hapi.fhir.org/baseR4/CodeSystem/v3-ietf3066/$validate-code?code=de'

view this post on Zulip Daniel Venton (Aug 04 2021 at 20:28):

You can't have a comprehensive list of values in the valueset. It's an "infinite" list of values. *You could have a list I suppose, it would just be huge. Your validator has to know the logic to know if the value is conformant. Looks like HAPI doesn't know the logic pattern to test validity.

view this post on Zulip Alexander Dimitrov (Aug 05 2021 at 14:49):

I tried uploading a CodeSystem (https://terminology.hl7.org/1.0.0//CodeSystem-v3-ietf3066.html) and a ValueSet (http://hl7.org/fhir/R4/valueset-all-languages.html), but both seem to not have fixed the issue.


Last updated: Apr 12 2022 at 19:14 UTC