Write it in exam oriented way.
cd /tmp/workspace/attachments/e7df210f-02a9-4328-b6c8-fd2b6326612d && python3 -c " import pdfplumber with pdfplumber.open('TCA poisoning.pdf') as pdf: print(f'Total pages: {len(pdf.pages)}') for i, page in enumerate(pdf.pages): text = page.extract_text() print(f'--- PAGE {i+1} ---') print(text) print() "
python3 -c " from pypdf import PdfReader import base64, json reader = PdfReader('/tmp/workspace/attachments/e7df210f-02a9-4328-b6c8-fd2b6326612d/TCA poisoning.pdf') print('Pages:', len(reader.pages)) print('Page size:', reader.pages[0].mediabox) # Check for images for i, page in enumerate(reader.pages): imgs = list(page.images) print(f'Page {i+1}: {len(imgs)} images') for img in imgs: print(f' - {img.name}, data len: {len(img.data)}') "
python3 -c " from pypdf import PdfReader import os reader = PdfReader('/tmp/workspace/attachments/e7df210f-02a9-4328-b6c8-fd2b6326612d/TCA poisoning.pdf') os.makedirs('/tmp/workspace/tca_pages', exist_ok=True) for i, page in enumerate(reader.pages): for img in page.images: with open(f'/tmp/workspace/tca_pages/page_{i+1}.jpg', 'wb') as f: f.write(img.data) print(f'Saved page_{i+1}.jpg') "
python3 -c " # Try pytesseract or other OCR import subprocess result = subprocess.run(['which', 'tesseract'], capture_output=True, text=True) print('tesseract:', result.stdout.strip() or 'not found') # Try using PIL to check image from PIL import Image img = Image.open('/tmp/workspace/tca_pages/page_1.jpg') print('Image size:', img.size, 'mode:', img.mode) "
python3 << 'EOF' from PIL import Image img = Image.open('/tmp/workspace/tca_pages/page_1.jpg') print('Image size:', img.size, 'mode:', img.mode) # Try pytesseract try: import pytesseract text = pytesseract.image_to_string(img) print("OCR SUCCESS:") print(text[:2000]) except Exception as e: print("pytesseract error:", e) # Try easyocr try: import easyocr reader = easyocr.Reader(['en']) result = reader.readtext('/tmp/workspace/tca_pages/page_1.jpg', detail=0) print("EasyOCR result:", result[:50]) except Exception as e: print("easyocr error:", e) EOF
pip install --user pytesseract 2>&1 | tail -3; python3 -c "import pytesseract; print('ok')" 2>&1
python3 << 'EOF' import pytesseract from PIL import Image all_text = "" for i in range(1, 7): img = Image.open(f'/tmp/workspace/tca_pages/page_{i}.jpg') text = pytesseract.image_to_string(img) all_text += f"\n\n=== PAGE {i} ===\n{text}" print(all_text) EOF
| Target | Clinical Effect |
|---|---|
| Fast Na+ channel (cardiac) | QRS prolongation, ventricular dysrhythmias, cardiogenic shock |
| IKr K+ channel | QT prolongation, torsades de pointes |
| Alpha-1 adrenoceptor | Peripheral vasodilation, hypotension, reflex tachycardia |
| Muscarinic (M1) receptor | Antimuscarinic toxidrome (see below) |
| H1 histamine receptor | Sedation, somnolence |
| GABA-A receptor (antagonism) | Seizures |
| NE/5-HT reuptake pumps | Serotonin syndrome (rarely) |
Mnemonic for TCA actions: "Na-K-M-H-Alpha-GABA" - block them all!
The classic triad of severe TCA overdose: Coma + Seizures + Wide QRS tachycardia
| Finding | Significance |
|---|---|
| QRS < 100 ms | Low risk - patient unlikely to seize or develop dysrhythmias |
| QRS ≥ 100 ms | HIGH RISK - seizures and/or ventricular dysrhythmias |
| QRS > 160 ms | Very high risk of ventricular arrhythmia |
| Tall R wave in aVR (RSR' pattern in aVR) | Predicts significant toxicity - classic exam finding! |
| QT prolongation | Especially with Clomipramine and Amitriptyline |
| Sinus tachycardia | Almost universal (unless co-ingestant or moribund patient) |
Key exam point: Clomipramine is especially associated with QT dispersion and mortality risk.
Key differentiator: TCAs cause wide QRS + tachycardia + anticholinergic features - this combination is very characteristic.
| Problem | Intervention |
|---|---|
| Hypotension unresponsive to NaHCO3 | Norepinephrine, vasopressin |
| Refractory dysrhythmias/shock | Lidocaine (displaces TCA from Na channel) |
| Refractory shock/dysrhythmias | IV Lipid Emulsion (1.5 cc/kg bolus max 100cc, then 0.25 cc/kg/min x 20 min) |
| Cardiovascular collapse (last resort) | VA-ECMO |
| Drug | Reason |
|---|---|
| Physostigmine | Asystole, especially with bradycardia/AV block |
| Flumazenil | Seizures |
| Phenytoin | Worsens Na-channel blockade |
| Class IA/IC antiarrhythmics | Additive Na-channel blockade |
| Prophylactic NaHCO3 | Not indicated unless symptomatic |
TCA TOXICITY = 3 Cs
Cardiac (wide QRS, arrhythmia, shock)
CNS (seizures, coma)
Cholinergic block (antimuscarinic toxidrome)
TREATMENT = NaHCO3 first → Benzos for seizures →
NE/vasopressin if still hypotensive →
Lidocaine/Lipid emulsion if refractory →
ECMO last resort