upsert_lab_result
Adds or updates a patient's lab result with doctor-only write access. Includes rollback mode for validation, and triggers risk rule re-evaluation after successful writes.
Instructions
新增一条检验采样。写权仅 doctor_assistant,其余 caller 返回 FORBIDDEN。
成功后 recommend_reevaluate=true,编排层须据此触发风险规则重评。 write_mode=False 为回滚模式,只校验不落盘。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"patient_id": "<patient_id>",
"caller": "<caller>",
"lab": "<lab>"
},
"name": "upsert_lab_result"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lab | Yes | ||
| caller | Yes | ||
| patient_id | Yes | ||
| write_mode | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||