inou/api/tracker_prompts/extract_medication.md

19 lines
656 B
Markdown

Extract medications from this medical document. Return a JSON array or null.
Each entry:
- type: "prescription"
- value: (empty)
- summary: medication name + dose
- timestamp: "YYYY-MM-DD" if start date mentioned
- data: {"medication": "...", "dosage": "...", "frequency": "...", "prescriber": "..."}
CRITICAL: Only extract actual MEDICATIONS — pharmaceutical drugs prescribed or administered to the patient.
Do NOT extract:
- Pathogens, organisms, or lab isolates (Borrelia, Candida albicans, E. coli, etc.)
- Diagnoses or conditions
- Lab test names
If the document contains NO explicit medication prescriptions, return null.
Document:
{{MARKDOWN}}