Multilingual search
Last updated
Was this helpful?
Last updated
Was this helpful?
Multilingual search is experimental! API may change!
FHIR specifies the to store translations from base language of resource to another languages. In this tutorial we will cover how to search through resources specifying language.
First, let's create a resource Location, which has name in English and French:
To search locations by name in French:
To search in English:
Accept-Language HTTP header can be used instead of _search-language. To enable such behavior, use this environment variable:
or
Now we can use the header instead:
$translate-concept endpoint is used to fetch translations of concepts by their code and system.
will response with
Here, translations of the name are specified in the _name, which is .
Aidbox has non-FHIR search parameter to specify the locale to search. Then provide some search-parameter, for example name. To enable _search-language: