attachment
attachment
attachment
attachment

Make comprehensive notes for my surgery BHMS 3rd year

analyse_media
analyse_media
Reading File
Finding Sources
Finding Sources
Finding Sources
Finding Sources
Finding Sources
Finding Sources
Finding Sources
Searching the Web

BHMS 3rd year surgery oral surgery dental cysts ameloblastoma jaw tumours curriculum topics

The database is down. I have all the topic information from the images and will now write comprehensive notes from my medical knowledge base.

BHMS 3rd Year Surgery - Oral & Maxillofacial Surgery

Comprehensive Notes


UNIT 1: ANATOMY OF TEETH AND GUMS

Structure of a Tooth

A tooth has two main parts:
  • Crown - visible portion above the gum line
  • Root - embedded in the alveolar bone, anchored by periodontal ligament

Layers of the Tooth

LayerLocationCompositionKey Points
EnamelCrown96% hydroxyapatite (hardest body tissue)Avascular, acellular; cannot regenerate
DentinCrown + Root70% hydroxyapatite, 30% collagenContains dentinal tubules; slightly elastic
PulpCentral chamber + root canalLoose connective tissue, blood vessels, nervesProvides vitality; pain sensation via A-delta and C fibres
CementumRoot surfaceBone-like; 45-50% mineralAttaches periodontal ligament fibres

