Hey orris breakdown the following passage from prepladder notes in simple term and define hard terminologies also give example if possible. At the end give some insights to fmge. Don't skip any important information, specially those written in pink
cd /tmp/workspace/attachments/8490e83f-f453-4de9-b14e-0a96867d2ed7/ && python3 -c " import pdfplumber with pdfplumber.open('SplitPDFFile_1_to_15.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, PdfWriter import os reader = PdfReader('/tmp/workspace/attachments/8490e83f-f453-4de9-b14e-0a96867d2ed7/SplitPDFFile_1_to_15.pdf') print(f'Pages: {len(reader.pages)}') # Check if pages have images for i, page in enumerate(reader.pages): images = page.images print(f'Page {i+1}: {len(images)} images') "
python3 -c " from pypdf import PdfReader import os os.makedirs('/tmp/workspace/prepladder_pages', exist_ok=True) reader = PdfReader('/tmp/workspace/attachments/8490e83f-f453-4de9-b14e-0a96867d2ed7/SplitPDFFile_1_to_15.pdf') for i, page in enumerate(reader.pages): for j, img in enumerate(page.images): ext = img.name.split('.')[-1] if '.' in img.name else 'png' path = f'/tmp/workspace/prepladder_pages/page_{i+1}.{ext}' with open(path, 'wb') as f: f.write(img.data) print(f'Saved page {i+1}: {path} ({len(img.data)} bytes)') "
cd /tmp/workspace && python3 -c " # Serve the images via a simple HTTP server temporarily # Actually, let's just use read_file to load each page as binary and then use base64 # Or better - use a task with read_file on images directly # Let me check if there's another way to read the images import base64 import os # Try to see if we can use pypdf to render pages # Check available tools import subprocess result = subprocess.run(['python3', '-c', 'import pdf2image; print(\"ok\")'], capture_output=True, text=True) print('pdf2image:', result.stdout, result.stderr) result2 = subprocess.run(['python3', '-c', 'import fitz; print(\"fitz ok\")'], capture_output=True, text=True) print('fitz/PyMuPDF:', result2.stdout, result2.stderr) result3 = subprocess.run(['python3', '-c', 'from PIL import Image; img = Image.open(\"/tmp/workspace/prepladder_pages/page_1.jpg\"); print(img.size)'], capture_output=True, text=True) print('PIL:', result3.stdout, result3.stderr) "
python3 -c " # Try serving files with a quick HTTP server on localhost import subprocess, threading, time, os # Start HTTP server in background server = subprocess.Popen(['python3', '-m', 'http.server', '8765', '--directory', '/tmp/workspace/prepladder_pages'], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) time.sleep(1) print(f'Server PID: {server.pid}') print('Server started') # Test it import urllib.request try: resp = urllib.request.urlopen('http://localhost:8765/page_1.jpg', timeout=3) print(f'HTTP test: status {resp.status}, size {len(resp.read())} bytes') except Exception as e: print(f'HTTP test failed: {e}') "
python3 -c " from PIL import Image import os input_dir = '/tmp/workspace/prepladder_pages' output_dir = '/tmp/workspace/prepladder_small' os.makedirs(output_dir, exist_ok=True) for i in range(1, 16): src = f'{input_dir}/page_{i}.jpg' dst = f'{output_dir}/page_{i}.jpg' img = Image.open(src) # Resize to 800x1130 (roughly A4 at low res) to keep under 400KB img_resized = img.resize((900, 1272), Image.LANCZOS) img_resized.save(dst, 'JPEG', quality=60) size = os.path.getsize(dst) print(f'page_{i}: {size} bytes ({size < 512000})') "
Scolex = the head/attachment organ of a tapeworm. Think of it as the worm's "anchor."
Vasogenic edema = brain swelling where fluid leaks OUT of blood vessels into brain tissue (vs. cytotoxic edema where fluid goes INTO cells).
| EEG Pattern | Condition | Drug of Choice (DOC) |
|---|---|---|
| π΄ <3Hz spike + slow wave (chaotic, multiple seizure types) | Lennox-Gastaut Syndrome | - |
| π΄ 3Hz spike-and-slow-wave | Absence Seizures | π΄ Etosuximide (kids) / Valproate (adults) / Lamotrigine |
| π΄ Hypsarrhythmia (gross chaotic pattern - looks like static on TV) | Infantile Spasms / West Syndrome / Salaam seizures | π΄ ACTH injection (if only infantile spasms); π΄ Vigabatrin if associated with Tuberous Sclerosis (ash leaf macules + Shagreen patch) |
Mesial temporal sclerosis = scarring/hardening of the hippocampus (memory centre). Common cause of drug-resistant focal epilepsy.
Prion = an abnormally folded protein that causes normal proteins to misfold too - like a chain reaction of "broken" proteins. Not a virus or bacteria.
SSPE = A rare, fatal brain disease occurring years after measles infection. The measles virus persists in the brain and causes slow destruction. Vaccination (MMR) prevents it.
| Fact | Answer |
|---|---|
| M/c epilepsy in children | π΄ Rolandic epilepsy (recurrent focal seizures) |
| M/c seizures in children | π΄ Febrile seizures |
| M/c seizures in neonates | π΄ Subtle seizures |
| M/c cause of subtle seizures in neonates | π΄ Hypoxic Ischemic Encephalopathy (birth asphyxia) |
| AEDs that increase risk of kidney stones + eye pressure | π΄ Topiramate, Zonisamide |
| Only AED causing weight LOSS | Topiramate (all others cause weight gain) |
Ketogenic diet = A high fat, very low carbohydrate diet that puts the body into ketosis (burning fat for energy). For unknown reasons, this reduces seizures in children with refractory epilepsy.
| Situation | Organism |
|---|---|
| Adults / >3 months - <55 yrs | Pneumococcus (Gram-positive Diplococcus) |
| Adults with Purpuric rash + Distributive shock | N. meningitidis (Meningococcemia) |
| Neonates with bulging fontanelle + vacant stare - India | E. coli / Klebsiella |
| Neonates - Global | π΄ Group B Streptococcus (S. agalactiae) |
| Pneumococcus identification | "Draughtsman colonies" on culture |
Waterhouse-Friderichsen Syndrome = Massive bleeding into both adrenal glands during meningococcal sepsis β adrenal glands stop working β shock. Think: "Adrenals destroyed by meningococcus."
PLED = A specific EEG pattern where abnormal electrical discharges repeat on one side of the brain - points to HSV encephalitis.
| Finding | Normal | Acute Bacterial Meningitis | Tubercular Meningitis | Viral Meningitis |
|---|---|---|---|---|
| Cells | 0-5 lymphocytes | >1000 PMN (neutrophils) | 100-1000 lymphocytes | 25-100 lymphocytes |
| Sugar | 2/3 of blood sugar | <0.6 (LOW) | <0.6 (LOW) | Normal |
| Protein | 15-45 mg% | HIGH | π΄ VERY HIGH (>1g/cu.mm) - "Cobweb coagulum" | Mildly high |
| Pressure | 10-20 mmHg | HIGH | HIGH | HIGH |
| Colour | Clear | Turbid/Cloudy | Clear/Straw | Clear |
Soap bubble appearance on MRI = The fungus grows in clusters along blood vessel spaces, creating multiple round cyst-like cavities in the brain that look like soap bubbles.
| MRI Finding | Stage | Treatment |
|---|---|---|
| Multiple hypointense lesions (black holes) with eccentric Scolex | Active larvae in brain | π΄ Albendazole + Praziquantel |
| π΄ Rice grain calcification | Dead cyst (calcified) | π΄ Praziquantel |
| Intracranial calcifications (widespread) | Calcified dead larvae | π΄ Sodium Valproate for 2 years |
| π΄ "Starry sky appearance" on MRI | Multiple eccentric scolices developing in many areas | - |
| Feature | NCC | Tuberculoma |
|---|---|---|
| Lesion size | Usually <20mm | Often >20mm |
| Number | Single or multiple | Often multiple |
| Meningitis | NOT present | Usually associated |
| Common location | Grey-white matter junction | Posterior fossa (M/c) |
| Other spread | Eyes, muscles, subcutaneous | Secondary from elsewhere |
| T2-weighted MRI | Hyperintense lesion + hypointense scolex; no midline shift | Hypointense lesion; midline shift may be present |
| MR spectroscopy | Multiple amino acid peaks | Lipid peak |
Vasospasm = After SAH, irritated blood vessels go into spasm β Brain ischemia. Nimodipine (a calcium channel blocker) prevents this.
π Study tip for FMGE: This chapter is very scenario/image based. Practice recognizing: (1) EEG patterns for different seizures, (2) CT shapes for different bleeds (biconvex vs crescent), (3) CSF tables by heart, and (4) the PINFAN mnemonic. These come up almost every year.
Also add all the photos in the breakdown only. Dont add whole pages photos from notes
python3 -c " from PIL import Image import os os.makedirs('/tmp/workspace/prepladder_crops', exist_ok=True) # Let's check dimensions of each page first for i in range(1, 16): img = Image.open(f'/tmp/workspace/prepladder_pages/page_{i}.jpg') print(f'Page {i}: {img.size} (WxH)') "
python3 << 'EOF' from PIL import Image import os os.makedirs('/tmp/workspace/prepladder_crops', exist_ok=True) def crop_and_save(page_num, crop_box, name, quality=80): """crop_box = (left, top, right, bottom) in pixels on 2480x3508 image""" img = Image.open(f'/tmp/workspace/prepladder_pages/page_{page_num}.jpg') cropped = img.crop(crop_box) # Resize to max 900px wide for web display w, h = cropped.size if w > 900: ratio = 900 / w cropped = cropped.resize((900, int(h * ratio)), Image.LANCZOS) path = f'/tmp/workspace/prepladder_crops/{name}.jpg' cropped.save(path, 'JPEG', quality=quality) size = os.path.getsize(path) print(f'Saved {name}: {cropped.size}, {size} bytes') return path # PAGE 1 (p103): # 1a. EEG table - Lennox row (image of waveform in absence row + hypsarrhythmia) # The EEG table spans roughly y=1450 to y=3300 # Absence seizure EEG waveform image is in the middle row of the table crop_and_save(1, (150, 1530, 1000, 1980), 'p1_absence_eeg_wave') # Hypsarrhythmia row - EEG image + Ash leaf macules photo crop_and_save(1, (150, 2290, 1000, 2780), 'p1_hypsarrhythmia_eeg') crop_and_save(1, (980, 2290, 1450, 2780), 'p1_ash_leaf_macules') # PAGE 4 (p106): Gram staining A image (Pneumococcus on microscopy) crop_and_save(4, (700, 2580, 1800, 3250), 'p4_gram_stain_pneumococcus') # PAGE 5 (p107): # Gram staining B + petechial rash/purpura crop_and_save(5, (500, 240, 1900, 900), 'p5_gram_stain_B_purpura') # PAGE 6 (p108): Nipah virus diagram crop_and_save(6, (450, 810, 2100, 1520), 'p6_nipah_diagram') # PAGE 7 (p109): MCQ images (TB meningitis CSF cobweb + ZN stain) crop_and_save(7, (1300, 430, 2300, 830), 'p7_tb_csf_znstain') # Kernig sign illustration crop_and_save(7, (500, 1450, 1900, 2050), 'p7_kernig_sign') # Brudzinski sign illustration crop_and_save(7, (500, 2280, 1900, 2900), 'p7_brudzinski_sign') # PAGE 8 (p110): Cryptococcus images (India ink + MRI + histology) crop_and_save(8, (350, 720, 2200, 1380), 'p8_crypto_images_top') crop_and_save(8, (350, 1410, 2200, 2050), 'p8_crypto_images_bottom') # PAGE 9 (p111): Cerebral malaria - blood smear images crop_and_save(9, (500, 250, 1700, 820), 'p9_malaria_smear1') crop_and_save(9, (500, 1050, 1700, 1580), 'p9_malaria_smear2') crop_and_save(9, (500, 1750, 1700, 2300), 'p9_malaria_smear3') # PAGE 10 (p112): # LP needles photo crop_and_save(10, (1550, 240, 2400, 820), 'p10_lp_needles') # Patient positioning image crop_and_save(10, (1500, 1200, 2450, 1750), 'p10_lp_positioning') # Layers diagram crop_and_save(10, (1100, 2350, 2450, 3350), 'p10_lp_layers') # PAGE 11 (p113): NCC MRI images crop_and_save(11, (170, 380, 800, 950), 'p11_ncc_mri_active') crop_and_save(11, (170, 1130, 800, 1700), 'p11_ncc_calcified') crop_and_save(11, (170, 1880, 800, 2450), 'p11_ncc_intracranial_calc') crop_and_save(11, (170, 2620, 800, 3180), 'p11_ncc_starry_sky') # MR spectroscopy graph crop_and_save(11, (170, 3200, 900, 3450), 'p11_mr_spectroscopy') # PAGE 12 (p114): # SAH - CSF tubes + CT head crop_and_save(12, (550, 1550, 2050, 2250), 'p12_sah_csf_ct') # PAGE 13 (p115): Cerebral angiography images (coiling) crop_and_save(13, (350, 280, 2100, 1100), 'p13_aneurysm_coiling') # MCQ NCCT image (subdural) crop_and_save(13, (1700, 2380, 2450, 2950), 'p13_subdural_ncct') # PAGE 14 (p116): # Chronic subdural NCCT + diagram crop_and_save(14, (500, 490, 1700, 1180), 'p14_chronic_subdural_ct') # DAI NCCT crop_and_save(14, (500, 1850, 1700, 2550), 'p14_dai_ncct') # PAGE 15 (p117): Extradural hemorrhage CT crop_and_save(15, (450, 190, 1550, 880), 'p15_extradural_ct') print("Done!") EOF
python3 << 'EOF' from PIL import Image import os def crop_and_save(page_num, crop_box, name, quality=80): img = Image.open(f'/tmp/workspace/prepladder_pages/page_{page_num}.jpg') cropped = img.crop(crop_box) w, h = cropped.size if w > 900: ratio = 900 / w cropped = cropped.resize((900, int(h * ratio)), Image.LANCZOS) path = f'/tmp/workspace/prepladder_crops/{name}.jpg' cropped.save(path, 'JPEG', quality=quality) size = os.path.getsize(path) print(f'Saved {name}: {cropped.size}, {size} bytes') # Fix SAH: CSF tubes + CT scan - page 12, SAH images are around y=1800-2500 crop_and_save(12, (550, 1820, 2050, 2520), 'p12_sah_csf_ct') # Fix NCC MRI active - push crop down to get full MRI image crop_and_save(11, (170, 500, 800, 1080), 'p11_ncc_mri_active') # Fix NCC row 2 - calcified cysticercosis crop_and_save(11, (170, 1200, 800, 1780), 'p11_ncc_calcified') # Fix NCC row 3 - intracranial calcifications crop_and_save(11, (170, 1960, 800, 2540), 'p11_ncc_intracranial_calc') # Fix NCC row 4 - starry sky crop_and_save(11, (170, 2700, 800, 3270), 'p11_ncc_starry_sky') # MR spectroscopy - push down more crop_and_save(11, (120, 3100, 900, 3450), 'p11_mr_spectroscopy') # Fix p13 subdural NCCT - the MCQ image is lower on page crop_and_save(13, (1700, 2450, 2450, 3050), 'p13_subdural_ncct') # Page 10 LP needles - fix crop crop_and_save(10, (1580, 280, 2430, 900), 'p10_lp_needles') # Fix ash leaf + hypsarrhythmia combo (bottom of page 1 table) crop_and_save(1, (150, 2750, 1480, 3290), 'p1_hypsarrhythmia_ash_combo') # Page 5 - Get just the purpura leg photo and gram stain B photo separately crop_and_save(5, (500, 240, 1150, 840), 'p5_gram_stain_B') crop_and_save(5, (1150, 240, 1900, 840), 'p5_purpura_legs') # DAI NCCT page 14 - fix crop_and_save(14, (500, 1950, 1700, 2600), 'p14_dai_ncct') # Chronic subdural page 14 - fix crop_and_save(14, (450, 550, 1700, 1250), 'p14_chronic_subdural_ct') # Page 13 MCQ acute subdural crop_and_save(13, (1680, 2380, 2460, 3080), 'p13_subdural_ncct') print('Done fixing crops!') EOF


