Parameters
| Parameter | Required | Type | Description |
|---|---|---|---|
patient_id | Yes | string | Patient user ID |
date_from | No | string (ISO 8601) | Inclusive lower bound on EventLog.timestamp. Date-only values (e.g. "2018-07-01") are localized to start-of-day in timezone before converting to UTC. |
date_to | No | string (ISO 8601) | Inclusive upper bound on EventLog.timestamp. Date-only values are treated as end-of-day in timezone. |
timezone | No | string (IANA) | Timezone for resolving date-only date_from / date_to (default: "America/New_York"). Full ISO timestamps with a time component are honored verbatim. |
limit | No | integer | Maximum number of logs to return (max 200, default: 50) |
sort | No | "desc" or "asc" | Timestamp sort order (default: "desc", newest first; use "asc" when scanning from the start of an observation window). |
log_types | No | array | Optional list of EventLog.type values to filter by |
trace_type | No | string | Filter by trace.object_type (e.g. "check_in_response") |
trace_id | No | string | Filter by trace.object_id (opaque id string) |
query | No | string (JMESPath) | JMESPath expression applied server-side to the serialized logs array. The expression root is the list of log entries. List results replace logs; non-list results (e.g. length([])) appear under result. Use to project only the payload fields you need; see examples below. |
format | No | "raw" or "markdown" | Output format (default: raw). "pretty" is accepted as a deprecated alias for "markdown". |
query examples
Case-insensitive matching: the built-in JMESPath
contains() is
case-sensitive. Because clinical entity names are typically Title-Case
(e.g. "Chemotherapy (procedure)"), the server also provides three custom
functions in query expressions: lower(str), upper(str), and
icontains(haystack, needle): a case-insensitive, null-safe substring test.
Prefer icontains(field, 'value') (or contains(lower(field), 'value')) for
any name/text filter. These functions are available on both get_logs and
get_view_block queries.Example output
Illustrative:format: raw returns structured records in the logs array; a query replaces logs with the projected result.

