Write me a detailed short notes for the following topics from anil k tripathi book of general medicine for bds gujarat university for 3 year exams about 7-8 marks Male concise to the point precise ans to the topics are Epilepsy Meningitis Headache Facial pain TN Facial nerve palsy Migraine In pdf form

Reading File
Finding Sources
Finding Sources
Finding Sources
Finding Sources
Finding Sources
Reading File
Reading File
Reading File
Reading File
Reading File
Reading File
Reading File
Reading File
Reading File
Reading File
Reading File
Reading File
Running Command

mkdir -p /tmp/workspace/bds-notes && python3 << 'PYEOF' from reportlab.lib.pagesizes import A4 from reportlab.lib.styles import getSampleStyleSheet, ParagraphStyle from reportlab.lib.units import cm from reportlab.lib import colors from reportlab.platypus import ( SimpleDocTemplate, Paragraph, Spacer, Table, TableStyle, HRFlowable, KeepTogether ) from reportlab.lib.enums import TA_LEFT, TA_CENTER, TA_JUSTIFY # ── document setup ────────────────────────────────────────────────────────── doc = SimpleDocTemplate( "/tmp/workspace/bds-notes/General_Medicine_Short_Notes_BDS.pdf", pagesize=A4, leftMargin=2*cm, rightMargin=2*cm, topMargin=2.2*cm, bottomMargin=2.2*cm, title="General Medicine Short Notes – BDS 3rd Year", author="Gujarat University BDS Preparation" ) W = A4[0] - 4*cm # usable width # ── colour palette ─────────────────────────────────────────────────────────── DARK_BLUE = colors.HexColor("#1a3a5c") MED_BLUE = colors.HexColor("#2e6da4") LIGHT_BLUE = colors.HexColor("#dce9f5") ACCENT = colors.HexColor("#e67e22") TABLE_HEAD = colors.HexColor("#2e6da4") TABLE_ALT = colors.HexColor("#eaf3fb") WHITE = colors.white TEXT = colors.HexColor("#1a1a1a") # ── styles ─────────────────────────────────────────────────────────────────── ss = getSampleStyleSheet() coverTitle = ParagraphStyle("coverTitle", parent=ss["Title"], fontSize=26, leading=32, textColor=WHITE, alignment=TA_CENTER, spaceAfter=6) coverSub = ParagraphStyle("coverSub", parent=ss["Normal"], fontSize=13, leading=18, textColor=LIGHT_BLUE, alignment=TA_CENTER, spaceAfter=4) topicTitle = ParagraphStyle("topicTitle", fontSize=15, leading=19, textColor=WHITE, fontName="Helvetica-Bold", spaceAfter=4, spaceBefore=14, alignment=TA_LEFT, leftIndent=6) sectionHead = ParagraphStyle("sectionHead", fontSize=11, leading=14, textColor=DARK_BLUE, fontName="Helvetica-Bold", spaceAfter=3, spaceBefore=8) bodyText = ParagraphStyle("bodyText", fontSize=9.5, leading=14, textColor=TEXT, fontName="Helvetica", spaceAfter=3, alignment=TA_JUSTIFY) bulletStyle = ParagraphStyle("bullet", fontSize=9.5, leading=13.5, textColor=TEXT, fontName="Helvetica", spaceAfter=2, leftIndent=14, firstLineIndent=-10) subBullet = ParagraphStyle("subBullet", fontSize=9, leading=13, textColor=TEXT, fontName="Helvetica", spaceAfter=1.5, leftIndent=26, firstLineIndent=-10) noteStyle = ParagraphStyle("noteStyle", fontSize=9, leading=12, textColor=colors.HexColor("#5a5a5a"), fontName="Helvetica-Oblique", spaceAfter=2, leftIndent=8, borderPad=4) # ── helper functions ───────────────────────────────────────────────────────── def topic_header(title_text): """Returns a blue banner for the topic heading.""" tbl = Table([[Paragraph(title_text, topicTitle)]], colWidths=[W]) tbl.setStyle(TableStyle([ ("BACKGROUND", (0,0), (-1,-1), DARK_BLUE), ("TOPPADDING", (0,0), (-1,-1), 7), ("BOTTOMPADDING", (0,0), (-1,-1), 7), ("LEFTPADDING", (0,0), (-1,-1), 10), ("RIGHTPADDING", (0,0), (-1,-1), 10), ("ROUNDEDCORNERS", [5]), ])) return tbl def sh(text): return Paragraph(text, sectionHead) def b(text): return Paragraph(f"\u2022 {text}", bulletStyle) def sb(text): return Paragraph(f"\u2013 {text}", subBullet) def p(text): return Paragraph(text, bodyText) def sp(n=4): return Spacer(1, n) def hr(): return HRFlowable(width="100%", thickness=0.5, color=colors.HexColor("#b0c8e0"), spaceAfter=4, spaceBefore=4) def note(text): return Paragraph(f"<i>Note: {text}</i>", noteStyle) def two_col_table(rows, col_ratio=(0.35, 0.65)): """Simple two-column key:value table.""" col_widths = [W*col_ratio[0], W*col_ratio[1]] styled_rows = [] for i, (k, v) in enumerate(rows): kp = Paragraph(f"<b>{k}</b>", ParagraphStyle("tc", fontSize=9, leading=12, fontName="Helvetica-Bold", textColor=DARK_BLUE)) vp = Paragraph(v, ParagraphStyle("tv", fontSize=9, leading=12, fontName="Helvetica", textColor=TEXT)) styled_rows.append([kp, vp]) t = Table(styled_rows, colWidths=col_widths) style = [ ("BACKGROUND", (0,0), (-1,0), LIGHT_BLUE), ("ROWBACKGROUNDS", (0,0), (-1,-1), [WHITE, TABLE_ALT]), ("BOX", (0,0), (-1,-1), 0.5, colors.HexColor("#a0b8d0")), ("INNERGRID",(0,0), (-1,-1), 0.3, colors.HexColor("#c8d8e8")), ("TOPPADDING", (0,0), (-1,-1), 4), ("BOTTOMPADDING", (0,0), (-1,-1), 4), ("LEFTPADDING", (0,0), (-1,-1), 6), ("RIGHTPADDING", (0,0), (-1,-1), 6), ("VALIGN", (0,0), (-1,-1), "TOP"), ] t.setStyle(TableStyle(style)) return t # ════════════════════════════════════════════════════════════════════════════ # CONTENT # ════════════════════════════════════════════════════════════════════════════ story = [] # ── COVER PAGE ─────────────────────────────────────────────────────────────── cover_data = [[Paragraph( "<b>General Medicine</b><br/>Short Notes", coverTitle)]] cover_tbl = Table(cover_data, colWidths=[W]) cover_tbl.setStyle(TableStyle([ ("BACKGROUND", (0,0), (-1,-1), DARK_BLUE), ("TOPPADDING", (0,0), (-1,-1), 40), ("BOTTOMPADDING", (0,0), (-1,-1), 40), ("LEFTPADDING", (0,0), (-1,-1), 20), ("RIGHTPADDING", (0,0), (-1,-1), 20), ])) story.append(cover_tbl) story.append(sp(10)) story.append(Paragraph("BDS 3rd Year Examination Preparation", coverSub)) story.append(Paragraph("Gujarat University &nbsp;|&nbsp; 7–8 Marks Topics", coverSub)) story.append(sp(6)) story.append(Paragraph( "Based on Anil K. Tripathi – Essentials of Medicine for Dental Students", ParagraphStyle("ref", fontSize=10, textColor=MED_BLUE, alignment=TA_CENTER))) story.append(sp(4)) story.append(HRFlowable(width="60%", thickness=1.5, color=MED_BLUE, hAlign="CENTER", spaceAfter=8)) topics_list = [ "1. Epilepsy", "2. Meningitis", "3. Headache", "4. Facial Pain", "5. Trigeminal Neuralgia (TN)", "6. Facial Nerve Palsy (Bell's Palsy)", "7. Migraine" ] for t_ in topics_list: story.append(Paragraph(t_, ParagraphStyle("tl", fontSize=11, leading=16, textColor=DARK_BLUE, alignment=TA_CENTER))) story.append(sp(20)) # ════════════════════════════════════════════════════════════════════════════ # TOPIC 1 – EPILEPSY # ════════════════════════════════════════════════════════════════════════════ story.append(topic_header("1. EPILEPSY")) story.append(sp(6)) story.append(sh("Definition")) story.append(p("Epilepsy is a chronic neurological disorder characterised by recurrent (≥2) unprovoked seizures resulting from abnormal, excessive, or synchronous neuronal activity in the brain. A seizure is a transient occurrence of signs and/or symptoms due to abnormal excessive or synchronous neuronal brain activity.")) story.append(sp(4)) story.append(sh("Classification (ILAE 2017)")) story.append(two_col_table([ ("Focal onset", "Arises from one hemisphere. May be aware (simple partial) or impaired awareness (complex partial). Can secondarily generalise."), ("Generalised onset","Involves both hemispheres from onset. Types: tonic-clonic (grand mal), absence (petit mal), myoclonic, atonic, tonic, clonic."), ("Unknown onset", "Onset cannot be determined due to insufficient information."), ])) story.append(sp(6)) story.append(sh("Common Epilepsy Syndromes")) story.append(b("Grand Mal (Generalised Tonic-Clonic): loss of consciousness, tonic rigidity then clonic jerking, post-ictal confusion")) story.append(b("Petit Mal (Absence): brief 5–30 sec staring spells, 3 Hz spike-wave on EEG; common in children")) story.append(b("Temporal Lobe Epilepsy: most common focal epilepsy; aura (deja vu, epigastric rising), automatisms, impaired consciousness")) story.append(b("Juvenile Myoclonic Epilepsy: morning myoclonus, tonic-clonic seizures, absence; polyspike-wave on EEG")) story.append(b("West Syndrome: infantile spasms, hypsarrhythmia on EEG, intellectual disability")) story.append(b("Lennox-Gastaut: slow spike-wave (<2.5 Hz), multiple seizure types, intellectual disability")) story.append(sp(4)) story.append(sh("Aetiology")) story.append(b("Idiopathic (genetic): primary epilepsies, family history positive")) story.append(b("Symptomatic (structural/metabolic): brain tumour, stroke, trauma, meningitis, hypoglycaemia, hyponatraemia, uraemia, alcohol withdrawal")) story.append(b("Cryptogenic: presumed symptomatic but no cause found")) story.append(sp(4)) story.append(sh("Clinical Features – Grand Mal (most important for BDS)")) story.append(b("Prodrome: mood changes hours to days before")) story.append(b("Aura: sensory/motor warning (if focal onset)")) story.append(b("Tonic phase: sustained muscle contraction, apnoea, cyanosis, tongue bite — 10–30 sec")) story.append(b("Clonic phase: rhythmic jerking of limbs — 30–60 sec")) story.append(b("Post-ictal: confusion, headache, drowsiness, Todd's paralysis (transient focal weakness)")) story.append(sp(4)) story.append(sh("Investigations")) story.append(two_col_table([ ("EEG", "Gold standard – epileptiform spikes/spike-wave discharges. Normal interictal EEG does NOT exclude epilepsy. 90% show abnormality if multiple recordings done."), ("MRI brain", "Preferred over CT; identifies structural lesion (tumour, hippocampal sclerosis, cortical dysplasia)"), ("Blood tests", "CBC, glucose, electrolytes, calcium, LFT, RFT, drug levels"), ("CSF", "If meningitis/encephalitis suspected"), ("Video-EEG", "Gold standard to classify seizure type; captures ictal behaviour + EEG simultaneously"), ])) story.append(sp(4)) story.append(sh("Treatment")) story.append(sh("A. Acute Seizure Management")) story.append(b("Airway protection, left lateral position, loosen clothing")) story.append(b("IV diazepam 5–10 mg or IV lorazepam 4 mg (first-line for status)")) story.append(b("If no IV: rectal diazepam or buccal midazolam")) story.append(b("Second-line: IV phenytoin/fosphenytoin 15–20 mg/kg")) story.append(b("Third-line: IV levetiracetam, sodium valproate, phenobarbital")) story.append(b("Refractory status: thiopentone/propofol anaesthesia")) story.append(sp(4)) story.append(sh("B. Long-Term Antiepileptic Drug (AED) Therapy")) story.append(two_col_table([ ("Generalised TC", "Sodium valproate (1st line); alternatives: lamotrigine, levetiracetam, topiramate"), ("Absence", "Ethosuximide (drug of choice); sodium valproate; lamotrigine"), ("Focal / partial", "Carbamazepine (1st line); oxcarbazepine, lamotrigine, levetiracetam"), ("Myoclonic", "Sodium valproate; clonazepam; levetiracetam"), ("Febrile seizures", "Usually no long-term AED needed; rectal diazepam for prolonged episodes"), ])) story.append(sp(4)) story.append(sh("C. Surgical Options (Drug-Resistant Epilepsy)")) story.append(b("Anterior temporal lobectomy: 80–90% seizure-free in temporal lobe epilepsy")) story.append(b("Vagal nerve stimulation (VNS): ~50% reduction in seizure frequency")) story.append(b("Deep brain stimulation (DBS): anterior nucleus of thalamus")) story.append(b("Responsive neurostimulation (RNS/Neuropace): closed-loop stimulation")) story.append(sp(4)) story.append(sh("Dental Relevance")) story.append(b("Phenytoin causes gingival hyperplasia (gum overgrowth) – most important for BDS")) story.append(b("Avoid triggering stimuli; seizure first aid in dental chair: lay flat, protect airway")) story.append(b("Carbamazepine, valproate – multiple drug interactions with dental medications")) story.append(b("Status epilepticus: medical emergency; IV diazepam + call ambulance")) story.append(note("Status epilepticus = seizure lasting >5 min OR ≥2 seizures without regaining consciousness. Life-threatening.")) story.append(sp(8)) # ════════════════════════════════════════════════════════════════════════════ # TOPIC 2 – MENINGITIS # ════════════════════════════════════════════════════════════════════════════ story.append(topic_header("2. MENINGITIS")) story.append(sp(6)) story.append(sh("Definition")) story.append(p("Meningitis is inflammation of the meninges (pia mater, arachnoid mater, and dura mater) and subarachnoid space, usually due to infection. It is a medical emergency with significant morbidity and mortality if untreated.")) story.append(sp(4)) story.append(sh("Classification by Aetiology")) story.append(two_col_table([ ("Bacterial (pyogenic)", "S. pneumoniae (commonest in adults), N. meningitidis (meningococcal), H. influenzae (children, now rare post-vaccine), Listeria monocytogenes (elderly/immunocompromised), Group B Streptococcus (neonates)"), ("Viral (aseptic)", "Enteroviruses (commonest), HSV-2, mumps, HIV, Epstein-Barr virus. Usually self-limiting."), ("Tuberculous", "Mycobacterium tuberculosis. Subacute onset. Common in developing countries and immunocompromised."), ("Fungal", "Cryptococcus neoformans (commonest in HIV/AIDS), Aspergillus. Chronic meningitis."), ("Parasitic", "Rare: Naegleria fowleri (amoebic), Toxoplasma"), ("Chemical/aseptic", "Drugs, subarachnoid haemorrhage, malignancy"), ])) story.append(sp(4)) story.append(sh("Pathogenesis")) story.append(b("Organisms colonise nasopharyngeal mucosa → bacteraemia → cross blood-brain barrier → meningeal inflammation → raised intracranial pressure, cerebral oedema, CSF blockage")) story.append(b("Meningococcal: septicaemia + meningitis; produces endotoxin → DIC, Waterhouse-Friderichsen syndrome")) story.append(sp(4)) story.append(sh("Clinical Features")) story.append(sh("Classic Triad:")) story.append(two_col_table([ ("1. Fever", "High-grade, rapid onset; chills, rigors"), ("2. Severe headache", "Worst headache of life; diffuse, throbbing"), ("3. Neck stiffness", "Meningismus – resistance to passive neck flexion"), ])) story.append(sp(4)) story.append(sh("Signs of Meningeal Irritation:")) story.append(b("Kernig's sign: inability to extend knee when hip is flexed at 90°")) story.append(b("Brudzinski's sign: passive neck flexion causes involuntary hip/knee flexion")) story.append(b("Photophobia and phonophobia")) story.append(b("Papilloedema (raised ICP)")) story.append(b("Altered consciousness, seizures, focal neurological deficits")) story.append(b("Petechial/purpuric rash: pathognomonic of meningococcaemia (non-blanching)")) story.append(sp(4)) story.append(sh("Investigations")) story.append(two_col_table([ ("Lumbar puncture (LP)", "Gold standard. MUST perform CT head first if focal neurology/papilloedema/reduced GCS. Normal opening pressure 70–180 mm CSF."), ("CSF – Bacterial", "Turbid/purulent; WBC >1000 (neutrophils); protein ↑↑ (>1 g/L); glucose <45 mg/dL or CSF:serum glucose <0.4; organisms on Gram stain/culture"), ("CSF – Viral", "Clear; WBC 10–500 (lymphocytes); protein mildly ↑; glucose normal"), ("CSF – TB", "Clear/xanthochromic; lymphocytes; protein ↑↑; glucose ↓↓; AFB stain, PCR"), ("CSF – Fungal", "India ink (Cryptococcus); cryptococcal antigen; culture"), ("Blood", "CBC (leukocytosis), blood cultures (before antibiotics), CRP, PCT, coagulation"), ("CT/MRI head", "Cerebral oedema, hydrocephalus, empyema, vascular complications"), ])) story.append(sp(4)) story.append(sh("Treatment")) story.append(sh("A. Bacterial Meningitis")) story.append(b("Start antibiotics IMMEDIATELY (before LP if it will be delayed)")) story.append(b("Community-acquired (adult): IV Ceftriaxone 2g every 12 hours + IV Dexamethasone 0.15 mg/kg QID for 4 days (reduces inflammation, hearing loss)")) story.append(b("Add Ampicillin if Listeria suspected (elderly, immunocompromised, neonates)")) story.append(b("Penicillin G for confirmed meningococcal/pneumococcal (sensitive strains)")) story.append(b("Neonates: Ampicillin + Cefotaxime")) story.append(sp(4)) story.append(sh("B. Viral Meningitis")) story.append(b("Supportive: analgesics, IV fluids, rest")) story.append(b("IV Acyclovir 10 mg/kg TDS if HSV suspected")) story.append(sp(4)) story.append(sh("C. TB Meningitis")) story.append(b("HRZE (Isoniazid, Rifampicin, Pyrazinamide, Ethambutol) for 2 months, then HR for 10 months")) story.append(b("Dexamethasone adjunct therapy")) story.append(sp(4)) story.append(sh("D. Cryptococcal Meningitis (HIV)")) story.append(b("Induction: IV Amphotericin B + Flucytosine for 2 weeks")) story.append(b("Consolidation: Oral Fluconazole 400 mg/day × 8 weeks")) story.append(b("Maintenance: Fluconazole 200 mg/day lifelong")) story.append(sp(4)) story.append(sh("Complications")) story.append(b("Sensorineural hearing loss (most common sequela — use steroids to reduce)")) story.append(b("Hydrocephalus, cerebral abscess, subdural empyema")) story.append(b("Cerebral infarction, DIC, SIADH")) story.append(b("Waterhouse-Friderichsen syndrome: bilateral adrenal haemorrhage in meningococcaemia")) story.append(b("Intellectual impairment, epilepsy, blindness")) story.append(sp(4)) story.append(sh("Prophylaxis")) story.append(b("Meningococcal vaccine (MenACWY + MenB), Pneumococcal vaccine, Hib vaccine")) story.append(b("Rifampicin 600 mg BD for 2 days: close contacts of meningococcal meningitis")) story.append(sp(8)) # ════════════════════════════════════════════════════════════════════════════ # TOPIC 3 – HEADACHE # ════════════════════════════════════════════════════════════════════════════ story.append(topic_header("3. HEADACHE")) story.append(sp(6)) story.append(sh("Definition")) story.append(p("Headache (cephalalgia) is one of the most common neurological complaints. It is classified as primary (no underlying pathology) or secondary (due to identifiable cause). Primary headaches are benign, secondary headaches may indicate life-threatening conditions.")) story.append(sp(4)) story.append(sh("Classification (ICHD-3)")) story.append(two_col_table([ ("Primary headaches", "Migraine, Tension-type headache (TTH), Cluster headache, Other trigeminal autonomic cephalalgias (TACs)"), ("Secondary headaches", "Due to: intracranial pathology (tumour, bleed, meningitis), systemic infection, HTN, medication overuse, head trauma, cervicogenic causes"), ("Painful cranial neuropathies", "Trigeminal neuralgia, glossopharyngeal neuralgia, occipital neuralgia"), ])) story.append(sp(6)) story.append(sh("Tension-Type Headache (TTH) – Most Common Primary Headache")) story.append(two_col_table([ ("Character", "Bilateral, pressing/tightening (band-like), mild-moderate, NOT aggravated by routine activity"), ("Location", "Bilateral; forehead, temples, occiput"), ("Duration", "30 min – 7 days (episodic TTH); >15 days/month for >3 months (chronic TTH)"), ("Associated", "No nausea/vomiting; mild photo/phonophobia may be present"), ("Triggers", "Stress, anxiety, poor posture, sleep deprivation, eyestrain"), ("Treatment", "Acute: aspirin, paracetamol, ibuprofen. Prophylaxis: amitriptyline (tricyclic antidepressant), relaxation therapy"), ])) story.append(sp(6)) story.append(sh("Cluster Headache")) story.append(two_col_table([ ("Character", "Unilateral, excruciating, orbital/periorbital, 'drilling/boring' pain"), ("Duration", "15–180 min, occurs in clusters (weeks-months) then remission"), ("Associated", "Ipsilateral: lacrimation, nasal congestion, ptosis, miosis, conjunctival injection (autonomic features)"), ("Pattern", "Male predominance (3:1); often nocturnal; patient is restless (unlike migraine)"), ("Acute Rx", "100% O2 via mask (15L/min × 15 min); sumatriptan SC 6 mg"), ("Prophylaxis", "Verapamil (drug of choice); lithium, prednisolone, methysergide"), ])) story.append(sp(6)) story.append(sh("Red Flag Headaches ('SNOOP' mnemonic) – Secondary Cause")) story.append(b("S – Systemic symptoms (fever, weight loss) or illness (HIV, cancer)")) story.append(b("N – Neurological symptoms or signs (altered consciousness, focal deficits, papilloedema)")) story.append(b("O – Onset sudden/severe ('thunderclap' – worst headache of life → subarachnoid haemorrhage)")) story.append(b("O – Older age of onset (>50 years; think giant cell arteritis, mass lesion)")) story.append(b("P – Progressive worsening headache or change in pattern")) story.append(b("+ Positional headache, precipitated by Valsalva, associated with stiff neck")) story.append(sp(4)) story.append(sh("Investigations for Headache")) story.append(b("CT head: urgent if thunderclap headache (SAH), focal deficits, papilloedema, immunocompromised")) story.append(b("MRI head: preferred for chronic/recurrent headaches; identifies posterior fossa lesions better")) story.append(b("LP: after normal CT if SAH suspected (xanthochromia in CSF)")) story.append(b("ESR/CRP: if giant cell arteritis suspected (>50 yrs, temporal headache, jaw claudication)")) story.append(b("Temporal artery biopsy: confirms giant cell arteritis")) story.append(sp(8)) # ════════════════════════════════════════════════════════════════════════════ # TOPIC 4 – FACIAL PAIN # ════════════════════════════════════════════════════════════════════════════ story.append(topic_header("4. FACIAL PAIN")) story.append(sp(6)) story.append(sh("Definition")) story.append(p("Facial pain is pain in any part of the face, including the oral cavity. It may originate from dental/oral structures, paranasal sinuses, temporomandibular joint, intracranial causes, or neuralgias. Correct diagnosis is important in dental practice.")) story.append(sp(4)) story.append(sh("Classification of Facial Pain")) story.append(two_col_table([ ("Dental/Odontogenic", "Dental caries, pulpitis, periapical abscess, periodontitis – most common cause of facial pain in dental practice. Sharp, localised, precipitated by hot/cold/sweet."), ("Temporomandibular Disorder (TMD)", "Dull aching periauricular pain, jaw clicking, restricted mouth opening, tenderness over TMJ; worse with chewing. Commonest non-dental facial pain."), ("Sinogenic", "Maxillary sinusitis: dull aching over cheek/upper teeth; worse on bending; tender over sinus. Upper molar/premolar pain."), ("Neuralgic", "Trigeminal neuralgia (V2/V3 most common), glossopharyngeal neuralgia (throat/ear), postherpetic neuralgia (following herpes zoster)"), ("Vascular", "Migraine (with facial component), cluster headache, giant cell arteritis"), ("Musculoskeletal", "Myofascial pain, bruxism (teeth grinding), cervicogenic pain"), ("Psychogenic (atypical)", "Atypical facial pain: persistent, poorly localised, no organic cause, burning/aching; associated with anxiety/depression. Diagnosis of exclusion."), ("Salivary gland", "Parotitis, parotid calculus: pre-auricular swelling + pain, worse at meal times"), ])) story.append(sp(4)) story.append(sh("Diagnostic Approach")) story.append(b("Detailed history: onset, site, character, radiation, severity, duration, triggers, relieving factors, associated symptoms")) story.append(b("Clinical examination: dental, oral mucosal, TMJ, sinus tenderness, cranial nerve testing, neurological exam")) story.append(b("Investigations: OPG/dental X-ray, CT sinuses, MRI brain, blood tests (ESR for GCA)")) story.append(sp(4)) story.append(sh("Atypical Facial Pain (Persistent Idiopathic Facial Pain)")) story.append(b("Dull, aching, persistent pain; cannot be attributed to any dental/neurological/vascular cause")) story.append(b("Often crosses anatomical boundaries; poorly described by patient")) story.append(b("Strong psychological component: anxiety, depression, somatisation")) story.append(b("Treatment: tricyclic antidepressants (amitriptyline), SSRIs, cognitive behavioural therapy (CBT), pain clinic referral")) story.append(note("Dental relevance: Always exclude dental/TMJ causes before labelling as atypical. Avoid unnecessary dental extractions.")) story.append(sp(8)) # ════════════════════════════════════════════════════════════════════════════ # TOPIC 5 – TRIGEMINAL NEURALGIA (TN) # ════════════════════════════════════════════════════════════════════════════ story.append(topic_header("5. TRIGEMINAL NEURALGIA (TIC DOULOUREUX)")) story.append(sp(6)) story.append(sh("Definition")) story.append(p("Trigeminal neuralgia (TN) is a disorder of the trigeminal nerve (CN V) characterised by recurrent, sudden, severe, brief, shock-like (lancinating) pain in the distribution of one or more branches of the trigeminal nerve, typically triggered by light touch. Also called 'tic douloureux'.")) story.append(sp(4)) story.append(sh("Epidemiology")) story.append(b("Incidence: 4–5 per 100,000/year; more common in women")) story.append(b("Age: onset usually >40 years; incidence increases with age (90% start after 40)")) story.append(b("Rare familial cases suggest genetic predisposition")) story.append(sp(4)) story.append(sh("Anatomy of Trigeminal Nerve (CN V)")) story.append(b("V1 (Ophthalmic): forehead, scalp, upper eyelid, cornea, nose bridge")) story.append(b("V2 (Maxillary): cheek, upper lip, upper teeth, nasal mucosa")) story.append(b("V3 (Mandibular): lower lip, lower teeth, tongue, chin, ear region")) story.append(b("TN most commonly affects V2 and V3 (maxillary > mandibular) – MOST IMPORTANT FOR DENTISTS")) story.append(b("V1 alone involvement is extremely rare")) story.append(sp(4)) story.append(sh("Classification (ICHD-3)")) story.append(two_col_table([ ("Classical TN", "Neurovascular compression of trigeminal nerve root (most common – superior cerebellar artery). MRI/surgery shows nerve root atrophy or displacement. PURELY PAROXYSMAL pain."), ("Secondary TN", "Due to underlying disease: multiple sclerosis (5–10% of TN cases), tumour (meningioma, acoustic neuroma), AVM, pontine lesion. May have sensory deficits."), ("Idiopathic TN", "No vascular compression on imaging, no underlying cause identified."), ])) story.append(sp(4)) story.append(sh("Pathophysiology")) story.append(p("Vascular compression (usually superior cerebellar artery) at the trigeminal nerve root entry zone → focal demyelination of axons → ectopic and repetitive neuronal discharges → hypersensitivity of trigeminal nucleus → paroxysmal pain. Demyelination allows ephaptic (cross-wire) transmission between pain and touch fibres.")) story.append(sp(4)) story.append(sh("Clinical Features")) story.append(b("Sudden, severe, brief (seconds), electric shock-like / lancinating / shooting pain")) story.append(b("Strictly unilateral (rarely bilateral in MS)")) story.append(b("Distribution: V2 (cheek, upper lip, teeth) and V3 (lower lip, gum, chin) most commonly")) story.append(b("Trigger zones: nasolabial fold, lips, gums, teeth, tongue tip; triggered by eating, talking, brushing teeth, smiling, cold air")) story.append(b("No neurological deficits in classical TN (sensory loss suggests secondary/neuropathy)")) story.append(b("Inter-attack periods completely pain-free")) story.append(b("Attacks may cluster; patient may lose weight from fear of chewing")) story.append(b("Exacerbating-remitting course over years")) story.append(sp(4)) story.append(sh("Investigations")) story.append(b("MRI with gadolinium: to exclude secondary causes (MS plaque, tumour) and identify neurovascular compression")) story.append(b("High-resolution MRI/MRA (CISS/FIESTA): may show vascular loop compressing trigeminal nerve")) story.append(b("Blood tests: normal (no specific markers)")) story.append(b("EMG/blink reflex: abnormal in secondary TN; normal in classical TN")) story.append(sp(4)) story.append(sh("Differential Diagnosis")) story.append(b("Dental pain: toothache (constant, not as brief; no trigger zone pattern)")) story.append(b("Postherpetic neuralgia: burning, follows herpes zoster rash, older patients")) story.append(b("Cluster headache: periorbital, autonomic features")) story.append(b("Atypical facial pain: no trigger zone, constant")) story.append(b("Glossopharyngeal neuralgia: throat/ear pain; triggered by swallowing")) story.append(sp(4)) story.append(sh("Treatment")) story.append(sh("Medical (First-Line):")) story.append(two_col_table([ ("Carbamazepine", "DRUG OF CHOICE (1st line). Start 100–200 mg/day; increase to 600–1200 mg/day in divided doses. Monitor CBC (agranulocytosis), LFT, Na."), ("Oxcarbazepine", "Better tolerated; watch for hyponatraemia. Similar efficacy to carbamazepine."), ("Gabapentin", "2nd line; good tolerability; useful if carbamazepine not tolerated"), ("Pregabalin", "2nd line; similar to gabapentin"), ("Phenytoin", "2nd line; IV fosphenytoin useful for acute severe attacks"), ("Baclofen", "Adjunct; useful in combination"), ("Lamotrigine", "3rd line; used in refractory cases"), ])) story.append(sp(4)) story.append(sh("Surgical (for drug-resistant cases):")) story.append(b("Microvascular Decompression (MVD): most effective long-term option; Teflon sponge placed between vessel and nerve; 70–80% complete pain relief")) story.append(b("Percutaneous procedures (rhizotomy):")) story.append(sb("Radiofrequency thermocoagulation (RFTC): destroys pain fibres; high recurrence")) story.append(sb("Glycerol injection into Meckel's cave")) story.append(sb("Balloon microcompression of Gasserian ganglion")) story.append(b("Gamma Knife radiosurgery: stereotactic radiation to trigeminal root entry zone; slower onset of pain relief")) story.append(b("Peripheral nerve block / alcohol injection: inferior alveolar nerve, mental nerve, infraorbital nerve block with absolute alcohol; temporary (6–18 months)")) story.append(sp(4)) story.append(sh("Dental Relevance (Very Important)")) story.append(b("TN may mimic dental pain → AVOID unnecessary extractions")) story.append(b("Dental procedures can trigger attacks (V2/V3 territory)")) story.append(b("Local anaesthetic block provides temporary relief (diagnostic)")) story.append(b("Alert dental surgeon about carbamazepine: drug interactions, gingival effects")) story.append(sp(8)) # ════════════════════════════════════════════════════════════════════════════ # TOPIC 6 – FACIAL NERVE PALSY (BELL'S PALSY) # ════════════════════════════════════════════════════════════════════════════ story.append(topic_header("6. FACIAL NERVE PALSY (BELL'S PALSY)")) story.append(sp(6)) story.append(sh("Definition")) story.append(p("Bell's palsy is an acute, idiopathic, lower motor neuron (LMN) facial nerve palsy affecting the entire half of the face (upper and lower). It is the most common cause of acute unilateral facial palsy, accounting for 60–70% of all cases. It is a diagnosis of exclusion.")) story.append(sp(4)) story.append(sh("Anatomy – Facial Nerve (CN VII)")) story.append(b("Motor: muscles of facial expression, stapedius")) story.append(b("Sensory: taste from anterior 2/3 of tongue (via chorda tympani)")) story.append(b("Autonomic: lacrimal, submandibular, sublingual glands")) story.append(b("Course: cerebral cortex → pons (nucleus) → internal acoustic meatus → geniculate ganglion → stylomastoid foramen → parotid gland → 5 terminal branches: Temporal, Zygomatic, Buccal, Mandibular, Cervical (TZBMC / 'To Zanzibar By Motor Car')")) story.append(sp(4)) story.append(sh("UMN vs LMN Facial Palsy – KEY DISTINCTION")) story.append(two_col_table([ ("UMN (central) palsy", "Forehead spared (bilateral cortical representation of forehead). LOWER face only affected. Cause: stroke, tumour affecting corticobulbar tract."), ("LMN (peripheral) palsy", "ENTIRE FACE affected including forehead. Cannot wrinkle forehead or close eye. Cause: Bell's palsy, parotid tumour, trauma, Ramsay Hunt syndrome."), ])) story.append(note("Key exam point: Forehead involvement = LMN palsy (Bell's). Forehead spared = UMN (stroke).")) story.append(sp(4)) story.append(sh("Aetiology")) story.append(b("Idiopathic Bell's palsy: most common; HSV-1 reactivation hypothesised")) story.append(b("Ramsay Hunt syndrome: herpes zoster oticus (VZV reactivation); facial palsy + vesicles in ear + ear pain + SNHL")) story.append(b("Otitis media: bacterial toxins/neuropraxia from middle ear infection")) story.append(b("Parotid gland tumour/surgery")) story.append(b("Lyme disease (Borrelia burgdorferi): bilateral facial palsy")) story.append(b("Sarcoidosis (Heerfordt syndrome: uveitis + parotitis + facial palsy)")) story.append(b("HIV infection")) story.append(b("Trauma: temporal bone fracture")) story.append(b("Guillain-Barre syndrome (bilateral facial palsy)")) story.append(sp(4)) story.append(sh("Clinical Features")) story.append(b("Acute onset LMN facial palsy: unilateral, complete/partial")) story.append(b("Inability to close eye (lagophthalmos): Bell's phenomenon (eye rolls up on attempted closure – protective reflex)")) story.append(b("Inability to raise eyebrow or wrinkle forehead (distinguishes from UMN)")) story.append(b("Mouth drooping to opposite side; drooling of saliva")) story.append(b("Flattened nasolabial fold")) story.append(b("Preceding/accompanying retroauricular pain (pain behind ear – 50% of cases)")) story.append(b("Loss of taste in anterior 2/3 tongue (if chorda tympani involved)")) story.append(b("Hyperacusis (if stapedius branch involved)")) story.append(b("Reduced lacrimation or epiphora")) story.append(sp(4)) story.append(sh("Investigations")) story.append(b("Diagnosis is CLINICAL; investigations to rule out secondary causes")) story.append(b("MRI with gadolinium: enhancement of facial nerve; rules out parotid/CNS pathology")) story.append(b("Lyme serology, HIV test, blood glucose (diabetics at higher risk)")) story.append(b("Nerve conduction / electromyography (EMG): prognosis; assess degree of axonal degeneration")) story.append(b("Audiometry: if hearing loss (Ramsay Hunt)")) story.append(sp(4)) story.append(sh("House-Brackmann Grading")) story.append(two_col_table([ ("Grade I", "Normal facial function"), ("Grade II", "Mild dysfunction – slight weakness"), ("Grade III", "Moderate dysfunction – obvious asymmetry; can close eye with effort"), ("Grade IV", "Moderately severe – cannot fully close eye"), ("Grade V", "Severe – barely perceptible movement"), ("Grade VI", "Total paralysis – no movement"), ])) story.append(sp(4)) story.append(sh("Treatment")) story.append(two_col_table([ ("Corticosteroids", "Prednisolone 25 mg BD for 10 days (initiate within 72 hrs): improves recovery from 63% → 83% at 3 months. MOST IMPORTANT treatment."), ("Antivirals", "Acyclovir 400 mg 5x/day for 7 days (or Valacyclovir 1g TDS). Add to steroids in severe Bell's palsy; essential in Ramsay Hunt (double dose)."), ("Eye care", "Artificial tears (lubricant eye drops) during day; eye ointment at night; moisture chamber/taping eye shut to prevent corneal ulceration"), ("Physiotherapy", "Facial exercises to prevent contractures"), ("Surgical decompression", "Reserved for complete paralysis with evidence of severe axonal degeneration on EMG; controversial"), ])) story.append(sp(4)) story.append(sh("Prognosis")) story.append(b("85% of patients recover completely within 3 weeks to 3 months")) story.append(b("10% have permanent significant dysfunction")) story.append(b("Poor prognosis: complete paralysis, older age, hypertension, diabetes, severe pain at onset")) story.append(b("Complications of incomplete recovery: synkinesis (jaw-winking = eye closure triggers mouth movement), crocodile tears (lacrimation while eating – aberrant regeneration), contractures")) story.append(sp(4)) story.append(sh("Dental Relevance")) story.append(b("Parotid tumour/surgery: most common non-idiopathic cause of LMN facial palsy in dental practice")) story.append(b("Dental nerve blocks can rarely cause temporary facial palsy")) story.append(b("Unable to seal lips: difficulty with dental prosthetics, mastication")) story.append(b("Corneal protection ESSENTIAL – dental chair bright lights dry the eye")) story.append(sp(8)) # ════════════════════════════════════════════════════════════════════════════ # TOPIC 7 – MIGRAINE # ════════════════════════════════════════════════════════════════════════════ story.append(topic_header("7. MIGRAINE")) story.append(sp(6)) story.append(sh("Definition")) story.append(p("Migraine is a primary headache disorder characterised by recurrent attacks of moderate-to-severe, typically unilateral, pulsating headache lasting 4–72 hours, associated with nausea/vomiting, photophobia and phonophobia, and worsened by routine physical activity. It may occur with or without an aura.")) story.append(sp(4)) story.append(sh("Epidemiology")) story.append(b("Prevalence: 15–20% in women; 4–7% in men (female:male = 3:1)")) story.append(b("Affects ~1 billion people worldwide; highest prevalence 25–55 years")) story.append(b("Strong genetic component (first-degree relative risk 3-4x higher)")) story.append(b("Migraine with aura: 30% of migraineurs; 90% of auras are visual")) story.append(sp(4)) story.append(sh("Pathophysiology")) story.append(b("Cortical Spreading Depression (CSD): slowly propagating wave of neuronal depolarisation → aura symptoms; may trigger trigeminovascular activation")) story.append(b("Trigeminovascular activation: trigeminal afferents innervate meningeal vessels → release of CGRP, substance P, neuropeptide Y → neurogenic inflammation → vasodilation → pain")) story.append(b("Central sensitisation: second-order neurons in trigemino-cervical complex (TCC) → thalamus → cortex")) story.append(b("Serotonin (5-HT) hypothesis: low serotonin between attacks; triptans are 5-HT1B/1D agonists")) story.append(b("Brainstem nuclei: dorsal raphe, locus coeruleus, periaqueductal grey matter act as 'migraine generator'")) story.append(sp(4)) story.append(sh("Classification")) story.append(two_col_table([ ("Migraine without aura", "Most common (70%). Headache without preceding neurological symptoms."), ("Migraine with aura", "30%. Transient focal neurological symptoms (aura) precede/accompany headache. Visual most common."), ("Chronic migraine", "≥15 headache days/month for >3 months; ≥8 fulfilling migraine criteria"), ("Menstrual migraine", "Attacks occurring around menstruation (oestrogen withdrawal)"), ("Hemiplegic migraine", "Rare; aura includes motor weakness; familial/sporadic types"), ("Basilar/brainstem migraine","Aura from brainstem: dysarthria, diplopia, ataxia, vertigo"), ("Retinal migraine", "Monocular visual loss with headache"), ])) story.append(sp(4)) story.append(sh("Clinical Features – Phases of Migraine")) story.append(two_col_table([ ("Prodrome (24–48 hrs before)", "Mood change, fatigue, food craving, yawning, neck stiffness, polyuria"), ("Aura (20–60 min)", "Visual: positive (scintillating scotoma/fortification spectra/zigzag lines) or negative (scotoma). Sensory: unilateral tingling. Language: dysphasia. Motor (hemiplegic). Gradually evolves (hallmark) and resolves within 60 min."), ("Headache phase (4–72 hrs)", "Unilateral (60%) or bilateral (40%); throbbing/pulsating; moderate-severe; aggravated by routine activity (walking, climbing stairs); nausea ± vomiting; photophobia; phonophobia; osmophobia"), ("Postdrome (up to 24 hrs)", "Fatigue, cognitive impairment, mood change; tender scalp"), ])) story.append(sp(4)) story.append(sh("Diagnostic Criteria (ICHD-3 – Migraine Without Aura)")) story.append(b("≥5 attacks fulfilling criteria B–D")) story.append(b("B: Duration 4–72 hours")) story.append(b("C: ≥2 of: unilateral; pulsating; moderate/severe; aggravated by activity")) story.append(b("D: ≥1 of: nausea/vomiting; photophobia AND phonophobia")) story.append(b("E: Not attributed to another disorder")) story.append(sp(4)) story.append(sh("Triggers")) story.append(b("Hormonal: menstruation, OCP, hormone replacement")) story.append(b("Dietary: alcohol (red wine, beer), tyramine foods (cheese, chocolate), caffeine withdrawal, MSG, nitrates (processed meats)")) story.append(b("Sleep: too much or too little")) story.append(b("Stress and anxiety")) story.append(b("Sensory: bright lights, loud noise, strong smells")) story.append(b("Weather changes, altitude")) story.append(sp(4)) story.append(sh("Investigations")) story.append(b("Migraine is a CLINICAL diagnosis – no specific test")) story.append(b("MIDAS (Migraine Disability Assessment Score): assesses disease burden")) story.append(b("MRI head: if red flag features, atypical presentation, or change in headache pattern")) story.append(sp(4)) story.append(sh("Treatment")) story.append(sh("A. Acute / Abortive Treatment:")) story.append(two_col_table([ ("Mild-Moderate attacks", "NSAIDs: ibuprofen 400–600 mg, aspirin 900 mg + antiemetic (metoclopramide/domperidone). Paracetamol less effective alone."), ("Moderate-Severe attacks","Triptans (5-HT1B/1D agonists): Sumatriptan 50–100 mg oral (or 6 mg SC; 20 mg intranasal). Also: rizatriptan, zolmitriptan, naratriptan, almotriptan."), ("Triptans CI", "Contraindicated in: ischaemic heart disease, stroke history, uncontrolled hypertension, haemiplegic/basilar migraine"), ("Ergotamine", "Older drug; less preferred; CI in vascular disease. Ergotamine tartrate + caffeine."), ("Antiemetics", "Metoclopramide, domperidone, prochlorperazine (also analgesic properties)"), ("Status migrainosus", ">72 hrs; IV fluids, parenteral antiemetics, IV dihydroergotamine, IV valproate, short steroid course"), ])) story.append(sp(4)) story.append(sh("B. Prophylactic Treatment (if ≥4 attacks/month or disabling):")) story.append(two_col_table([ ("Beta-blockers", "Propranolol 40–240 mg/day, metoprolol – 1st line. CI in asthma."), ("Amitriptyline", "Tricyclic; especially if comorbid depression/insomnia; 10–75 mg nocte"), ("Topiramate", "Anticonvulsant; 50–200 mg/day; weight loss side effect"), ("Sodium valproate", "Effective; avoid in women of childbearing age (teratogenic)"), ("Flunarizine/verapamil", "Calcium channel blockers"), ("CGRP monoclonal antibodies", "Erenumab, fremanezumab, galcanezumab – newer biologics for chronic migraine"), ("Botulinum toxin (Botox)", "Injection every 12 weeks for chronic migraine (≥15 days/month)"), ])) story.append(sp(4)) story.append(sh("Dental Relevance")) story.append(b("Facial pain/jaw pain can be part of migraine (trigeminal distribution)")) story.append(b("Dental chair bright lights and noise trigger migraine")) story.append(b("NSAIDs used in dental practice can abort mild migraine")) story.append(b("Overuse of analgesics (including dental analgesics) can cause medication-overuse headache")) story.append(b("Ergotamine: vasoconstriction – affects dental local anaesthetic vasoconstrictors")) story.append(sp(6)) # ── Footer note ────────────────────────────────────────────────────────────── story.append(HRFlowable(width="100%", thickness=1, color=DARK_BLUE, spaceAfter=6, spaceBefore=12)) story.append(Paragraph( "<b>References:</b> Bradley &amp; Daroff's Neurology in Clinical Practice; " "Harrison's Principles of Internal Medicine 22e; Goldman-Cecil Medicine; " "Anil K. Tripathi – Essentials of Medicine for Dental Students.", ParagraphStyle("footer", fontSize=8, leading=11, textColor=colors.HexColor("#555555"), alignment=TA_CENTER))) # ── build ───────────────────────────────────────────────────────────────────── doc.build(story) print("PDF created successfully.") PYEOF echo "Exit: $?"

