Tools
browse_patient
Lists a folder of a patient's virtual file tree, or returns a file's content.
Navigates a patient's virtual file tree. A folder returns its entries; a file returns its content in narrative form. Start at / and drill down.
Input
| Argument | Type | Required | Description |
|---|---|---|---|
patient_id | string | Yes | The patient's patientId. See Shared arguments. |
path | string | Yes | A path relative to the patient, such as / or /conditions/active. See Paths. |
session_id | string | No | A session to record the call on. See Record calls on a session. |
Output
For a folder, a Markdown listing: a # heading with the path, then one line per entry. ๐ marks a folder and ๐ a file. The entry's readable name follows the ยท when its name is an id, and a preview follows the dash when the entry has one.
Input
{ "patient_id": "abc", "path": "/conditions/active" }Output
# /conditions/active
๐ fct_k3v9q2m7x1c8b5n4z6w0a2d1 ยท Type 2 diabetes mellitus โ status: active | onset: 2016-03-01
๐ fct_p8d4w1n6y3t9s2f7j5g0c8m3 ยท Hypertension โ status: active | onset: 2019-05-12
๐ fct_b6x2r9k4h1v7q3z8n5d0t2w6 ยท Chronic kidney disease stage 3b โ status: active | onset: 2021-09-30For a file, the file's content in narrative form. Use read_patient to choose its format or cap its length.
For a path that does not exist, the result has isError: true and its text is path not found: {path}. See Errors.