Read the health record
read_recordReturns the user's health-roadmap.json including profile, measurements, lab values, medications, supplements, screenings and documents. Filter by metric or date to see active rows as the current truth.
Instructions
Return the user’s health-roadmap.json: profile, measurements, lab values, medications, supplements, screenings and documents. Rows are never deleted here — a superseded value stays with status "entered-in-error", so read status: "active" rows as the current truth. Optionally narrow to one metric or to rows on or after a date. Use each row's current flag for the value the plan counts. Sync bookkeeping is left out. Measurements are SI (units). A catalogued lab is converted to SI; an unknown test keeps the unit it was reported in. On Dropbox the result also lists files in the folder that are not in the record (folder); offer to import them, never do it unasked.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| since | No | Only rows recorded on or after this day. | |
| metric | No | One metric or test name, e.g. "ldl" or "ferritin". Omit for everything. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| units | Yes | Every measurements[].value is stored in this SI unit, keyed by metricType. A metric the `units` map does not name has no canonical unit: never infer one. A catalogued labValues[] row is stored in its SI unit, converted from what the lab printed; a test the catalogue does not know keeps the unit it was reported in. | |
| folder | No | Dropbox only: files in the folder root that are not in the record. Offer to import them; never do it unasked. | |
| profile | Yes | ||
| documents | Yes | ||
| labValues | Yes | ||
| screenings | Yes | ||
| medications | Yes | ||
| supplements | Yes | ||
| measurements | Yes | ||
| schemaVersion | Yes | ||
| medicationHistory | Yes | ||
| supplementHistory | Yes |