inou/api/tracker_prompts/extract_surgery.md

866 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. "Appendectomy, Mar 2024"
  • 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.

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}}