| EEG Pattern | Condition | DOC |
|---|---|---|
| π΄ <3Hz spike + slow wave | Lennox-Gastaut Syndrome | Sodium Valproate |
| π΄ 3Hz spike-and-slow-wave | Absence Seizures | Ethosuximide (kids) / Valproate (adults) |
| π΄ Hypsarrhythmia (gross chaotic) | West Syndrome / Infantile Spasms | ACTH injection; π΄ Vigabatrin if Tuberous Sclerosis |
| Fact | Answer |
|---|---|
| M/c epilepsy in children | π΄ Rolandic epilepsy |
| M/c seizures in children | π΄ Febrile seizures |
| M/c seizures in neonates | π΄ Subtle seizures |
| M/c cause of subtle seizures | π΄ Hypoxic Ischemic Encephalopathy (birth asphyxia) |
| AED β nephrolithiasis + glaucoma | π΄ Topiramate, Zonisamide |
| Only AED causing weight LOSS | Topiramate |


| Situation | Organism |
|---|---|
| Adults (3 months - 55 yrs) | Pneumococcus - Gram positive, Diplococcus |
| Adults + Purpuric rash + Shock | N. meningitidis (Meningococcemia) |
| Neonates - India | E. coli / Klebsiella |
| Neonates - Global | π΄ Group B Streptococcus (S. agalactiae) |

| Finding | Normal | Bacterial | TB Meningitis | Viral |
|---|---|---|---|---|
| Cells | 0-5 lymphocytes | >1000 PMN | 100-1000 lymphocytes | 25-100 lymphocytes |
| Sugar | 2/3 blood sugar | <0.6 (LOW) | <0.6 (LOW) | Normal |
| Protein | 15-45 mg% | HIGH β | π΄ VERY HIGH >1g (Cobweb coagulum) | Mildly β |
| Pressure | 10-20 mmHg | HIGH β | HIGH β | HIGH β |
| Colour | Clear | Turbid/Cloudy | Clear/Straw | Clear |

π΄ Cobweb coagulum = Very high protein in TB meningitis forms a spider-web clot visible in CSF tube π΄ ZN stain = Red bacilli = M. tuberculosis


π΄ Key difference: Nuchal rigidity only in conscious patients (needs cooperation); Kernig/Brudzinski work in unconscious too





π΄ Pink Box: Card test for Kala-azar = RK39 antigen (GOI)








| Feature | NCC | Tuberculoma |
|---|---|---|
| Lesion size | Usually <20mm | Often >20mm |
| Meningitis | NOT present | Usually associated |
| Common location | Grey-white matter junction | Posterior fossa (M/c) |
| T2 MRI | Hyperintense + hypointense scolex; no midline shift | Hypointense; midline shift possible |
| MR Spectroscopy | Amino acid peaks | Lipid peak |


π΄ Pink Box: Thunderclap headache also in β Pituitary apoplexy, CVT, Acute hydrocephalus, HTN crisis


π΄ Pink Box: Decompressive hemicraniectomy = for malignant cerebral edema (hemorrhagic stroke or blast injury)