Periodontal Structures (Periodontium)

  1. Gingiva - keratinized mucosa around the tooth
  2. Periodontal Ligament (PDL) - collagen fibre bundles (Sharpey's fibres) suspending the tooth in the socket; 0.15-0.38 mm wide
  3. Alveolar bone - the tooth-bearing bone of the maxilla and mandible
  4. Cementum - covers root surface

Types of Teeth

TypeNumber (adult)FunctionRoot(s)
Incisors (central + lateral)8Cutting1
Canines4Tearing1 (longest root)
Premolars8Crushing/grinding1-2
Molars12 (incl. wisdom)Grinding2-3
Total adult dentition: 32 teeth (16 maxillary, 16 mandibular) Primary dentition: 20 teeth

Occlusal Surfaces and Functional Relevance

  • Cusp - pointed eminence on occlusal surface
  • Fossa - depression between cusps
  • Occlusion - the way upper and lower teeth come together
  • Angle's Classification of Occlusion:
    • Class I (Normal): Mesiobuccal cusp of upper first molar occludes with buccal groove of lower first molar
    • Class II (Retrognathic): Lower jaw is posterior
    • Class III (Prognathic): Lower jaw is anterior
  • Malocclusion - deviation from normal occlusion; causes: crowding, extra teeth, jaw discrepancies, habits (thumb-sucking)

UNIT 2: CLINICAL EXAMINATION OF TEETH AND GUMS

Normal Dentition and Gum Appearance

  • Gingiva: coral pink, stippled (like orange peel), firm, non-bleeding
  • Sulcus depth: 1-3 mm (normal)
  • No mobility, no sensitivity to percussion

Inspection of Teeth - Key Findings

CARIES (Dental Decay)
  • Demineralization by acid produced by oral bacteria (mainly Streptococcus mutans)
  • Stages:
    • White spot lesion (early; reversible)
    • Enamel caries
    • Dentinal caries
    • Pulpal involvement
  • Clinical signs: Discoloration (white/brown/black), cavity, sensitivity to sweet/cold/hot
GINGIVITIS
  • Inflammation of gingiva only; reversible
  • Caused by plaque/calculus accumulation
  • Signs: redness, swelling, bleeding on probing
  • No bone loss
PERIODONTITIS
  • Extends beyond gingiva to periodontal ligament and alveolar bone
  • Irreversible bone loss; pocket depth > 3 mm
  • Signs: bleeding, pocket formation, bone loss on X-ray, tooth mobility
  • Risk factors: diabetes, smoking, poor oral hygiene

Assessing Gums - Clinical Parameters

  • BOP (Bleeding on Probing) - sign of active inflammation
  • Pocket depth - measured with periodontal probe
  • Attachment level - loss of attachment = periodontitis
  • Recession - apical migration of gingival margin
  • Lesions - note size, colour, surface, consistency

Examining for Malocclusion and Jaw Alignment

  • Assess in all three planes: sagittal (AP), vertical, transverse
  • Use Angle's classification
  • Check overjet, overbite, crossbite, open bite
  • Jaw alignment: midline shift, asymmetry, clicking/pain in TMJ

UNIT 3: JAW TUMOURS

Classification of Jaw Tumours

Benign Tumours

TumourOriginFeatures
AmeloblastomaOdontogenic epitheliumMost common benign jaw tumour
OdontomaOdontogenic (teeth elements)Compound or complex type
CementomaCementumPeriapical area; mandible
OsteomaBoneDense radio-opaque mass
FibromaFibrous tissueFirm, smooth swelling
HemangiomaBlood vesselsCompressible; blanches on pressure
MyxomaOdontogenic ectomesenchymeLocally aggressive

Malignant Tumours

TumourNotes
Squamous Cell CarcinomaMost common oral malignancy; gingival/alveolar ridge
OsteosarcomaCommonest primary bone malignancy of jaw
ChondrosarcomaRare; mainly posterior maxilla
Burkitt's LymphomaAssociated with EBV; classic childhood jaw tumour in Africa
Multiple Myeloma"Punched-out" lesions in jaw

Clinical and Radiographic Features of Jaw Tumours

Benign - General Features:
  • Slow-growing, well-defined borders
  • Cortication (sclerotic rim) on X-ray
  • Displacement (not destruction) of teeth
  • No lymph node involvement
Malignant - General Features:
  • Rapid growth, ill-defined ("moth-eaten") borders
  • Root resorption or floating teeth
  • Paresthesia (inferior alveolar nerve involvement)
  • Cervical lymphadenopathy, fixation
Radiographic patterns:
  • Unilocular radiolucency - simple cysts, unicystic ameloblastoma
  • Multilocular (soap-bubble/honeycomb) - ameloblastoma, myxoma, giant cell tumour
  • Radio-opaque - osteoma, complex odontoma

Surgical and Non-Surgical Options

OptionIndication
EnucleationSmall, benign cystic lesions
CurettageRemoves soft tissue lining after enucleation
Marginal resectionBenign tumours with cortical involvement
Segmental resectionMalignant or large aggressive tumours; removes jaw segment
HemimandibulectomyExtensive malignant involvement
MarsupializationLarge cysts; decompression technique
Radiation therapyPost-op for malignancies or unresectable tumours
ChemotherapyMalignancies (e.g., Burkitt's, osteosarcoma)

Homeopathic Remedies for Jaw Tumours

  • Calcarea fluorica - hard, bony tumours; exostoses; cystic swellings
  • Conium maculatum - hard, slowly-growing tumours; especially in elderly
  • Silicea - suppurative lesions; indurated swellings
  • Hecla lava - specifically indicated for jaw tumours, osteitis, exostoses; made from volcanic ash
  • Phosphorus - osteosarcoma tendency; sensitive teeth and gums
  • Thuja occidentalis - soft, pedunculated growths; polyp-like lesions
  • Constitutional treatment is the backbone of homeopathic management

UNIT 4: EPULIS

Definition

Epulis (pl. epulides) = any localized swelling or tumour-like growth arising from the gingiva.

Classification

1. Fibrous Epulis (Fibroma)

  • Most common type
  • Arises from gingival connective tissue, usually interdental papilla
  • Irritant cause: calculus, rough restorations, denture flanges
  • Clinical features: Sessile or pedunculated; firm; pale pink; non-tender; does not bleed easily
  • Histology: Dense fibrous tissue; occasional calcifications; stratified squamous epithelium
  • Treatment: Surgical excision down to periosteum; remove irritant

2. Pyogenic Granuloma (Granulomatous Epulis)

  • Highly vascular lesion; rapid growth
  • Common in pregnancy (pregnancy epulis / "pregnancy tumour")
  • Clinical features: Soft, red/purple; bleeds readily; may ulcerate; rapid growth
  • Histology: Granulation tissue with proliferating capillaries, chronic inflammatory cells
  • Treatment: Excision; address pregnancy hormones; address irritant

3. Giant Cell Epulis (Peripheral Giant Cell Granuloma)

  • Arises anterior to the molars; more common in females
  • Clinical features: Red/purple, may be larger than other epulides; occasionally ulcerated; can cause superficial bone resorption
  • Histology: Multinucleated giant cells (osteoclast-like) in a fibrovascular stroma
  • Treatment: Surgical excision including periosteum; curettage of underlying bone

4. Congenital Epulis (of newborn)

  • Present at birth; maxillary alveolar ridge
  • Rarely requires treatment (regresses spontaneously)

Homeopathic Approaches to Epulis Treatment

  • Calcarea carbonica - for flabby, pale growths in plump individuals
  • Hecla lava - gingival and alveolar growths with bony involvement
  • Nitric acid - ulcerating, bleeding gingival tumours; splinter-like pain
  • Thuya - pedunculated, fleshy epulides
  • Merc sol - ulcerated, bleeding gums; foetid breath accompanying gingival lesions

UNIT 5: AMELOBLASTOMA

Definition

A benign but locally aggressive odontogenic epithelial tumour. Accounts for ~1% of oral tumours but is the most clinically significant odontogenic tumour.

Classification / Subtypes

By Growth Pattern:

  1. Multicystic (Conventional) Ameloblastoma - 86%; most common; solid or multicystic
  2. Unicystic Ameloblastoma - 13%; presents like a cyst; usually in young patients; better prognosis
  3. Peripheral (Extraosseous) Ameloblastoma - rare; in gingival soft tissue; least aggressive

Histological Subtypes of Conventional:

SubtypeFeature
FollicularIslands of epithelium resembling enamel organ
PlexiformNetwork of epithelial strands
AcanthomatousSquamous metaplasia of central cells
Granular cellGranular cytoplasm of central cells
Basal cellResembles basal cell carcinoma
DesmoplasticDense fibrous stroma; anterior jaw

Clinical Features

  • Age: Most common in 3rd-4th decade
  • Site: 80% mandible (posterior body and ramus); 20% maxilla
  • Sex: Slight male predominance
  • Presentation:
    • Painless, slow swelling of jaw
    • Facial asymmetry
    • Egg-shell crackling or missing cortex (advanced)
    • Tooth displacement, root resorption
    • Rarely pathological fracture

Radiological Findings

  • Multicystic: Multilocular "soap-bubble" or "honeycomb" appearance
  • Unicystic: Unilocular well-defined radiolucency (often around crown of unerupted lower molar - mimics dentigerous cyst)
  • Root resorption of adjacent teeth
  • Expansion and thinning of cortical plates
  • NOT radio-opaque

Treatment

TypeTreatment
UnicysticEnucleation + curettage OR marsupialization followed by enucleation; low recurrence
Conventional multicysticResection with 1-1.5 cm bone margins; reconstruction with bone graft/plate
Large/recurrentHemimandibulectomy or composite resection
PeripheralSimple local excision
Key point: Enucleation alone for multicystic type has very high recurrence (50-90%) because tumour infiltrates between bone trabeculae beyond the radiological margin.

Homeopathic Therapeutics for Ameloblastoma

  • Calcarea fluorica - hard, cystic jaw swellings; induration
  • Silicea - chronic, indolent swellings with tendency to suppurate
  • Baryta carbonica - tumours in the elderly; cervical gland involvement
  • Hecla lava - jaw tumours and exostoses
  • Referral for surgical management is recommended; homeopathy as adjunct/palliation

UNIT 6: DENTAL CYSTS

Definition

A cyst is a pathological cavity lined by epithelium, filled with fluid or semi-fluid material, and surrounded by a fibrous wall.

Classification

Odontogenic Cysts (tooth-related)

CystOriginKey Feature
Radicular (Periapical) CystMost common jaw cyst; infected dental pulpPeriapical radiolucency; attached to root apex
Residual CystRadicular cyst left after tooth extractionEdentulous area radiolucency
Dentigerous (Follicular) CystReduced enamel epithelium of unerupted toothRadiolucency around crown of unerupted tooth
Odontogenic Keratocyst (OKC)Dental lamina remnantsAggressive behaviour; high recurrence; associated with Gorlin syndrome
Lateral Periodontal CystDental lamina remnantsLateral to root in mandibular premolar area
Eruption CystFollicle of erupting toothSoft tissue cyst over erupting tooth in children

Non-Odontogenic Cysts

  • Nasopalatine duct cyst (incisive canal cyst)
  • Nasolabial (nasoalveolar) cyst
  • Stafne bone cavity (pseudocyst)

Radicular (Periapical) Cyst

Pathogenesis: Tooth infection/necrosis → Mitsuda reaction (inflammatory) → epithelial rests of Malassez proliferate → cyst formation
Clinical Features:
  • Asymptomatic unless infected
  • Swelling may be present
  • Associated tooth is non-vital (does not respond to pulp testing)
  • Egg-shell crackling sign if cortex expanded
Radiological Findings:
  • Well-defined, round/oval periapical radiolucency
  • Sclerotic (dense) border
  • Continuous with periodontal ligament space at apex
Treatment:
  • Small cysts: Root canal treatment (RCT) → periapical surgery (apicectomy + curettage)
  • Large cysts: Enucleation under local/general anaesthesia

Residual Cyst

  • Definition: A radicular cyst that was not removed at the time of tooth extraction; persists in edentulous site
  • Radiographically: well-defined radiolucency in edentulous area
  • Treatment: Enucleation and curettage

Dentigerous (Follicular) Cyst

Definition: Formed by accumulation of fluid between the reduced enamel epithelium and the crown of an unerupted tooth.
Most commonly associated with: Lower 3rd molar (wisdom tooth) > upper canine > lower premolar
Clinical Features:
  • Usually asymptomatic; found on routine X-ray
  • May cause jaw expansion, facial asymmetry
  • May displace or resorb adjacent teeth
  • Risk of ameloblastoma developing from cyst wall (uncommon but important)
Radiological Findings:
  • Well-defined unilocular radiolucency attached to the cemento-enamel junction (CEJ) of an unerupted tooth
  • Crown of the tooth appears to be within the cyst
  • Sclerotic border
Treatment:
  • Marsupialization (for large cysts in young patients - allows eruption of tooth)
  • Enucleation + tooth removal (for most cases)

Odontogenic Keratocyst (OKC)

Key characteristics:
  • Thin, friable wall lined by parakeratinised stratified squamous epithelium
  • Corrugated (wavy) surface
  • Flat basal cell layer (palisaded with polarized nuclei)
  • High recurrence rate (25-60%) due to: thin friable wall (remnants left behind), satellite cysts, epithelial budding
Association: Multiple OKCs = Gorlin-Goltz Syndrome (Nevoid Basal Cell Carcinoma Syndrome) - autosomal dominant; PTCH1 gene mutation
Clinical Features:
  • 2nd-3rd decade; male > female
  • Mandible (body and ramus) > maxilla
  • Can grow very large before symptoms
  • Contents: creamy/cheesy keratin
Radiological:
  • Unilocular or multilocular radiolucency
  • Scalloped borders
  • Grows along bone (does not expand cortex as much as other cysts)
  • May cause root resorption
Treatment:
  • Enucleation + curettage + peripheral ostectomy (Carnoy's solution chemical fixative to kill satellite cysts)
  • Marsupialization as adjunct
  • Long-term follow-up essential (10 years minimum) due to high recurrence

Surgical Enucleation: Technique and Follow-Up

Enucleation = complete removal of the cyst in one piece, separating the cyst wall from bone.
Procedure:
  1. Perioperative: history, radiograph, pre-op assessment
  2. Local/general anaesthesia
  3. Incision - mucoperiosteal flap over cyst site
  4. Bone window - remove overlying bone with bur/chisel (if intact)
  5. Separate cyst wall from bone using periosteal elevator (Mitchel's trimmer)
  6. Remove cyst intact; send for histopathology
  7. Curettage of bone cavity to remove remnants
  8. Irrigation with saline
  9. Closure - primary or secondary intention
  10. Pack with Whitehead's varnish/BIPP (Bismuth Iodoform Paraffin Paste) if cavity large
Follow-Up Protocol:
  • Review at 1 week (wound check), 1 month (healing), 3 months
  • Radiographs at 6 months, 1 year, then annually
  • For OKC: annual follow-up for 5-10 years
  • Check for recurrence: new radiolucency at same site

Marsupialization (Partsch I Operation)

  • Creates a surgical window into cyst; evacuates contents
  • Oral mucosa sutured to cyst lining - creates a pouch open to oral cavity
  • Reduces intra-cystic pressure; allows gradual bone fill
  • Used for: large cysts in children (preserves vital structures), dentigerous cysts (allows tooth eruption)
  • Disadvantage: no histopathology of entire lining; takes months to resolve

UNIT 7: ALVEOLAR ABSCESS

Definition

An alveolar abscess (dental abscess / dentoalveolar abscess) is a localized collection of pus in the alveolar bone surrounding a tooth, secondary to pulpal or periodontal infection.

Types

  1. Acute Dentoalveolar Abscess - rapid onset, intense pain
  2. Chronic Dentoalveolar Abscess - low-grade, sinus tract (parulis) may be present
  3. Phoenix Abscess - acute exacerbation of a chronic periapical lesion

Causes

  • Dental caries advancing to pulp necrosis (most common)
  • Periodontal disease (periodontal abscess)
  • Traumatic tooth injury
  • Failed root canal treatment
  • Cracked tooth syndrome
  • Partially erupted tooth (pericoronitis)

Clinical Features

Local:
  • Severe throbbing toothache (worse on biting/percussion)
  • Swelling of face (buccal/labial space)
  • Tenderness on percussion of offending tooth
  • Non-vital tooth (no response to cold/electric pulp test)
  • Mobile tooth
  • Pus discharge via sinus tract (chronic type)
Systemic (if spreading):
  • Fever, malaise, raised WBC
  • Trismus (if masseteric/pterygoid space involved)
  • Dysphagia, dyspnoea (if deep neck spaces involved - Ludwig's angina)
  • Lymphadenopathy (regional)

Radiological Findings

  • Periapical radiolucency with widened PDL space (early)
  • Ill-defined bone destruction (acute)
  • Well-defined sclerotic periapical lesion = chronic abscess/granuloma

Spread of Infection

  • Buccal space (most common) - cheek swelling
  • Palatal space - maxillary palatal roots
  • Submandibular space - lower 2nd/3rd molar
  • Ludwig's angina - bilateral submandibular + sublingual + submental space - EMERGENCY
  • Cavernous sinus thrombosis (rare; from upper tooth via angular vein)

Drainage Techniques

Intraoral Drainage

  1. Via root canal (pulp chamber) - open access; allows drainage through tooth
  2. Incision and Drainage (I&D):
    • Indication: soft fluctuant swelling pointing intraorally
    • Technique: horizontal incision through most fluctuant point; blunt dissection; insert corrugated rubber drain; suture drain in place; daily saline irrigation
    • Instruments: No.15 blade, Spencer Wells/Mosquito forceps, corrugated drain, 3-0 silk suture

Extraoral Drainage

  • Used when: swelling has extended extraorally; intraoral access limited; deep space infections
  • Technique: incision in skin crease inferior to lower border of mandible; blunt dissection to depth of abscess; Hilton's method (blunt spreading); drain insertion
  • For Ludwig's angina: emergency drainage of all spaces + airway management (intubation/tracheostomy)

Additional Treatment

  • Antibiotics: Amoxicillin 500mg TDS x 5 days (first line); Metronidazole for anaerobes; Clindamycin if penicillin allergic
  • Analgesics: NSAIDs (Ibuprofen), Paracetamol
  • Definitive treatment: Tooth extraction or root canal treatment (once acute phase settled)

Homeopathic Management for Dental Abscesses

  • Belladonna - early acute stage; throbbing pain; hot, red, swollen; fever
  • Hepar sulphuris calcareum - promotes suppuration (low potency) or aborts (high potency); extreme sensitivity to touch; chilly patient
  • Myristica sebifera - "homeopathic knife"; promotes drainage; speeds up suppuration
  • Silicea - chronic abscess; sinus tracts; slow healing; promotes expulsion of foreign matter
  • Mercurius solubilis/vivus - profuse salivation; foetid breath; gum ulceration; worse at night
  • Gunpowder (Kali bich + Ferrum phos + Charcoal) - septic conditions; chronic abscess
  • Pyrogenium - septic states; offensive discharges; high fever disproportionate to pulse

UNIT 8: INTEGRATED CLINICAL EXAMINATION

Dental and Gum Examination Protocol

Systematic Approach (IPDPA)

  1. Inspection - visual examination of teeth and gums
  2. Palpation - assess swellings, tenderness, lymph nodes
  3. Percussion - tenderness = periapical pathology
  4. Probing - pocket depth, bleeding on probing
  5. Assessment - vitality testing (cold, EPT)

Documentation and Communication

  • Chart all findings using FDI (Federation Dentaire Internationale) tooth numbering system
  • Record: mobility, pocket depths, furcation involvement, BOP, recession
  • Communicate using dental nomenclature
  • Differential diagnoses to be listed
  • Referral criteria: malignancy suspicion, spreading infections, complex surgical cases

Summary Table: Key Differentials at a Glance

ConditionKey RadiologyKey Clinical SignTreatment
Radicular cystPeriapical radiolucency with sclerotic rimNon-vital toothRCT or enucleation
Dentigerous cystRadiolucency around crown of unerupted toothUnerupted toothEnucleation/marsupialization
OKCScalloped multilocular; grows along boneKeratin contentsEnucleation + Carnoy's; long follow-up
Residual cystRadiolucency in edentulous areaPrevious extraction siteEnucleation
AmeloblastomaSoap-bubble multilocularPainless jaw swellingResection with margins
Alveolar abscessPeriapical radiolucency ± destructionTender, non-vital tooth; swellingDrain + antibiotics + definitive dental Rx
Fibrous epulisNormal or slight bone resorptionFirm pink gingival massExcision
Giant cell epulisSuperficial bone cup-shaped resorptionPurple-red gingival massExcision + periosteal curettage

Important Homeopathic Integration Note for BHMS Exam: In BHMS exams, always include homeopathic management as a parallel column or separate section. Key remedies to remember: Hecla lava (jaw/bone), Calcarea fluorica (cysts/hard tumours), Silicea (suppuration/sinuses), Myristica (drainage), Hepar sulph (abscess - suppuration), Merc sol (gum/mouth infections), Thuja (soft growths/epulis).

These notes cover all the SLOs identified in your curriculum images (pages 224-228), organized unit-wise for easy revision. Let me know if you want any topic expanded further, mnemonics added, or want these as a downloadable PDF/Word document.

Can you convert this into a word / html file , make it colourful structured, pointed , use arrows and avoid useless words , minimum words

Reading File
Running Command

mkdir -p /tmp/workspace/bhms-surgery && ls /tmp/workspace/bhms-surgery/

Writing File

~/bhms-surgery/create_notes.py

from docx import Document
from docx.shared import Pt, Inches, RGBColor
from docx.enum.text import WD_ALIGN_PARAGRAPH
from docx.oxml.ns import qn
from docx.oxml import OxmlElement
import copy

doc = Document()

# ── PAGE MARGINS ──────────────────────────────────────────────────────────────
from docx.shared import Inches
section = doc.sections[0]
section.top_margin    = Inches(0.6)
section.bottom_margin = Inches(0.6)
section.left_margin   = Inches(0.8)
section.right_margin  = Inches(0.8)

# ── DEFAULT FONT ──────────────────────────────────────────────────────────────
normal = doc.styles["Normal"]
normal.font.name = "Calibri"
normal.font.size = Pt(10)

# ── COLOUR PALETTE ────────────────────────────────────────────────────────────
COL = {
    "navy":    RGBColor(0x1A, 0x3A, 0x5C),  # unit headings
    "teal":    RGBColor(0x00, 0x7B, 0x83),  # sub-headings
    "orange":  RGBColor(0xD9, 0x6B, 0x00),  # key terms / labels
    "red":     RGBColor(0xC0, 0x39, 0x2B),  # important / danger
    "green":   RGBColor(0x1E, 0x8B, 0x4C),  # treatment / homeo
    "purple":  RGBColor(0x6A, 0x0D, 0x91),  # classification
    "grey":    RGBColor(0x55, 0x55, 0x55),  # body text
    "black":   RGBColor(0x00, 0x00, 0x00),
    "white":   RGBColor(0xFF, 0xFF, 0xFF),
}

# ── SHADING HELPER ────────────────────────────────────────────────────────────
def shade_cell(cell, hex_color):
    tc   = cell._tc
    tcPr = tc.get_or_add_tcPr()
    shd  = OxmlElement("w:shd")
    shd.set(qn("w:val"),   "clear")
    shd.set(qn("w:color"), "auto")
    shd.set(qn("w:fill"),  hex_color)
    tcPr.append(shd)

def set_cell_border(cell, **kwargs):
    tc   = cell._tc
    tcPr = tc.get_or_add_tcPr()
    tcBorders = OxmlElement("w:tcBorders")
    for edge in ("top","left","bottom","right"):
        elm = OxmlElement(f"w:{edge}")
        elm.set(qn("w:val"),   "single")
        elm.set(qn("w:sz"),    "4")
        elm.set(qn("w:color"), "AAAAAA")
        tcBorders.append(elm)
    tcPr.append(tcBorders)

# ── HELPER: add a coloured heading paragraph ──────────────────────────────────
def unit_heading(text, color=None, bg_hex=None, size=14):
    p = doc.add_paragraph()
    p.paragraph_format.space_before = Pt(10)
    p.paragraph_format.space_after  = Pt(2)
    run = p.add_run(f"  {text}  ")
    run.bold      = True
    run.font.size = Pt(size)
    run.font.color.rgb = COL["white"] if bg_hex else (color or COL["navy"])
    if bg_hex:
        # shade the paragraph background via XML
        pPr  = p._p.get_or_add_pPr()
        shd  = OxmlElement("w:shd")
        shd.set(qn("w:val"),   "clear")
        shd.set(qn("w:color"), "auto")
        shd.set(qn("w:fill"),  bg_hex)
        pPr.append(shd)
    return p

def sub_heading(text, color=None, size=11):
    p = doc.add_paragraph()
    p.paragraph_format.space_before = Pt(6)
    p.paragraph_format.space_after  = Pt(1)
    run = p.add_run(f"▶  {text}")
    run.bold      = True
    run.font.size = Pt(size)
    run.font.color.rgb = color or COL["teal"]
    return p

def bullet(text, indent=0, arrow="➤", color=None, bold_part=None):
    """Add a bullet line. bold_part = string that will be bolded in text."""
    p = doc.add_paragraph()
    p.paragraph_format.left_indent   = Pt(18 + indent*14)
    p.paragraph_format.space_before  = Pt(1)
    p.paragraph_format.space_after   = Pt(1)
    p.paragraph_format.first_line_indent = Pt(-14)
    r0 = p.add_run(f"{arrow}  ")
    r0.font.color.rgb = color or COL["orange"]
    r0.font.size = Pt(10)
    if bold_part and bold_part in text:
        idx = text.index(bold_part)
        before = text[:idx]
        after  = text[idx+len(bold_part):]
        if before:
            rb = p.add_run(before)
            rb.font.size = Pt(10); rb.font.color.rgb = COL["grey"]
        rb2 = p.add_run(bold_part)
        rb2.bold = True; rb2.font.size = Pt(10); rb2.font.color.rgb = COL["black"]
        if after:
            rb3 = p.add_run(after)
            rb3.font.size = Pt(10); rb3.font.color.rgb = COL["grey"]
    else:
        r1 = p.add_run(text)
        r1.font.size = Pt(10)
        r1.font.color.rgb = color or COL["grey"]
    return p

def key_value(key, val, key_color=None, val_color=None):
    p = doc.add_paragraph()
    p.paragraph_format.left_indent  = Pt(18)
    p.paragraph_format.space_before = Pt(1)
    p.paragraph_format.space_after  = Pt(1)
    rk = p.add_run(f"{key}:  ")
    rk.bold = True; rk.font.size = Pt(10)
    rk.font.color.rgb = key_color or COL["orange"]
    rv = p.add_run(val)
    rv.font.size = Pt(10)
    rv.font.color.rgb = val_color or COL["grey"]
    return p

def add_table(headers, rows, hdr_hex="1A3A5C"):
    table = doc.add_table(rows=1+len(rows), cols=len(headers))
    table.style = "Table Grid"
    hdr_row = table.rows[0]
    for i, h in enumerate(headers):
        cell = hdr_row.cells[i]
        cell.text = h
        shade_cell(cell, hdr_hex)
        cell.paragraphs[0].runs[0].bold = True
        cell.paragraphs[0].runs[0].font.color.rgb = COL["white"]
        cell.paragraphs[0].runs[0].font.size = Pt(9)
    for ri, row in enumerate(rows):
        tr = table.rows[ri+1]
        bg = "F0F8FF" if ri % 2 == 0 else "FFFFFF"
        for ci, val in enumerate(row):
            cell = tr.cells[ci]
            cell.text = val
            shade_cell(cell, bg)
            cell.paragraphs[0].runs[0].font.size = Pt(9)
            cell.paragraphs[0].runs[0].font.color.rgb = COL["grey"]
    doc.add_paragraph()

def divider():
    p = doc.add_paragraph("─" * 80)
    p.paragraph_format.space_before = Pt(4)
    p.paragraph_format.space_after  = Pt(4)
    for run in p.runs:
        run.font.color.rgb = RGBColor(0xCC,0xCC,0xCC)
        run.font.size = Pt(7)

# ════════════════════════════════════════════════════════════════════════════
# COVER / TITLE
# ════════════════════════════════════════════════════════════════════════════
unit_heading("BHMS 3RD YEAR  |  SURGERY NOTES", bg_hex="1A3A5C", size=16)
p = doc.add_paragraph()
p.paragraph_format.space_after = Pt(2)
r = p.add_run("  Oral & Maxillofacial Surgery  ·  Complete Revision Notes")
r.font.color.rgb = COL["teal"]; r.font.size = Pt(11); r.italic = True

divider()

# ════════════════════════════════════════════════════════════════════════════
# UNIT 1 — TOOTH ANATOMY
# ════════════════════════════════════════════════════════════════════════════
unit_heading("UNIT 1 — ANATOMY OF TEETH & GUMS", bg_hex="007B83", size=13)

sub_heading("Tooth Layers", color=COL["navy"])
add_table(
    ["Layer", "Location", "Composition", "Key Point"],
    [
        ["Enamel",   "Crown",         "96% hydroxyapatite",             "Hardest tissue · avascular · no regeneration"],
        ["Dentin",   "Crown + Root",  "70% mineral, 30% collagen",      "Dentinal tubules · slightly elastic"],
        ["Pulp",     "Central canal", "Vessels + nerves (loose CT)",    "Vitality · pain via Aδ & C fibres"],
        ["Cementum", "Root surface",  "Bone-like, 45% mineral",         "Attaches PDL (Sharpey's fibres)"],
    ]
)

sub_heading("Periodontal Structures (Periodontium)", color=COL["navy"])
for item in [
    "Gingiva → keratinized mucosa around tooth",
    "PDL (Periodontal Ligament) → Sharpey's fibres · 0.15–0.38 mm wide",
    "Alveolar bone → tooth-bearing bone of maxilla & mandible",
    "Cementum → root coverage; anchors PDL",
]:
    bullet(item)

sub_heading("Types of Teeth (Adult = 32)", color=COL["navy"])
add_table(
    ["Type", "No.", "Function", "Roots"],
    [
        ["Incisors",  "8",  "Cutting",          "1"],
        ["Canines",   "4",  "Tearing",           "1 (longest)"],
        ["Premolars", "8",  "Crushing/grinding", "1–2"],
        ["Molars",    "12", "Grinding",          "2–3"],
    ]
)

sub_heading("Occlusion & Angle's Classification", color=COL["navy"])
add_table(
    ["Class", "Description"],
    [
        ["I (Normal)",    "Upper 1st molar mesiobuccal cusp → buccal groove of lower 1st molar"],
        ["II (Retrognathic)", "Lower jaw posterior"],
        ["III (Prognathic)",  "Lower jaw anterior"],
    ],
    hdr_hex="007B83"
)

divider()

# ════════════════════════════════════════════════════════════════════════════
# UNIT 2 — CLINICAL EXAMINATION
# ════════════════════════════════════════════════════════════════════════════
unit_heading("UNIT 2 — CLINICAL EXAMINATION OF TEETH & GUMS", bg_hex="007B83", size=13)

sub_heading("Normal Gingiva", color=COL["navy"])
for x in ["Coral pink · stippled (orange-peel texture) · firm",
          "Sulcus depth 1–3 mm · no bleeding · no mobility"]:
    bullet(x, arrow="✔", color=COL["green"])

sub_heading("Common Conditions", color=COL["navy"])
add_table(
    ["Condition", "Limits", "Key Sign", "Bone Loss?"],
    [
        ["Caries",       "Enamel → pulp",         "Cavity · sensitivity · discoloration", "No"],
        ["Gingivitis",   "Gingiva only",           "Bleeding · redness · swelling",        "No"],
        ["Periodontitis","Gingiva + PDL + bone",   "Pockets >3mm · mobility",              "YES"],
    ]
)

sub_heading("Examination Protocol (IPDPA)", color=COL["navy"])
for step in [
    "Inspection → visual teeth & gums",
    "Palpation → swellings, lymph nodes",
    "Percussion → tenderness = periapical pathology",
    "Probing → pocket depth, BOP",
    "Assessment → vitality testing (cold/EPT)",
]:
    bullet(step, arrow="→")

sub_heading("Malocclusion / Jaw Alignment", color=COL["navy"])
for x in ["Check: overjet, overbite, crossbite, open bite, midline shift",
          "3 planes: sagittal (AP) · vertical · transverse",
          "TMJ: clicking, pain, asymmetry"]:
    bullet(x)

divider()

# ════════════════════════════════════════════════════════════════════════════
# UNIT 3 — JAW TUMOURS
# ════════════════════════════════════════════════════════════════════════════
unit_heading("UNIT 3 — JAW TUMOURS", bg_hex="6A0D91", size=13)

sub_heading("Classification", color=COL["purple"])
add_table(
    ["Benign", "Malignant"],
    [
        ["Ameloblastoma (commonest)",        "Squamous Cell Carcinoma (commonest oral Ca)"],
        ["Odontoma (compound/complex)",      "Osteosarcoma"],
        ["Ossifying fibroma",                "Chondrosarcoma"],
        ["Osteoma · Myxoma · Hemangioma",    "Burkitt's lymphoma (EBV · children · Africa)"],
        ["Cementoma",                        "Multiple myeloma (punched-out lesions)"],
    ],
    hdr_hex="6A0D91"
)

sub_heading("Benign vs Malignant — Key X-ray & Clinical Clues", color=COL["purple"])
add_table(
    ["Feature", "Benign", "Malignant"],
    [
        ["Borders",     "Well-defined · corticated",      "Ill-defined · moth-eaten"],
        ["Teeth",       "Displaced",                       "Root resorption · floating teeth"],
        ["Nerve",       "Rarely affected",                 "Paresthesia (IAN)"],
        ["LN",          "Absent",                          "Cervical lymphadenopathy"],
        ["Growth",      "Slow",                            "Rapid"],
    ]
)

sub_heading("Surgical Options", color=COL["purple"])
add_table(
    ["Procedure", "Indication"],
    [
        ["Enucleation",           "Small benign cysts"],
        ["Marginal resection",    "Benign + cortical involvement"],
        ["Segmental resection",   "Large aggressive/malignant"],
        ["Hemimandibulectomy",    "Extensive malignant"],
        ["Marsupialization",      "Large cysts (decompression)"],
        ["Chemo/Radiotherapy",    "Malignant tumours"],
    ],
    hdr_hex="6A0D91"
)

sub_heading("Homeopathic Remedies — Jaw Tumours", color=COL["green"])
for r in [
    "Hecla lava → jaw tumours, osteitis, exostoses (FIRST choice)",
    "Calcarea fluorica → hard bony tumours, cysts",
    "Conium maculatum → hard slowly growing tumours; elderly",
    "Phosphorus → osteosarcoma tendency; sensitive gums",
    "Thuja → soft pedunculated growths",
    "Silicea → suppurative, indurated swellings",
]:
    bullet(r, arrow="◉", color=COL["green"])

divider()

# ════════════════════════════════════════════════════════════════════════════
# UNIT 4 — EPULIS
# ════════════════════════════════════════════════════════════════════════════
unit_heading("UNIT 4 — EPULIS", bg_hex="D96B00", size=13)

sub_heading("Definition", color=COL["orange"])
bullet("Epulis = any localised gingival tumour-like swelling", arrow="→")

sub_heading("Types at a Glance", color=COL["orange"])
add_table(
    ["Type", "Key Feature", "Histology", "Treatment"],
    [
        ["Fibrous (commonest)",        "Firm · pale pink · sessile/pedunculated",   "Dense fibrous CT",                    "Excision + remove irritant"],
        ["Pyogenic Granuloma",         "Red/purple · bleeds easily · rapid growth", "Granulation tissue · capillary prolif","Excision · treat in pregnancy"],
        ["Giant Cell Epulis",          "Purple-red · anterior molars · F > M",      "Multinucleate giant cells (osteoclast)","Excision + periosteal curettage"],
        ["Congenital Epulis (newborn)","At birth · maxillary ridge",                "—",                                   "Often regresses spontaneously"],
    ],
    hdr_hex="D96B00"
)

sub_heading("Homeopathic Remedies — Epulis", color=COL["green"])
for r in [
    "Thuya → pedunculated, fleshy epulides",
    "Calcarea carbonica → flabby pale growths; plump patients",
    "Hecla lava → bony involvement",
    "Nitric acid → ulcerating, bleeding gums; splinter pain",
    "Merc sol → ulcerated gums + foetid breath",
]:
    bullet(r, arrow="◉", color=COL["green"])

divider()

# ════════════════════════════════════════════════════════════════════════════
# UNIT 5 — AMELOBLASTOMA
# ════════════════════════════════════════════════════════════════════════════
unit_heading("UNIT 5 — AMELOBLASTOMA", bg_hex="C0392B", size=13)

sub_heading("Key Facts", color=COL["red"])
for x in [
    "Most common benign odontogenic tumour · locally aggressive",
    "Origin → odontogenic epithelium",
    "Age → 3rd–4th decade · Site → 80% mandible (post. ramus)",
]:
    bullet(x, arrow="⚑", color=COL["red"])

sub_heading("Subtypes", color=COL["red"])
add_table(
    ["Type", "%", "Notes"],
    [
        ["Multicystic (conventional)", "86%", "Soap-bubble X-ray · HIGH recurrence with enucleation alone"],
        ["Unicystic",                  "13%", "Young patients · mimics dentigerous cyst · better prognosis"],
        ["Peripheral (extraosseous)",  "<1%", "Gingival soft tissue · least aggressive"],
    ],
    hdr_hex="C0392B"
)

sub_heading("Histological Variants (Multicystic)", color=COL["red"])
for v in ["Follicular", "Plexiform", "Acanthomatous", "Granular cell", "Basal cell", "Desmoplastic (anterior jaw)"]:
    bullet(v, arrow="→")

sub_heading("Radiological Findings", color=COL["red"])
for x in [
    "Multicystic → Soap-bubble / honeycomb multilocular radiolucency",
    "Unicystic → Unilocular radiolucency around unerupted lower molar",
    "Root resorption · cortical expansion/thinning · NOT radio-opaque",
]:
    bullet(x, arrow="☞")

sub_heading("Treatment", color=COL["red"])
add_table(
    ["Type", "Treatment", "Note"],
    [
        ["Unicystic",          "Enucleation + curettage OR marsupialization",          "Low recurrence"],
        ["Multicystic (small)","Resection with 1–1.5 cm bone margins",                 "⚠ Enucleation alone → 50–90% recurrence"],
        ["Large/recurrent",    "Hemimandibulectomy + bone reconstruction",              "Free flap / bone graft"],
        ["Peripheral",         "Simple local excision",                                 "Minimal recurrence"],
    ],
    hdr_hex="C0392B"
)

sub_heading("Homeopathic Therapeutics — Ameloblastoma", color=COL["green"])
for r in [
    "Calcarea fluorica → hard cystic jaw swellings",
    "Hecla lava → jaw tumours / exostoses",
    "Silicea → chronic indolent swellings",
    "Baryta carbonica → elderly; gland involvement",
    "⚠ Refer for surgery · homeopathy as adjunct/palliation",
]:
    bullet(r, arrow="◉", color=COL["green"])

divider()

# ════════════════════════════════════════════════════════════════════════════
# UNIT 6 — DENTAL CYSTS
# ════════════════════════════════════════════════════════════════════════════
unit_heading("UNIT 6 — DENTAL CYSTS", bg_hex="1E8B4C", size=13)

sub_heading("Definition", color=COL["green"])
bullet("Cyst = pathological cavity lined by EPITHELIUM · fluid/semi-fluid contents · fibrous wall", arrow="→")

sub_heading("Classification", color=COL["green"])
add_table(
    ["Cyst", "Origin", "X-ray", "Key Feature"],
    [
        ["Radicular (Periapical)", "Infected pulp → Malassez rests",         "Periapical RLcy + sclerotic rim",        "Most common jaw cyst · non-vital tooth"],
        ["Residual",               "Radicular cyst left after extraction",    "RLcy in edentulous area",                "No tooth present"],
        ["Dentigerous (Follicular)","Reduced enamel epithelium of unerupted tooth","RLcy around CROWN at CEJ",      "Lower 3rd molar > upper canine"],
        ["OKC",                    "Dental lamina remnants",                  "Scalloped multi/unilocular",             "Keratinized lining · HIGH recurrence"],
        ["Eruption cyst",          "Follicle of erupting tooth",              "Soft tissue (no bone)",                  "Children · over erupting tooth"],
    ],
    hdr_hex="1E8B4C"
)

sub_heading("Radicular Cyst — Pathogenesis", color=COL["navy"])
for step in [
    "Caries → pulp necrosis",
    "→ Epithelial rests of Malassez stimulated",
    "→ Epithelial proliferation",
    "→ Cyst formation",
]:
    bullet(step, arrow="→")

sub_heading("OKC — Special Points", color=COL["green"])
for x in [
    "Lining → thin, parakeratinised, corrugated; palisaded flat basal cells",
    "Contents → creamy/cheesy keratin",
    "Recurrence → 25–60% (satellite cysts, thin friable wall)",
    "Gorlin-Goltz Syndrome → multiple OKCs + basal cell naevi + PTCH1 gene (AD)",
    "Treatment → Enucleation + Carnoy's solution + peripheral ostectomy · 10-yr follow-up",
]:
    bullet(x, arrow="⚠" if "Recurrence" in x or "Gorlin" in x else "→", color=COL["red"] if "Recurrence" in x or "Gorlin" in x else COL["grey"])

sub_heading("Dentigerous Cyst — Key Points", color=COL["green"])
for x in [
    "Fluid between reduced enamel epithelium & crown of unerupted tooth",
    "X-ray → RLcy attached at CEJ; crown inside cyst",
    "⚠ Risk of ameloblastoma transformation from cyst wall",
    "Treatment → Marsupialization (children, large) OR Enucleation + extraction",
]:
    bullet(x, arrow="⚠" if "⚠" in x else "→", color=COL["red"] if "⚠" in x else COL["grey"])

sub_heading("Surgical Enucleation — Steps", color=COL["navy"])
for i, step in enumerate([
    "LA/GA + perioperative assessment",
    "Mucoperiosteal flap incision",
    "Bone window (bur/chisel)",
    "Cyst wall separated with periosteal elevator",
    "Cyst removed INTACT → histopathology",
    "Curettage of cavity + saline irrigation",
    "Primary closure OR BIPP pack (large cavity)",
], 1):
    bullet(f"Step {i} → {step}", arrow=f"{i}.")

sub_heading("Follow-Up Protocol", color=COL["navy"])
add_table(
    ["Time", "Action"],
    [
        ["1 week",     "Wound check"],
        ["1 month",    "Healing assessment"],
        ["3 months",   "Clinical review"],
        ["6 months",   "X-ray"],
        ["1 year",     "X-ray"],
        ["Annual",     "X-ray for 5–10 yrs (OKC)"],
    ],
    hdr_hex="1A3A5C"
)

sub_heading("Marsupialization (Partsch I)", color=COL["navy"])
for x in [
    "Creates surgical window → cyst opens to oral cavity",
    "Reduces intracystic pressure → bone fills gradually",
    "Used → large cysts in children; dentigerous cysts (allows tooth eruption)",
    "⚠ Disadvantage → no complete histopathology; slow resolution",
]:
    bullet(x, arrow="→")

divider()

# ════════════════════════════════════════════════════════════════════════════
# UNIT 7 — ALVEOLAR ABSCESS
# ════════════════════════════════════════════════════════════════════════════
unit_heading("UNIT 7 — ALVEOLAR ABSCESS", bg_hex="C0392B", size=13)

sub_heading("Definition & Types", color=COL["red"])
for x in [
    "Acute dentoalveolar abscess → rapid onset · severe pain",
    "Chronic dentoalveolar abscess → sinus tract (parulis) present",
    "Phoenix abscess → acute exacerbation of chronic periapical lesion",
]:
    bullet(x, arrow="→")

sub_heading("Causes", color=COL["red"])
add_table(
    ["Cause", "Mechanism"],
    [
        ["Dental caries (commonest)", "Pulp necrosis → periapical spread"],
        ["Periodontal disease",       "Pocket → bone → abscess"],
        ["Trauma",                    "Pulp necrosis"],
        ["Failed RCT",                "Residual infection"],
        ["Pericoronitis",             "Partially erupted wisdom tooth"],
    ],
    hdr_hex="C0392B"
)

sub_heading("Clinical Features", color=COL["red"])
for x in [
    "LOCAL → throbbing pain · percussion tenderness · non-vital tooth · swelling · mobility",
    "CHRONIC → sinus tract (parulis) · minimal pain",
    "SYSTEMIC (spreading) → fever · lymphadenopathy · trismus · dysphagia",
]:
    bullet(x, arrow="☞")

sub_heading("Spread of Infection → Spaces", color=COL["red"])
for sp in [
    "Buccal space (commonest) → cheek swelling",
    "Palatal space → maxillary palatal roots",
    "Submandibular space → lower 2nd/3rd molar",
    "Ludwig's angina → bilateral submandibular + sublingual + submental → ⚠ AIRWAY EMERGENCY",
    "Cavernous sinus thrombosis (rare) → upper tooth via angular vein → life-threatening",
]:
    color = COL["red"] if "EMERGENCY" in sp or "thrombosis" in sp else COL["grey"]
    bullet(sp, arrow="→", color=color)

sub_heading("Radiological Findings", color=COL["red"])
for x in [
    "Early → widened PDL space",
    "Acute → ill-defined periapical bone destruction",
    "Chronic → well-defined sclerotic periapical lesion",
]:
    bullet(x, arrow="→")

sub_heading("Drainage Techniques", color=COL["navy"])
add_table(
    ["Route", "Indication", "Technique"],
    [
        ["Via root canal", "Early · accessible tooth", "Open access cavity → pus drains through tooth"],
        ["Intraoral I&D", "Fluctuant swelling pointing intraorally", "Horizontal incision at fluctuant point → blunt dissection → drain inserted → suture"],
        ["Extraoral I&D", "Extraoral extension / deep space / Ludwig's", "Incision below mandibular border (skin crease) → Hilton's method → drain inserted"],
        ["Tracheostomy", "Ludwig's angina → airway compromise", "Emergency airway securing"],
    ],
    hdr_hex="1A3A5C"
)

sub_heading("Medical Treatment", color=COL["navy"])
for x in [
    "Amoxicillin 500 mg TDS × 5 days (first line)",
    "Metronidazole 400 mg TDS (anaerobes)",
    "Clindamycin (if penicillin allergy)",
    "NSAIDs + Paracetamol (analgesia)",
    "Definitive → Extraction OR RCT once acute phase settled",
]:
    bullet(x, arrow="→")

sub_heading("Homeopathic Management — Dental Abscess", color=COL["green"])
add_table(
    ["Remedy", "Indication"],
    [
        ["Belladonna",           "Early acute · throbbing · hot · red · fever"],
        ["Hepar sulphur (low)",  "Promotes suppuration · extreme touch sensitivity"],
        ["Hepar sulphur (high)", "Aborts suppuration"],
        ["Myristica sebifera",   "'Homeopathic knife' → promotes rapid drainage"],
        ["Silicea",              "Chronic abscess · sinus tract · slow healing"],
        ["Merc sol",             "Salivation · foetid breath · gum ulceration · worse at night"],
        ["Pyrogenium",           "Septic state · offensive discharge · high fever"],
    ],
    hdr_hex="1E8B4C"
)

divider()

# ════════════════════════════════════════════════════════════════════════════
# QUICK REFERENCE — MASTER COMPARISON TABLE
# ════════════════════════════════════════════════════════════════════════════
unit_heading("QUICK REFERENCE — MASTER TABLE", bg_hex="1A3A5C", size=13)
add_table(
    ["Condition", "X-ray", "Key Clinical Sign", "Treatment"],
    [
        ["Radicular cyst",    "Periapical RLcy + sclerotic rim",          "Non-vital tooth",                  "RCT or enucleation"],
        ["Residual cyst",     "RLcy in edentulous area",                  "Previous extraction site",         "Enucleation"],
        ["Dentigerous cyst",  "RLcy around crown at CEJ",                 "Unerupted tooth",                  "Enucleation/marsupialization"],
        ["OKC",               "Scalloped multilocular; grows along bone", "Keratin contents; high recurrence","Enucleation + Carnoy's · long F/U"],
        ["Ameloblastoma",     "Soap-bubble multilocular",                 "Painless jaw swelling",            "Resection with margins"],
        ["Alveolar abscess",  "Periapical RLcy ± bone destruction",       "Tender; non-vital; swelling",      "Drain + Abx + Extraction/RCT"],
        ["Fibrous epulis",    "Normal / slight resorption",               "Firm pink gingival mass",          "Excision"],
        ["Giant cell epulis", "Cup-shaped bone resorption",               "Purple-red gingival mass",         "Excision + periosteal curettage"],
    ]
)

# KEY HOMEOPATHIC REMEDIES CHEAT SHEET
unit_heading("HOMEOPATHY CHEAT SHEET", bg_hex="6A0D91", size=13)
add_table(
    ["Remedy", "Key Indication"],
    [
        ["Hecla lava",           "Jaw tumours · exostoses · alveolar swellings — FIRST CHOICE"],
        ["Calcarea fluorica",    "Hard tumours · cysts · bone hypertrophy"],
        ["Silicea",              "Chronic suppuration · sinuses · slow healing · OKC/abscess"],
        ["Myristica sebifera",   "Dental abscess — rapid drainage ('homeopathic knife')"],
        ["Hepar sulphur",        "Abscess — low pot. → suppurate; high pot. → abort"],
        ["Merc sol",             "Gum ulcers · salivation · foetid breath"],
        ["Thuya",                "Soft pedunculated growths · epulis · polyps"],
        ["Belladonna",           "Acute abscess — throbbing · heat · redness · fever"],
        ["Pyrogenium",           "Septic states · high fever · offensive discharge"],
        ["Conium maculatum",     "Hard slow-growing tumours · elderly"],
    ],
    hdr_hex="6A0D91"
)

# save
out = "/tmp/workspace/bhms-surgery/BHMS_Surgery_Notes.docx"
doc.save(out)
print(f"Saved: {out}")
Running Command

cd /tmp/workspace/bhms-surgery && python3 create_notes.py

Writing File

~/bhms-surgery/BHMS_Surgery_Notes.html

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>BHMS 3rd Year – Surgery Notes</title>
<style>
  *{box-sizing:border-box;margin:0;padding:0}
  body{font-family:'Segoe UI',Arial,sans-serif;font-size:13px;background:#f0f4f8;color:#333;padding:16px}
  h1.cover{background:linear-gradient(135deg,#1a3a5c,#007b83);color:#fff;padding:18px 24px;border-radius:10px;font-size:20px;letter-spacing:1px;margin-bottom:6px}
  h1.cover span{font-size:13px;font-weight:400;opacity:.85;display:block;margin-top:4px}
  .unit{border-radius:8px;margin:18px 0 8px;padding:10px 16px;color:#fff;font-size:14px;font-weight:700;letter-spacing:.5px}
  .u1{background:#007b83} .u2{background:#007b83} .u3{background:#6a0d91}
  .u4{background:#d96b00} .u5{background:#c0392b} .u6{background:#1e8b4c}
  .u7{background:#c0392b} .uq{background:#1a3a5c} .uh{background:#6a0d91}
  .sub{color:#1a3a5c;font-weight:700;font-size:12.5px;margin:10px 0 4px 4px;display:flex;align-items:center;gap:6px}
  .sub::before{content:"▶";color:#007b83}
  ul{list-style:none;padding:0 0 0 10px;margin:2px 0 6px}
  ul li{padding:2px 0 2px 22px;position:relative;color:#444;line-height:1.5}
  ul li::before{position:absolute;left:0;color:#d96b00;font-weight:bold}
  ul.arrow li::before{content:"→"}
  ul.check li::before{content:"✔";color:#1e8b4c}
  ul.dot   li::before{content:"◉";color:#1e8b4c}
  ul.warn  li::before{content:"⚠";color:#c0392b}
  ul.num   li::before{content:attr(data-n);color:#1a3a5c}
  ul.flag  li::before{content:"⚑";color:#c0392b}
  b.kw{color:#1a3a5c}
  b.rx{color:#1e8b4c}
  b.warn{color:#c0392b}
  b.orange{color:#d96b00}
  .divider{border:none;border-top:2px dashed #ccc;margin:14px 0}
  /* TABLES */
  table{width:100%;border-collapse:collapse;margin:6px 0 12px;font-size:12px}
  th{padding:7px 10px;text-align:left;color:#fff;font-weight:700}
  td{padding:6px 10px;border:1px solid #ddd;vertical-align:top;color:#444}
  tr:nth-child(even) td{background:#f7fbff}
  tr:nth-child(odd)  td{background:#ffffff}
  /* header colours per unit */
  .th-teal  th{background:#007b83}
  .th-navy  th{background:#1a3a5c}
  .th-purple th{background:#6a0d91}
  .th-orange th{background:#d96b00}
  .th-red   th{background:#c0392b}
  .th-green  th{background:#1e8b4c}
  .badge{display:inline-block;padding:2px 8px;border-radius:12px;font-size:11px;font-weight:700;color:#fff;margin:1px 2px}
  .badge-r{background:#c0392b} .badge-g{background:#1e8b4c}
  .badge-o{background:#d96b00} .badge-b{background:#1a3a5c}
  .note-box{background:#fff8e1;border-left:4px solid #d96b00;padding:8px 12px;border-radius:4px;margin:6px 0 10px;font-size:12px;color:#555}
  .danger-box{background:#fdecea;border-left:4px solid #c0392b;padding:8px 12px;border-radius:4px;margin:6px 0 10px;font-size:12px;color:#555}
  .green-box{background:#e8f5e9;border-left:4px solid #1e8b4c;padding:8px 12px;border-radius:4px;margin:6px 0 10px;font-size:12px}
</style>
</head>
<body>

<h1 class="cover">🦷 BHMS 3RD YEAR — SURGERY NOTES
  <span>Oral &amp; Maxillofacial Surgery · Complete Revision Notes</span>
</h1>

<!-- ═══════════════════════════ UNIT 1 ═══════════════════════════ -->
<div class="unit u1">UNIT 1 — ANATOMY OF TEETH &amp; GUMS</div>

<div class="sub">Tooth Layers</div>
<table class="th-teal">
  <tr><th>Layer</th><th>Location</th><th>Composition</th><th>Key Point</th></tr>
  <tr><td><b class="kw">Enamel</b></td><td>Crown</td><td>96% hydroxyapatite</td><td>Hardest tissue · avascular · no regeneration</td></tr>
  <tr><td><b class="kw">Dentin</b></td><td>Crown + Root</td><td>70% mineral, 30% collagen</td><td>Dentinal tubules · slightly elastic</td></tr>
  <tr><td><b class="kw">Pulp</b></td><td>Central canal</td><td>Vessels + nerves</td><td>Vitality · pain via Aδ &amp; C fibres</td></tr>
  <tr><td><b class="kw">Cementum</b></td><td>Root surface</td><td>Bone-like · 45% mineral</td><td>Anchors Sharpey's fibres (PDL)</td></tr>
</table>

<div class="sub">Periodontal Structures</div>
<ul class="arrow">
  <li>Gingiva → keratinized mucosa around tooth</li>
  <li>PDL → Sharpey's fibres · width 0.15–0.38 mm</li>
  <li>Alveolar bone → tooth-bearing bone of maxilla &amp; mandible</li>
  <li>Cementum → root coverage; anchors PDL</li>
</ul>

<div class="sub">Types of Teeth (Adult = 32)</div>
<table class="th-teal">
  <tr><th>Type</th><th>No.</th><th>Function</th><th>Roots</th></tr>
  <tr><td>Incisors</td><td>8</td><td>Cutting</td><td>1</td></tr>
  <tr><td>Canines</td><td>4</td><td>Tearing</td><td>1 (longest)</td></tr>
  <tr><td>Premolars</td><td>8</td><td>Crushing</td><td>1–2</td></tr>
  <tr><td>Molars</td><td>12</td><td>Grinding</td><td>2–3</td></tr>
</table>

<div class="sub">Angle's Classification of Occlusion</div>
<table class="th-navy">
  <tr><th>Class</th><th>Description</th></tr>
  <tr><td><b class="badge badge-g">I – Normal</b></td><td>U/1st molar MB cusp → buccal groove of L/1st molar</td></tr>
  <tr><td><b class="badge badge-o">II – Retro</b></td><td>Lower jaw posterior</td></tr>
  <tr><td><b class="badge badge-r">III – Progn</b></td><td>Lower jaw anterior</td></tr>
</table>

<hr class="divider">

<!-- ═══════════════════════════ UNIT 2 ═══════════════════════════ -->
<div class="unit u2">UNIT 2 — CLINICAL EXAMINATION OF TEETH &amp; GUMS</div>

<div class="sub">Normal Gingiva</div>
<ul class="check">
  <li>Coral pink · stippled (orange-peel texture) · firm · non-bleeding</li>
  <li>Sulcus depth 1–3 mm · no mobility</li>
</ul>

<div class="sub">Common Conditions</div>
<table class="th-teal">
  <tr><th>Condition</th><th>Limits</th><th>Key Sign</th><th>Bone Loss?</th></tr>
  <tr><td><b class="kw">Caries</b></td><td>Enamel → pulp</td><td>Cavity · sensitivity · discoloration</td><td><span class="badge badge-g">No</span></td></tr>
  <tr><td><b class="kw">Gingivitis</b></td><td>Gingiva only</td><td>Bleeding · redness · swelling</td><td><span class="badge badge-g">No</span></td></tr>
  <tr><td><b class="kw">Periodontitis</b></td><td>Gingiva + PDL + bone</td><td>Pockets &gt;3 mm · mobility</td><td><span class="badge badge-r">YES</span></td></tr>
</table>

<div class="sub">Examination Protocol (IPDPA)</div>
<ul class="arrow">
  <li><b class="orange">I</b>nspection → visual teeth &amp; gums</li>
  <li><b class="orange">P</b>alpation → swellings, lymph nodes</li>
  <li><b class="orange">P</b>ercussion → tenderness = periapical pathology</li>
  <li><b class="orange">P</b>robing → pocket depth, BOP</li>
  <li><b class="orange">A</b>ssessment → vitality testing (cold/EPT)</li>
</ul>

<div class="sub">Malocclusion Assessment</div>
<ul class="arrow">
  <li>Check → overjet · overbite · crossbite · open bite · midline shift</li>
  <li>3 planes → sagittal (AP) · vertical · transverse</li>
  <li>TMJ → clicking · pain · asymmetry</li>
</ul>

<hr class="divider">

<!-- ═══════════════════════════ UNIT 3 ═══════════════════════════ -->
<div class="unit u3">UNIT 3 — JAW TUMOURS</div>

<div class="sub">Classification</div>
<table class="th-purple">
  <tr><th>Benign</th><th>Malignant</th></tr>
  <tr><td>Ameloblastoma (commonest)</td><td>Squamous Cell Carcinoma (commonest oral Ca)</td></tr>
  <tr><td>Odontoma (compound/complex)</td><td>Osteosarcoma</td></tr>
  <tr><td>Ossifying fibroma · Osteoma</td><td>Chondrosarcoma</td></tr>
  <tr><td>Myxoma · Hemangioma · Cementoma</td><td>Burkitt's lymphoma (EBV · children · Africa)</td></tr>
  <tr><td></td><td>Multiple myeloma (punched-out lesions)</td></tr>
</table>

<div class="sub">Benign vs Malignant</div>
<table class="th-navy">
  <tr><th>Feature</th><th>Benign</th><th>Malignant</th></tr>
  <tr><td>Borders</td><td>Well-defined · corticated</td><td>Moth-eaten · ill-defined</td></tr>
  <tr><td>Teeth</td><td>Displaced</td><td>Resorbed / floating</td></tr>
  <tr><td>Nerve</td><td>Spared</td><td>Paresthesia (IAN)</td></tr>
  <tr><td>Lymph nodes</td><td>—</td><td>Cervical lymphadenopathy</td></tr>
  <tr><td>Growth</td><td>Slow</td><td>Rapid</td></tr>
</table>

<div class="sub">Surgical Options</div>
<table class="th-purple">
  <tr><th>Procedure</th><th>Indication</th></tr>
  <tr><td>Enucleation</td><td>Small benign cysts</td></tr>
  <tr><td>Marginal resection</td><td>Benign + cortical involvement</td></tr>
  <tr><td>Segmental resection</td><td>Large aggressive / malignant</td></tr>
  <tr><td>Hemimandibulectomy</td><td>Extensive malignant</td></tr>
  <tr><td>Marsupialization</td><td>Large cysts (decompression)</td></tr>
  <tr><td>Chemo / Radiotherapy</td><td>Malignancies</td></tr>
</table>

<div class="sub">Homeopathic Remedies</div>
<div class="green-box">
<ul class="dot">
  <li><b class="rx">Hecla lava</b> → jaw tumours, osteitis, exostoses <span class="badge badge-g">FIRST CHOICE</span></li>
  <li><b class="rx">Calcarea fluorica</b> → hard bony tumours, cysts</li>
  <li><b class="rx">Conium maculatum</b> → hard slow-growing tumours; elderly</li>
  <li><b class="rx">Phosphorus</b> → osteosarcoma tendency</li>
  <li><b class="rx">Thuja</b> → soft pedunculated growths</li>
  <li><b class="rx">Silicea</b> → suppurative indurated swellings</li>
</ul>
</div>

<hr class="divider">

<!-- ═══════════════════════════ UNIT 4 ═══════════════════════════ -->
<div class="unit u4">UNIT 4 — EPULIS</div>

<div class="note-box">Epulis = any localised tumour-like swelling arising from the <b>gingiva</b></div>

<div class="sub">Types</div>
<table class="th-orange">
  <tr><th>Type</th><th>Key Feature</th><th>Histology</th><th>Treatment</th></tr>
  <tr><td><b class="kw">Fibrous</b> <span class="badge badge-o">Commonest</span></td><td>Firm · pale pink · sessile/pedunculated</td><td>Dense fibrous CT</td><td>Excision + remove irritant</td></tr>
  <tr><td><b class="kw">Pyogenic Granuloma</b></td><td>Red/purple · bleeds easily · rapid growth · pregnancy</td><td>Granulation tissue · capillary proliferation</td><td>Excision · treat pregnancy-related</td></tr>
  <tr><td><b class="kw">Giant Cell Epulis</b></td><td>Purple-red · anterior molars · F &gt; M</td><td>Multinucleate giant cells (osteoclast-like)</td><td>Excision + periosteal curettage</td></tr>
  <tr><td><b class="kw">Congenital</b></td><td>At birth · maxillary ridge</td><td>—</td><td>Often regresses spontaneously</td></tr>
</table>

<div class="sub">Homeopathic Remedies</div>
<div class="green-box">
<ul class="dot">
  <li><b class="rx">Thuya</b> → pedunculated fleshy epulides</li>
  <li><b class="rx">Calcarea carbonica</b> → flabby pale growths; plump patients</li>
  <li><b class="rx">Hecla lava</b> → bony involvement</li>
  <li><b class="rx">Nitric acid</b> → ulcerating bleeding gums; splinter pain</li>
  <li><b class="rx">Merc sol</b> → ulcerated gums + foetid breath</li>
</ul>
</div>

<hr class="divider">

<!-- ═══════════════════════════ UNIT 5 ═══════════════════════════ -->
<div class="unit u5">UNIT 5 — AMELOBLASTOMA</div>

<ul class="flag">
  <li>Most common benign odontogenic tumour · <b class="warn">locally aggressive</b></li>
  <li>Origin → odontogenic epithelium · Age → 3rd–4th decade</li>
  <li>Site → <b class="warn">80% mandible</b> (posterior ramus) · 20% maxilla</li>
</ul>

<div class="sub">Subtypes</div>
<table class="th-red">
  <tr><th>Type</th><th>%</th><th>Notes</th></tr>
  <tr><td><b class="kw">Multicystic (conventional)</b></td><td>86%</td><td>Soap-bubble X-ray · ⚠ <b class="warn">50–90% recurrence</b> with enucleation alone</td></tr>
  <tr><td><b class="kw">Unicystic</b></td><td>13%</td><td>Young patients · mimics dentigerous cyst · better prognosis</td></tr>
  <tr><td><b class="kw">Peripheral</b></td><td>&lt;1%</td><td>Gingival soft tissue · least aggressive</td></tr>
</table>

<div class="sub">Histological Variants</div>
<ul class="arrow">
  <li>Follicular · Plexiform · Acanthomatous · Granular cell · Basal cell · Desmoplastic (anterior jaw)</li>
</ul>

<div class="sub">Radiological Findings</div>
<ul class="arrow">
  <li>Multicystic → <b class="kw">Soap-bubble / honeycomb</b> multilocular radiolucency</li>
  <li>Unicystic → Unilocular radiolucency around unerupted lower molar crown</li>
  <li>Root resorption · cortical expansion/thinning · <b>NOT</b> radio-opaque</li>
</ul>

<div class="sub">Treatment</div>
<table class="th-red">
  <tr><th>Type</th><th>Treatment</th><th>Note</th></tr>
  <tr><td>Unicystic</td><td>Enucleation + curettage OR marsupialization</td><td><span class="badge badge-g">Low recurrence</span></td></tr>
  <tr><td>Multicystic</td><td>Resection with 1–1.5 cm bone margins</td><td><span class="badge badge-r">⚠ No enucleation alone</span></td></tr>
  <tr><td>Large / recurrent</td><td>Hemimandibulectomy + bone reconstruction</td><td>Free flap / bone graft</td></tr>
  <tr><td>Peripheral</td><td>Simple local excision</td><td>Minimal recurrence</td></tr>
</table>

<div class="sub">Homeopathic Therapeutics</div>
<div class="green-box">
<ul class="dot">
  <li><b class="rx">Calcarea fluorica</b> → hard cystic jaw swellings</li>
  <li><b class="rx">Hecla lava</b> → jaw tumours / exostoses</li>
  <li><b class="rx">Silicea</b> → chronic indolent swellings</li>
  <li><b class="rx">Baryta carbonica</b> → elderly; gland involvement</li>
  <li>⚠ Refer for surgery · homeopathy as adjunct/palliation</li>
</ul>
</div>

<hr class="divider">

<!-- ═══════════════════════════ UNIT 6 ═══════════════════════════ -->
<div class="unit u6">UNIT 6 — DENTAL CYSTS</div>

<div class="note-box">Cyst = pathological cavity lined by <b>epithelium</b> · fluid contents · fibrous wall</div>

<div class="sub">Classification</div>
<table class="th-green">
  <tr><th>Cyst</th><th>Origin</th><th>X-ray</th><th>Key Feature</th></tr>
  <tr><td><b class="kw">Radicular (Periapical)</b></td><td>Malassez rests (infected pulp)</td><td>Periapical RLcy + sclerotic rim</td><td><span class="badge badge-b">Most common jaw cyst</span> · non-vital tooth</td></tr>
  <tr><td><b class="kw">Residual</b></td><td>Radicular cyst left post-extraction</td><td>RLcy in edentulous area</td><td>No tooth present</td></tr>
  <tr><td><b class="kw">Dentigerous (Follicular)</b></td><td>Reduced enamel epithelium</td><td>RLcy around crown at CEJ</td><td>Lower 3rd molar &gt; upper canine</td></tr>
  <tr><td><b class="kw">OKC</b></td><td>Dental lamina remnants</td><td>Scalloped multi/unilocular</td><td><span class="badge badge-r">HIGH recurrence</span> · keratin contents</td></tr>
  <tr><td><b class="kw">Eruption cyst</b></td><td>Follicle of erupting tooth</td><td>Soft tissue (no bone)</td><td>Children · self-resolves</td></tr>
</table>

<div class="sub">Radicular Cyst → Pathogenesis</div>
<ul class="arrow">
  <li>Caries → pulp necrosis → stimulates epithelial rests of Malassez → proliferation → cyst</li>
</ul>

<div class="sub">OKC — Special Points</div>
<div class="danger-box">
<ul class="warn">
  <li>Lining → thin, <b>parakeratinised</b>, corrugated; palisaded flat basal cells</li>
  <li>Recurrence → 25–60% (satellite cysts, thin friable wall)</li>
  <li>Gorlin-Goltz Syndrome → multiple OKCs + basal cell naevi + <b>PTCH1 gene</b> (autosomal dominant)</li>
  <li>Treatment → Enucleation + <b>Carnoy's solution</b> + peripheral ostectomy · 10-yr follow-up</li>
</ul>
</div>

<div class="sub">Dentigerous Cyst — Key Points</div>
<ul class="arrow">
  <li>Fluid between reduced enamel epithelium &amp; crown of unerupted tooth</li>
  <li>X-ray → RLcy attached at CEJ; crown inside cyst</li>
  <li class="warn">⚠ Risk of ameloblastoma transformation from cyst wall</li>
  <li>Treatment → Marsupialization (large; children) OR Enucleation + extraction</li>
</ul>

<div class="sub">Surgical Enucleation — Steps</div>
<ul class="num">
  <li data-n="1.">LA/GA · perioperative assessment</li>
  <li data-n="2.">Mucoperiosteal flap incision</li>
  <li data-n="3.">Bone window (bur / chisel)</li>
  <li data-n="4.">Cyst wall separated with periosteal elevator</li>
  <li data-n="5.">Cyst removed <b>INTACT</b> → send for histopathology</li>
  <li data-n="6.">Curettage of cavity + saline irrigation</li>
  <li data-n="7.">Primary closure OR BIPP pack (large cavity)</li>
</ul>

<div class="sub">Follow-Up Protocol</div>
<table class="th-navy">
  <tr><th>Time</th><th>Action</th></tr>
  <tr><td>1 week</td><td>Wound check</td></tr>
  <tr><td>1 month</td><td>Healing assessment</td></tr>
  <tr><td>3 months</td><td>Clinical review</td></tr>
  <tr><td>6 months + 1 year</td><td>X-ray</td></tr>
  <tr><td>Annual × 10 yrs</td><td>X-ray (OKC)</td></tr>
</table>

<div class="sub">Marsupialization (Partsch I)</div>
<ul class="arrow">
  <li>Creates window → cyst opens to oral cavity → reduces intracystic pressure → bone fills</li>
  <li>Used → large cysts in children; dentigerous cysts (allows tooth eruption)</li>
  <li>⚠ Disadvantage → incomplete histopathology; slow resolution (months)</li>
</ul>

<hr class="divider">

<!-- ═══════════════════════════ UNIT 7 ═══════════════════════════ -->
<div class="unit u7">UNIT 7 — ALVEOLAR ABSCESS</div>

<div class="sub">Types</div>
<ul class="arrow">
  <li><b class="kw">Acute</b> → rapid onset · severe throbbing pain</li>
  <li><b class="kw">Chronic</b> → sinus tract (parulis) · dull ache</li>
  <li><b class="kw">Phoenix</b> → acute exacerbation of chronic periapical lesion</li>
</ul>

<div class="sub">Causes</div>
<table class="th-red">
  <tr><th>Cause</th><th>Mechanism</th></tr>
  <tr><td>Dental caries <span class="badge badge-r">Commonest</span></td><td>Pulp necrosis → periapical spread</td></tr>
  <tr><td>Periodontal disease</td><td>Deep pocket → bone → abscess</td></tr>
  <tr><td>Trauma</td><td>Pulp necrosis</td></tr>
  <tr><td>Failed RCT</td><td>Residual infection</td></tr>
  <tr><td>Pericoronitis</td><td>Partially erupted wisdom tooth</td></tr>
</table>

<div class="sub">Clinical Features</div>
<ul class="arrow">
  <li><b class="orange">LOCAL</b> → throbbing pain · percussion tender · non-vital tooth · swelling · mobility</li>
  <li><b class="orange">CHRONIC</b> → sinus tract (parulis) · minimal pain</li>
  <li><b class="warn">SYSTEMIC</b> → fever · lymphadenopathy · trismus · dysphagia</li>
</ul>

<div class="sub">Spread of Infection</div>
<ul class="arrow">
  <li>Buccal space <span class="badge badge-b">Commonest</span> → cheek swelling</li>
  <li>Palatal space → maxillary palatal roots</li>
  <li>Submandibular space → lower 2nd/3rd molar</li>
  <li><b class="warn">Ludwig's angina</b> → bilateral submandibular + sublingual + submental → <span class="badge badge-r">⚠ AIRWAY EMERGENCY</span></li>
  <li>Cavernous sinus thrombosis (rare) → upper tooth → angular vein → life-threatening</li>
</ul>

<div class="sub">Radiological Findings</div>
<ul class="arrow">
  <li>Early → widened PDL space</li>
  <li>Acute → ill-defined periapical bone destruction</li>
  <li>Chronic → well-defined sclerotic periapical lesion</li>
</ul>

<div class="sub">Drainage Techniques</div>
<table class="th-navy">
  <tr><th>Route</th><th>Indication</th><th>Technique</th></tr>
  <tr><td>Via root canal</td><td>Early · accessible tooth</td><td>Open access → pus drains through tooth</td></tr>
  <tr><td>Intraoral I&amp;D</td><td>Fluctuant intraoral swelling</td><td>Horizontal incision at fluctuant point → blunt dissection → corrugated drain → suture</td></tr>
  <tr><td>Extraoral I&amp;D</td><td>Extraoral extension / deep spaces</td><td>Incision below mandibular border (skin crease) → Hilton's method → drain</td></tr>
  <tr><td>Tracheostomy</td><td>Ludwig's angina · airway compromise</td><td>Emergency airway securing</td></tr>
</table>

<div class="sub">Medical Treatment</div>
<ul class="arrow">
  <li>Amoxicillin 500 mg TDS × 5 days <span class="badge badge-b">First line</span></li>
  <li>Metronidazole 400 mg TDS → anaerobes</li>
  <li>Clindamycin → if penicillin allergy</li>
  <li>NSAIDs + Paracetamol → analgesia</li>
  <li>Definitive → Extraction OR RCT once acute phase settled</li>
</ul>

<div class="sub">Homeopathic Management</div>
<div class="green-box">
<table class="th-green">
  <tr><th>Remedy</th><th>Indication</th></tr>
  <tr><td><b class="rx">Belladonna</b></td><td>Early acute · throbbing · hot · red · fever</td></tr>
  <tr><td><b class="rx">Hepar sulphur (low)</b></td><td>Promotes suppuration · extreme touch sensitivity</td></tr>
  <tr><td><b class="rx">Hepar sulphur (high)</b></td><td>Aborts suppuration</td></tr>
  <tr><td><b class="rx">Myristica sebifera</b></td><td>'Homeopathic knife' → promotes rapid drainage</td></tr>
  <tr><td><b class="rx">Silicea</b></td><td>Chronic abscess · sinus tract · slow healing</td></tr>
  <tr><td><b class="rx">Merc sol</b></td><td>Salivation · foetid breath · gum ulceration · worse at night</td></tr>
  <tr><td><b class="rx">Pyrogenium</b></td><td>Septic state · high fever · offensive discharge</td></tr>
</table>
</div>

<hr class="divider">

<!-- ═══════════════════════════ MASTER TABLE ═══════════════════════════ -->
<div class="unit uq">QUICK REFERENCE — MASTER COMPARISON TABLE</div>
<table class="th-navy">
  <tr><th>Condition</th><th>X-ray</th><th>Key Clinical Sign</th><th>Treatment</th></tr>
  <tr><td><b>Radicular cyst</b></td><td>Periapical RLcy + sclerotic rim</td><td>Non-vital tooth</td><td>RCT or enucleation</td></tr>
  <tr><td><b>Residual cyst</b></td><td>RLcy in edentulous area</td><td>Previous extraction site</td><td>Enucleation</td></tr>
  <tr><td><b>Dentigerous cyst</b></td><td>RLcy around crown at CEJ</td><td>Unerupted tooth</td><td>Enucleation / marsupialization</td></tr>
  <tr><td><b>OKC</b></td><td>Scalloped multilocular; grows along bone</td><td>Keratin contents; HIGH recurrence</td><td>Enucleation + Carnoy's · 10-yr F/U</td></tr>
  <tr><td><b>Ameloblastoma</b></td><td>Soap-bubble multilocular</td><td>Painless jaw swelling</td><td>Resection with margins</td></tr>
  <tr><td><b>Alveolar abscess</b></td><td>Periapical RLcy ± bone destruction</td><td>Tender; non-vital; swelling</td><td>Drain + Abx + Extraction/RCT</td></tr>
  <tr><td><b>Fibrous epulis</b></td><td>Normal</td><td>Firm pink gingival mass</td><td>Excision</td></tr>
  <tr><td><b>Giant cell epulis</b></td><td>Cup-shaped bone resorption</td><td>Purple-red gingival mass</td><td>Excision + periosteal curettage</td></tr>
</table>

<!-- ═══════════════════════════ HOMEO CHEAT SHEET ═══════════════════════════ -->
<div class="unit uh">🌿 HOMEOPATHY CHEAT SHEET</div>
<table class="th-purple">
  <tr><th>Remedy</th><th>Key Indication</th></tr>
  <tr><td><b class="rx">Hecla lava</b></td><td>Jaw tumours · exostoses · alveolar swellings <span class="badge badge-g">FIRST CHOICE</span></td></tr>
  <tr><td><b class="rx">Calcarea fluorica</b></td><td>Hard tumours · cysts · bone hypertrophy</td></tr>
  <tr><td><b class="rx">Silicea</b></td><td>Chronic suppuration · sinuses · slow healing</td></tr>
  <tr><td><b class="rx">Myristica sebifera</b></td><td>Dental abscess → rapid drainage ('homeopathic knife')</td></tr>
  <tr><td><b class="rx">Hepar sulphur</b></td><td>Low pot → suppurate · High pot → abort</td></tr>
  <tr><td><b class="rx">Merc sol</b></td><td>Gum ulcers · salivation · foetid breath</td></tr>
  <tr><td><b class="rx">Thuya</b></td><td>Soft pedunculated growths · epulis · polyps</td></tr>
  <tr><td><b class="rx">Belladonna</b></td><td>Acute abscess → throbbing · heat · redness · fever</td></tr>
  <tr><td><b class="rx">Pyrogenium</b></td><td>Septic states · high fever · offensive discharge</td></tr>
  <tr><td><b class="rx">Conium maculatum</b></td><td>Hard slow-growing tumours · elderly</td></tr>
</table>

<p style="text-align:center;color:#aaa;font-size:11px;margin-top:20px">BHMS 3rd Year · Oral &amp; Maxillofacial Surgery · Revision Notes</p>
</body>
</html>
Running Command

ls -lh /tmp/workspace/bhms-surgery/

Both files are ready. Download below:

📄 Word Document (coloured headings, tables, bullets)

BHMS Surgery Notes

Word Document · DOCX

🌐 HTML File (open in any browser, fully styled)

BHMS Surgery Notes

HTML File · HTML


What's inside both files:
FeatureDetail
7 colour-coded unitsEach unit has its own header colour (teal, purple, orange, red, green, navy)
All content in tablesCompact, scannable rows - no paragraphs
Arrows throughout→ ▶ ➤ ◉ ⚑ ⚠ used for structure
Homeopathy boxesGreen-highlighted sections per unit
Master comparison tableAll conditions, X-ray, signs, treatment in one view
Homeopathy cheat sheetAll remedies in one final table
The HTML version works best for on-screen studying (open in Chrome/Firefox). The DOCX opens in Word or Google Docs.
This is a shared conversation. Sign in to Orris to start your own chat.