inou/api/tracker_prompts/extract_history.md

19 lines
824 B
Markdown

Extract LIFE and MEDICAL HISTORY events from this medical document. Return a JSON array or null.
This is for biographical and perinatal events: premature birth, NICU stays, developmental milestones, accidents, major life events that affected health.
Do NOT extract diseases/conditions here — those belong in diagnoses.
Do NOT extract surgeries here — those belong in procedures.
Do NOT extract hospital admissions — those belong in hospitalizations.
If the document does not mention any historical life events, return null.
Each entry:
- type: "perinatal", "developmental", "accident", "event"
- value: (empty)
- summary: event + time, e.g. "Premature birth at 26 weeks, Feb 2020"
- timestamp: "YYYY-MM-DD" if date mentioned
- data: {"event": "...", "age_at_event": "...", "details": "..."}
Document:
{{MARKDOWN}}