update_lab_result
Correct mistakes in logged lab results by updating collection date, marker, value, unit, flag, notes, panel, or lab name. Select one row by ID or use date and marker to target the right result.
Instructions
Update one or more fields on an existing lab result. Use when the user wants to correct a result already logged, most often its collection date. Only send the fields that need to change; omit all others.
SELECTOR, pass exactly one of id, date, or date+marker:
id: addresses one marker's row. Any editable field may change.
date (optionally narrowed by panel_name): addresses every result from that draw at once. Only new_date, panel_name_new, and lab_name may change this way. result_value, result_unit, marker_name, flag, and notes are per-marker fields and require a single row, so one call can never overwrite every marker in a draw with the same value.
date + marker (a marker-name substring, case-insensitive, optionally narrowed by panel_name): resolves to one marker's row, same as id. Errors with candidate IDs if more than one marker on that date matches.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Lab result ID. Selects a single marker row. Alternative to date. | |
| date | No | Collection date of the draw to update. Format: YYYY-MM-DD. Selects every result from that draw, or (with marker) one row. Alternative to id. | |
| flag | No | New lab flag: "H", "L", "HH", "LL", or "A". Optional, omit if not changing. Only allowed when selecting by id or date+marker. | |
| notes | No | New notes. Optional, omit if not changing. Only allowed when selecting by id or date+marker. | |
| marker | No | Optional with date: marker-name substring, case-insensitive (e.g. "LDL"), narrowing the date selector to a single marker row so per-marker fields can be edited without an id. Ignored when id is given. | |
| lab_name | No | New lab name (e.g. "Quest Diagnostics", "LabCorp"). Optional, omit if not changing. Works with any selector. | |
| new_date | No | New collection date. Format: YYYY-MM-DD. Optional, omit if not changing. This is the main reason to call this tool, and it works with any selector. | |
| panel_name | No | Optional, narrows a date (or date+marker) selector to one panel within that draw (e.g. "Lipid Panel"). Ignored when id is given. | |
| marker_name | No | New marker name. Optional, omit if not changing. Only allowed when selecting by id or date+marker. | |
| result_unit | No | New unit of measurement (e.g. "mg/dL"). Optional, omit if not changing. Only allowed when selecting by id or date+marker. | |
| result_value | No | New numeric result value. Optional, omit if not changing. Only allowed when selecting by id or date+marker. | |
| panel_name_new | No | New panel name. Optional, omit if not changing. Works with any selector. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | Human-readable result text returned by the tool. |