inou/api/tracker_prompts/extract_diagnosis.md

657 B

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. "Posthämorrhagischer Hydrocephalus"
  • 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. Keep the original language of the condition name.

Document: {{MARKDOWN}}