How to use multilingual search
Multilingual search is experimental! API may change!
FHIR specifies the translation extension 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:
Here, translations of the name are specified in the _name, which is FHIR primitive extension.
Search in specified language
Aidbox has non-FHIR search parameter _search-language to specify the locale to search. Then provide some search-parameter, for example name. To enable _search-language:
To search locations by name in French:
To search in English:
Using Accept-Language header
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 concepts
$translate-concept endpoint is used to fetch translations of concepts by their code and system.
will response with
Last updated