Lucid interval is seen in BOTH subdural AND extradural hemorrhage
Why the images are not loading? I am not able to see any images!
python3 -c " import os files = os.listdir('/tmp/workspace/prepladder_crops') files.sort() for f in files: size = os.path.getsize(f'/tmp/workspace/prepladder_crops/{f}') print(f'{f}: {size} bytes') "
python3 << 'PYEOF' import base64, os def img_b64(name): path = f'/tmp/workspace/prepladder_crops/{name}.jpg' with open(path, 'rb') as f: return base64.b64encode(f.read()).decode() def img_tag(name, alt, width="100%", max_width="700px"): b64 = img_b64(name) return f'<img src="data:image/jpeg;base64,{b64}" alt="{alt}" style="max-width:{max_width};width:{width};display:block;margin:10px auto;border-radius:8px;box-shadow:0 2px 8px rgba(0,0,0,0.15);">' html = """<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Neurology Part-1 | PrepLadder Breakdown</title> <style> body { font-family: 'Segoe UI', Arial, sans-serif; max-width: 960px; margin: 0 auto; padding: 20px; background: #f9f9f9; color: #222; line-height: 1.7; } h1 { background: linear-gradient(135deg, #1a73e8, #0d47a1); color: white; padding: 20px 30px; border-radius: 12px; font-size: 1.8em; } h2 { color: #1565C0; border-left: 5px solid #1565C0; padding-left: 14px; margin-top: 40px; font-size: 1.35em; } h3 { color: #2e7d32; margin-top: 24px; font-size: 1.1em; } h4 { color: #6a1b9a; margin-top: 18px; } .pink { color: #e91e8c; font-weight: bold; } .pink-box { background: #fff3f8; border: 2px solid #f48fb1; border-radius: 10px; padding: 16px 20px; margin: 18px 0; } .pink-box h3 { color: #c2185b; margin-top: 0; } .info-box { background: #fffde7; border: 2px solid #f9a825; border-radius: 10px; padding: 16px 20px; margin: 18px 0; } .info-box h3 { color: #e65100; margin-top: 0; } table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 0.93em; } th { background: #1565C0; color: white; padding: 10px 12px; text-align: left; } td { padding: 8px 12px; border: 1px solid #ccc; vertical-align: top; } tr:nth-child(even) { background: #f0f4ff; } .img-caption { text-align: center; font-size: 0.85em; color: #555; font-style: italic; margin-top: -6px; margin-bottom: 14px; } .img-wrap { margin: 16px auto; text-align: center; } ul { padding-left: 22px; } li { margin-bottom: 5px; } .section { background: white; border-radius: 12px; padding: 24px 30px; margin-bottom: 24px; box-shadow: 0 2px 6px rgba(0,0,0,0.08); } .fmge-box { background: #e8f5e9; border: 2px solid #43a047; border-radius: 10px; padding: 20px 24px; margin-top: 30px; } .fmge-box h2 { color: #1b5e20; border-color: #1b5e20; } .tag { display: inline-block; background: #e91e8c; color: white; border-radius: 4px; padding: 1px 7px; font-size: 0.8em; margin-right: 4px; font-weight: bold; } code { background: #f0f0f0; padding: 1px 5px; border-radius: 3px; font-family: monospace; } .stage-row { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; margin: 12px 0; } .stage-col { flex: 1; min-width: 220px; } hr { border: none; border-top: 2px solid #e0e0e0; margin: 30px 0; } </style> </head> <body> <h1>π Neurology Part-1 — Full Breakdown with Images</h1> <p style="color:#555;font-size:0.95em;">Source: PrepLadder Notes • Topics: Seizures • Epilepsy • Meningitis • Encephalitis • LP • NCC • SAH • Head Trauma</p> <!-- ===== SEIZURES & EPILEPSY ===== --> <div class="section"> <h2>TOPIC 1: Seizures and Epilepsy</h2> <h3>What is Epilepsy?</h3> <ul> <li><b>Epilepsy</b> = tendency to have <span class="pink">≥2 unprovoked seizures</span> (no clear trigger like fever or low blood sugar)</li> <li>Seizures from hypoglycemia, fever, or metabolic causes = <b>NOT epilepsy</b></li> <li><span class="pink">M/c cause of acquired epilepsy in India = Neurocysticercosis (NCC)</span></li> <li>NCC: Eating <i>Taenia solium</i> eggs → larvae travel to brain → cysts with scolex → vasogenic edema → <b>seizures</b></li> </ul> <h3>Normal EEG Rhythms</h3> <ul> <li>Eyes <b>open</b> → <span class="pink">Beta rhythm (13–30 Hz)</span></li> <li>Eyes <b>closed</b> → <span class="pink">Alpha rhythm (8–12 Hz)</span></li> </ul> <h3>EEG Pattern: 3Hz Spike-and-Slow-Wave (Absence Seizures)</h3> <div class="img-wrap">""" + img_tag('p1_absence_eeg_wave', '3Hz spike and slow wave EEG - Absence Seizures') + """</div> <p class="img-caption">🔴 3Hz spike-and-slow-wave pattern → Absence seizures</p> <h3>EEG Pattern: Hypsarrhythmia + Ash Leaf Macules (West Syndrome / Tuberous Sclerosis)</h3> <div class="img-wrap">""" + img_tag('p1_hypsarrhythmia_ash_combo', 'Hypsarrhythmia EEG and Ash Leaf Macules in Tuberous Sclerosis') + """</div> <p class="img-caption">🔴 Hypsarrhythmia (Gross Chaotic pattern) = West Syndrome / Infantile Spasms • Ash Leaf Macules = Tuberous Sclerosis</p> <h3>EEG Pattern Table</h3> <table> <tr><th>EEG Pattern</th><th>Condition</th><th>Drug of Choice (DOC)</th></tr> <tr><td><span class="pink"><3Hz spike + slow wave</span></td><td>Lennox-Gastaut Syndrome</td><td>Sodium Valproate</td></tr> <tr><td><span class="pink">3Hz spike-and-slow-wave</span></td><td>Absence Seizures</td><td><span class="pink">Ethosuximide</span> (kids) / Valproate (adults) / Lamotrigine</td></tr> <tr><td><span class="pink">Hypsarrhythmia</span> (gross chaotic)</td><td>West Syndrome / Infantile Spasms</td><td>ACTH injection; <span class="pink">Vigabatrin</span> if Tuberous Sclerosis (ash leaf macules + Shagreen patch)</td></tr> </table> </div> <!-- ===== TYPES OF SEIZURES ===== --> <div class="section"> <h2>TOPIC 2: Types of Seizures</h2> <h3>1. Status Epilepticus (GSCE) — Medical Emergency</h3> <ul> <li>Seizures <b>>5 minutes</b> with full body shaking (GTCS). Dangerous: metabolic acidosis, hypothermia, aspiration risk</li> <li><span class="pink">T1 (treat by) = >5 minutes</span></li> <li><span class="pink">T2 (neuronal injury risk) = 30 minutes</span></li> <li><b>Treatment ladder:</b> <span class="pink">IV Lorazepam</span> → Phenytoin / Valproate / Levetiracetam → <span class="pink">IV Midazolam / Phenobarbital infusion</span> → Propofol under GA</li> </ul> <h3>2. Focal Seizures</h3> <ul> <li>Start with an <b>aura</b> (warning: strange smell, dΓ©jΓ vu)</li> <li><span class="pink">Jacksonian March</span>: Jerking starts in one finger/hand and "marches" up the arm along the motor cortex</li> <li><span class="pink">Todd's Paralysis</span>: Temporary weakness of the limb AFTER a focal seizure (NOT a stroke — resolves on its own in mins-hrs)</li> <li><b>Automatisms</b>: Unconscious repetitive acts (lip smacking, picking at clothes)</li> <li>MRI → <span class="pink">Mesial Temporal Sclerosis</span> (hippocampal scarring)</li> <li>DOC: <span class="pink">Carbamazepine</span> • S/E: SIADH, Hyponatremia</li> <li>Medial temporal sclerosis → Surgery required</li> </ul> <h3>3. Atonic Seizures ("Drop Attacks")</h3> <ul> <li>Sudden loss of ALL muscle tone → falls and gets injured</li> <li><span class="pink">DOC: Sodium Valproate</span> • S/E: Hyperammonemia, Pancreatitis, Alopecia</li> </ul> <h3>4. Myoclonic Seizures</h3> <ul> <li><span class="pink">vCJD</span>: Young adult ~30 yrs, dementia + startle myoclonus, <i>contaminated beef</i> → <b>prions</b> replicate in neurons, EEG: periodic spike-wave</li> <li><span class="pink">Juvenile Myoclonic Epilepsy (Janz Syndrome)</span>: Teenager, early morning jerks (drops toothbrush/cup), worsened by sleep deprivation, EEG: 4–6 Hz polyspike</li> <li><span class="pink">SSPE (Subacute Sclerosing Panencephalitis)</span>: 8-yr-old, myoclonus + neurodegeneration, <span class="pink">IgG antibodies to measles virus</span></li> <li><span class="pink">West Syndrome / Infantile Spasms</span>: Infant + EEG hypsarrhythmia</li> <li>DOC: <span class="pink">Sodium Valproate</span> • <span class="pink">Avoid Oxcarbazepine</span> (worsens myoclonic seizures)</li> </ul> </div> <!-- ===== GTCS ===== --> <div class="section"> <h2>TOPIC 3: GTCS / Grand Mal Seizure</h2> <h3>Stages</h3> <p><span class="pink">Ictal cry → Tonus (<30s) → Clonus (<30s) → Post-ictal</span></p> <ul> <li><b>Ictal cry</b>: Sudden sound as chest muscles contract</li> <li><b>Tonic</b>: Body goes stiff/rigid</li> <li><b>Clonic</b>: Rhythmic jerking, eye rolling, perioral cyanosis (blue lips), frothing</li> <li><b>Post-ictal</b>: Unconscious, rattling sounds, bladder/bowel incontinence, confusion</li> <li>Duration: <span class="pink">≤1 min</span> • Do NOT restrain • Recovery <1 hr</li> <li>Treatment: <span class="pink">Sodium Valproate (~2 years, then taper)</span>; Alternative: Lamotrigine</li> </ul> <h3>Absence Seizures (Petit Mal)</h3> <ul> <li>Child zones out briefly — sudden blank stare, eyes open, unresponsive, then resumes normally</li> <li><b>No falling</b>, <b>no post-ictal confusion</b> (key difference from GTCS)</li> <li>Often seen as poor school performance / "daydreaming"</li> <li>EEG: <span class="pink">3Hz spike-and-wave</span></li> <li>DOC: <b>Ethosuximide</b></li> <li><span class="pink">AVOID: Carbamazepine, Phenytoin</span> — they WORSEN absence seizures</li> </ul> <h3>Gelastic Seizures</h3> <ul><li>Sudden uncontrollable laughing/giggling during a seizure</li></ul> <div class="pink-box"> <h3>🔴 Important Pink Box — Key Facts</h3> <table> <tr><th>Fact</th><th>Answer</th></tr> <tr><td>M/c epilepsy in children</td><td><span class="pink">Rolandic epilepsy</span> (recurrent focal seizures)</td></tr> <tr><td>M/c seizures in children</td><td><span class="pink">Febrile seizures</span></td></tr> <tr><td>M/c seizures in neonates</td><td><span class="pink">Subtle seizures</span></td></tr> <tr><td>M/c cause of subtle seizures</td><td><span class="pink">Hypoxic Ischemic Encephalopathy (birth asphyxia)</span></td></tr> <tr><td>AEDs ↑ risk of kidney stones + glaucoma</td><td><span class="pink">Topiramate, Zonisamide</span></td></tr> <tr><td>Only AED causing weight LOSS</td><td><b>Topiramate</b> (FDA approved) — all others → weight gain</td></tr> </table> </div> <h3>Lennox-Gastaut Syndrome</h3> <ul> <li>Multiple seizures: GTCS (morning) + Atonic (drop attacks) + Atypical absence</li> <li>EEG: <3Hz spike and slow wave</li> <li><span class="pink">T/t: Sodium Valproate</span></li> </ul> <h3>Dravet Syndrome</h3> <ul> <li><span class="pink">SCN1A gene defect</span> (sodium channel)</li> <li>Prolonged / hemiclonic febrile seizures + intellectual disability</li> <li><span class="pink">T/t: Ketogenic diet + Cannabidiol + Valproate</span></li> </ul> </div> <!-- ===== FEBRILE SEIZURES ===== --> <div class="section"> <h2>TOPIC 4: Febrile Seizures</h2> <p>Seizures triggered by fever in children — brain is NOT infected; the fever itself triggers the seizure.</p> <h3>Drug Treatment</h3> <table> <tr><th>Situation</th><th>Drug</th></tr> <tr><td>Acute episode at home</td><td><span class="pink">Rectal Diazepam</span> (catheter tip 2cm from anus) OR <b>Intranasal Midazolam</b></td></tr> <tr><td>Intermediate prophylaxis</td><td><span class="pink">Oral Clobazam</span></td></tr> <tr><td>Continuous prophylaxis</td><td><span class="pink">Oral Valproate</span> (NOT Phenytoin)</td></tr> </table> <h3>Simple / Benign Febrile Seizures</h3> <ul> <li>GTCS within first 24 hrs of fever</li> <li><span class="pink">Single episode per fever, lasting <15 min</span></li> <li>No post-ictal deficit • Family history often present</li> </ul> <h3><span class="pink">Complex / Atypical Febrile Seizures</span></h3> <ul> <li><span class="pink">>1 episode/fever OR focal seizure OR >15 minutes</span></li> <li>Associated with Lennox-Gastaut syndrome</li> </ul> <div class="pink-box"> <h3>🔴 ILAE 2025 Update (New Terms)</h3> <ul> <li><span class="pink">Epileptic Negative Myoclonus</span> (New Term): Conscious patient; hand drops object, knee buckles briefly; sudden loss of tone in ONE muscle group; <span class="pink">EMG silence 50–400 ms</span>; T/t: Valproate</li> <li>New focal seizure classification: Focal preserved consciousness / Focal impaired consciousness / Focal to bilateral tonic-clonic</li> <li><span class="pink">T1 for focal seizures = 10 min; T2 = 60 min</span></li> </ul> </div> <div class="pink-box"> <h3>🔴 Asterixis / Flapping Tremor (Negative Myoclonus)</h3> <ul> <li>Arms + wrists extended → sudden brief loss of posture → <b>flapping movement</b></li> <li><span class="pink">Seen in: Hepatic encephalopathy, Uremic encephalopathy, CO&sub2; narcosis (acute exacerbation of chronic bronchitis)</span></li> <li>Graves' disease: <span class="pink">Fine finger tremors</span> (fast, small — NOT flapping)</li> </ul> </div> </div> <!-- ===== PYOGENIC MENINGITIS ===== --> <div class="section"> <h2>TOPIC 5: Pyogenic Meningitis</h2> <p><b>Classic scenario:</b> Fever + Headache + Nuchal rigidity (stiff neck)</p> <h3>Gram Staining A — Pneumococcus (Gram-positive Diplococcus)</h3> <div class="img-wrap">""" + img_tag('p4_gram_stain_pneumococcus', 'Gram stain showing Pneumococcus - Gram positive Diplococcus') + """</div> <p class="img-caption">Gram-positive Diplococcus → <b>Pneumococcus</b> • #1 cause of bacterial meningitis in adults • Also M/c cause of lobar pneumonia</p> <h3>Gram Staining B — N. meningitidis (Gram-negative) + Purpuric Rash on Skin</h3> <div class="img-wrap">""" + img_tag('p5_gram_stain_B_purpura', 'Gram stain B showing gram-negative N. meningitidis and purpuric rash on legs') + """</div> <p class="img-caption">Gram-negative organism → <span class="pink">N. meningitidis</span> • Petechial rash / Purpura on extremities = Meningococcemia</p> <table> <tr><th>Situation</th><th>Organism</th></tr> <tr><td>Adults (3 months – 55 yrs)</td><td><b>Pneumococcus</b> — Draughtsman colonies</td></tr> <tr><td>Adults + Purpuric rash + Shock</td><td><span class="pink">N. meningitidis (Meningococcemia)</span></td></tr> <tr><td>Neonates — India</td><td>E. coli / Klebsiella</td></tr> <tr><td>Neonates — Global</td><td><span class="pink">Group B Streptococcus (S. agalactiae)</span></td></tr> </table> <h3>N. meningitidis Complication</h3> <ul> <li>DIC + adrenal hemorrhage → <span class="pink">Waterhouse-Friderichsen Syndrome</span> (↓ BP, ↓ sugar → Addisonian crisis)</li> <li><b>Simple explanation:</b> Meningococcus destroys BOTH adrenal glands during sepsis → adrenals stop making cortisol → shock</li> </ul> <h3>Treatment</h3> <ul> <li><span class="pink">Guarded LP → start IV Ceftriaxone + Vancomycin within 60 minutes</span></li> <li>Mortality: <span class="pink">30% without antibiotics</span></li> <li>Add <b>Ampicillin</b> for alcoholics / heart transplant (Listeria not covered by Ceftriaxone)</li> <li>First 72 hrs (before culture): <span class="pink">Ceftriaxone + Vancomycin + Ampicillin</span></li> <li>Mass chemoprophylaxis for contacts: <span class="pink">Ciprofloxacin</span></li> <li>Recurrent meningococcal meningitis in adults: <span class="pink">C5–C9 complement deficiency</span></li> </ul> <div class="pink-box"> <h3>🔴 PINFAN Mnemonic — Do CT BEFORE LP if any present</h3> <ul> <li><span class="pink"><b>P</b></span> — Papilledema (swollen optic disc = raised ICP)</li> <li><span class="pink"><b>I</b></span> — Immunocompromised</li> <li><span class="pink"><b>N</b></span> — New-onset seizures</li> <li><span class="pink"><b>F</b></span> — Focal neurological deficit</li> <li><span class="pink"><b>A</b></span> — Altered sensorium / low GCS</li> <li><span class="pink"><b>N</b></span> — Neoplasm / known CNS lesion</li> </ul> <p>LP contraindicated in raised ICP → risk of brain herniation. Give <span class="pink">Mannitol</span> first.</p> </div> </div> <!-- ===== VIRAL ENCEPHALITIS ===== --> <div class="section"> <h2>TOPIC 6: Viral Encephalitis</h2> <p><b>Scenario:</b> Village patient + High-grade fever (1–2 days) + Headache + Altered sensorium</p> <h3>HSV-1 Encephalitis</h3> <ul> <li><span class="pink">Overall MCC of viral encephalitis</span></li> <li>Loves the <b>temporal lobe</b> → amnesia</li> <li><span class="pink">IOC: CSF PCR for HSV-1</span> • CSF has RBCs (hemorrhagic)</li> <li>MRI: Temporal lobe inflammation</li> <li>EEG: <span class="pink">PLED (Periodic Lateralized Epileptiform Discharges)</span></li> <li><span class="pink">Empirical T/t: Acyclovir</span> (start immediately, don't wait)</li> </ul> <h3>Japanese Encephalitis</h3> <ul> <li><span class="pink">Leading cause in India — UP, Gorakhpur</span></li> <li>Vector: <b>Culex mosquito</b> (dirty water / rice paddies) • Vaccination available</li> </ul> <h3>Nipah Virus (Kerala, West Bengal)</h3> <div class="img-wrap">""" + img_tag('p6_nipah_diagram', 'Nipah virus transmission diagram - Fruit bats to pigs to humans') + """</div> <p class="img-caption">Nipah virus cycle: <span class="pink">Pteropus (fruit bats)</span> → contaminated fruit/date palm sap → pigs → humans • Also human-to-human. Case fatality: <span class="pink">40–75%</span></p> </div> <!-- ===== CSF TABLE ===== --> <div class="section"> <h2>TOPIC 7: CSF Findings Table</h2> <table> <tr><th>Finding</th><th>Normal</th><th>Bacterial</th><th>TB Meningitis</th><th>Viral</th></tr> <tr><td>Cells</td><td>0–5 lymphocytes</td><td>>1000 PMN (neutrophils)</td><td>100–1000 lymphocytes</td><td>25–100 lymphocytes</td></tr> <tr><td>Sugar</td><td>2/3 blood sugar</td><td><0.6 (LOW)</td><td><0.6 (LOW)</td><td>Normal</td></tr> <tr><td>Protein</td><td>15–45 mg%</td><td>HIGH ↑</td><td><span class="pink">VERY HIGH >1g — Cobweb coagulum</span></td><td>Mildly ↑</td></tr> <tr><td>Pressure</td><td>10–20 mmHg</td><td>↑ HIGH</td><td>↑ HIGH</td><td>↑ HIGH</td></tr> <tr><td>Colour</td><td>Clear</td><td>Turbid/Cloudy</td><td>Clear/Straw</td><td>Clear</td></tr> </table> <p><span class="pink">Viral vs Fungal:</span> All same EXCEPT — Viral sugar = <b>Normal</b>; Fungal sugar = <b>LOW</b></p> <h3>MCQ — TB Meningitis: CSF Cobweb Coagulum + ZN Stain (Red bacilli = M. tuberculosis)</h3> <div class="img-wrap">""" + img_tag('p7_tb_csf_znstain', 'TB meningitis - CSF cobweb coagulum in test tube and ZN stain showing red bacilli') + """</div> <p class="img-caption"><span class="pink">Left: Cobweb coagulum</span> in CSF tube (protein plug floating like a spider web) • <span class="pink">Right: ZN stain → Red bacilli = M. tuberculosis</span></p> </div> <!-- ===== MENINGEAL SIGNS ===== --> <div class="section"> <h2>TOPIC 8: Meningeal Signs</h2> <h3><span class="pink">Kernig's Sign</span></h3> <div class="img-wrap">""" + img_tag('p7_kernig_sign', "Kernig sign - one hand on knee, one on ankle, extend knee causes hamstring spasm and pain") + """</div> <p class="img-caption">One hand on knee + one on ankle → flex hip → try to <b>extend knee</b> → <span class="pink">hamstring spasm + pain</span> = Positive Kernig's</p> <h3><span class="pink">Brudzinski's Sign</span></h3> <div class="img-wrap">""" + img_tag('p7_brudzinski_sign', "Brudzinski sign - passive neck flexion causes involuntary hip and knee flexion") + """</div> <p class="img-caption">Hand under neck → lift/flex neck → <span class="pink">involuntary hip + knee flexion</span> = Positive Brudzinski's</p> <div class="info-box"> <h3>⚠ Key Distinction</h3> <ul> <li><span class="pink">Nuchal rigidity</span>: Only testable in <b>conscious</b> patients (needs active neck flexion)</li> <li><b>Kernig / Brudzinski</b>: Can be done in <b>unconscious</b> patients</li> </ul> </div> </div> <!-- ===== TB MENINGITIS ===== --> <div class="section"> <h2>TOPIC 9: Tubercular Meningitis</h2> <ul> <li>Work-up: CECT → check for ventricular dilatation (hydrocephalus)</li> <li>If ventricular dilatation: Give Mannitol (↓ ICP) → Recheck fundus → Guarded LP</li> <li>CECT finding: <b>Basal exudates</b> (pus/protein at brain base)</li> <li>CSF: <b>CBNAAT</b> (molecular test for TB)</li> <li>T/t: <b>ATT × 1 year</b> (Anti-TB Treatment)</li> <li><span class="pink">Dexamethasone → reduces vasogenic cerebral edema</span> (IV/NG if unconscious; oral if conscious)</li> </ul> </div> <!-- ===== CRYPTOCOCCUS ===== --> <div class="section"> <h2>TOPIC 10: Cryptococcus Neoformans</h2> <p><b>Scenario:</b> HIV positive patient + fever + headache + photophobia + papilledema + nuchal rigidity</p> <h3>Diagnostic Images: India Ink Stain / MRI / Histology</h3> <div class="img-wrap">""" + img_tag('p8_crypto_images_top', 'Cryptococcus - India ink negative stain showing capsule halos, MRI soap bubble appearance, histology') + """</div> <p class="img-caption"><b>Left: India ink stain</b> — dark background, <span class="pink">capsule appears as clear white halo</span> (negative stain) • <b>Middle: MRI</b> — <span class="pink">soap bubble appearance</span> • <b>Right: Histology</b></p> <div class="img-wrap">""" + img_tag('p8_crypto_images_bottom', 'Cryptococcus neoformans - second set of diagnostic images') + """</div> <p class="img-caption">Inference images — India ink, MRI, and tissue section confirming <b>Cryptococcus neoformans</b></p> <ul> <li><b>India Ink</b>: Background dark, capsule = clear halo (negative stain)</li> <li><b>Mucicarmine stain</b>: Stains capsule pink</li> <li><span class="pink">MRI: Soap bubble appearance</span> (also seen in Giant Cell Tumor / Osteoclastoma)</li> </ul> <h3>Mode of Entry</h3> <p>Pigeon droppings dust → inhaled into lungs → hematogenous spread (↓ CMI in HIV) → crosses BBB → Meningitis</p> <h3>Work-up</h3> <ol> <li>MRI: Soap bubble appearance</li> <li>Guarded LP + CSF cytology (lymphocytes, ↓ sugar, ↑ protein)</li> <li>Urine/blood lateral flow assay for <b>Cryptococcal antigen</b></li> </ol> <h3>Treatment</h3> <p><span class="pink">Liposomal Amphotericin B + Flucytosine IV × 2 weeks</span> → then Oral Fluconazole × 10 weeks (prevent recurrence)</p> </div> <!-- ===== CEREBRAL MALARIA ===== --> <div class="section"> <h2>TOPIC 11: Cerebral Malaria</h2> <p><b>Scenario:</b> Villager + 1-day high-grade fever + Altered sensorium + NO nuchal rigidity + ↓Hb + ↑LDH + ↑unconjugated bilirubin</p> <h3>Blood Smear — Banana-shaped Gametocyte = Plasmodium falciparum</h3> <div class="img-wrap">""" + img_tag('p9_malaria_smear1', 'Blood smear showing banana-shaped gametocyte of Plasmodium falciparum') + """</div> <p class="img-caption"><span class="pink">Banana/crescent-shaped gametocyte</span> (curved purple cell) → <b>Plasmodium falciparum</b> (pathognomonic)</p> <h3>Multiple Ring Stages / Accole Forms = P. falciparum</h3> <div class="img-wrap">""" + img_tag('p9_malaria_smear2', 'Multiple ring stages and Accole forms inside RBCs - Plasmodium falciparum') + """</div> <p class="img-caption">Multiple ring stages & Accole (appliquΓ©) forms inside RBCs → <b>P. falciparum</b></p> <h3>Hemolysis Evidence on Smear</h3> <div class="img-wrap">""" + img_tag('p9_malaria_smear3', 'Blood smear showing hemolysis evidence in cerebral malaria') + """</div> <p class="img-caption"><span class="pink">Hemolysis evidence:</span> ↓ Hemoglobin • ↑ LDH • ↑ Unconjugated bilirubin (RBC destruction)</p> <h3>Pathogenesis</h3> <p>RBCs become sticky → Sluggish flow in cerebral cortex → No oxygen to brain → Encephalopathy → Altered sensorium</p> <h3>Diagnosis & Treatment</h3> <ul> <li><span class="pink">Emergency: Dipstick test (Histidine-rich protein-2) / Card test</span> (few drops of blood, developed by GOI)</li> <li>Complication: <b>Blackwater fever</b> → Black urine (hemoglobinemia + hemoglobinuria + acute kidney dysfunction)</li> <li>Treatment: <span class="pink">IV/IM Artesunate</span></li> </ul> <div class="pink-box"> <h3>🔴 Pink Box</h3> <p>Card test for <b>Kala-azar</b> = <span class="pink">RK39 antigen</span> (GOI approved)</p> </div> </div> <!-- ===== LUMBAR PUNCTURE ===== --> <div class="section"> <h2>TOPIC 12: Lumbar Puncture (LP)</h2> <p><b>Preferred site:</b> <span class="pink">L3–L4</span></p> <h3>LP Needle Types</h3> <div class="img-wrap">""" + img_tag('p10_lp_needles', 'Quincke cutting needle (A) vs Sprotte atraumatic needle (B)') + """</div> <p class="img-caption"><b>A = <span class="pink">Quincke</span></b> (cutting edge, sharper → larger dural hole → CSF leak → post-dural puncture headache) • <b>B = <span class="pink">Sprotte</span></b> (atraumatic, thinner → recommended)</p> <h3>Patient Positioning & Landmark</h3> <div class="img-wrap">""" + img_tag('p10_lp_positioning', 'LP patient positioning - lateral decubitus fetal position, L4/L5 and iliac crest landmark') + """</div> <p class="img-caption">Lateral decubitus (fetal position) — knees + neck flexed • Line connecting both iliac crests = <span class="pink">Tuffier's line</span> = crosses at L4 • Insert at <span class="pink">L3–L4</span></p> <h3>Layers Pierced During LP (In Order)</h3> <div class="img-wrap">""" + img_tag('p10_lp_layers', 'Anatomical diagram showing layers pierced during lumbar puncture') + """</div> <p class="img-caption">1. Skin & subcutaneous tissue → 2. Supraspinous ligament → 3. Interspinous ligament → 4. <b>Ligamentum flavum</b> → 5. <b>Dura mater</b> → 6. <b>Arachnoid layer</b></p> <h3>Absolute Contraindications</h3> <ol><li>Raised ICP</li><li>Local skin infection</li><li>Kyphoscoliosis</li><li>Bleeding diathesis (warfarin etc.)</li></ol> <h3>CSF Collection Tubes</h3> <table> <tr><th>Tube</th><th>Test</th></tr> <tr><td>Tube A</td><td>Sugar & Protein</td></tr> <tr><td>Tube B</td><td>Cytology (Neutrophils / Lymphocytes)</td></tr> <tr><td>Tube C</td><td>Culture</td></tr> <tr><td>Tube D</td><td>Special studies (CBNAAT, India ink, PCR HSV) → <b>Refrigerate</b></td></tr> </table> <div class="pink-box"> <h3>🔴 CSF Facts</h3> <ul> <li>Production: <span class="pink">20 mL/hr</span></li> <li>Total volume: <span class="pink">150 mL</span> (brain + spinal cord)</li> </ul> </div> </div> <!-- ===== NCC ===== --> <div class="section"> <h2>TOPIC 13: Neurocysticercosis (NCC)</h2> <p><b>Cause:</b> Ingestion of proglottids (egg segments) of <i>Taenia solium</i> (pork tapeworm) • <span class="pink">IOC: Contrast gadolinium-enhanced MRI</span> (ring-enhancing lesion with vasogenic edema)</p> <h3>MRI Stage 1 — Active (Larvae with Scolex)</h3> <div class="img-wrap">""" + img_tag('p11_ncc_mri_active', 'NCC MRI showing multiple hypointense lesions with eccentric scolex - active stage') + """</div> <p class="img-caption">Multiple hypointense lesions (black holes) with <span class="pink">eccentric scolex</span> = Active larvae • T/t: <span class="pink">Albendazole + Praziquantel</span></p> <h3>MRI Stage 2 — Cysticercosis (Rice Grain Calcification)</h3> <div class="img-wrap">""" + img_tag('p11_ncc_calcified', 'NCC MRI showing rice grain calcification - cysticercosis stage') + """</div> <p class="img-caption"><span class="pink">Rice grain calcification</span> pattern • T/t: <span class="pink">Praziquantel</span></p> <h3>Stage 3 — Intracranial Calcifications (Dead Calcified Larvae)</h3> <div class="img-wrap">""" + img_tag('p11_ncc_intracranial_calc', 'NCC CT showing intracranial calcifications - dead calcified larvae') + """</div> <p class="img-caption">Scattered calcifications = larvae died in muscle/brain • T/t: <span class="pink">Sodium Valproate × 2 years</span></p> <h3>Stage 4 — "Starry Sky" Appearance</h3> <div class="img-wrap">""" + img_tag('p11_ncc_starry_sky', 'NCC MRI showing starry sky appearance - multiple eccentric scolices') + """</div> <p class="img-caption"><span class="pink">Starry sky</span> = Eccentric scolices developing in multiple brain areas simultaneously</p> <h3>MR Spectroscopy — Differentiating NCC from Tuberculoma</h3> <div class="img-wrap">""" + img_tag('p11_mr_spectroscopy', 'MR spectroscopy graph showing peaks to differentiate NCC from tuberculoma') + """</div> <p class="img-caption"><span class="pink">Lipid peak → Tuberculoma</span> • <span class="pink">Amino acid peak → Neurocysticercosis</span></p> <h3>NCC vs Tuberculoma Comparison</h3> <table> <tr><th>Feature</th><th>NCC</th><th>Tuberculoma</th></tr> <tr><td>Lesion size</td><td>Usually <20 mm</td><td>Often >20 mm</td></tr> <tr><td>Number</td><td>Single or multiple</td><td>Often multiple</td></tr> <tr><td>Meningitis</td><td>NOT present</td><td>Usually associated</td></tr> <tr><td>Common location</td><td>Grey-white matter junction</td><td>Posterior fossa (M/c)</td></tr> <tr><td>Other spread</td><td>Eyes, muscles, subcutaneous</td><td>Secondary from elsewhere</td></tr> <tr><td>T2 MRI</td><td>Hyperintense + hypointense scolex; no midline shift</td><td>Hypointense; midline shift may be present</td></tr> <tr><td>MR spectroscopy</td><td>Amino acid peaks</td><td>Lipid peak</td></tr> </table> <h3>Treatment Protocol</h3> <ol> <li><b>Dexamethasone IV q6h × 48 hrs</b> (reduce vasogenic edema → prevents focal seizures)</li> <li><span class="pink">Albendazole (single lesion) / Albendazole + Praziquantel (multiple lesions)</span></li> <li><b>Valproate</b> for seizure control</li> </ol> </div> <!-- ===== SAH ===== --> <div class="section"> <h2>TOPIC 14: Subarachnoid Hemorrhage (SAH)</h2> <div class="pink-box"> <h3>🔴 Classic Buzzwords</h3> <p><span class="pink">"Worst headache of my life"</span> • <span class="pink">"Thunderclap headache"</span> (peaks in 1 minute, out of nowhere)</p> </div> <h3>CSF Tubes + CT Head (Xanthochromic CSF + Star of Death)</h3> <div class="img-wrap">""" + img_tag('p12_sah_csf_ct', 'SAH - CSF tubes showing xanthochromic fluid and CT head showing blood in basal cisterns') + """</div> <p class="img-caption"><b>Left: CSF tube</b> — initially pinkish/reddish (fresh RBCs); later <span class="pink">Xanthochromic</span> (yellow = RBC breakdown → bilirubin) • <b>Right: CT head</b> — <span class="pink">blood in basal cisterns / Sylvian fissure</span></p> <h3>Endovascular Coiling vs Aneurysmal Clipping</h3> <div class="img-wrap">""" + img_tag('p13_aneurysm_coiling', 'Cerebral angiography showing endovascular coiling of Berry aneurysm and aneurysmal clipping') + """</div> <p class="img-caption"><b>Left: Endovascular coiling</b> — platinum wire coiled inside aneurysm to block blood flow (BEST treatment) • <b>Right: Aneurysmal clipping</b> — surgical metal clip at base</p> <h3>Investigation Algorithm</h3> <ol> <li><span class="pink">First investigation: NCCT head</span></li> <li><span class="pink">Next best: Cerebral angiography</span> (find exact aneurysm location)</li> <li><span class="pink">If CT normal: Guarded LP</span> (xanthochromic CSF confirms SAH)</li> </ol> <h3>Treatment</h3> <ul> <li><span class="pink">Endovascular coiling</span> (best) or Aneurysmal clipping</li> <li><span class="pink">DOC vasospasm prevention: Nimodipine</span> (oral/NG tube)</li> </ul> <h3>Berry Aneurysm Key Facts</h3> <table> <tr><th>Fact</th><th>Answer</th></tr> <tr><td>M/c location</td><td><span class="pink">Anterior communicating artery / Anterior cerebral artery junction</span></td></tr> <tr><td>Most prone to rupture</td><td><span class="pink">Posterior communicating artery</span> (Top of Basilar artery) → CN-III compression → <b>Ptosis</b></td></tr> <tr><td>M/c cranial nerve involved</td><td><span class="pink">CN-III palsy</span></td></tr> </table> <h3>Leading Causes of Death After SAH</h3> <ol> <li><span class="pink">Vasospasm / Delayed cerebral ischemia</span></li> <li>Hydrocephalus • 3. Bleeding • 4. Rebleeding • 5. Electrolyte imbalance</li> </ol> <p>BNP release → Natriuresis → Na <125 → Seizures</p> <div class="pink-box"> <h3>🔴 Pink Box — Thunderclap Headache also in:</h3> <p>Pituitary apoplexy • CVT • Acute hydrocephalus • HTN crisis</p> </div> </div> <!-- ===== HEAD TRAUMA ===== --> <div class="section"> <h2>TOPIC 15: Head Trauma — Intracranial Hemorrhage</h2> <h3>Acute Subdural Hemorrhage</h3> <div class="img-wrap">""" + img_tag('p13_subdural_ncct', 'NCCT head showing acute subdural hemorrhage - crescent-shaped hyperdense lesion') + """</div> <p class="img-caption"><span class="pink">Crescent-shaped / Concavoconvex hyperdense lesion</span> → Acute subdural hemorrhage • Source: <span class="pink">Cortical bridging veins</span> • T/t: <span class="pink">Emergency craniotomy</span></p> <h3>Chronic Subdural Hemorrhage</h3> <div class="img-wrap">""" + img_tag('p14_chronic_subdural_ct', 'NCCT showing chronic subdural hemorrhage - concavoconvex hypodensity') + """</div> <p class="img-caption"><span class="pink">Crescent-shaped hypodensity</span> (dark = old blood) → Chronic subdural • 3 weeks history, progressive confusion • T/t: <span class="pink">Burr hole surgery</span> (via pterion)</p> <div class="pink-box"> <h3>🔴 Pink Box</h3> <p><b>Decompressive hemicraniectomy</b> → Malignant cerebral edema (due to hemorrhagic stroke or blast injury)</p> </div> <h3>Diffuse Axonal Injury (DAI) / Traumatic Axonal Injury (TAI)</h3> <div class="img-wrap">""" + img_tag('p14_dai_ncct', 'NCCT showing diffuse axonal injury - punctuate hemorrhages at grey-white matter interface') + """</div> <p class="img-caption">Punctuate hemorrhages at grey-white matter interface • <span class="pink">≥4 micro bleeds = DAI</span> • Best investigation: <span class="pink">S-W-MRI (Susceptibility-Weighted MRI)</span> • T/t: Endotracheal intubation + IPPV</p> <h3>Extradural / Epidural Hemorrhage</h3> <div class="img-wrap">""" + img_tag('p15_extradural_ct', 'CT head showing right extradural hemorrhage - biconvex lens-shaped lenticular hyperdensity') + """</div> <p class="img-caption"><span class="pink">Biconvex / Lens-shaped = Lenticular hyperdensity</span> (bright white) → Extradural hemorrhage • Source: <span class="pink">Middle meningeal artery (Branch of ECA)</span> • Lucid interval present • T/t: <span class="pink">Craniotomy + ligation of bleeder</span></p> <div class="info-box"> <h3>⚠ Lucid Interval</h3> <p>Pattern: Unconscious → Conscious (lucid interval) → Unconscious • Seen in BOTH <b>subdural AND extradural</b> hemorrhage</p> </div> </div> <!-- ===== FMGE INSIGHTS ===== --> <div class="fmge-box"> <h2>🏅 FMGE Insights — Top 50 High-Yield Points</h2> <h3>Seizures & Epilepsy</h3> <ol> <li>Epilepsy = ≥2 <b>unprovoked</b> seizures (metabolic/febrile do NOT count)</li> <li>MCC acquired epilepsy India = <b>Neurocysticercosis</b></li> <li>EEG 3Hz = Absence • <3Hz = LGS • Hypsarrhythmia = West syndrome • PLED = HSV encephalitis</li> <li>DOC Absence = Ethosuximide • NEVER give Carbamazepine/Phenytoin</li> <li>Jacksonian March + Todd's Paralysis = Focal seizures</li> <li>SSPE = IgG measles antibodies, 8-yr-old, myoclonus + neurodegeneration</li> <li>Janz syndrome = teenager, morning jerks, worsened by sleep deprivation, EEG 4–6 Hz polyspike</li> <li>vCJD = contaminated beef, young adult, prions, dementia + myoclonus</li> <li>Only AED causing weight loss = <b>Topiramate</b></li> <li>AEDs → kidney stones + glaucoma = <b>Topiramate, Zonisamide</b></li> <li>SE treatment: IV Lorazepam → Phenytoin/Valproate → IV Midazolam → Propofol GA</li> <li>Dravet syndrome: SCN1A, ketogenic diet + cannabidiol</li> <li>ILAE 2025: Focal seizure T1 = 10 min, T2 = 60 min</li> </ol> <h3>Meningitis</h3> <ol start="14"> <li>MCC bacterial meningitis Adults = <b>Pneumococcus</b></li> <li>MCC bacterial meningitis Neonates (Global) = <b>Group B Streptococcus</b></li> <li>Waterhouse-Friderichsen = N. meningitidis → bilateral adrenal hemorrhage</li> <li>PINFAN = CT before LP (Papilledema, Immunocompromised, New seizure, Focal deficit, Altered, Neoplasm)</li> <li>LP contraindicated in raised ICP → use Mannitol first</li> <li>Antibiotics within 60 min = Ceftriaxone + Vancomycin ± Ampicillin</li> <li>Prophylaxis for meningococcal contacts = <b>Ciprofloxacin</b></li> <li>Recurrent meningococcal meningitis = <b>C5–C9 complement deficiency</b></li> </ol> <h3>CSF & Viral Encephalitis</h3> <ol start="22"> <li>TB meningitis = lymphocytes + low sugar + VERY high protein + cobweb coagulum</li> <li>Viral vs fungal = same EXCEPT viral sugar = Normal; fungal sugar = LOW</li> <li>HSV encephalitis = temporal lobe + CSF PCR + PLED on EEG + Acyclovir</li> <li>Japanese encephalitis = UP/Gorakhpur, Culex mosquito</li> <li>Nipah = fruit bats (Pteropus), 40–75% mortality, Kerala/WB</li> </ol> <h3>Cryptococcus & Malaria</h3> <ol start="27"> <li>India ink = dark background, capsule appears clear/white halo</li> <li>MRI soap bubble = Cryptococcus (also Giant Cell Tumor)</li> <li>Treatment = Amphotericin B + Flucytosine × 2 wks → Fluconazole × 10 wks</li> <li>Cerebral malaria treatment = IV/IM Artesunate</li> <li>Banana-shaped gametocyte = Plasmodium falciparum</li> <li>Blackwater fever = black urine from massive hemolysis = falciparum complication</li> </ol> <h3>Lumbar Puncture</h3> <ol start="33"> <li>Site = L3–L4 (Tuffier's line)</li> <li>Layers = Skin → Supraspinous → Interspinous → Ligamentum flavum → Dura → Arachnoid</li> <li>CSF: 20 mL/hr produced; total 150 mL volume</li> <li>Sprotte needle (atraumatic) preferred over Quincke (cutting)</li> </ol> <h3>NCC</h3> <ol start="37"> <li>IOC NCC = Contrast gadolinium-enhanced MRI (ring-enhancing lesion)</li> <li>Lipid peak MR spectroscopy = Tuberculoma • Amino acid peak = NCC</li> <li>Rice grain calcification = NCC dead cyst • T/t: Praziquantel</li> <li>Single lesion = Albendazole alone • Multiple = Albendazole + Praziquantel</li> <li>Starry sky appearance = multiple eccentric scolices on MRI</li> </ol> <h3>SAH & Head Trauma</h3> <ol start="42"> <li>"Worst headache of my life" + "Thunderclap headache" = SAH until proven otherwise</li> <li>M/c Berry aneurysm location = Anterior communicating artery</li> <li>Posterior communicating artery aneurysm → CN-III palsy (ptosis)</li> <li>DOC vasospasm in SAH = <b>Nimodipine</b></li> <li>Treatment SAH = Endovascular coiling (best)</li> <li>Xanthochromic CSF = SAH (old blood breakdown)</li> <li>Biconvex/lens-shaped CT = Extradural hemorrhage (middle meningeal artery / ECA)</li> <li>Crescent-shaped CT = Subdural hemorrhage (cortical bridging veins)</li> <li>Lucid interval = BOTH subdural AND extradural • Chronic subdural = Burr hole • Acute subdural = Emergency craniotomy</li> <li>DAI (≥4 microbleeds) = S-W-MRI for diagnosis • Normal NCCT with same history = TAI</li> </ol> </div> <hr> <p style="text-align:center;color:#888;font-size:0.85em;">PrepLadder Neurology Part-1 • Breakdown by Orris • All images extracted from original notes</p> </body> </html>""" output_path = '/tmp/workspace/Neurology_Part1_Breakdown.html' with open(output_path, 'w', encoding='utf-8') as f: f.write(html) size_kb = os.path.getsize(output_path) / 1024 print(f"Saved: {output_path}") print(f"File size: {size_kb:.1f} KB") PYEOF
/tmp/workspace/... are sandbox paths - your browser can't access them directly. They only exist on the server, not on your device.Neurology Part1 Breakdown
HTML File Β· HTML
The images are not cropped properly. The images are cutted in between
python3 << 'EOF' from PIL import Image import os os.makedirs('/tmp/workspace/prepladder_crops2', exist_ok=True) # All crops are done on the SMALL pages (900x1272 pixels) # I can see exactly where each image is in the small previews def crop_save(page, left, top, right, bottom, name): img = Image.open(f'/tmp/workspace/prepladder_small/page_{page}.jpg') w, h = img.size print(f"Page {page} size: {w}x{h}") c = img.crop((left, top, right, bottom)) path = f'/tmp/workspace/prepladder_crops2/{name}.jpg' c.save(path, 'JPEG', quality=85) print(f" Saved {name}: {c.size}, {os.path.getsize(path)} bytes") # ---- PAGE 1 (900x1272) ---- # EEG table: 3Hz spike-and-wave trace image (absence row) - approx y=590 to y=800, x=60 to x=390 crop_save(1, 60, 580, 390, 800, 'eeg_3hz_absence') # Hypsarrhythmia EEG + Ash leaf macules (bottom row of table) - approx y=825 to y=1030, x=60 to x=390 crop_save(1, 60, 825, 390, 1040, 'eeg_hypsarrhythmia_ashleaf') # ---- PAGE 4 (p106 - Gram stain A - Pneumococcus) ---- # The gram stain image is roughly y=830 to y=1060, x=230 to x=590 crop_save(4, 230, 830, 590, 1060, 'gram_stain_pneumococcus') # ---- PAGE 5 (p107 - Gram stain B + purpura legs) ---- # Both images side by side: y=70 to y=310, x=160 to x=620 crop_save(5, 160, 65, 620, 315, 'gram_stain_B_purpura') # ---- PAGE 6 (p108 - Nipah diagram) ---- # Nipah diagram: y=300 to y=600, x=140 to x=760 # But page 6 small was deleted! Need to use original img6 = Image.open('/tmp/workspace/prepladder_pages/page_6.jpg') w6, h6 = img6.size # 2480x3508 # Scale factor from small (900x1272) to full: 2480/900 = 2.756, 3508/1272 = 2.758 sf = 2480/900 # Nipah diagram in small coords: ~y=290 to y=590, x=140 to x=760 c6 = img6.crop((int(140*sf), int(290*sf), int(760*sf), int(590*sf))) c6_r = c6.resize((900, int(c6.size[1]*900/c6.size[0])), Image.LANCZOS) c6_r.save('/tmp/workspace/prepladder_crops2/nipah_diagram.jpg', 'JPEG', quality=85) print(f" Saved nipah_diagram: {c6_r.size}") # ---- PAGE 7 (p109 - CSF cobweb + ZN stain, Kernig, Brudzinski) ---- # MCQ images (CSF tube + ZN stain): top right area y=250 to y=400, x=500 to x=890 crop_save(7, 500, 245, 890, 400, 'tb_csf_znstain') # Kernig sign illustration: y=510 to y=720, x=200 to x=680 crop_save(7, 200, 505, 680, 715, 'kernig_sign') # Brudzinski sign illustration: y=810 to y=1020, x=200 to x=680 crop_save(7, 200, 800, 680, 1010, 'brudzinski_sign') # ---- PAGE 8 (p110 - Cryptococcus: India ink + MRI + histology) ---- # Top 3 images side by side: y=265 to y=450, x=60 to x=840 crop_save(8, 60, 260, 840, 455, 'crypto_india_ink_mri_histo') # Bottom 3 images (inference): y=510 to y=700, x=60 to x=840 crop_save(8, 60, 505, 840, 700, 'crypto_inference_images') # ---- PAGE 9 (p111 - Malaria blood smears) ---- # First smear (MCQ image): y=95 to y=330, x=180 to x=570 crop_save(9, 175, 90, 570, 340, 'malaria_smear_mcq') # Second smear (Diagnosis inference - banana gametocyte clear): y=390 to y=600, x=180 to x=570 crop_save(9, 175, 385, 570, 600, 'malaria_smear_banana') # Third smear (ring stages / hemolysis): y=665 to y=865, x=175 to x=575 crop_save(9, 175, 660, 575, 865, 'malaria_smear_rings') # ---- PAGE 10 (p112 - LP needles, positioning, layers) ---- # Needles photo (top right): y=50 to y=300, x=560 to x=890 crop_save(10, 555, 45, 890, 310, 'lp_needles') # Patient positioning diagram (right side): y=420 to y=600, x=545 to x=900 crop_save(10, 540, 415, 900, 608, 'lp_positioning') # Layers anatomy diagram (bottom right): y=640 to y=1005, x=400 to x=895 crop_save(10, 395, 635, 895, 1010, 'lp_layers_anatomy') # ---- PAGE 11 (p113 - NCC MRI stages) ---- # Row 1: MRI head with scolex: y=165 to y=395, x=55 to x=305 crop_save(11, 52, 160, 310, 400, 'ncc_mri_scolex') # Row 2: Cysticercosis/rice grain: y=430 to y=650, x=55 to x=305 crop_save(11, 52, 425, 310, 655, 'ncc_rice_grain') # Row 3: Intracranial calcifications: y=705 to y=920, x=55 to x=305 crop_save(11, 52, 700, 310, 925, 'ncc_intracranial_calc') # Row 4: Starry sky MRI: y=975 to y=1170, x=52 to x=305 crop_save(11, 52, 970, 310, 1175, 'ncc_starry_sky') # MR spectroscopy graph: y=1220 to y=1365, x=50 to x=280 crop_save(11, 48, 1215, 285, 1368, 'ncc_mr_spectroscopy') # ---- PAGE 12 (p114 - SAH: CSF tubes + CT) ---- # SAH images (CSF tubes + CT): y=615 to y=870, x=200 to x=780 crop_save(12, 195, 610, 780, 875, 'sah_csf_ct') # ---- PAGE 13 (p115 - Aneurysm coiling + clipping, MCQ subdural) ---- # Coiling + clipping images: y=100 to y=410, x=120 to x=795 crop_save(13, 115, 95, 800, 415, 'aneurysm_coiling_clipping') # MCQ subdural NCCT image (bottom right): y=900 to y=1130, x=620 to x=900 crop_save(13, 615, 895, 900, 1135, 'acute_subdural_ncct') # ---- PAGE 14 (p116 - chronic subdural CT + diagram, DAI NCCT) ---- # Chronic subdural CT + diagram side by side: y=185 to y=435, x=170 to x=640 crop_save(14, 168, 180, 645, 440, 'chronic_subdural_ct_diagram') # DAI NCCT (two panels): y=625 to y=850, x=165 to x=585 crop_save(14, 162, 620, 590, 855, 'dai_ncct') # ---- PAGE 15 (p117 - Extradural CT) ---- # Extradural CT: y=50 to y=295, x=145 to x=600 crop_save(15, 143, 48, 600, 300, 'extradural_ct') print("\n=== ALL DONE ===") EOF
python3 << 'EOF' from PIL import Image import os def crop_save(page, left, top, right, bottom, name): img = Image.open(f'/tmp/workspace/prepladder_small/page_{page}.jpg') c = img.crop((left, top, right, bottom)) path = f'/tmp/workspace/prepladder_crops2/{name}.jpg' c.save(path, 'JPEG', quality=85) print(f"Saved {name}: {c.size}") # Fix gram stain - push down more, just the microscopy image crop_save(4, 240, 890, 580, 1060, 'gram_stain_pneumococcus') # Fix NCC MRI scolex - need more height to see full MRI crop_save(11, 52, 195, 310, 430, 'ncc_mri_scolex') # Fix NCC rice grain - adjust crop_save(11, 52, 455, 310, 680, 'ncc_rice_grain') # Fix NCC intracranial calc crop_save(11, 52, 730, 310, 950, 'ncc_intracranial_calc') # Fix NCC starry sky crop_save(11, 52, 1000, 310, 1200, 'ncc_starry_sky') # Fix MR spectroscopy - get full graph crop_save(11, 48, 1230, 290, 1380, 'ncc_mr_spectroscopy') # Fix extradural CT - center it on just the CT crop_save(15, 250, 48, 620, 305, 'extradural_ct') # Fix SAH - ensure full images visible crop_save(12, 190, 620, 790, 885, 'sah_csf_ct') # Fix kernig and brudzinski - ensure full illustration crop_save(7, 180, 510, 700, 730, 'kernig_sign') crop_save(7, 180, 810, 700, 1025, 'brudzinski_sign') # Fix acute subdural MCQ - ensure full CT visible crop_save(13, 620, 895, 900, 1145, 'acute_subdural_ncct') print("Done!") EOF
python3 << 'EOF' from PIL import Image import os os.makedirs('/tmp/workspace/prepladder_crops2', exist_ok=True) PAGES = '/tmp/workspace/prepladder_pages' OUT = '/tmp/workspace/prepladder_crops2' # Scale factor: small (900x1272) -> full (2480x3508) = 2480/900 = 2.756 SF = 2480/900 def crop_full(page, sl, st, sr, sb, name, quality=82): """Crop from full-res page using small-page coordinates scaled up""" img = Image.open(f'{PAGES}/page_{page}.jpg') l, t, r, b = int(sl*SF), int(st*SF), int(sr*SF), int(sb*SF) c = img.crop((l, t, r, b)) # Resize to max 800px wide mw = 800 if c.width > mw: c = c.resize((mw, int(c.height * mw / c.width)), Image.LANCZOS) path = f'{OUT}/{name}.jpg' c.save(path, 'JPEG', quality=quality) kb = os.path.getsize(path)/1024 print(f" {name}: {c.size}, {kb:.0f}KB") print("=== Page 1: EEG tracings ===") # 3Hz absence trace: starts just below "3Hz spike and slow wave pattern" label (~y=630), ends before row boundary (~y=830) # x: just inside left cell wall (~x=65) to right of trace area (~x=385) crop_full(1, 65, 635, 385, 835, 'eeg_3hz_absence') # Hypsarrhythmia + ash leaf: EEG image starts ~y=945, both images end ~y=1080 crop_full(1, 62, 945, 388, 1090, 'eeg_hypsarrhythmia_ashleaf') print("=== Page 4: Gram stain A (Pneumococcus) ===") # Image is centered, roughly y=910 to y=1090, x=260 to x=570 crop_full(4, 255, 905, 575, 1090, 'gram_stain_pneumococcus') print("=== Page 5: Gram stain B + purpura legs ===") # Both images side by side: y=75 to y=305, x=160 to x=625 crop_full(5, 158, 72, 628, 310, 'gram_stain_B_purpura') print("=== Page 6: Nipah diagram ===") # Nipah diagram in small: ~y=300 to y=590, x=145 to x=760 crop_full(6, 145, 298, 762, 595, 'nipah_diagram') print("=== Page 7: CSF/ZN stain, Kernig, Brudzinski ===") # CSF tube + ZN stain images: top-right block, y=260 to y=398, x=510 to x=888 crop_full(7, 508, 258, 890, 400, 'tb_csf_znstain') # Kernig sign illustration: y=540 to y=730, x=225 to x=670 crop_full(7, 222, 535, 672, 730, 'kernig_sign') # Brudzinski sign: y=830 to y=1025, x=225 to x=670 crop_full(7, 222, 828, 672, 1025, 'brudzinski_sign') print("=== Page 8: Cryptococcus images ===") # 3 images top row: y=268 to y=456, x=62 to x=835 crop_full(8, 60, 265, 838, 458, 'crypto_images_top') # 3 images bottom row (inference): y=510 to y=703, x=62 to x=835 crop_full(8, 60, 508, 838, 706, 'crypto_images_bottom') print("=== Page 9: Malaria smears ===") # MCQ smear image: y=95 to y=338, x=178 to x=570 crop_full(9, 176, 93, 572, 340, 'malaria_smear1') # Inference banana smear: y=390 to y=600, x=178 to x=570 crop_full(9, 176, 388, 572, 602, 'malaria_smear2') # Ring stages smear: y=660 to y=865, x=176 to x=578 crop_full(9, 174, 658, 580, 868, 'malaria_smear3') print("=== Page 10: LP images ===") # Needle photos: y=50 to y=195, x=568 to x=888 (pencil-like objects) crop_full(10, 565, 48, 890, 200, 'lp_needles_pencils') # A/B needle diagrams below: y=240 to y=325, x=570 to x=888 crop_full(10, 565, 238, 890, 328, 'lp_needles_ab') # Patient positioning diagram: y=422 to y=605, x=545 to x=898 crop_full(10, 542, 420, 900, 608, 'lp_positioning') # Layers anatomy: y=640 to y=1010, x=398 to x=895 crop_full(10, 396, 638, 897, 1012, 'lp_layers_anatomy') print("=== Page 11: NCC MRI stages ===") # Row 1 MRI (scolex): image y=208 to y=398, x=55 to x=302 crop_full(11, 53, 205, 305, 400, 'ncc_mri_scolex') # Row 2 (rice grain legs): y=458 to y=660, x=55 to x=302 crop_full(11, 53, 455, 305, 662, 'ncc_rice_grain') # Row 3 (intracranial calc brain): y=728 to y=925, x=55 to x=302 crop_full(11, 53, 726, 305, 928, 'ncc_intracranial_calc') # Row 4 (starry sky): y=985 to y=1175, x=53 to x=302 crop_full(11, 51, 982, 305, 1178, 'ncc_starry_sky') # MR spectroscopy graph: y=1232 to y=1368, x=50 to x=286 crop_full(11, 48, 1230, 288, 1368, 'ncc_mr_spectroscopy') print("=== Page 12: SAH CSF + CT ===") # CSF tubes + CT: y=638 to y=886, x=198 to x=790 crop_full(12, 196, 635, 792, 888, 'sah_csf_ct') print("=== Page 13: Aneurysm coiling + subdural MCQ ===") # Coiling+clipping images: y=102 to y=418, x=118 to x=798 crop_full(13, 116, 100, 800, 420, 'aneurysm_coiling_clipping') # MCQ subdural NCCT: y=898 to y=1138, x=620 to x=900 crop_full(13, 618, 896, 902, 1140, 'acute_subdural_ncct') print("=== Page 14: Chronic subdural + DAI ===") # Chronic subdural CT + anatomy diagram: y=190 to y=448, x=170 to x=648 crop_full(14, 168, 188, 650, 450, 'chronic_subdural_ct') # DAI NCCT (two axial slices): y=632 to y=858, x=165 to x=590 crop_full(14, 163, 630, 592, 860, 'dai_ncct') print("=== Page 15: Extradural CT ===") # CT only: y=55 to y=302, x=250 to x=615 crop_full(15, 248, 53, 618, 304, 'extradural_ct') print("\n=== ALL DONE ===") import os files = sorted(os.listdir(OUT)) total = sum(os.path.getsize(f'{OUT}/{f}') for f in files) print(f"Total: {len(files)} images, {total/1024:.0f}KB") EOF
python3 << 'PYEOF' import base64, os OUT = '/tmp/workspace/prepladder_crops2' def b64(name): with open(f'{OUT}/{name}.jpg', 'rb') as f: return base64.b64encode(f.read()).decode() def img(name, alt, maxw='680px'): d = b64(name) return f'<img src="data:image/jpeg;base64,{d}" alt="{alt}" style="max-width:{maxw};width:100%;display:block;margin:10px auto;border-radius:6px;box-shadow:0 2px 10px rgba(0,0,0,0.18);">' def cap(text): return f'<p class="cap">{text}</p>' html = '''<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width,initial-scale=1.0"> <title>Neurology Part-1 | PrepLadder Breakdown</title> <style> *{box-sizing:border-box;margin:0;padding:0} body{font-family:"Segoe UI",Arial,sans-serif;background:#f0f2f5;color:#1a1a1a;line-height:1.7;font-size:15px} .page{max-width:960px;margin:0 auto;padding:24px 16px} h1{background:linear-gradient(135deg,#1565C0,#0d47a1);color:#fff;padding:22px 28px;border-radius:14px;font-size:1.7em;margin-bottom:24px} h1 span{display:block;font-size:0.55em;opacity:0.85;font-weight:400;margin-top:4px} .card{background:#fff;border-radius:12px;padding:24px 28px;margin-bottom:20px;box-shadow:0 2px 8px rgba(0,0,0,0.07)} h2{color:#1565C0;font-size:1.25em;border-left:5px solid #1565C0;padding-left:12px;margin-bottom:16px;margin-top:4px} h3{color:#2e7d32;font-size:1.05em;margin:18px 0 8px} h4{color:#6a1b9a;font-size:0.98em;margin:14px 0 6px} .pink{color:#d81b60;font-weight:600} .pb{background:#fce4ec;border:1.5px solid #f48fb1;border-radius:10px;padding:14px 18px;margin:14px 0} .pb h3{color:#c2185b;margin-top:0} .ib{background:#fffde7;border:1.5px solid #f9a825;border-radius:10px;padding:14px 18px;margin:14px 0} .ib h3{color:#e65100;margin-top:0} .gb{background:#e8f5e9;border:1.5px solid #66bb6a;border-radius:10px;padding:14px 18px;margin:14px 0} .gb h2{color:#1b5e20;border-color:#1b5e20} table{width:100%;border-collapse:collapse;margin:12px 0;font-size:0.91em} th{background:#1565C0;color:#fff;padding:9px 11px;text-align:left} td{padding:7px 11px;border:1px solid #ddd;vertical-align:top} tr:nth-child(even) td{background:#f5f8ff} ul,ol{padding-left:22px;margin:6px 0} li{margin:4px 0} .imgbox{text-align:center;margin:14px 0} .cap{text-align:center;font-size:0.83em;color:#555;font-style:italic;margin-top:-6px;margin-bottom:12px;padding:0 8px} hr{border:none;border-top:2px solid #e8e8e8;margin:24px 0} .badge{display:inline-block;background:#d81b60;color:#fff;border-radius:4px;padding:1px 7px;font-size:0.78em;font-weight:700;margin-right:3px;vertical-align:middle} </style> </head> <body> <div class="page"> <h1>π Neurology Part-1 β Full Breakdown with Images<span>PrepLadder Notes Β· Topics: Seizures Β· Epilepsy Β· Meningitis Β· Encephalitis Β· LP Β· NCC Β· SAH Β· Head Trauma</span></h1> <!-- ====== SEIZURES ====== --> <div class="card"> <h2>TOPIC 1: Seizures and Epilepsy</h2> <h3>What is Epilepsy?</h3> <ul> <li><b>Epilepsy</b> = tendency to have <span class="pink">β₯2 unprovoked seizures</span> (no clear trigger like fever or low blood sugar)</li> <li>Seizures from hypoglycemia or fever = <b>NOT epilepsy</b></li> <li><span class="pink">M/c cause of acquired epilepsy in India = Neurocysticercosis (NCC)</span></li> <li>NCC: Eat <i>Taenia solium</i> eggs β larvae travel to brain β cysts with scolex β vasogenic edema β seizures</li> </ul> <h3>Normal EEG Rhythms</h3> <ul> <li>Eyes <b>open</b> β <span class="pink">Beta rhythm (13β30 Hz)</span></li> <li>Eyes <b>closed</b> β <span class="pink">Alpha rhythm (8β12 Hz)</span></li> </ul> <h3>EEG Pattern: 3Hz Spike-and-Slow-Wave β Absence Seizures</h3> <div class="imgbox">''' + img('eeg_3hz_absence','3Hz spike and slow wave EEG pattern for Absence Seizures','620px') + '''</div> ''' + cap('π΄ 3Hz spike-and-slow-wave pattern β Absence seizures Β· DOC: Ethosuximide (kids) / Valproate (adults)') + ''' <h3>EEG Pattern: Hypsarrhythmia + Ash Leaf Macules (West Syndrome / Tuberous Sclerosis)</h3> <div class="imgbox">''' + img('eeg_hypsarrhythmia_ashleaf','Hypsarrhythmia EEG and Ash Leaf Macules in Tuberous Sclerosis','620px') + '''</div> ''' + cap('π΄ Hypsarrhythmia = Gross Chaotic EEG pattern β West Syndrome / Infantile Spasms Β· Right: Ash Leaf Macules = Tuberous Sclerosis Β· DOC: ACTH injection; Vigabatrin if TS') + ''' <table> <tr><th>EEG Pattern</th><th>Condition</th><th>DOC</th></tr> <tr><td><span class="pink"><3Hz spike + slow wave</span></td><td>Lennox-Gastaut Syndrome</td><td>Sodium Valproate</td></tr> <tr><td><span class="pink">3Hz spike-and-slow-wave</span></td><td>Absence Seizures</td><td>Ethosuximide (kids) / Valproate (adults)</td></tr> <tr><td><span class="pink">Hypsarrhythmia (Gross Chaotic)</span></td><td>West Syndrome / Infantile Spasms</td><td>ACTH; <span class="pink">Vigabatrin</span> if Tuberous Sclerosis</td></tr> </table> </div> <!-- ====== TYPES OF SEIZURES ====== --> <div class="card"> <h2>TOPIC 2: Types of Seizures</h2> <h3>1. Status Epilepticus (GSCE) β Medical Emergency</h3> <ul> <li>Seizures >5 mins with full body shaking (GTCS). Risk: metabolic acidosis, hypothermia, aspiration, death</li> <li><span class="pink">T1 (treat by) = >5 min Β· T2 (brain damage) = 30 min</span></li> <li><b>Treatment ladder:</b> <span class="pink">IV Lorazepam</span> β Phenytoin/Valproate/Levetiracetam β <span class="pink">IV Midazolam/Phenobarbital infusion</span> β Propofol GA</li> </ul> <h3>2. Focal Seizures</h3> <ul> <li>Start with <b>aura</b> (warning: smell, dΓ©jΓ vu)</li> <li><span class="pink">Jacksonian March</span>: Jerking starts in one finger and "marches" up the arm along the motor cortex map</li> <li><span class="pink">Todd's Paralysis</span>: Temporary post-seizure weakness of the affected limb (NOT a stroke β resolves in mins-hrs)</li> <li><b>Automatisms</b>: Unconscious lip smacking, picking activity</li> <li>MRI β <span class="pink">Mesial Temporal Sclerosis</span> (hippocampal scarring)</li> <li>DOC: <span class="pink">Carbamazepine</span> Β· S/E: SIADH, Hyponatremia</li> </ul> <h3>3. Atonic Seizures ("Drop Attacks")</h3> <ul> <li>Sudden total loss of muscle tone β falls and gets injured</li> <li><span class="pink">DOC: Sodium Valproate</span> Β· S/E: Hyperammonemia, Pancreatitis, Alopecia</li> </ul> <h3>4. Myoclonic Seizures</h3> <ul> <li><span class="pink">vCJD</span>: Young adult ~30 yrs, dementia + startle myoclonus, contaminated beef β <b>prions</b> replicate in neurons</li> <li><span class="pink">Juvenile Myoclonic Epilepsy (Janz Syndrome)</span>: Teenager, early morning jerks, worsened by sleep deprivation, EEG 4β6 Hz polyspike</li> <li><span class="pink">SSPE</span>: 8-yr-old boy, myoclonus + neurodegeneration, <span class="pink">IgG antibodies to measles virus</span></li> <li><span class="pink">West Syndrome / Infantile Spasms</span>: Infant + hypsarrhythmia EEG</li> <li>DOC: <span class="pink">Sodium Valproate</span> Β· <span class="pink">Avoid Oxcarbazepine</span> (worsens myoclonic seizures)</li> </ul> </div> <!-- ====== GTCS ====== --> <div class="card"> <h2>TOPIC 3: GTCS / Grand Mal Seizure</h2> <p>Stages: <span class="pink">Ictal cry β Tonus (<30s) β Clonus (<30s) β Post-ictal</span></p> <ul> <li><b>Tonic</b>: Body stiff/rigid Β· <b>Clonic</b>: Rhythmic jerking, perioral cyanosis, frothing</li> <li><b>Post-ictal</b>: Unconscious, rattling sounds, bladder/bowel incontinence, confusion</li> <li>Duration: <span class="pink">β€1 min</span> Β· Do NOT restrain tightly Β· Recovery <1 hr</li> <li>T/t: <span class="pink">Sodium Valproate (~2 years, then taper)</span></li> </ul> <h3>Absence Seizures (Petit Mal)</h3> <ul> <li>Child suddenly zones out β stares blankly, eyes open, unresponsive for seconds, then resumes normally</li> <li><b>No falling, no post-ictal confusion</b> (key difference from GTCS)</li> <li>EEG: <span class="pink">3Hz spike-and-wave</span> Β· DOC: <b>Ethosuximide</b></li> <li><span class="pink">AVOID: Carbamazepine, Phenytoin</span> β they WORSEN absence seizures</li> </ul> <h3>Gelastic Seizures</h3> <p>Sudden uncontrollable laughing/giggling during a seizure</p> <div class="pb"> <h3>π΄ Important β Key Facts</h3> <table> <tr><th>Fact</th><th>Answer</th></tr> <tr><td>M/c epilepsy in children</td><td><span class="pink">Rolandic epilepsy</span> (focal)</td></tr> <tr><td>M/c seizures in children</td><td><span class="pink">Febrile seizures</span></td></tr> <tr><td>M/c seizures in neonates</td><td><span class="pink">Subtle seizures</span></td></tr> <tr><td>M/c cause of neonatal subtle seizures</td><td><span class="pink">Hypoxic Ischemic Encephalopathy (birth asphyxia)</span></td></tr> <tr><td>AED β kidney stones + glaucoma</td><td><span class="pink">Topiramate, Zonisamide</span></td></tr> <tr><td>Only AED causing weight LOSS</td><td><b>Topiramate</b> (FDA approved)</td></tr> </table> </div> <h3>Lennox-Gastaut Syndrome</h3> <ul> <li>Multiple seizure types: GTCS (morning) + Atonic (drop attacks) + Atypical absence</li> <li>EEG: <3Hz spike and slow wave Β· <span class="pink">T/t: Sodium Valproate</span></li> </ul> <h3>Dravet Syndrome</h3> <ul> <li><span class="pink">SCN1A gene defect</span> (sodium channel) Β· Prolonged febrile seizures + intellectual disability</li> <li><span class="pink">T/t: Ketogenic diet + Cannabidiol + Valproate</span></li> </ul> </div> <!-- ====== FEBRILE SEIZURES ====== --> <div class="card"> <h2>TOPIC 4: Febrile Seizures</h2> <p>Seizures triggered by fever in children β brain is NOT infected; the fever itself triggers the seizure</p> <table> <tr><th>Situation</th><th>Drug</th></tr> <tr><td>Acute at home</td><td><span class="pink">Rectal Diazepam</span> (catheter 2cm from anus) OR Intranasal Midazolam</td></tr> <tr><td>Intermediate prophylaxis</td><td><span class="pink">Oral Clobazam</span></td></tr> <tr><td>Continuous prophylaxis</td><td><span class="pink">Oral Valproate</span> (NOT Phenytoin)</td></tr> </table> <h3>Simple Febrile Seizures</h3> <ul> <li>GTCS within first 24 hrs of fever Β· <span class="pink">Single episode per fever, <15 min</span> Β· No post-ictal deficit</li> </ul> <h3><span class="pink">Complex Febrile Seizures</span></h3> <ul> <li><span class="pink">>1 episode per fever OR focal seizure OR >15 minutes</span> Β· Associated with Lennox-Gastaut</li> </ul> <div class="pb"> <h3>π΄ ILAE 2025 Update</h3> <ul> <li><span class="pink">Epileptic Negative Myoclonus</span> (New Term): Conscious, hand drops object, knee buckles; sudden loss of tone in one muscle; <span class="pink">EMG silence 50β400 ms</span> Β· T/t: Valproate</li> <li>Focal seizure timing: <span class="pink">T1 = 10 min Β· T2 = 60 min</span></li> </ul> </div> <div class="pb"> <h3>π΄ Asterixis / Flapping Tremor</h3> <ul> <li>Arms + wrists extended β sudden brief flapping movement</li> <li><span class="pink">Seen in: Hepatic encephalopathy Β· Uremic encephalopathy Β· COβ narcosis</span></li> <li>Graves' disease: <span class="pink">Fine finger tremors</span> (fast, small β NOT flapping)</li> </ul> </div> </div> <!-- ====== PYOGENIC MENINGITIS ====== --> <div class="card"> <h2>TOPIC 5: Pyogenic Meningitis</h2> <p><b>Classic scenario:</b> Fever + Headache + Nuchal rigidity (stiff neck)</p> <h3>Gram Staining A β Pneumococcus (Gram-positive Diplococcus)</h3> <div class="imgbox">''' + img('gram_stain_pneumococcus','Gram stain A - Pneumococcus gram positive diplococcus','500px') + '''</div> ''' + cap('Gram-positive Diplococcus β Pneumococcus Β· #1 cause of bacterial meningitis in adults Β· Also M/c cause of lobar pneumonia') + ''' <h3>Gram Staining B β N. meningitidis (Gram-negative) + Purpuric Rash / Purpura</h3> <div class="imgbox">''' + img('gram_stain_B_purpura','Gram stain B gram negative meningitidis and purpuric rash on legs','620px') + '''</div> ''' + cap('Left: Gram-negative stain β N. meningitidis Β· Right: Petechial rash / Purpura on legs = Meningococcemia') + ''' <table> <tr><th>Situation</th><th>Organism</th></tr> <tr><td>Adults (3 months β 55 yrs)</td><td><b>Pneumococcus</b> β Draughtsman colonies</td></tr> <tr><td>Adults + Purpuric rash + Distributive shock</td><td><span class="pink">N. meningitidis (Meningococcemia)</span></td></tr> <tr><td>Neonates β India</td><td>E. coli / Klebsiella</td></tr> <tr><td>Neonates β Global</td><td><span class="pink">Group B Streptococcus (S. agalactiae)</span></td></tr> </table> <h3>N. meningitidis Complication</h3> <ul> <li>DIC + adrenal hemorrhage β <span class="pink">Waterhouse-Friderichsen Syndrome</span> (βBP, βsugar = Addisonian crisis)</li> </ul> <h3>Treatment</h3> <ul> <li><span class="pink">Guarded LP β IV Ceftriaxone + Vancomycin within 60 minutes</span></li> <li>Mortality: <span class="pink">30% without antibiotics</span></li> <li>Add <b>Ampicillin</b> for alcoholics/transplant (Listeria not covered by Ceftriaxone)</li> <li>First 72 hrs: <span class="pink">Ceftriaxone + Vancomycin + Ampicillin</span></li> <li>Mass prophylaxis for contacts: <span class="pink">Ciprofloxacin</span></li> <li>Recurrent meningococcal meningitis: <span class="pink">C5βC9 complement deficiency</span></li> </ul> <div class="pb"> <h3>π΄ PINFAN β Do CT/MRI BEFORE LP if any present</h3> <ul> <li><span class="pink">P</span> β Papilledema Β· <span class="pink">I</span> β Immunocompromised Β· <span class="pink">N</span> β New-onset seizures</li> <li><span class="pink">F</span> β Focal neurological deficit Β· <span class="pink">A</span> β Altered sensorium/low GCS Β· <span class="pink">N</span> β Neoplasm/known CNS lesion</li> </ul> <p>LP contraindicated in raised ICP β risk of brain herniation. Give <span class="pink">Mannitol</span> first.</p> </div> </div> <!-- ====== VIRAL ENCEPHALITIS ====== --> <div class="card"> <h2>TOPIC 6: Viral Encephalitis</h2> <p><b>Scenario:</b> Village patient + High-grade fever (1β2 days) + Headache + Altered sensorium</p> <h3>HSV-1 Encephalitis</h3> <ul> <li><span class="pink">Overall MCC of viral encephalitis</span> Β· Loves temporal lobe β amnesia</li> <li><span class="pink">IOC: CSF PCR for HSV-1</span> Β· CSF has RBCs (hemorrhagic encephalitis)</li> <li>EEG: <span class="pink">PLED (Periodic Lateralized Epileptiform Discharges)</span></li> <li><span class="pink">Empirical T/t: Acyclovir</span> (start immediately, don't wait for PCR)</li> </ul> <h3>Japanese Encephalitis</h3> <ul> <li><span class="pink">Leading cause in India β UP, Gorakhpur</span> Β· Vector: Culex mosquito (dirty water) Β· Vaccine available</li> </ul> <h3>Nipah Virus (Kerala, West Bengal)</h3> <div class="imgbox">''' + img('nipah_diagram','Nipah virus transmission diagram - fruit bats to pigs to humans via contaminated fruits','680px') + '''</div> ''' + cap('Nipah cycle: π΄ Pteropus fruit bats β Blood/Urine/Saliva β Contaminated fruit/date palm sap β Pigs β Humans Β· Also human-to-human Β· Case fatality: π΄ 40β75%') + ''' </div> <!-- ====== CSF TABLE ====== --> <div class="card"> <h2>TOPIC 7: CSF Findings</h2> <table> <tr><th>Finding</th><th>Normal</th><th>Bacterial</th><th>TB Meningitis</th><th>Viral</th></tr> <tr><td>Cells</td><td>0β5 lymphocytes</td><td>>1000 PMN (neutrophils)</td><td>100β1000 lymphocytes</td><td>25β100 lymphocytes</td></tr> <tr><td>Sugar</td><td>2/3 blood sugar</td><td><0.6 (LOW)</td><td><0.6 (LOW)</td><td>Normal</td></tr> <tr><td>Protein</td><td>15β45 mg%</td><td>β HIGH</td><td><span class="pink">>1g β Cobweb coagulum</span></td><td>Mildly β</td></tr> <tr><td>Pressure</td><td>10β20 mmHg</td><td>β</td><td>β</td><td>β</td></tr> <tr><td>Colour</td><td>Clear</td><td>Turbid/Cloudy</td><td>Clear/Straw</td><td>Clear</td></tr> </table> <p><span class="pink">Viral vs Fungal:</span> All same EXCEPT β Viral sugar = Normal Β· Fungal sugar = LOW</p> <h4>MCQ Answer β TB Meningitis: CSF Cobweb Coagulum + ZN Stain (Red bacilli = M. tuberculosis)</h4> <div class="imgbox">''' + img('tb_csf_znstain','TB meningitis CSF cobweb coagulum and ZN stain showing red bacilli','580px') + '''</div> ''' + cap('Left: Cobweb coagulum in CSF tube (very high protein forms a web-like clot) Β· Right: ZN stain β π΄ Red bacilli = M. tuberculosis') + ''' </div> <!-- ====== MENINGEAL SIGNS ====== --> <div class="card"> <h2>TOPIC 8: Meningeal Signs</h2> <h3><span class="pink">Kernig's Sign</span></h3> <div class="imgbox">''' + img('kernig_sign',"Kernig sign - one hand on knee one on ankle extend knee causes hamstring spasm",'540px') + '''</div> ''' + cap('One hand on knee + one on ankle β flex hip β try to extend knee β π΄ hamstring spasm + pain = Positive Kernig\'s') + ''' <h3><span class="pink">Brudzinski's Sign</span></h3> <div class="imgbox">''' + img('brudzinski_sign',"Brudzinski sign - passive neck flexion causes involuntary hip and knee flexion",'540px') + '''</div> ''' + cap('Hand under neck β lift/flex neck β π΄ involuntary hip + knee flexion = Positive Brudzinski\'s') + ''' <div class="ib"> <h3>β Key Distinction</h3> <ul> <li><span class="pink">Nuchal rigidity</span>: Only in <b>conscious</b> patients (needs active cooperation)</li> <li><b>Kernig / Brudzinski</b>: Can be done in <b>unconscious</b> patients</li> </ul> </div> </div> <!-- ====== TB MENINGITIS ====== --> <div class="card"> <h2>TOPIC 9: Tubercular Meningitis</h2> <ul> <li>Work-up: CECT β ventricular dilatation? β Mannitol (βICP) β Recheck fundus β Guarded LP</li> <li>CECT finding: <b>Basal exudates</b> (pus at brain base) Β· CSF: <b>CBNAAT</b></li> <li>T/t: <b>ATT Γ 1 year</b></li> <li><span class="pink">Dexamethasone β βvasogenic cerebral edema</span> (IV/NG if unconscious; oral if conscious)</li> </ul> </div> <!-- ====== CRYPTOCOCCUS ====== --> <div class="card"> <h2>TOPIC 10: Cryptococcus Neoformans</h2> <p><b>Scenario:</b> HIV positive + fever + headache + photophobia + papilledema + nuchal rigidity</p> <h4>Diagnostic Images: India Ink / MRI / Histology</h4> <div class="imgbox">''' + img('crypto_images_top','Cryptococcus India ink stain MRI soap bubble appearance and histology','720px') + '''</div> ''' + cap('Left: India ink β dark background, capsule appears as clear white halo (negative stain) Β· Middle: MRI β π΄ soap bubble appearance Β· Right: Histology') + ''' <div class="imgbox">''' + img('crypto_images_bottom','Cryptococcus inference images - India ink MRI histology','720px') + '''</div> ''' + cap('Inference images confirming Cryptococcus neoformans') + ''' <ul> <li><b>India Ink</b>: Background dark, capsule = clear halo (negative stain)</li> <li><b>Mucicarmine stain</b>: Stains capsule pink</li> <li><span class="pink">MRI: Soap bubble appearance</span> (also seen in Giant Cell Tumor / Osteoclastoma)</li> <li>Entry: Pigeon droppings β lungs β blood (βCMI in HIV) β crosses BBB β meningitis</li> </ul> <h3>Treatment</h3> <p><span class="pink">Liposomal Amphotericin B + Flucytosine IV Γ 2 weeks</span> β then Oral Fluconazole Γ 10 weeks</p> </div> <!-- ====== CEREBRAL MALARIA ====== --> <div class="card"> <h2>TOPIC 11: Cerebral Malaria</h2> <p><b>Scenario:</b> Villager + 1-day high-grade fever + Altered sensorium + NO nuchal rigidity + βHb + βLDH + βunconjugated bilirubin</p> <h3>Blood Smear β MCQ Diagnostic Image</h3> <div class="imgbox">''' + img('malaria_smear1','Malaria blood smear MCQ showing banana-shaped gametocyte Plasmodium falciparum','560px') + '''</div> ''' + cap('π΄ Banana/crescent-shaped gametocyte (curved purple cell) β Plasmodium falciparum (pathognomonic)') + ''' <h3>Inference β Banana-shaped Gametocyte (clear view)</h3> <div class="imgbox">''' + img('malaria_smear2','Blood smear showing banana shaped gametocyte clearly - Plasmodium falciparum','560px') + '''</div> ''' + cap('Classic banana gametocyte clearly visible β P. falciparum confirmed') + ''' <h3>Multiple Ring Stages / Accole Forms</h3> <div class="imgbox">''' + img('malaria_smear3','Multiple ring stages and Accole forms inside RBCs - P falciparum hemolysis','560px') + '''</div> ''' + cap('Multiple ring stages & Accole (appliquΓ©) forms inside RBCs β P. falciparum Β· π΄ Hemolysis: βHb Β· βLDH Β· βUnconjugated bilirubin') + ''' <ul> <li>Pathogenesis: RBCs sticky β sluggish cerebral flow β encephalopathy β altered sensorium</li> <li><span class="pink">Diagnosis: Dipstick test (Histidine-rich protein-2) / Card test</span> (GOI developed)</li> <li>Complication: <b>Blackwater fever</b> β black urine (hemoglobinemia + hemoglobinuria + AKI)</li> <li>T/t: <span class="pink">IV/IM Artesunate</span></li> </ul> <div class="pb"><h3>π΄ Card test for Kala-azar = RK39 antigen (GOI)</h3></div> </div> <!-- ====== LP ====== --> <div class="card"> <h2>TOPIC 12: Lumbar Puncture (LP)</h2> <p>Preferred site: <span class="pink">L3βL4</span></p> <h3>LP Needle Types</h3> <div class="imgbox">''' + img('lp_needles_pencils','Quincke and Sprotte LP needles - pencil-like side by side','420px') + '''</div> <div class="imgbox">''' + img('lp_needles_ab','LP needle A Quincke cutting edge and B Sprotte atraumatic','420px') + '''</div> ''' + cap('A = π΄ Quincke (cutting edge β sharper, larger hole β CSF leak β post-dural puncture headache) Β· B = π΄ Sprotte (atraumatic, thinner β recommended)') + ''' <h3>Patient Positioning</h3> <div class="imgbox">''' + img('lp_positioning','LP patient lateral decubitus fetal position with L4L5 iliac crest landmark','520px') + '''</div> ''' + cap('Lateral decubitus (fetal position) β knees + neck flexed Β· π΄ Tuffier\'s line = connects both iliac crests = crosses at L4 Β· Insert at L3βL4') + ''' <h3>Layers Pierced During LP (In Order)</h3> <div class="imgbox">''' + img('lp_layers_anatomy','Anatomical diagram of layers pierced during lumbar puncture from skin to arachnoid','600px') + '''</div> ''' + cap('1. Skin & subcutaneous Β· 2. Supraspinous ligament Β· 3. Interspinous ligament Β· 4. Ligamentum flavum Β· 5. Dura mater Β· 6. Arachnoid layer') + ''' <div class="pb"> <h3>π΄ CSF Facts</h3> <ul><li>Production: <span class="pink">20 mL/hr</span> Β· Total volume: <span class="pink">150 mL</span> (brain + spinal cord)</li></ul> </div> <table> <tr><th>Tube</th><th>Test</th></tr> <tr><td>Tube A</td><td>Sugar & Protein</td></tr> <tr><td>Tube B</td><td>Cytology (Neutrophils / Lymphocytes)</td></tr> <tr><td>Tube C</td><td>Culture</td></tr> <tr><td>Tube D</td><td>Special studies (CBNAAT, India ink, PCR HSV) β <b>Refrigerate</b></td></tr> </table> </div> <!-- ====== NCC ====== --> <div class="card"> <h2>TOPIC 13: Neurocysticercosis (NCC)</h2> <p>Cause: Ingestion of <i>Taenia solium</i> eggs Β· <span class="pink">IOC: Contrast gadolinium-enhanced MRI</span> (ring-enhancing lesion)</p> <h3>MRI Stage 1 β Active (Multiple hypointense lesions with Scolex)</h3> <div class="imgbox">''' + img('ncc_mri_scolex','NCC MRI Stage 1 - multiple hypointense black holes with eccentric scolex active larvae','500px') + '''</div> ''' + cap('Multiple hypointense lesions (black holes) with π΄ eccentric scolex = Active larvae Β· T/t: π΄ Albendazole + Praziquantel') + ''' <h3>Stage 2 β Rice Grain Calcification (Cysticercosis)</h3> <div class="imgbox">''' + img('ncc_rice_grain','NCC Stage 2 rice grain calcification cysticercosis','500px') + '''</div> ''' + cap('π΄ Rice grain calcification pattern (dead cyst calcifying) Β· T/t: π΄ Praziquantel') + ''' <h3>Stage 3 β Intracranial Calcifications (Dead calcified larvae)</h3> <div class="imgbox">''' + img('ncc_intracranial_calc','NCC Stage 3 intracranial calcifications dead calcified larvae on CT','500px') + '''</div> ''' + cap('Scattered calcifications = larvae died in muscle/brain Β· T/t: π΄ Sodium Valproate Γ 2 years') + ''' <h3>Stage 4 β "Starry Sky" Appearance</h3> <div class="imgbox">''' + img('ncc_starry_sky','NCC Stage 4 starry sky appearance multiple eccentric scolices MRI','500px') + '''</div> ''' + cap('π΄ Starry sky = eccentric scolices developing in multiple brain areas simultaneously') + ''' <h3>MR Spectroscopy β Differentiate NCC from Tuberculoma</h3> <div class="imgbox">''' + img('ncc_mr_spectroscopy','MR spectroscopy graph showing lipid and amino acid peaks to differentiate NCC from tuberculoma','440px') + '''</div> ''' + cap('π΄ Lipid peak β Tuberculoma Β· π΄ Amino acid (Lip+Lac) peak β Neurocysticercosis') + ''' <table> <tr><th>Feature</th><th>NCC</th><th>Tuberculoma</th></tr> <tr><td>Lesion size</td><td><20 mm</td><td>>20 mm</td></tr> <tr><td>Meningitis</td><td>NOT present</td><td>Usually associated</td></tr> <tr><td>Common location</td><td>Grey-white matter junction</td><td>Posterior fossa (M/c)</td></tr> <tr><td>T2 MRI</td><td>Hyperintense + hypointense scolex; no midline shift</td><td>Hypointense; midline shift possible</td></tr> <tr><td>MR spectroscopy</td><td>Amino acid peaks</td><td>Lipid peak</td></tr> </table> <h3>Treatment Protocol</h3> <ol> <li>Dexamethasone IV q6h Γ 48 hrs (reduce vasogenic edema β prevents focal seizures)</li> <li><span class="pink">Albendazole (single lesion) / Albendazole + Praziquantel (multiple lesions)</span></li> <li>Valproate for seizure control</li> </ol> </div> <!-- ====== SAH ====== --> <div class="card"> <h2>TOPIC 14: Subarachnoid Hemorrhage (SAH)</h2> <div class="pb"><h3>π΄ Classic Buzzwords</h3> <p>"Worst headache of my life" Β· "Thunderclap headache" (peaks in 1 minute, out of nowhere)</p></div> <h3>CSF Tubes + CT Head</h3> <div class="imgbox">''' + img('sah_csf_ct','SAH diagnostic images - xanthochromic CSF tubes and CT head showing blood in basal cisterns','620px') + '''</div> ''' + cap('Left: CSF tubes β initially pinkish/reddish (RBCs); later π΄ Xanthochromic (yellow = bilirubin from RBC breakdown) Β· Right: CT head β π΄ blood in basal cisterns / Sylvian fissure') + ''' <h3>Endovascular Coiling vs Aneurysmal Clipping</h3> <div class="imgbox">''' + img('aneurysm_coiling_clipping','Endovascular coiling of Berry aneurysm (left) and aneurysmal surgical clipping (right)','680px') + '''</div> ''' + cap('Left: Endovascular coiling β platinum wire inside aneurysm blocks blood flow (π΄ BEST treatment) Β· Right: Aneurysmal clipping β surgical metal clip at base') + ''' <h3>Investigation Algorithm</h3> <ol> <li><span class="pink">NCCT head (first)</span></li> <li><span class="pink">Cerebral angiography (next best)</span> β find exact aneurysm location</li> <li><span class="pink">If CT normal: Guarded LP</span> β xanthochromic CSF confirms SAH</li> </ol> <h3>Key Facts</h3> <ul> <li><span class="pink">M/c Berry aneurysm location: Anterior communicating artery / ACA junction</span></li> <li><span class="pink">Most prone to rupture: Posterior communicating artery</span> β compresses CN-III β Ptosis</li> <li>DOC for vasospasm: <span class="pink">Nimodipine</span> Β· T/t: <span class="pink">Endovascular coiling</span></li> <li>Leading cause of death: 1. Vasospasm 2. Hydrocephalus 3. Bleeding 4. Rebleeding 5. Electrolytes</li> </ul> <div class="pb"><h3>π΄ Thunderclap headache also in:</h3> <p>Pituitary apoplexy Β· CVT Β· Acute hydrocephalus Β· HTN crisis</p></div> </div> <!-- ====== HEAD TRAUMA ====== --> <div class="card"> <h2>TOPIC 15: Head Trauma β Intracranial Hemorrhage</h2> <h3>Acute Subdural Hemorrhage β NCCT</h3> <div class="imgbox">''' + img('acute_subdural_ncct','Acute subdural hemorrhage NCCT showing crescent shaped hyperdense concavoconvex lesion','460px') + '''</div> ''' + cap('π΄ Crescent-shaped / Concavoconvex hyperdense lesion Β· Source: Cortical bridging veins (slow venous bleed) Β· T/t: π΄ Emergency craniotomy') + ''' <h3>Chronic Subdural Hemorrhage + CT + Anatomy Diagram</h3> <div class="imgbox">''' + img('chronic_subdural_ct','Chronic subdural hemorrhage NCCT concavoconvex hypodensity dark crescent and anatomy diagram','640px') + '''</div> ''' + cap('Left: NCCT β crescent-shaped hypodensity (dark = old blood) Β· Right: Anatomy showing subdural space between dura and arachnoid Β· T/t: π΄ Burr hole surgery (via pterion)') + ''' <div class="pb"><h3>π΄ Decompressive hemicraniectomy β Malignant cerebral edema</h3> <p>Caused by hemorrhagic stroke or blast injury</p></div> <h3>Diffuse Axonal Injury (DAI) / Traumatic Axonal Injury (TAI)</h3> <div class="imgbox">''' + img('dai_ncct','DAI NCCT showing punctuate hemorrhages at grey white matter interface diffuse axonal injury','580px') + '''</div> ''' + cap('Punctuate hemorrhages at grey-white matter interface Β· π΄ β₯4 micro bleeds = DAI Β· Best investigation: π΄ S-W-MRI (Susceptibility-Weighted MRI) Β· T/t: ETT + IPPV') + ''' <h3>Extradural / Epidural Hemorrhage β CT</h3> <div class="imgbox">''' + img('extradural_ct','Extradural epidural hemorrhage CT showing biconvex lens-shaped lenticular hyperdensity','480px') + '''</div> ''' + cap('π΄ Biconvex / Lens-shaped = Lenticular hyperdensity (bright white) Β· Source: π΄ Middle meningeal artery (Branch of ECA) Β· Pattern: Unconscious β Conscious (lucid interval) β Unconscious Β· T/t: π΄ Craniotomy + ligation of bleeder') + ''' <div class="ib"><h3>β Lucid Interval</h3> <p>Seen in BOTH <b>subdural AND extradural</b> hemorrhage</p></div> </div> <!-- ====== FMGE ====== --> <div class="gb"> <h2>π FMGE Insights β Top 50 High-Yield Points</h2> <h3>Seizures & Epilepsy</h3> <ol> <li>Epilepsy = β₯2 unprovoked seizures (metabolic/febrile do NOT count)</li> <li>MCC acquired epilepsy India = Neurocysticercosis</li> <li>EEG: 3Hz = Absence Β· <3Hz = LGS Β· Hypsarrhythmia = West Β· PLED = HSV encephalitis</li> <li>DOC Absence = Ethosuximide Β· NEVER give Carbamazepine/Phenytoin</li> <li>Jacksonian March + Todd's Paralysis = Focal seizures</li> <li>SSPE = IgG measles antibodies, 8-yr-old, myoclonus + neurodegeneration</li> <li>Janz syndrome = teenager, morning jerks, sleep deprivation worsens, EEG 4β6 Hz polyspike</li> <li>vCJD = contaminated beef, young adult, prions, dementia + myoclonus</li> <li>Only AED causing weight loss = Topiramate</li> <li>AEDs β nephrolithiasis + glaucoma = Topiramate, Zonisamide</li> <li>SE treatment: IV Lorazepam β Phenytoin/Valproate β IV Midazolam β Propofol GA</li> <li>Dravet syndrome: SCN1A, ketogenic diet + cannabidiol</li> <li>ILAE 2025: Focal seizure T1 = 10 min, T2 = 60 min</li> </ol> <h3>Meningitis</h3> <ol start="14"> <li>MCC bacterial meningitis Adults = Pneumococcus</li> <li>MCC bacterial meningitis Neonates (Global) = Group B Streptococcus</li> <li>Waterhouse-Friderichsen = N. meningitidis β bilateral adrenal hemorrhage</li> <li>PINFAN = CT before LP (Papilledema, Immunocompromised, New seizure, Focal deficit, Altered, Neoplasm)</li> <li>LP contraindicated in raised ICP β use Mannitol first</li> <li>Antibiotics within 60 min = Ceftriaxone + Vancomycin Β± Ampicillin</li> <li>Prophylaxis for meningococcal contacts = Ciprofloxacin</li> <li>Recurrent meningococcal meningitis = C5βC9 complement deficiency</li> </ol> <h3>CSF & Encephalitis</h3> <ol start="22"> <li>TB meningitis = lymphocytes + low sugar + very high protein + cobweb coagulum</li> <li>Viral vs Fungal = same EXCEPT viral sugar Normal; fungal sugar LOW</li> <li>HSV encephalitis = temporal lobe + CSF PCR + PLED on EEG + Acyclovir</li> <li>Japanese encephalitis = UP/Gorakhpur, Culex mosquito</li> <li>Nipah = fruit bats (Pteropus), 40β75% mortality, Kerala/WB</li> </ol> <h3>Cryptococcus & Malaria</h3> <ol start="27"> <li>India ink = dark background, capsule appears clear white halo</li> <li>MRI soap bubble = Cryptococcus (also Giant Cell Tumor)</li> <li>Treatment = Amphotericin B + Flucytosine Γ 2 wks β Fluconazole Γ 10 wks</li> <li>Cerebral malaria T/t = IV/IM Artesunate</li> <li>Banana-shaped gametocyte = P. falciparum Β· Blackwater fever = black urine (massive hemolysis)</li> </ol> <h3>Lumbar Puncture</h3> <ol start="32"> <li>Site = L3βL4 (Tuffier's line)</li> <li>Layers = Skin β Supraspinous β Interspinous β Ligamentum flavum β Dura β Arachnoid</li> <li>CSF: 20 mL/hr produced; total 150 mL</li> <li>Sprotte (atraumatic) preferred over Quincke (cutting)</li> </ol> <h3>NCC</h3> <ol start="36"> <li>IOC NCC = Contrast gadolinium-enhanced MRI (ring-enhancing lesion)</li> <li>Lipid peak MR spectroscopy = Tuberculoma Β· Amino acid peak = NCC</li> <li>Rice grain calcification = NCC dead cyst Β· T/t: Praziquantel</li> <li>Single lesion = Albendazole alone Β· Multiple = Albendazole + Praziquantel</li> <li>Starry sky = multiple eccentric scolices on MRI</li> </ol> <h3>SAH & Head Trauma</h3> <ol start="41"> <li>"Worst headache of my life" + "Thunderclap" = SAH until proven otherwise</li> <li>M/c Berry aneurysm = Anterior communicating artery</li> <li>Posterior communicating artery aneurysm β CN-III palsy (ptosis)</li> <li>DOC vasospasm in SAH = Nimodipine</li> <li>T/t SAH = Endovascular coiling (best)</li> <li>Xanthochromic CSF = SAH (old blood breakdown to bilirubin)</li> <li>Biconvex/lens CT = Extradural hemorrhage (middle meningeal artery / ECA)</li> <li>Crescent CT = Subdural hemorrhage (cortical bridging veins)</li> <li>Lucid interval = BOTH subdural AND extradural Β· Chronic subdural = Burr hole Β· Acute subdural = Craniotomy</li> <li>DAI (β₯4 microbleeds) = S-W-MRI Β· Normal NCCT with same history = TAI</li> </ol> </div> <p style="text-align:center;color:#999;font-size:0.82em;margin-top:20px">PrepLadder Neurology Part-1 Β· Breakdown by Orris Β· All images extracted directly from notes</p> </div> </body></html>''' out = '/tmp/workspace/Neurology_Part1_v2.html' with open(out, 'w', encoding='utf-8') as f: f.write(html) kb = os.path.getsize(out)/1024 print(f"Saved: {out}") print(f"Size: {kb:.0f} KB") PYEOF
Neurology Part1 v2
HTML File Β· HTML