Stream: hapi
Topic: Expanding the languages valueset issue on a HAPI server
Leonid Toporkov (Aug 07 2019 at 12:22):
I'm receiving an error message "unable to find code system urn:ietf:bcp:47"
from HAPI server while trying to expand "languages" valueset. Same behavior on public HAPI test servers (http://hapi.fhir.org/baseR4/ValueSet/languages/$expand?displayLanguages=de). However, Grahame server executes that operation successfully. Am I doing this right and its server bug, or not? Does anyone encounter such problem? Thanks.
James Agnew (Aug 07 2019 at 13:18):
The HAPI FHIR terminology service doesn't implement BCP47 yet (patches welcome if anyone wanted to do some porting from Pascal :) )
Leonid Toporkov (Aug 07 2019 at 14:44):
The HAPI FHIR terminology service doesn't implement BCP47 yet (patches welcome if anyone wanted to do some porting from Pascal :) )
ohh :) i see now. Thanks
Grahame Grieve (Aug 07 2019 at 19:33):
the logic is here: https://github.com/grahamegrieve/fhirserver/blob/master/Server/FHIR.Tx.Lang.pas
Grahame Grieve (Aug 07 2019 at 19:34):
note, though, that the HAPI framework is quite different so it's not just a language conversion
James Agnew (Aug 11 2019 at 14:34):
I suddenly came to the realization today that the JDK actually has a BCP47 parser and implementation built right in, via the Locale class. This might actually be very easy to implement...
Leonid Toporkov (Aug 11 2019 at 14:48):
@James Agnew wow, thanks! will check that.
Last updated: Apr 12 2022 at 19:14 UTC