Running Command

ls -lh /tmp/workspace/bds-notes/

Your PDF is ready. Download it here:

General Medicine Short Notes BDS

PDF Document · PDF


Here is a summary of what each topic covers in the notes (all exam-ready, 7–8 mark format):

1. Epilepsy

  • Definition + ILAE 2017 classification (focal, generalised, unknown)
  • Common syndromes: Grand Mal, Petit Mal, Temporal Lobe, JME, West, Lennox-Gastaut
  • Aetiology (idiopathic/symptomatic/cryptogenic)
  • Full clinical phases of Grand Mal
  • Investigations: EEG (gold standard, epileptiform spikes), MRI, blood tests
  • Acute management: IV diazepam/lorazepam → phenytoin → anaesthesia (for status)
  • Long-term AEDs: valproate (generalised), carbamazepine (focal), ethosuximide (absence)
  • Surgical: ATL, VNS, DBS, RNS
  • Dental: Phenytoin causes gingival hyperplasia

2. Meningitis

  • Definition + classification (bacterial, viral, TB, fungal)
  • Common organisms per age group
  • Classic triad: Fever + Headache + Neck stiffness
  • Kernig's + Brudzinski's signs; non-blanching petechial rash (meningococcal)
  • CSF findings (all four types tabulated)
  • Treatment: IV Ceftriaxone + Dexamethasone; anti-TB; Amphotericin B for cryptococcal
  • Complications: SNHL, hydrocephalus, DIC, Waterhouse-Friderichsen syndrome

