For AI agents: the documentation index is at /docs/termbox/llms.txt. A Markdown version of this page is available at /docs/termbox/extensions/multi-invoke.md or by requesting it with the Accept: text/markdown header.
Termbox Docs

Multi-Invoke

Termbox extension operation that invokes a supported FHIR operation over multiple entries in a single request. This operation allows for high-throughput batch invocation of supported operations.

Supported Operations

operation valueDescription
CodeSystem/$find-matchesMatch each entry's display text against concepts in a CodeSystem.

Request Parameters

The request body is a FHIR Parameters resource with the following parameters:

NameTypeDescription
operationuriThe operation to invoke, e.g. CodeSystem/$find-matches.
sharedpartParameters shared across all entries. Parts: system (uri, required), version (string, optional).
entrypart[]One entry per lookup. Parts: display (string, required), system (uri, optional), version (string, optional). Entry-level system / version overrides the shared values.

Response

Returns a Parameters resource with one entry per input entry (in the same order). Each entry.part contains zero or more match elements. An entry with no matching concept returns an empty part array.

Example

POST /$x-multi-invoke
Content-Type: application/json

{
  "resourceType": "Parameters",
  "parameter": [
    { "name": "operation", "valueUri": "CodeSystem/$find-matches" },
    {
      "name": "shared",
      "part": [
        { "name": "system",  "valueUri": "http://snomed.info/sct" },
        { "name": "version", "valueString": "http://snomed.info/sct/83821000000107/version/20260211" }
      ]
    },
    { "name": "entry", "part": [{ "name": "display", "valueString": "Acute appendicitis" }] },
    { "name": "entry", "part": [{ "name": "display", "valueString": "Type 2 diabetes mellitus" }] },
    { "name": "entry", "part": [{ "name": "display", "valueString": "this description does not exist" }] }
  ]
}
{
  "resourceType": "Parameters",
  "parameter": [
    {
      "name": "entry",
      "part": [
        { "name": "match", "part": [{ "name": "code", "valueCode": "85189001" }] }
      ]
    },
    {
      "name": "entry",
      "part": [
        { "name": "match", "part": [{ "name": "code", "valueCode": "44054006" }] }
      ]
    },
    {
      "name": "entry",
      "part": []
    }
  ]
}

Matching is exact and case-sensitive. Per-entry system and version parts can be used to look up across different code systems in a single request.

Last updated: