Log a dose
log_doseRecord an elder's medication dose by name or phrase, with safety checks for duplicate or too-soon doses; if a dose is refused, confirm with the elder and override with their reason.
Instructions
Record that the elder took a medication (name as spoken — brand names and "my blood pressure pill" work). A safety guard may REFUSE a duplicate or too-soon dose: when requiresConfirmation is true, do NOT retry silently — tell the elder what the guard said, ask them to confirm and say why, and only then call again with confirmOverride=true and overrideReason. If the name is ambiguous the result lists candidates; ask which one.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| elderId | No | Elder id. Omit for the household elder. | |
| takenAt | No | When it was taken (ISO 8601). Defaults to now. | |
| medication | Yes | The medication as the elder said it: "lisinopril", "my blood pressure pill", "Coumadin" | |
| overrideReason | No | The elder's own words for why the extra dose is needed. Required together with confirmOverride. | |
| confirmOverride | No | Set true ONLY after the elder explicitly confirmed recording a dose the guard refused. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | Yes | ||
| status | Yes | ||
| alertId | Yes | ||
| verdict | Yes | ||
| recorded | Yes | ||
| candidates | No | Present when the medication name was ambiguous. | |
| medication | Yes | ||
| lastTakenAt | Yes | ||
| nextAllowedAt | Yes | ||
| requiresConfirmation | Yes | true = do NOT retry silently; ask the elder to confirm and give a reason, then call again with confirmOverride. |