3. Headache

  • Primary vs secondary classification (ICHD-3)
  • Tension-type headache: bilateral band-like, Rx amitriptyline
  • Cluster headache: unilateral orbital, autonomic features, 100% O2 + sumatriptan; verapamil prophylaxis
  • Red flag SNOOP criteria (SAH, meningitis, tumour)

4. Facial Pain

  • All causes tabulated: dental, TMD, sinogenic, neuralgic, vascular, psychogenic
  • Atypical facial pain (persistent idiopathic): amitriptyline + CBT
  • Dental relevance: avoid unnecessary extractions

5. Trigeminal Neuralgia (Tic Douloureux)

  • V2 and V3 most affected (cheek, upper/lower teeth) - critical for BDS
  • Pathophysiology: neurovascular compression → focal demyelination → ectopic discharges
  • Classic vs Secondary (MS, tumour) vs Idiopathic
  • Electric shock-like pain, trigger zones, pain-free intervals
  • Drug of choice: Carbamazepine; 2nd line: oxcarbazepine, gabapentin
  • Surgery: MVD (best long-term); Gamma Knife; peripheral alcohol block

6. Facial Nerve Palsy (Bell's Palsy)

  • LMN vs UMN distinction (forehead involved = LMN = Bell's)
  • Aetiology: idiopathic (HSV-1), Ramsay Hunt (VZV), parotid tumour, Lyme disease
  • Features: lagophthalmos, Bell's phenomenon, taste loss, hyperacusis
  • House-Brackmann grading (I–VI)
  • Treatment: Prednisolone 25 mg BD × 10 days + Acyclovir in severe cases
  • Eye care: artificial tears + ointment to prevent corneal ulceration
  • Prognosis: 85% recover; synkinesis/crocodile tears in incomplete recovery

7. Migraine

  • Four phases: prodrome, aura, headache, postdrome
  • Trigeminovascular theory + cortical spreading depression
  • ICHD-3 diagnostic criteria (5 attacks, 4–72 hrs, unilateral pulsating, nausea/photophobia)
  • Triggers: hormonal, dietary (tyramine, alcohol), stress, sleep
  • Acute: NSAIDs for mild; triptans (sumatriptan) for moderate-severe - 5HT1B/1D agonists
  • Prophylaxis: propranolol (1st line), amitriptyline, topiramate, valproate, CGRP antibodies
  • Dental relevance: medication-overuse headache risk; bright light triggers

Write me a detailed shrot notes for the following topics from anil k tripathi book of general medicine for bds gujarat university for 3 year exams about 7-8 marks Male concise to the point precise ans to the topics are Tetany Cushings disease Diabetes mellitus Diabetic keto acidosis complications Thyroid disorders ( hypothyroidism, thyrotoxicosis in detail and hyperthyroidism in short) In pdf form

Finding Sources
Finding Sources
Finding Sources
Finding Sources
Finding Sources
Reading File
Reading File
Reading File
Reading File
Reading File
Reading File
Reading File
Reading File
Reading File
Reading File
Reading File
Running Command

mkdir -p /tmp/workspace/bds-notes2 && python3 << 'PYEOF' from reportlab.lib.pagesizes import A4 from reportlab.lib.styles import getSampleStyleSheet, ParagraphStyle from reportlab.lib.units import cm from reportlab.lib import colors from reportlab.platypus import ( SimpleDocTemplate, Paragraph, Spacer, Table, TableStyle, HRFlowable, KeepTogether, PageBreak ) from reportlab.lib.enums import TA_LEFT, TA_CENTER, TA_JUSTIFY doc = SimpleDocTemplate( "/tmp/workspace/bds-notes2/Endocrine_Medicine_Short_Notes_BDS.pdf", pagesize=A4, leftMargin=2*cm, rightMargin=2*cm, topMargin=2.2*cm, bottomMargin=2.2*cm, title="General Medicine Short Notes – BDS 3rd Year (Endocrine)", author="Gujarat University BDS Preparation" ) W = A4[0] - 4*cm DARK_BLUE = colors.HexColor("#1a3a5c") MED_BLUE = colors.HexColor("#2e6da4") LIGHT_BLUE = colors.HexColor("#dce9f5") TEAL = colors.HexColor("#0d7377") TEAL_LIGHT = colors.HexColor("#d6f0f0") MAROON = colors.HexColor("#7b1a1a") AMBER = colors.HexColor("#b5651d") TABLE_ALT = colors.HexColor("#eaf3fb") WHITE = colors.white TEXT = colors.HexColor("#1a1a1a") ss = getSampleStyleSheet() coverTitle = ParagraphStyle("coverTitle", parent=ss["Title"], fontSize=26, leading=32, textColor=WHITE, alignment=TA_CENTER, spaceAfter=6) coverSub = ParagraphStyle("coverSub", parent=ss["Normal"], fontSize=13, leading=18, textColor=LIGHT_BLUE, alignment=TA_CENTER, spaceAfter=4) topicTitle = ParagraphStyle("topicTitle", fontSize=15, leading=19, textColor=WHITE, fontName="Helvetica-Bold", spaceAfter=4, spaceBefore=14, alignment=TA_LEFT, leftIndent=6) sectionHead = ParagraphStyle("sectionHead", fontSize=11, leading=14, textColor=DARK_BLUE, fontName="Helvetica-Bold", spaceAfter=3, spaceBefore=8) bodyText = ParagraphStyle("bodyText", fontSize=9.5, leading=14, textColor=TEXT, fontName="Helvetica", spaceAfter=3, alignment=TA_JUSTIFY) bulletStyle = ParagraphStyle("bullet", fontSize=9.5, leading=13.5, textColor=TEXT, fontName="Helvetica", spaceAfter=2, leftIndent=14, firstLineIndent=-10) subBullet = ParagraphStyle("subBullet", fontSize=9, leading=13, textColor=TEXT, fontName="Helvetica", spaceAfter=1.5, leftIndent=26, firstLineIndent=-10) noteStyle = ParagraphStyle("noteStyle", fontSize=9, leading=12, textColor=colors.HexColor("#5a5a5a"), fontName="Helvetica-Oblique", spaceAfter=2, leftIndent=8) importantStyle = ParagraphStyle("importantStyle", fontSize=9.5, leading=13, textColor=MAROON, fontName="Helvetica-Bold", spaceAfter=2, leftIndent=8) def topic_header(title_text, color=DARK_BLUE): tbl = Table([[Paragraph(title_text, topicTitle)]], colWidths=[W]) tbl.setStyle(TableStyle([ ("BACKGROUND", (0,0), (-1,-1), color), ("TOPPADDING", (0,0), (-1,-1), 7), ("BOTTOMPADDING", (0,0), (-1,-1), 7), ("LEFTPADDING", (0,0), (-1,-1), 10), ("RIGHTPADDING", (0,0), (-1,-1), 10), ])) return tbl def sh(text): return Paragraph(text, sectionHead) def b(text): return Paragraph(f"\u2022 {text}", bulletStyle) def sb(text): return Paragraph(f"\u2013 {text}", subBullet) def p(text): return Paragraph(text, bodyText) def sp(n=4): return Spacer(1, n) def hr(): return HRFlowable(width="100%", thickness=0.5, color=colors.HexColor("#b0c8e0"), spaceAfter=4, spaceBefore=4) def note(text): return Paragraph(f"<i>Note: {text}</i>", noteStyle) def imp(text): return Paragraph(f"KEY: {text}", importantStyle) def two_col_table(rows, col_ratio=(0.35, 0.65), header_color=LIGHT_BLUE): col_widths = [W*col_ratio[0], W*col_ratio[1]] styled_rows = [] for k, v in rows: kp = Paragraph(f"<b>{k}</b>", ParagraphStyle("tc", fontSize=9, leading=12, fontName="Helvetica-Bold", textColor=DARK_BLUE)) vp = Paragraph(v, ParagraphStyle("tv", fontSize=9, leading=12, fontName="Helvetica", textColor=TEXT)) styled_rows.append([kp, vp]) t = Table(styled_rows, colWidths=col_widths) t.setStyle(TableStyle([ ("BACKGROUND", (0,0), (-1,0), header_color), ("ROWBACKGROUNDS", (0,0), (-1,-1), [WHITE, TABLE_ALT]), ("BOX", (0,0), (-1,-1), 0.5, colors.HexColor("#a0b8d0")), ("INNERGRID",(0,0), (-1,-1), 0.3, colors.HexColor("#c8d8e8")), ("TOPPADDING", (0,0), (-1,-1), 4), ("BOTTOMPADDING", (0,0), (-1,-1), 4), ("LEFTPADDING", (0,0), (-1,-1), 6), ("RIGHTPADDING", (0,0), (-1,-1), 6), ("VALIGN", (0,0), (-1,-1), "TOP"), ])) return t def three_col_table(rows, col_ratio=(0.25, 0.38, 0.37)): col_widths = [W*r for r in col_ratio] styled_rows = [] for i, row in enumerate(rows): sr = [] style = ParagraphStyle("h3", fontSize=9, leading=12, fontName="Helvetica-Bold" if i==0 else "Helvetica", textColor=DARK_BLUE if i==0 else TEXT) for cell in row: sr.append(Paragraph(str(cell), style)) styled_rows.append(sr) t = Table(styled_rows, colWidths=col_widths) t.setStyle(TableStyle([ ("BACKGROUND", (0,0), (-1,0), DARK_BLUE), ("TEXTCOLOR", (0,0), (-1,0), WHITE), ("ROWBACKGROUNDS", (0,1), (-1,-1), [WHITE, TABLE_ALT]), ("BOX", (0,0), (-1,-1), 0.5, colors.HexColor("#a0b8d0")), ("INNERGRID",(0,0), (-1,-1), 0.3, colors.HexColor("#c8d8e8")), ("TOPPADDING", (0,0), (-1,-1), 4), ("BOTTOMPADDING", (0,0), (-1,-1), 4), ("LEFTPADDING", (0,0), (-1,-1), 5), ("RIGHTPADDING", (0,0), (-1,-1), 5), ("VALIGN", (0,0), (-1,-1), "TOP"), ("FONTNAME", (0,0), (-1,0), "Helvetica-Bold"), ])) return t # ════════════════════════════════════════════════════════════════════════════ story = [] # ── COVER PAGE ─────────────────────────────────────────────────────────────── cover_data = [[Paragraph("<b>General Medicine</b><br/>Short Notes – Endocrine &amp; Metabolic", coverTitle)]] cover_tbl = Table(cover_data, colWidths=[W]) cover_tbl.setStyle(TableStyle([ ("BACKGROUND", (0,0), (-1,-1), DARK_BLUE), ("TOPPADDING", (0,0), (-1,-1), 40), ("BOTTOMPADDING", (0,0), (-1,-1), 40), ("LEFTPADDING", (0,0), (-1,-1), 20), ("RIGHTPADDING", (0,0), (-1,-1), 20), ])) story.append(cover_tbl) story.append(sp(10)) story.append(Paragraph("BDS 3rd Year Examination Preparation", coverSub)) story.append(Paragraph("Gujarat University | 7–8 Marks Topics", coverSub)) story.append(sp(6)) story.append(Paragraph( "Based on Anil K. Tripathi – Essentials of Medicine for Dental Students", ParagraphStyle("ref", fontSize=10, textColor=MED_BLUE, alignment=TA_CENTER))) story.append(sp(4)) story.append(HRFlowable(width="60%", thickness=1.5, color=MED_BLUE, hAlign="CENTER", spaceAfter=8)) for t_ in ["1. Tetany", "2. Cushing's Disease / Syndrome", "3. Diabetes Mellitus", "4. Diabetic Ketoacidosis (DKA) &amp; Complications", "5. Thyroid Disorders (Hypothyroidism, Thyrotoxicosis, Hyperthyroidism)"]: story.append(Paragraph(t_, ParagraphStyle("tl", fontSize=11, leading=16, textColor=DARK_BLUE, alignment=TA_CENTER))) story.append(sp(20)) # ════════════════════════════════════════════════════════════════════════════ # TOPIC 1 – TETANY # ════════════════════════════════════════════════════════════════════════════ story.append(topic_header("1. TETANY")) story.append(sp(6)) story.append(sh("Definition")) story.append(p("Tetany is a clinical syndrome characterised by neuromuscular hyperexcitability and spontaneous tonic muscular spasms/contractions. It is most commonly caused by hypocalcaemia (low ionised calcium), but can also result from hypomagnesaemia, hypokalaemia, alkalosis, or hypoparathyroidism. The term 'tetany' refers to the muscle spasms, not to the infection tetanus.")) story.append(sp(4)) story.append(sh("Causes of Tetany (Aetiology)")) story.append(two_col_table([ ("Hypocalcaemia (most common)", "Hypoparathyroidism (post-thyroid/parathyroid surgery – most common surgical cause); Pseudohypoparathyroidism (Albright syndrome – end-organ resistance); Vitamin D deficiency/rickets; Malabsorption; Chronic renal failure; Acute pancreatitis; Hungry bone syndrome; Hypomagnesaemia (impairs PTH secretion)"), ("Alkalosis", "Respiratory alkalosis (hyperventilation – anxiety, hysteria): ↑ pH → more Ca²⁺ binds to albumin → ↓ ionised Ca²⁺. Metabolic alkalosis (vomiting, antacid excess)."), ("Hypomagnesaemia", "Impairs PTH release and end-organ action → secondary hypocalcaemia"), ("Hypokalaemia", "Rare cause; usually associated with alkalosis"), ("Neonatal tetany", "Early neonatal: maternal diabetes/hyperparathyroidism. Late neonatal (7-10 days): high phosphate cow's milk formula → relative hypocalcaemia"), ])) story.append(sp(4)) story.append(sh("Pathophysiology")) story.append(p("Ionised calcium stabilises voltage-gated sodium channels in neuronal membranes (raises threshold for depolarisation). When ionised Ca²⁺ falls: sodium channel threshold ↓ → neurons depolarise spontaneously → peripheral nerves and motor neurons fire repeatedly → tonic muscle spasms. Alkalosis increases protein binding of Ca²⁺ → reduces free ionised Ca²⁺ → tetany without change in total calcium.")) story.append(sp(4)) story.append(sh("Clinical Features")) story.append(sh("Latent (Mild) Tetany:")) story.append(b("Chvostek's sign: tapping the facial nerve just anterior to the ear (over the parotid) → ipsilateral twitching of facial muscles (lip, nose, cheek). Positive in 10–25% of normal individuals (low specificity).")) story.append(b("Trousseau's sign: inflate BP cuff on arm above systolic pressure for 3 minutes → carpal spasm (main d'accoucheur – obstetrician's hand: MCP flexion, IP extension, thumb adduction). More specific than Chvostek's.")) story.append(b("Peroneal sign (Lust's sign): tapping the peroneal nerve → dorsiflexion and eversion of foot")) story.append(sp(4)) story.append(sh("Manifest (Severe) Tetany:")) story.append(b("Paraesthesias: perioral numbness, tingling/pins and needles in fingers, toes, and lips (earliest symptom)")) story.append(b("Carpopedal spasm: main d'accoucheur posture – spontaneous without BP cuff")) story.append(b("Laryngospasm: stridor, respiratory distress, potentially fatal")) story.append(b("Generalised tonic-clonic seizures")) story.append(b("Bronchospasm: wheezing, dyspnoea")) story.append(b("Muscle cramps, facial grimacing, opisthotonus (severe)")) story.append(b("QT prolongation on ECG (hypocalcaemia); risk of ventricular arrhythmia")) story.append(sp(4)) story.append(sh("Other Features of Hypocalcaemia (Chronic)")) story.append(b("Neuropsychiatric: anxiety, irritability, depression, dementia, psychosis")) story.append(b("Cataracts (subcapsular)")) story.append(b("Dry skin, brittle nails, coarse hair, enamel hypoplasia of teeth")) story.append(b("Papilloedema, raised ICP (rare)")) story.append(b("Basal ganglia calcification (Fahr disease phenotype in chronic hypoparathyroidism)")) story.append(sp(4)) story.append(sh("Investigations")) story.append(two_col_table([ ("Serum total calcium", "Normal: 8.5–10.5 mg/dL (2.12–2.62 mmol/L). Correct for albumin: add 0.8 mg/dL per 1 g/dL fall in albumin below 4 g/dL"), ("Ionised Ca²⁺", "Gold standard: normal 4.6–5.3 mg/dL (1.15–1.33 mmol/L). Reduced in tetany."), ("Serum phosphate", "High in hypoparathyroidism; low in Vit D deficiency"), ("PTH level", "Low in hypoparathyroidism; High in Vit D deficiency and pseudohypoparathyroidism"), ("Serum Mg²⁺", "Low in hypomagnesaemia-induced tetany"), ("ABG (pH)", "Alkaline pH in respiratory/metabolic alkalosis-induced tetany"), ("ECG", "QT prolongation (hypocalcaemia); QU wave abnormalities"), ("Vitamin D (25-OH-D)", "Low in Vit D deficiency"), ("ALP", "Elevated in Vit D deficiency/rickets"), ])) story.append(sp(4)) story.append(sh("Treatment")) story.append(sh("A. Acute (Symptomatic) Tetany:")) story.append(b("IV Calcium gluconate 10 mL of 10% solution (93 mg elemental Ca²⁺) slowly over 10 min – FIRST LINE")) story.append(b("Can repeat if symptoms persist; follow with IV calcium infusion (10 ampoules in 500 mL NS/D5W at 50 mL/hr)")) story.append(b("ECG monitoring during IV calcium (risk of bradycardia/arrythmia – especially in digoxin therapy)")) story.append(b("Treat concurrent hypomagnesaemia: IV magnesium sulphate 2g over 10 min")) story.append(b("Respiratory alkalosis (hyperventilation tetany): rebreathing into paper bag; ↑ CO₂ → ↓ pH → more ionised Ca²⁺")) story.append(sp(4)) story.append(sh("B. Chronic (Long-term) Management:")) story.append(b("Oral calcium supplementation: 1–2 g elemental calcium daily")) story.append(b("Vitamin D supplementation: Calcitriol (active Vit D; 1,25-OH-D) 0.25–1 mcg/day")) story.append(b("Ergocalciferol (Vit D2) or Cholecalciferol (Vit D3) for Vit D deficiency")) story.append(b("Treat underlying cause (hypoparathyroidism, malabsorption, rickets)")) story.append(b("PTH therapy (teriparatide) for chronic hypoparathyroidism in refractory cases")) story.append(sp(4)) story.append(sh("Dental Relevance")) story.append(b("Chronic hypocalcaemia: enamel hypoplasia, delayed tooth eruption, shortened tooth roots, abnormal dentine")) story.append(b("Post-thyroid surgery: most common cause of surgical hypoparathyroidism → tetany within 24–48 hrs")) story.append(b("Hyperventilation in dental anxiety → respiratory alkalosis → tetany – reassure patient, paper bag rebreathing")) story.append(note("Chvostek's and Trousseau's signs: critical clinical signs to test for latent tetany.")) story.append(sp(8)) # ════════════════════════════════════════════════════════════════════════════ # TOPIC 2 – CUSHING'S DISEASE / SYNDROME # ════════════════════════════════════════════════════════════════════════════ story.append(topic_header("2. CUSHING'S DISEASE AND CUSHING'S SYNDROME", TEAL)) story.append(sp(6)) story.append(sh("Definitions – IMPORTANT DISTINCTION")) story.append(two_col_table([ ("Cushing's Syndrome", "Collective term for all conditions causing EXCESS CORTISOL (hypercortisolism), regardless of cause. Includes exogenous (iatrogenic) and all endogenous causes."), ("Cushing's Disease", "SPECIFIC term: hypercortisolism caused by an ACTH-secreting pituitary adenoma (basophil adenoma). Most common ENDOGENOUS cause (65–70% of endogenous cases). Cushing described this in 1932."), ])) story.append(sp(4)) story.append(sh("Aetiology – Causes of Cushing's Syndrome")) story.append(two_col_table([ ("Exogenous (most common overall)", "IATROGENIC – prolonged glucocorticoid therapy (prednisone, methylprednisolone, ACTH). Most common cause of Cushing's syndrome worldwide."), ("Cushing's Disease (65%)", "ACTH-secreting pituitary basophil microadenoma (<1 cm in 80%) → bilateral adrenal hyperplasia"), ("Ectopic ACTH (12%)", "Paraneoplastic: small cell lung carcinoma (most common), bronchial carcinoid, medullary thyroid carcinoma, thymoma, pancreatic tumour. Rapid onset, severe hypokalaemia, pigmentation."), ("Adrenal adenoma (10%)", "Unilateral benign adrenal adenoma → autonomous cortisol production. ACTH suppressed."), ("Adrenal carcinoma (8%)", "Aggressive, rapid onset. ACTH suppressed. Large tumour."), ("Adrenal hyperplasia", "PPNAD (Primary Pigmented Nodular Adrenocortical Disease) – rare, familial (Carney complex)"), ])) story.append(sp(4)) story.append(sh("Clinical Features (Mnemonic: CUSHINGS)")) story.append(b("C – Centripetal (truncal) obesity: central fat deposition with thin limbs ('lemon on sticks'); buffalo hump (fat pad at back of neck); moon face")) story.append(b("U – Urinary frequency, hyperglycaemia (steroid diabetes): impaired glucose tolerance/frank diabetes in 20%")) story.append(b("S – Striae: wide (>1 cm), violaceous (reddish-purple) striae on abdomen, thighs, breasts")) story.append(b("H – Hypertension (most common cardiovascular feature); hypokalaemia (especially ectopic ACTH)")) story.append(b("I – Immunosuppression: recurrent infections; impaired wound healing")) story.append(b("N – Neuropsychiatric: depression (most common), anxiety, psychosis, insomnia, cognitive impairment")) story.append(b("G – Growth retardation (children); gonadal dysfunction: oligomenorrhoea, amenorrhoea, impotence, reduced libido")) story.append(b("S – Skin changes: thin/fragile skin, easy bruising, acne, hirsutism, telangiectasia, poor wound healing; Proximal muscle weakness/myopathy; Osteoporosis with pathological fractures")) story.append(b("Additional: Hyperpigmentation (only in ACTH-dependent causes: Cushing's disease, ectopic ACTH – from ACTH cross-reacting with MSH receptors)")) story.append(sp(4)) story.append(sh("Investigations")) story.append(sh("Step 1: Confirm hypercortisolism (screening tests):")) story.append(b("24-hour urinary free cortisol (UFC): most expeditious test. Normal 12–40 mcg/24h (some assays up to 100 mcg/24h). Elevated in Cushing's.")) story.append(b("Overnight low-dose dexamethasone suppression test (LDDST): dexamethasone 1 mg at midnight → 8 AM cortisol. Normal: cortisol <1.8 mcg/dL. Failure to suppress = Cushing's.")) story.append(b("Late-night salivary cortisol: cortisol normally low at midnight; elevated in Cushing's (loss of diurnal rhythm)")) story.append(sp(4)) story.append(sh("Step 2: Determine ACTH-dependent vs ACTH-independent:")) story.append(b("Plasma ACTH level: High ACTH → ACTH-dependent (pituitary or ectopic). Low/undetectable ACTH → ACTH-independent (adrenal tumour)")) story.append(sp(4)) story.append(sh("Step 3: Differentiate pituitary vs ectopic ACTH:")) story.append(b("High-dose dexamethasone suppression test (HDDST): dexamethasone 2 mg Q6H for 2 days (or 8 mg single dose at midnight). Cushing's disease: cortisol suppressed by ≥50% (60–70%). Ectopic ACTH: NOT suppressed.")) story.append(b("MRI pituitary: shows microadenoma in 80% of Cushing's disease")) story.append(b("Inferior petrosal sinus sampling (IPSS): gold standard to confirm pituitary source; ACTH gradient pituitary:peripheral >2 (basal) or >3 (post-CRH)")) story.append(b("CT/MRI abdomen: adrenal tumour/hyperplasia")) story.append(b("CT chest/abdomen: ectopic ACTH source (lung, mediastinum)")) story.append(sp(4)) story.append(sh("Treatment")) story.append(two_col_table([ ("Cushing's Disease (pituitary)", "Transsphenoidal pituitary microsurgery (1st line): cure rate ~80%. Adjunct: pituitary radiotherapy (gamma knife) if surgery fails. Medical: ketoconazole, metyrapone, or aminoglutethimide (adrenal enzyme inhibitors) as bridge to surgery or if surgery fails. Bilateral adrenalectomy if all else fails (risk of Nelson's syndrome: enlarged pituitary, hyperpigmentation)."), ("Adrenal adenoma", "Laparoscopic unilateral adrenalectomy. Glucocorticoid replacement post-op until contralateral adrenal recovers (6–12 months)."), ("Adrenal carcinoma", "Surgery + mitotane (adrenolytic). Poor prognosis."), ("Ectopic ACTH", "Treat underlying malignancy (surgery/chemotherapy/radiotherapy). Bilateral adrenalectomy or medical adrenal suppression if tumour unresectable."), ("Iatrogenic", "Gradual tapering of glucocorticoids. Do NOT stop abruptly (adrenal insufficiency risk)."), ])) story.append(sp(4)) story.append(sh("Dental Relevance")) story.append(b("Iatrogenic Cushing's: most relevant – prolonged steroid use in dental patients (asthma, autoimmune)")) story.append(b("Adrenal crisis risk during dental surgery: double steroid dose ('sick day rules')")) story.append(b("Oral manifestations: poor wound healing, increased infection risk, candidiasis")) story.append(b("Osteoporosis: jaw bone loss, periodontal destruction")) story.append(b("Hypertension, DM: general anaesthesia risk considerations")) story.append(note("Cushing's disease = pituitary ACTH adenoma. Cushing's syndrome = any hypercortisolism. Never confuse these.")) story.append(sp(8)) # ════════════════════════════════════════════════════════════════════════════ # TOPIC 3 – DIABETES MELLITUS # ════════════════════════════════════════════════════════════════════════════ story.append(topic_header("3. DIABETES MELLITUS (DM)", colors.HexColor("#1a4a2e"))) story.append(sp(6)) story.append(sh("Definition")) story.append(p("Diabetes mellitus (DM) is a group of metabolic disorders characterised by chronic hyperglycaemia resulting from defects in insulin secretion, insulin action, or both, leading to long-term damage to eyes, kidneys, nerves, heart, and blood vessels.")) story.append(sp(4)) story.append(sh("Classification")) story.append(two_col_table([ ("Type 1 DM", "Absolute insulin deficiency due to autoimmune destruction of pancreatic beta (β) cells. Anti-GAD, anti-islet cell antibodies. HLA-DR3, HLA-DR4 association. Usually <30 years. Ketosis-prone. Requires insulin from diagnosis."), ("Type 2 DM", "Relative insulin deficiency + insulin resistance. Strong genetic predisposition. Risk factors: obesity, sedentary lifestyle, age >40, family history, gestational DM. Accounts for 90–95% of all DM."), ("Gestational DM (GDM)", "Glucose intolerance first recognised in pregnancy. Risk of T2DM post-partum. Screen at 24–28 weeks."), ("MODY", "Maturity Onset Diabetes of the Young: single gene defect. Family history, onset <25 years, non-insulin dependent."), ("Secondary DM", "Cushing's syndrome, acromegaly, phaeochromocytoma, chronic pancreatitis, haemochromatosis, drug-induced (steroids, thiazides)"), ])) story.append(sp(4)) story.append(sh("Diagnostic Criteria (ADA / WHO)")) story.append(two_col_table([ ("Fasting plasma glucose (FPG)", "≥126 mg/dL (7.0 mmol/L) on two occasions (fasting ≥8 hrs)"), ("2-hr OGTT glucose", "≥200 mg/dL (11.1 mmol/L) after 75 g oral glucose"), ("Random glucose + symptoms", "≥200 mg/dL with classic symptoms (polyuria, polydipsia, weight loss)"), ("HbA1c", "≥6.5% (48 mmol/mol) – requires validated assay"), ("Pre-diabetes", "IFG: FPG 100–125 mg/dL. IGT: 2-hr OGTT 140–199 mg/dL. HbA1c 5.7–6.4%"), ])) story.append(sp(4)) story.append(sh("Clinical Features")) story.append(sh("Classic Symptoms ('Polys'):")) story.append(b("Polyuria: osmotic diuresis from glucosuria (glucose exceeds renal threshold ~180 mg/dL)")) story.append(b("Polydipsia: compensatory thirst due to dehydration")) story.append(b("Polyphagia: cellular starvation despite hyperglycaemia (especially T1DM)")) story.append(b("Weight loss: catabolism (especially T1DM); despite polyphagia")) story.append(b("Fatigue, blurred vision (osmotic lens swelling), recurrent infections (candidiasis, furuncles)")) story.append(sp(4)) story.append(sh("Complications")) story.append(sh("A. Acute Complications:")) story.append(two_col_table([ ("Diabetic Ketoacidosis (DKA)", "T1DM. Insulin deficiency + ↑ counter-regulatory hormones → ketogenesis. See Topic 4."), ("Hyperosmolar Hyperglycaemic State (HHS)", "T2DM. Extreme hyperglycaemia (>600 mg/dL), hyperosmolality (>320 mOsm/L), no significant ketosis, severe dehydration. Mortality ~15%."), ("Hypoglycaemia", "Most common acute complication. Glucose <70 mg/dL. Causes: excess insulin, missed meal, exercise. Symptoms: sweating, tremor, palpitations (sympathetic) then confusion, seizure, coma (neuroglycopaenic). Treat: glucose 15–20 g oral; if unconscious: IV dextrose 50% or IM glucagon."), ("Lactic acidosis", "Rare. Type A (tissue hypoxia) or Type B (metformin-induced in renal failure)."), ])) story.append(sp(4)) story.append(sh("B. Chronic Complications (Microvascular + Macrovascular):")) story.append(three_col_table([ ["Complication", "Features", "Prevention/Screening"], ["Diabetic Nephropathy", "Microalbuminuria → proteinuria → CKD → ESRD (most common cause of dialysis in developed world). Kimmelstiel-Wilson nodules on histology.", "ACEi/ARB; BP control <130/80; HbA1c <7%"], ["Diabetic Retinopathy", "Most common cause of blindness in working-age adults. Non-proliferative → proliferative. Cotton wool spots, hard exudates, new vessel formation. Annual fundoscopy.", "Laser photocoagulation; VEGF inhibitors; strict glucose control"], ["Diabetic Neuropathy", "Most common complication. Peripheral sensorimotor (glove-stocking): numbness, paraesthesia, pain, Charcot foot. Autonomic: gastroparesis, postural hypotension, ED.", "Amitriptyline, duloxetine, pregabalin for pain; metoclopramide for gastroparesis"], ["Macrovascular (CVD)", "IHD (2–4x increased risk), stroke, peripheral arterial disease. Leading cause of mortality in T2DM.", "Statin therapy; aspirin; antihypertensives; smoking cessation"], ["Diabetic Foot", "Neuropathy + ischaemia → foot ulcers, Charcot's joint, osteomyelitis, gangrene (need amputation).", "Daily foot inspection; appropriate footwear; podiatry"], ["Infections", "Increased susceptibility: UTI, candidiasis, TB, mucormycosis. Malignant external otitis (Pseudomonas).", "Maintain glycaemic control; vaccinations"], ])) story.append(sp(4)) story.append(sh("Treatment of Type 2 DM (Step-wise)")) story.append(b("Lifestyle: diet (low-carb, caloric restriction), weight loss, exercise – cornerstone of therapy")) story.append(b("Step 1: Metformin (1st line oral agent) – improves insulin sensitivity, reduces hepatic glucose output, cardioprotective. Avoid in eGFR <30, liver failure, contrast media.")) story.append(b("Step 2: Add 2nd agent if HbA1c not at target after 3 months:")) story.append(sb("SGLT-2 inhibitors (empagliflozin, dapagliflozin): cardioprotective, renal-protective, weight loss")) story.append(sb("GLP-1 agonists (semaglutide, liraglutide): weight loss, cardioprotective")) story.append(sb("DPP-4 inhibitors (sitagliptin): well tolerated, weight-neutral")) story.append(sb("Sulphonylureas (glibenclamide, glipizide): cheap but hypoglycaemia risk, weight gain")) story.append(sb("Thiazolidinediones (pioglitazone): insulin sensitiser; fluid retention, heart failure risk")) story.append(b("Step 3: Basal insulin (insulin glargine/detemir) if oral agents insufficient")) story.append(b("Type 1 DM: Basal-bolus insulin regimen (multiple daily injections) or insulin pump (CSII)")) story.append(sp(4)) story.append(sh("Monitoring")) story.append(b("HbA1c: target <7% (53 mmol/mol) for most patients; measure every 3 months initially, then every 6 months")) story.append(b("Self-monitoring blood glucose (SMBG): fasting and post-prandial targets")) story.append(b("Annual: fundoscopy, urine microalbumin, serum creatinine/eGFR, foot examination, lipid profile, BP")) story.append(sp(4)) story.append(sh("Dental Relevance (Important)")) story.append(b("Periodontal disease: 6th complication of DM. Bidirectional relationship – DM worsens periodontitis; periodontitis worsens glycaemic control")) story.append(b("Oral manifestations: xerostomia, candidiasis, burning mouth, delayed wound healing, tooth mobility")) story.append(b("Increased infection risk post-extraction/surgery")) story.append(b("Management: schedule dental appointments in morning (better glucose control); check pre-procedure glucose; have sugary drink available for hypoglycaemia")) story.append(b("Glucocorticoid injections: raise blood glucose – warn diabetic patients")) story.append(sp(8)) # ════════════════════════════════════════════════════════════════════════════ # TOPIC 4 – DKA AND COMPLICATIONS # ════════════════════════════════════════════════════════════════════════════ story.append(topic_header("4. DIABETIC KETOACIDOSIS (DKA) – COMPLICATIONS OF DM", MAROON)) story.append(sp(6)) story.append(sh("Definition of DKA")) story.append(p("DKA is an acute life-threatening metabolic emergency occurring primarily in Type 1 DM, characterised by the biochemical triad of: (1) Hyperglycaemia, (2) Ketosis/Ketonaemia, and (3) Metabolic acidosis. It results from severe insulin deficiency combined with excess counter-regulatory hormones (glucagon, adrenaline, cortisol, GH).")) story.append(sp(4)) story.append(sh("Diagnostic Triad (DKA)")) story.append(two_col_table([ ("D – Diabetes/Hyperglycaemia", "Blood glucose >200 mg/dL (may be <200 in euglycaemic DKA on SGLT-2 inhibitors)"), ("K – Ketones", "Urine ketones ≥2+ OR serum beta-hydroxybutyrate ≥3.0 mmol/L"), ("A – Acidosis", "Arterial/venous pH <7.30; serum bicarbonate <18 mmol/L; anion gap >12 mEq/L"), ])) story.append(sp(4)) story.append(sh("Precipitating Factors")) story.append(b("Infections: most common (30–40%) – UTI, pneumonia, sepsis")) story.append(b("Inadequate insulin: missed doses, pump failure, non-compliance")) story.append(b("New-onset T1DM (first presentation)")) story.append(b("Acute illness: MI, stroke, pancreatitis, PE, surgery, trauma")) story.append(b("Drugs: corticosteroids, thiazide diuretics, antipsychotics (clozapine, olanzapine), cocaine, SGLT-2 inhibitors")) story.append(b("Pregnancy, emotional stress")) story.append(sp(4)) story.append(sh("Pathophysiology")) story.append(p("Insulin deficiency → ↓ glucose utilisation + ↑ glycogenolysis + ↑ gluconeogenesis (from muscle amino acids, lactate, glycerol) → HYPERGLYCAEMIA. Simultaneously: ↑ lipolysis (adipose) → ↑ free fatty acids → hepatic ketogenesis → beta-hydroxybutyrate, acetoacetate, acetone → KETONAEMIA + METABOLIC ACIDOSIS. Hyperglycaemia → osmotic diuresis → loss of water, Na⁺, K⁺, PO₄³⁻, Mg²⁺ → DEHYDRATION and electrolyte depletion.")) story.append(sp(4)) story.append(sh("Clinical Features")) story.append(b("Polyuria, polydipsia (preceding days)")) story.append(b("Nausea, vomiting, anorexia, generalised abdominal pain (may mimic acute abdomen)")) story.append(b("Weakness, lethargy")) story.append(b("Kussmaul breathing: deep, laboured, sighing respirations (respiratory compensation for metabolic acidosis)")) story.append(b("Fruity/acetone breath (ketones)")) story.append(b("Signs of dehydration: dry mucous membranes, reduced skin turgor, tachycardia, orthostatic hypotension, reduced JVP")) story.append(b("Altered consciousness: confusion → stupor → coma (severe)")) story.append(b("Fever (if infection is precipitant)")) story.append(sp(4)) story.append(sh("Investigations")) story.append(two_col_table([ ("Blood glucose", ">200 mg/dL (often 300–600 mg/dL)"), ("ABG", "pH <7.30; HCO₃⁻ <18 mEq/L; pCO₂ low (compensatory respiratory alkalosis)"), ("Serum ketones", "Beta-hydroxybutyrate ≥3 mmol/L (bedside ketone meter) – more accurate than urine ketones"), ("Anion gap", ">12 mEq/L (Na⁺ – Cl⁻ – HCO₃⁻)"), ("Serum electrolytes", "Na⁺ may be low (pseudohyponatraemia) or normal/high (dehydration). K⁺ initially HIGH due to acidosis (K⁺ exits cells) but total body K⁺ DEPLETED (lost in urine). After insulin, K⁺ drops rapidly → risk of hypokalaemia."), ("Serum phosphate", "Total body depletion despite normal/↑ initial levels"), ("FBC", "Leukocytosis (even without infection – due to acidosis/stress)"), ("RFT", "Raised BUN/creatinine (dehydration)"), ("Urine", "Glucosuria + ketonuria"), ("ECG", "K⁺-related changes: hypokalaemia causes flattened T-waves, U-waves, QT prolongation"), ("Cultures", "Blood, urine, sputum (to identify infection precipitant)"), ])) story.append(sp(4)) story.append(sh("Treatment of DKA – 'FAST' Protocol")) story.append(b("F – Fluids: 0.9% NaCl (normal saline) 2–4 L in first 2–4 hours; then adjust rate based on vitals. When glucose falls to 250 mg/dL, switch to 5% dextrose with saline to prevent hypoglycaemia.")) story.append(b("A – Assess and treat precipitant: cultures, antibiotics if infection; identify trigger")) story.append(b("S – Salt (electrolytes) replacement:")) story.append(sb("Potassium: DO NOT give insulin if K⁺ <3.5 mEq/L (replace first). Give KCl 20–40 mEq/hr if K⁺ 3.5–5.5. Hold K⁺ if >5.5. Monitor every 2 hrs.")) story.append(sb("Phosphate: replace only if <1 mg/dL or respiratory muscle weakness")) story.append(sb("Bicarbonate: ONLY if pH <6.9 (controversial)")) story.append(b("T – Treatment with Insulin:")) story.append(sb("IV regular insulin 0.1 units/kg/hr infusion (after K⁺ ≥3.5 mEq/L confirmed)")) story.append(sb("Target: glucose fall 50–75 mg/dL/hr; do NOT drop faster")) story.append(sb("Continue insulin infusion until anion gap normalised and HCO₃⁻ >15 mEq/L")) story.append(sb("Transition to subcutaneous insulin when patient can eat and drink")) story.append(sp(4)) story.append(sh("Complications of DKA")) story.append(two_col_table([ ("Hypokalaemia", "From insulin treatment + urinary K⁺ losses → cardiac arrhythmia. Most dangerous complication of DKA treatment."), ("Hypoglycaemia", "From overzealous insulin therapy"), ("Cerebral oedema", "Most dangerous complication, especially in children. Due to rapid osmolar shifts with treatment. Presents 6–12 hrs after treatment starts: headache, vomiting, altered consciousness. Treat with IV mannitol."), ("Hypophosphataemia", "Respiratory muscle weakness, cardiac dysfunction, haemolytic anaemia"), ("Aspiration pneumonia", "From vomiting and reduced consciousness"), ("Thrombosis", "Hypercoagulable state + dehydration → DVT/PE"), ("Acute kidney injury", "From dehydration and hypoperfusion"), ("Late DKA mortality", "Primarily from cerebral oedema, hypokalaemia, aspiration, underlying precipitant (sepsis, MI)"), ])) story.append(sp(4)) story.append(sh("DKA vs HHS – Quick Comparison")) story.append(three_col_table([ ["Feature", "DKA", "HHS (Hyperosmolar Hyperglycaemic State)"], ["DM type", "Type 1 (mainly)", "Type 2 (elderly)"], ["Onset", "Hours to days", "Days to weeks"], ["Glucose", "200–600 mg/dL", ">600 mg/dL (often >1000)"], ["Ketones", "Strongly positive", "Absent or trace"], ["pH", "<7.30", ">7.30 (normal)"], ["Bicarbonate", "<18 mEq/L", ">18 mEq/L"], ["Osmolality", "Mildly elevated", ">320 mOsm/L"], ["Dehydration", "Moderate", "Severe"], ["Mortality", "~1%", "~15%"], ])) story.append(sp(8)) # ════════════════════════════════════════════════════════════════════════════ # TOPIC 5 – THYROID DISORDERS # ════════════════════════════════════════════════════════════════════════════ story.append(topic_header("5. THYROID DISORDERS", colors.HexColor("#4a1a5c"))) story.append(sp(6)) story.append(p("<b>Overview:</b> Thyroid disorders are among the most common endocrine conditions. The thyroid gland produces T3 (triiodothyronine) and T4 (thyroxine) under control of TSH (thyroid-stimulating hormone) from the pituitary, which is itself regulated by TRH from the hypothalamus. 99% of circulating T4/T3 is protein-bound (to TBG, albumin, transthyretin); only free (unbound) hormone is active.")) story.append(sp(6)) # ── 5A: HYPOTHYROIDISM ────────────────────────────────────────────────────── story.append(sh("5A. HYPOTHYROIDISM (Detailed)")) story.append(sp(4)) story.append(sh("Definition")) story.append(p("Hypothyroidism is a hypometabolic state resulting from insufficient thyroid hormone production (↓T3/T4) to meet the body's needs. Serum TSH is elevated (>10 mIU/L in primary hypothyroidism) because of reduced negative feedback.")) story.append(sp(4)) story.append(sh("Aetiology")) story.append(two_col_table([ ("Primary (thyroid failure) – 95% of cases", ""), ("Hashimoto's thyroiditis (most common in iodine-sufficient areas)", "Autoimmune; anti-TPO antibodies; anti-thyroglobulin antibodies. Progressive fibrosis of thyroid. Female:male = 10–14:1. May present transiently as hyperthyroid (Hashitoxicosis) then hypothyroid."), ("Iodine deficiency", "Most common cause WORLDWIDE (especially developing countries). Causes goitre."), ("Post-thyroid surgery", "Partial/total thyroidectomy → reduced thyroid tissue"), ("Radioiodine therapy (¹³¹I)", "For hyperthyroidism → most patients develop hypothyroidism within 1 year"), ("Drug-induced", "Amiodarone (high iodine content), lithium, antithyroid drugs, interferon-alpha"), ("Congenital hypothyroidism","Thyroid dysgenesis/agenesis, dyshormonogenesis → cretinism if untreated"), ("Subacute thyroiditis", "Transient hypothyroid phase after initial hyperthyroid phase"), ("Secondary (pituitary)", "TSH deficiency from pituitary failure (rare). TSH low/normal with low FT4."), ("Tertiary (hypothalamic)", "TRH deficiency. Very rare."), ])) story.append(sp(4)) story.append(sh("Clinical Features")) story.append(p("<b>Everything is 'SLOW' in hypothyroidism</b>")) story.append(two_col_table([ ("General/Metabolic", "Weight gain (despite reduced appetite); cold intolerance; fatigue; bradycardia; hypotension; hoarse voice (myxoedema of vocal cords)"), ("Skin/Hair", "Dry, coarse, pale, cold skin; dry brittle hair with hair loss; loss of lateral 1/3 of eyebrow (Queen Anne's sign); non-pitting oedema (myxoedema) – periorbital oedema, puffy face, puffiness of hands/feet; myxoedema: deposition of glycosaminoglycans"), ("Neurological", "Slow reflexes with delayed relaxation phase (characteristic sign); carpal tunnel syndrome; cerebellar ataxia; depression, psychosis ('myxoedema madness'); cognitive impairment; nerve deafness"), ("CVS", "Bradycardia; hypertension (diastolic); pericardial effusion; ECG: low-voltage, prolonged QT, bradycardia"), ("GI", "Constipation; macroglossia; abdominal distension; ileus (severe myxoedema)"), ("Reproductive", "Menorrhagia (heavy periods, irregular); infertility; galactorrhoea (due to ↑ TRH → ↑ prolactin); impotence in men"), ("Musculoskeletal", "Proximal myopathy; arthralgia; myxoedema coma (extreme)"), ("Children", "Growth retardation; delayed puberty; Cretinism (congenital): mental retardation, short stature, coarse features, pot belly, protruding tongue"), ("Labs", "Hypercholesterolaemia; hyperlipidaemia; anaemia (normocytic or macrocytic); ↑CK; hyponatraemia"), ])) story.append(sp(4)) story.append(sh("Myxoedema Coma – Life-Threatening Emergency")) story.append(b("Extreme hypothyroidism with CNS depression. Precipitated by cold, infection, sedatives, surgery.")) story.append(b("Features: hypothermia, bradycardia, hypotension, hypoventilation, hyponatraemia, hypoglycaemia, coma")) story.append(b("Treatment: IV T3 (liothyronine) or T4 + IV hydrocortisone (50–100 mg Q6H – as associated adrenal insufficiency) + warming, ventilation, glucose")) story.append(sp(4)) story.append(sh("Investigations")) story.append(two_col_table([ ("TSH (most sensitive)", "Elevated (>4.5 mIU/L) in primary hypothyroidism. Normal/low in secondary (pituitary) hypothyroidism."), ("Free T4 (FT4)", "Low in overt hypothyroidism. Normal in subclinical hypothyroidism (TSH mildly elevated, FT4 normal)."), ("Anti-TPO antibodies", "Positive in Hashimoto's thyroiditis (95%); also anti-Tg antibodies (positive in 60–70%)"), ("FBC", "Normocytic/macrocytic anaemia; pernicious anaemia associated with Hashimoto's (autoimmune)"), ("Lipid profile", "↑Cholesterol, ↑triglycerides, ↑LDL (reversible with thyroid replacement)"), ("ECG", "Bradycardia; low-voltage complexes; prolonged QT; T-wave flattening/inversion"), ("Thyroid ultrasound", "Heterogeneous hypoechoic thyroid in Hashimoto's; goitre assessment"), ("Thyroid scan (¹²³I)", "Reduced uptake in hypothyroidism"), ])) story.append(sp(4)) story.append(sh("Treatment")) story.append(b("Levothyroxine (L-T4) – drug of choice: synthetic T4; converted peripherally to active T3")) story.append(b("Starting dose: 25–50 mcg/day (lower in elderly/cardiac patients to avoid angina/arrythmia); titrate every 6–8 weeks")) story.append(b("Average replacement dose: 1.6 mcg/kg/day (typically 100–150 mcg/day in adults)")) story.append(b("Take on empty stomach, 30–60 min before breakfast (food/calcium/iron reduce absorption)")) story.append(b("Monitor TSH every 6–8 weeks during titration, then annually when stable; target TSH 0.5–2.5 mIU/L")) story.append(b("Combination T4+T3 (liothyronine): for patients with persistent symptoms on T4 alone (controversial)")) story.append(b("Congenital hypothyroidism: URGENT – start T4 within first 2 weeks of life to prevent cretinism")) story.append(sp(6)) # ── 5B: THYROTOXICOSIS (DETAILED) ─────────────────────────────────────────── story.append(sh("5B. THYROTOXICOSIS (Detailed)")) story.append(sp(4)) story.append(sh("Definition and Distinction")) story.append(two_col_table([ ("Thyrotoxicosis", "Clinical syndrome of excess thyroid hormone activity in tissues, regardless of source. TSH is LOW (suppressed). T4/T3 elevated. NOT synonymous with hyperthyroidism."), ("Hyperthyroidism", "Thyrotoxicosis DUE TO overproduction of thyroid hormones by the thyroid gland itself. A subset of thyrotoxicosis."), ("Thyrotoxicosis without hyperthyroidism", "Thyroid hormone excess NOT from overproduction: e.g., thyroiditis (release of stored hormone), exogenous T4 ingestion. Radioiodine uptake is LOW."), ])) story.append(sp(4)) story.append(sh("Causes of Thyrotoxicosis")) story.append(two_col_table([ ("Graves' disease (60–90%)", "Autoimmune; TSH-receptor stimulating antibodies (TRAb/TSI) activate TSH receptors → continuous T3/T4 production. Associated with HLA-DR3. Most common in women 20–40 years. Triad: hyperthyroidism + ophthalmopathy + dermopathy (pretibial myxoedema)."), ("Toxic multinodular goitre (TMNG)", "Multiple autonomously functioning thyroid nodules. Older women. Iodine-deficiency endemic areas. Insidious onset."), ("Toxic adenoma", "Single autonomously functioning follicular adenoma ('hot nodule'). Plummer's disease."), ("Thyroiditis", "Subacute (de Quervain's): painful thyroid + fever + raised ESR after URTI; transient. Postpartum/Painless (Hashitoxicosis): autoimmune; painless. Drug-induced (amiodarone, interferon)."), ("Exogenous thyroid hormone", "Factitious thyrotoxicosis. Low thyroglobulin distinguishes from endogenous."), ("TSH-secreting pituitary adenoma", "Rare. TSH elevated (not suppressed). Secondary hyperthyroidism."), ("Iodine-induced (Jod-Basedow)", "Sudden iodine load (contrast dye, amiodarone) in iodine-deficient gland."), ("Gestational thyrotoxicosis", "hCG cross-reacts with TSH receptor in 1st trimester → transient thyrotoxicosis."), ])) story.append(sp(4)) story.append(sh("Clinical Features of Thyrotoxicosis")) story.append(p("<b>Everything is 'FAST' and 'HOT' in thyrotoxicosis</b>")) story.append(two_col_table([ ("Metabolic", "Weight loss (despite ↑ appetite); heat intolerance; excessive sweating; fever"), ("CVS", "SINUS TACHYCARDIA (most common); palpitations; AF (5–15%, especially elderly); wide pulse pressure; high output cardiac failure; systolic hypertension"), ("Neurological", "Anxiety, irritability, emotional lability, psychosis; fine tremor of outstretched hands; hyperreflexia"), ("GI", "Diarrhoea (increased GI motility); increased appetite; hyperdefaecation"), ("Musculoskeletal", "Proximal myopathy (difficulty climbing stairs, rising from chair); thyroid acropachy (rare); hypercalcaemia (increased bone turnover) → osteoporosis"), ("Reproductive", "Oligomenorrhoea/amenorrhoea in women; gynaecomastia in men; reduced fertility"), ("Skin", "Warm, moist, smooth skin; palmar erythema; onycholysis (Plummer's nails – separation from nail bed); alopecia"), ("Eyes", "LID LAG (von Graefe's sign) and STARE (Dalrymple's sign): due to sympathetic overactivity. Present in ALL causes of thyrotoxicosis."), ])) story.append(sp(4)) story.append(sh("Graves' Disease – Specific Features")) story.append(b("Diffuse goitre: smooth, firm, bruit/thrill over thyroid (from increased vascularity)")) story.append(b("Graves' ophthalmopathy (50%): exophthalmos (proptosis), lid retraction, periorbital oedema, ophthalmoplegia, chemosis. Due to TSI-mediated inflammation of orbital fibroblasts. Can be SEVERE and cause corneal exposure/vision loss.")) story.append(b("Pretibial myxoedema (5%): non-pitting, indurated plaque-like skin thickening over the shins. Orange-peel (peau d'orange) appearance.")) story.append(b("Thyroid acropachy: periosteal new bone formation, soft tissue swelling of digits (very rare)")) story.append(sp(4)) story.append(sh("Apathetic Thyrotoxicosis (Elderly)")) story.append(b("Atypical presentation in elderly: apathy, lethargy, weight loss, AF, heart failure, depression")) story.append(b("Classic symptoms (tremor, anxiety, goitre) may be absent")) story.append(b("Easily confused with depression or dementia – always check TSH")) story.append(sp(4)) story.append(sh("Investigations")) story.append(two_col_table([ ("TSH", "SUPPRESSED (<0.1 mIU/L) in all causes of thyrotoxicosis. Most sensitive screening test."), ("Free T4 (FT4)", "Elevated in most cases"), ("Free T3 (FT3)", "Elevated; elevated in T3-toxicosis (FT4 normal, FT3 elevated – 2–4% of thyrotoxicosis)"), ("TRAb/TSI", "Thyroid receptor antibodies: positive in Graves' disease (95%). Confirms diagnosis."), ("Anti-TPO abs", "Positive in Hashimoto's and Graves' (overlap)"), ("Thyroid uptake scan (¹²³I/Tc-99m)", "DIFFUSE high uptake → Graves'. FOCAL high uptake → Toxic adenoma/TMNG. LOW uptake → Thyroiditis, factitious thyrotoxicosis"), ("Thyroid USS", "Diffuse enlargement (Graves'); nodules (TMNG); 'snowstorm' pattern (Hashimoto's)"), ("ECG", "Sinus tachycardia; AF; atrial flutter"), ("Blood", "Raised ALP, mild hypercalcaemia; normocytic anaemia; raised glucose"), ])) story.append(sp(4)) story.append(sh("Treatment of Thyrotoxicosis / Hyperthyroidism")) story.append(sh("1. Symptomatic Control (ALL patients immediately):")) story.append(b("Beta-blockers (propranolol 40–80 mg TDS or atenolol 50–100 mg OD): block peripheral effects of T3/T4 (tachycardia, tremor, anxiety). Use until euthyroid state achieved.")) story.append(sp(4)) story.append(sh("2. Definitive Treatment Options:")) story.append(two_col_table([ ("Antithyroid drugs (ATD)", "Methimazole (MMI) / Carbimazole: FIRST LINE in most. Block thyroid peroxidase → inhibit T3/T4 synthesis. MMI preferred (once daily, better tolerated, fewer adverse effects). Carbimazole 20–60 mg/day → titrate. Takes 4–8 weeks to become euthyroid (hormone stores must deplete). Block-and-replace regimen: high-dose carbimazole + levothyroxine. Side effects: rash, agranulocytosis (0.3% – STOP drug, FBC), hepatotoxicity. PTU (propylthiouracil): also blocks T4→T3 peripheral conversion; 1st choice in 1st trimester pregnancy, thyroid storm. Relapse rate ~50% after 12–18 months of ATD."), ("Radioiodine (¹³¹I)", "Most common definitive treatment in UK/USA for Graves'. Oral ¹³¹I selectively destroys thyroid follicular cells. Euthyroid in 6–12 weeks. ~80% develop hypothyroidism (require lifelong levothyroxine). CONTRAINDICATED in pregnancy, breastfeeding, severe active ophthalmopathy (may worsen GO), children (relative)."), ("Surgery (thyroidectomy)", "Subtotal or total thyroidectomy. Indications: large goitre causing compressive symptoms, failed ATD/RAI, patient preference, suspected malignancy, pregnancy (2nd trimester). Pre-op: render euthyroid with ATD + potassium iodide (Lugol's iodine 10–14 days pre-op to reduce vascularity). Complications: hypothyroidism (most common), hypoparathyroidism (tetany), recurrent laryngeal nerve palsy (hoarseness), haemorrhage, neck haematoma (emergency – re-open wound)."), ])) story.append(sp(4)) story.append(sh("Thyroid Storm (Thyrotoxic Crisis) – Emergency")) story.append(b("Severe, life-threatening decompensated thyrotoxicosis. Mortality up to 75% if unrecognised.")) story.append(b("Precipitants: surgery, infection, trauma, RAI, iodine contrast, parturition")) story.append(b("Features: hyperpyrexia (>40°C), extreme tachycardia, AF, heart failure, severe agitation/psychosis, diarrhoea/vomiting, jaundice, coma")) story.append(b("Diagnosis: CLINICAL (Burch-Wartofsky score ≥45 = thyroid storm); TSH/T4 NOT diagnostic alone")) story.append(b("Treatment (remember order: beta-blocker → PTU → iodine → steroid):")) story.append(sb("1. Propranolol IV 1–2 mg or 60–80 mg Q4H oral – immediately")) story.append(sb("2. PTU 500–1000 mg loading, then 250 mg Q4H oral/NGT – blocks synthesis and T4→T3 conversion")) story.append(sb("3. Lugol's iodine 8 drops Q6H AFTER PTU (Wolff-Chaikoff effect – blocks T4 release)")) story.append(sb("4. Hydrocortisone 100 mg IV Q8H – blocks T4→T3 conversion; treats relative adrenal insufficiency")) story.append(sb("5. Treat precipitant: antibiotics (if infection); cooling; IV fluids; oxygen")) story.append(sb("6. ICU admission; endocrinology consult")) story.append(sp(6)) # ── 5C: HYPERTHYROIDISM (SHORT) ───────────────────────────────────────────── story.append(sh("5C. HYPERTHYROIDISM (In Brief)")) story.append(sp(4)) story.append(p("Hyperthyroidism is a subset of thyrotoxicosis where the thyroid gland itself overproduces T3/T4. Key causes are Graves' disease (most common), toxic multinodular goitre (TMNG), and toxic adenoma. Radioiodine uptake is HIGH (distinguishing from thyroiditis/factitious causes).")) story.append(sp(4)) story.append(two_col_table([ ("Graves' disease", "Autoimmune. TSI antibodies. Diffuse goitre + ophthalmopathy + dermopathy. HLA-DR3. Most common in young women."), ("TMNG", "Multiple hot nodules on scan. Older women. Mild symptoms. No eye signs."), ("Toxic adenoma", "Single hot nodule (Plummer's disease). Gradual onset. No eye signs. Surgery preferred."), ("Key lab findings", "↓TSH + ↑FT4 + ↑FT3 + ↑RAI uptake (Graves'/TMNG). TRAb positive (Graves')."), ("Treatment summary", "Carbimazole/MMI → achieve euthyroid → then RAI or surgery for definitive cure. Beta-blocker for symptom control throughout."), ])) story.append(sp(4)) story.append(sh("Dental Relevance – Thyroid Disorders")) story.append(b("Hypothyroidism: macroglossia (enlargement of tongue); delayed tooth eruption; delayed root formation; malocclusion; anaemia → pallor of gingiva")) story.append(b("Hyperthyroidism: increased caries risk; accelerated tooth eruption; osteoporosis of alveolar bone; exaggerated response to adrenaline in local anaesthetics → AVOID adrenaline-containing LA or use minimum dose in uncontrolled thyrotoxicosis")) story.append(b("Carbimazole/PTU: agranulocytosis → oral ulcers, gingival bleeding, severe periodontal infections")) story.append(b("Thyroid storm: can be triggered by dental surgery/infection – ensure euthyroid before elective dental procedures")) story.append(b("Post-thyroidectomy: hypoparathyroidism → tetany (see Topic 1); RLN palsy → hoarseness")) story.append(note("ALWAYS check thyroid status before elective dental surgery. Uncontrolled hyperthyroidism is a contraindication to elective surgery.")) story.append(sp(8)) # ── Footer ──────────────────────────────────────────────────────────────────── story.append(HRFlowable(width="100%", thickness=1, color=DARK_BLUE, spaceAfter=6, spaceBefore=12)) story.append(Paragraph( "<b>References:</b> Anil K. Tripathi – Essentials of Medicine for Dental Students; " "Adams &amp; Victor's Principles of Neurology 12e; Goldman-Cecil Medicine; " "Textbook of Family Medicine 9e; Lippincott Illustrated Reviews: Pharmacology; " "Harrison's Principles of Internal Medicine 22e.", ParagraphStyle("footer", fontSize=8, leading=11, textColor=colors.HexColor("#555555"), alignment=TA_CENTER))) doc.build(story) print("PDF created successfully.") PYEOF echo "Exit: $?"

Running Command

ls -lh /tmp/workspace/bds-notes2/

Your PDF is ready. Download it here:

Endocrine Medicine Short Notes BDS

PDF Document · PDF


Here's a summary of what each topic covers - all concise, precise, and exam-ready for 7-8 marks:

1. Tetany

  • Definition: neuromuscular hyperexcitability from ↓ ionised Ca²⁺, alkalosis, or hypomagnesaemia
  • Causes: hypoparathyroidism (post-thyroid surgery = most common surgical cause), Vit D deficiency, hyperventilation (respiratory alkalosis), renal failure, malabsorption
  • Pathophysiology: low Ca²⁺ → unstable Na⁺ channels → spontaneous neuronal firing → spasm
  • Chvostek's sign (tap facial nerve → facial twitch) and Trousseau's sign (BP cuff → carpal spasm = main d'accoucheur) - must know both
  • Laryngospasm, carpopedal spasm, seizures, QT prolongation
  • Acute Rx: IV Calcium gluconate 10 mL of 10% slowly; chronic: oral Ca²⁺ + calcitriol
  • Dental: post-thyroidectomy tetany; hyperventilation during dental anxiety; enamel hypoplasia in chronic hypocalcaemia

2. Cushing's Disease / Syndrome

  • KEY distinction: Cushing's Disease = pituitary ACTH adenoma; Cushing's Syndrome = any hypercortisolism
  • Causes: iatrogenic steroids (most common overall), pituitary adenoma (65%), ectopic ACTH (small cell lung ca - 12%), adrenal adenoma/carcinoma
  • Features: moon face, truncal obesity, buffalo hump, purple striae (>1 cm), proximal myopathy, hypertension, DM, osteoporosis, hirsutism, easy bruising, poor wound healing
  • Hyperpigmentation: only in ACTH-dependent causes
  • Investigations: 24-hr UFC → low-dose DST → plasma ACTH → high-dose DST → MRI pituitary
  • High-dose DST: suppresses Cushing's disease but NOT ectopic ACTH
  • Rx: transsphenoidal surgery (1st line for pituitary adenoma, ~80% cure); adrenalectomy; ketoconazole/metyrapone (medical bridge)
  • Dental: adrenal crisis risk with surgery; taper steroids gradually

3. Diabetes Mellitus

  • Definition, Type 1 (autoimmune, absolute insulin deficiency, HLA-DR3/4) vs Type 2 (insulin resistance + relative deficiency, 90-95%)
  • Diagnostic criteria: FPG ≥126, OGTT 2-hr ≥200, random ≥200 with symptoms, HbA1c ≥6.5%
  • Polys: polyuria, polydipsia, polyphagia + weight loss
  • Acute complications: DKA, HHS, hypoglycaemia
  • Chronic complications tabulated: nephropathy (Kimmelstiel-Wilson), retinopathy (leading cause of blindness), neuropathy, macrovascular (CVD = leading cause of death), diabetic foot
  • T2DM treatment: metformin → SGLT-2i/GLP-1/DPP-4i/sulphonylureas → insulin
  • Periodontal disease: 6th complication of DM - critically important for BDS
  • HbA1c target <7%; monitor annually: fundoscopy, microalbuminuria, eGFR, foot exam

4. Diabetic Ketoacidosis (DKA) and Complications

  • Triad: Diabetes (glucose >200) + Ketones (BHB ≥3 mmol/L, urine ketones ≥2+) + Acidosis (pH <7.30, HCO₃ <18, anion gap >12)
  • Precipitants: infections (most common), missed insulin, new DM, illness, drugs (steroids, SGLT-2i)
  • Pathophysiology: insulin deficiency → hyperglycaemia + ketogenesis + osmotic diuresis → dehydration + electrolyte loss
  • Kussmaul breathing, acetone breath, abdominal pain, dehydration, confusion → coma
  • K⁺ paradox: initially HIGH (acidosis shifts K⁺ out of cells), but total body depleted; falls rapidly after insulin → arrhythmia risk
  • FAST protocol: Fluids (0.9% NaCl 2-4L in first 2-4 hrs) + Assess precipitant + Salt/electrolytes (K⁺ monitoring essential) + Treatment with insulin (0.1 units/kg/hr IV; only after K⁺ ≥3.5)
  • Complications of treatment: hypokalaemia (most dangerous), cerebral oedema (especially children - give mannitol), hypoglycaemia
  • DKA vs HHS comparison table included

5. Thyroid Disorders

Hypothyroidism (Detailed):
  • Causes: Hashimoto's (most common in iodine-sufficient countries, anti-TPO +ve), iodine deficiency (worldwide), post-surgery/RAI, amiodarone, congenital
  • "Everything SLOW" - bradycardia, constipation, weight gain, cold intolerance, dry skin, delayed reflexes, hoarse voice, menorrhagia, depression
  • Myxoedema: non-pitting oedema (glycosaminoglycan deposition); Queen Anne's sign (lateral eyebrow loss)
  • Myxoedema coma: emergency - IV T3 + hydrocortisone + warming
  • Labs: ↑TSH (most sensitive), ↓FT4, +ve anti-TPO, hypercholesterolaemia
  • Rx: levothyroxine 1.6 mcg/kg/day; take fasting; monitor TSH 6-8 weekly; target TSH 0.5-2.5
Thyrotoxicosis (Detailed):
  • Thyrotoxicosis ≠ Hyperthyroidism (thyrotoxicosis without hyperthyroidism = thyroiditis, factitious)
  • Graves' disease: TSI antibodies, diffuse goitre, ophthalmopathy (exophthalmos), pretibial myxoedema; HIGH RAI uptake
  • "Everything FAST and HOT" - tachycardia/AF, weight loss, heat intolerance, tremor, anxiety, diarrhoea, proximal myopathy, lid lag + stare
  • Lid lag/stare (all causes); exophthalmos (Graves' only)
  • Rx: Carbimazole/MMI (1st line medical) → RAI (most common definitive) → surgery; always start beta-blocker first for symptoms
  • Thyroid storm: hyperpyrexia + extreme tachycardia + multiorgan failure; Rx order: propranolol → PTU → Lugol's iodine (AFTER PTU) → hydrocortisone
Hyperthyroidism (Short): subset of thyrotoxicosis; high RAI uptake; Graves'/TMNG/toxic adenoma; same treatment pathway
This is a shared conversation. Sign in to Orris to start your own chat.