The Context Engine Studio is now open source.  View on GitHub →
Clinia
Tools

search_patient

Keyword search over a patient's clinical facts and timeline events.

Searches a patient's clinical facts (conditions, medications, allergies and the rest of the virtual file tree's entries) and timeline events by keyword. Use it when the agent knows a term but not the path.

Narratives and the documents under /sources/ are not indexed: browse /sources/ for a phrase from a note.

Input

ArgumentTypeRequiredDescription
patient_idstringYesThe patient's patientId. See Shared arguments.
querystringYesSearch terms, such as metformin or kidney function.
session_idstringNoA session to record the call on. See Record calls on a session.

A result must contain every term in query. Matching is on English word stems, so medications matches medication.

Output

Up to 20 matches, best first, as a Markdown list. Each entry is a path, then its preview on the next line.

Input
{ "patient_id": "abc", "query": "metformin" }
Output
- /patient/abc/medications/current/metformin_1000mg
  Metformin 1000mg BID (active)

Paths start with /patient/{id}/, a form read_patient and browse_patient accept.

When nothing matches, No results for "{query}".

On this page