Configure a terminology server
The validator uses a terminology server to check codes that it can't check by itself (see Terminology in validation). This guide shows how to choose and configure it.
Use an external terminology server
Set its address in matchbox.fhir.context.txServer:
tx.fhir.org is the terminology server used by the HL7 FHIR validator. Other servers work too, e.g.
Ontoserver (from version 6.15.0) or a national terminology server.
Use the internal terminology server
For a setup without any external call, use the terminology server built into matchbox-server. Its address is
/matchboxv3/tx on the same server:
The internal terminology server only knows the code systems and value sets of the installed implementation guides and can't expand complex value sets: read its limitations before using it.
Validate without a terminology server
Set txServer to n/a (the default). Codes from code systems that aren't defined in the installed implementation
guides (SNOMED CT, LOINC, …) are then not checked.
Use a terminology server that requires authentication
Put the credentials in a fhir-settings.json file
next to your application.yaml (in Docker: in the /config directory). See the example in
with-ca.
Change the terminology server for one request
Add the txServer parameter to the $validate request:
Troubleshoot the terminology calls
- Log the requests to the terminology server with the
txLogparameter (a file path ending in.txtor.html). - Disable the cache of the terminology responses with
txServerCache: falsewhile testing. - How the validator talks to a terminology server describes the requests and the cache.
The parameters are described in the configuration reference.