Process new lab results, body composition scans, or medical data. Triggers on "new labs", "lab results", "blood work", "InBody", "DEXA", "test results", or when user shares medical results.
Structured processing of new medical data with automatic updates to all relevant files.
digraph lab {
"Load context" -> "Get data from user";
"Get data from user" -> "Create .md file";
"Create .md file" -> "Update medical README";
"Update medical README" -> "Update relevant domain";
"Update relevant domain" -> "Update me.md";
"Update me.md" -> "Find anomalies";
"Find anomalies" -> "Watchlist check";
}
| File | Why |
|---|---|
data/medical/README.md | Existing data overview, formats |
| Relevant domain README | Previous values for comparison |
docs/context/me.md | Current baselines |
docs/context/watchlist.md |
| Expected tests |
If user sent a photo/PDF:
If user describes verbally:
ALWAYS determine:
Lab tests:
data/medical/lab-tests/YYYY-MM-DD-type-provider.md
Body composition:
data/medical/body-comp/YYYY-MM-DD-method.md
Medical records:
data/medical/records/YYYY-MM-DD-type-provider.md
Use consistent format matching existing files in data/medical/.
Add new file to the appropriate table in data/medical/README.md:
If new diagnoses → add to Official Diagnoses section.
Lab tests → relevant domain(s):
Body comp → body composition domain (if exists):
Update baselines in docs/context/me.md:
Required — compare with previous results:
| Type | What to Look For |
|---|---|
| Out of range | Values outside reference ranges |
| Trend change | Something changed significantly vs last time |
| Expected effect | Did weight loss / stack change affect markers? |
| New findings | Something we didn't have before |
| Artifacts | Could stress, illness, or timing explain an odd result? |
If anomaly found → tell the user and suggest what to do.
docs/context/watchlist.md — was this test on the list?At the end, summarize:
/add-lab-results → ask what type of data and start