The Context Engine Studio is now open source. ย View on GitHub โ†’
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

ArgumentTypeRequiredDescription
patient_idstringYesThe patient's patientId. See Shared arguments.
pathstringYesA path relative to the patient, such as / or /conditions/active. See Paths.
session_idstringNoA 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-30

For 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.

On this page