Skip to main content

Interface: TerminologyRequestOptions

Options that control how the renderer talks to a terminology server. Every property is optional, anything left out keeps its current value. Passing fetchTerminologyCallback explicitly as undefined or null clears it and restores the built-in transport.

Properties​

fetchTerminologyCallback?​

optional fetchTerminologyCallback: FetchTerminologyCallback | null

Transport used for every terminology request the renderer makes (ValueSet/$expand, ValueSet/$validate-code and CodeSystem/$lookup). Leave this unset (or null) to use the built-in fhirclient transport, which is the default. Supply a callback to route terminology traffic through your own HTTP client, which is what non-browser hosts such as React Native need. The callback is given the request as a query string relative to the terminology server, e.g. ValueSet/$expand?url=..., plus a request config carrying the terminologyServerUrl the renderer resolved for that call. It must resolve with the parsed JSON body of the response, and reject on a transport or HTTP error. This is the same callback shape @aehrc/sdc-populate accepts, so one implementation can serve both.


requestTimeoutMs?​

optional requestTimeoutMs: number

How long a value set expansion may take during form build before it is abandoned. Applies only to the batch $expand of answerValueSet bindings; $validate-code and CodeSystem/$lookup are not timed.

  • Default: 5000