inou/api/tracker_prompts/extract_surgery.md

725 B

Extract SURGICAL PROCEDURES from this medical document. Return a JSON array or null.

Only extract actual operations/procedures that were PERFORMED — cutting, implanting, removing, scoping. Do NOT extract diagnoses, conditions, or diseases here — those belong elsewhere. Do NOT extract hospital admissions — those belong elsewhere.

Each entry:

  • type: "inpatient", "outpatient", "endoscopic"
  • value: (empty)
  • summary: procedure + date, e.g. "VP-Shunt Implantation, Jul 2020"
  • timestamp: "YYYY-MM-DD" if date mentioned
  • data: {"procedure": "...", "surgeon": "...", "facility": "...", "details": "..."}

Extract each distinct procedure as a separate entry. Include technique details in data.

Document: {{MARKDOWN}}