inou/api/tracker_prompts/extract_diagnosis.md

20 lines
833 B
Markdown

Extract diagnoses and medical conditions from this medical document. Return a JSON array or null.
Each entry:
- type: status ("active", "resolved", "historical")
- value: (empty)
- summary: condition name, e.g. "Type 2 Diabetes Mellitus"
- search_key: ICD-10 code lowercase if available, e.g. "g91.1"
- timestamp: "YYYY-MM-DD" if diagnosis date mentioned
- data: {"icd10": "...", "status": "active/resolved", "source": "document"}
Only extract DISEASES and CONDITIONS — not procedures.
"Z. n. [procedure]" (status post procedure) belongs in surgical history, not here.
Use the EXACT wording from the document. Do NOT translate or rewrite condition names.
Every entry MUST come from text explicitly present in the document. Do NOT infer or assume.
Return null if nothing relevant is explicitly described.
Document:
{{MARKDOWN}}