1. Definition Sialolithiasis is the mechanical obstruction of salivary flow caused by the formation of salivary calculi (sialoliths) within the ductal system or glandular tissue of major or minor salivary glands. A sialolith develops around an organic nidus, which gradually enlarges through deposition of inorganic and organic materials. Characteristics of Sialoliths Growth rate: approximately 1 mm/year May occur as single or multiple stones Shape: round, oval, or elongated Color: yellowish-white Size: usually 1–10 mm in length 2. Composition A. Inorganic Components Calcium phosphate salts Hydroxyapatite Octacalcium phosphate B. Organic Components (Nidus) Desquamated epithelial cells Bacteria Products of bacterial decomposition Glycoproteins Mucopolysaccharides C. Foreign Bodies Acting as Nidus Toothbrush bristles Fingernails Wood splinters Hair Grass blades Fish bones 3. Etiology and Pathogenesis The exact cause is unknown; however, three major prerequisites are believed to be responsible: 1. Salivary Stagnation A neurohumoral disturbance causing reduced salivary flow and stagnation. 2. Presence of a Nidus An organic matrix acts as the center for stone formation. 3. Precipitation of Salivary Salts Metabolic changes favor precipitation of calcium and phosphate salts around the nidus, especially in the presence of inflammation. Clinical Significance Sialolithiasis is: A cause of chronic recurrent sialadenitis A consequence of chronic recurrent sialadenitis A frequent cause of acute suppurative sialadenitis 4. Why is the Submandibular Gland Most Commonly Affected? Approximately 80% of sialoliths occur in the submandibular gland. Reasons A. Alkaline Saliva pH = 6.8 to 7.1 More alkaline than parotid saliva B. Higher Calcium and Phosphate Concentration Greater concentration of apatite salts C. Increased Salt Precipitation Relative alkalinity and altered calcium-phosphate ratio promote crystallization. D. Mucin-Rich Secretions Saliva is more viscous, encouraging stagnation. E. Anatomical Factors of Wharton's Duct Longer duct Tortuous course Non-dependent drainage Saliva flows against gravity These factors increase salivary stasis and stone formation. 5. Risk Factors Conditions Causing Reduced Salivary Flow Dehydration Anorexia Fasting Drugs Antihistamines Antipsychotics Antidepressants Antihypertensives Anticholinergics Diuretics Other Risk Factors Radiotherapy Tobacco smoking Sjögren syndrome Hypercalcaemia Gout (uric acid accumulation) 6. Clinical Features Epidemiology Male : Female = 2 : 1 Peak age = 30–50 years Submandibular gland involvement ≈ 80% MEAL TIME SYNDROME (Classic Feature) Symptoms Moderate to severe pain during meals Swelling during and after eating Symptoms worsen when salivary secretion increases Mechanism Stone obstructs salivary flow → Increased intraductal pressure → Pain and swelling Characteristics Recurrent swelling with meals Gradual reduction during rest Repeated episodes until complete obstruction develops Other Clinical Features Stone Extrusion Occasionally patients spontaneously expel small calculi. Tenderness Point tenderness over: Hilum of gland Wharton's duct Secondary Infection Produces: Fever Tenseness Tenderness Trismus Reduced or absent salivary flow Salivary Changes Presence of: Gelatinous Cloudy Mucopurulent material Mixed with otherwise clear saliva. Advanced Disease Acute Suppurative Sialadenitis Severe exacerbations Pus discharge from duct opening Systemic manifestations Local Findings Inflamed ductal mucosa Floor of mouth swelling Redness Tenderness along Wharton's duct Gland Examination Enlarged Tender Tense Palpation causes pain and pus discharge 7. Diagnosis Clinical Examination Bimanual Palpation Most important method. Findings: Stone palpable along duct Hard mass in floor of mouth Milking Test Inability to express saliva from duct opening suggests obstruction. 8. Radiographic Features Conventional Radiographs Mandibular occlusal view Lateral view Lateral oblique mandibular view AP view Sialography Identifies exact location of stone Ultrasonography (USG) Non-invasive Detects stones >2 mm CT Scan Useful for: Gland enlargement Chronic disease Other Investigations Scintigraphy MRI 9. Complications 1. Acute Suppurative Sialadenitis Bacterial infection of obstructed gland. 2. Chronic Suppurative Sialadenitis 3. Sialoangiectasis Dilatation of salivary ducts due to prolonged obstruction. 4. Mucocele Occurs due to salivary retention. 5. Glandular Atrophy Complete obstruction may cause irreversible gland destruction. 10. Treatment of Sialolithiasis A. Conservative Management 1. Local Measures Warm compresses Salivary gland massage Sialogogues 2. Stimulate Salivary Flow Sour foods Lemon drops Hyperhydration Purpose: Facilitate spontaneous expulsion of stone 3. Acute Infection Control Antibiotics Analgesics Good oral hygiene 4. Drainage of Abscess When pus collection is present. 5. Definitive Surgery Performed after acute inflammation subsides. B. Surgical Management Stone Within Duct ➡️ Intraoral sialolithotomy Stone Within Gland ➡️ Removal of gland (sialadenectomy), especially when irreversible glandular or ductal changes are present. 11. Sialodochoplasty Definition Surgical repair of salivary duct by: Widening ductal opening Shortening duct Purpose Prevents: Restenosis Re-narrowing of duct Technique Duct may be sutured open Stent may be placed for 7–10 days to maintain patency during healing 12. Removal of Parotid Gland Calculi Possible Locations Papilla Submucous part of duct Extraglandular duct (outside buccinator) Intraglandular duct A. Papillary and Submucosal Stones Procedure Slitting of papilla Small incision into duct Gentle gland pressure This allows saliva to flush out the stone. B. Extraglandular Duct Stones Procedure Intraoral incision in cheek Y-shaped incision around papilla Blunt dissection through buccinator Identification and isolation of Stensen's duct Longitudinal duct incision Stone removal Closure Surrounding tissues sutured Duct left open C. Intraglandular Duct Stones Treatment Extraoral approach Similar to parotidectomy procedure Used when stone lies posteriorly in glandular duct system 13. Removal of Submandibular Gland Calculi Most Common Location Extraglandular portion of Wharton's duct. A. Anterior Submandibular Duct Calculi Definition Located anterior to the second mandibular molar. Surgical Steps Place suture posterior to stone to prevent displacement. Place traction sutures anterior and posterior to calculus. Make incision along duct. Identify Wharton's duct. Mobilize duct. Longitudinal incision over stone. Remove calculus. Important Point The duct incision is not sutured to avoid postoperative stricture. Postoperative Care Increased fluid intake Lemon drops Sialogogues to maintain duct patency B. Posterior Submandibular Duct Calculi Surgical Steps Pass lacrimal probe through duct. Mucosal incision opposite premolar region. Trace duct posteriorly. Identify and protect lingual nerve. Apply pressure on gland to elevate duct. Longitudinal duct incision. Remove calculus. Close mucosa, leaving duct open. C. Intraglandular Submandibular Calculi Asymptomatic Stone Observe if: Small stone Normal gland function Normal sialography Symptomatic Stone Indications for sialadenectomy: Recurrent infection Impaired gland function Abnormal glandular architecture ➡️ Submandibular gland removal (sialadenectomy) is the treatment of choice. make it as a ppt with required diagrams

Reading File
Reading File
Running Command

ls -la /home/daytona/workspace/ 2>/dev/null || echo "workspace empty"

Running Command

mkdir -p /home/daytona/workspace/sialolithiasis-ppt

Writing File

~/sialolithiasis-ppt/build.js

const pptxgen = require("pptxgenjs");
const pres = new pptxgen();
pres.layout = "LAYOUT_16x9";
pres.title = "Sialolithiasis";
pres.author = "Oral Medicine";

// ── PALETTE ──────────────────────────────────────────────
const C = {
  navy:    "0D2545",   // dominant dark
  teal:    "1A7A8A",   // accent/header
  sky:     "D6EEF2",   // light panel bg
  gold:    "E8A020",   // highlight accent
  white:   "FFFFFF",
  off:     "F4F8FA",
  text:    "1A2A3A",
  sub:     "4A6580",
  red:     "C0392B",
  green:   "1E7F4E",
  orange:  "D35400",
  light:   "EAF4F7",
};

// ── HELPERS ───────────────────────────────────────────────
function addSectionBg(slide) {
  slide.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: C.navy } });
}

function titleSlide(slide) {
  // Full dark background
  slide.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: C.navy } });
  // teal accent bar left
  slide.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 0.25, h: 5.625, fill: { color: C.teal } });
  // Gold horizontal accent
  slide.addShape(pres.ShapeType.rect, { x: 0.25, y: 2.85, w: 9.75, h: 0.06, fill: { color: C.gold } });
}

function contentHeader(slide, title, iconText) {
  // Teal top bar
  slide.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 0.75, fill: { color: C.teal } });
  // Navy left strip
  slide.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 0.18, h: 5.625, fill: { color: C.navy } });
  // title text
  slide.addText(title, {
    x: 0.35, y: 0, w: 9.3, h: 0.75,
    fontSize: 20, bold: true, color: C.white, valign: "middle", margin: 0
  });
}

function infoBox(slide, x, y, w, h, title, bullets, bgColor, titleColor, bulletColor) {
  bgColor = bgColor || C.sky;
  titleColor = titleColor || C.navy;
  bulletColor = bulletColor || C.text;
  slide.addShape(pres.ShapeType.rect, { x, y, w, h, fill: { color: bgColor }, line: { color: C.teal, width: 1.2 } });
  if (title) {
    slide.addText(title, { x: x+0.1, y: y+0.05, w: w-0.2, h: 0.35, fontSize: 11, bold: true, color: titleColor, margin: 0 });
  }
  const items = bullets.map((b, i) => ({
    text: b,
    options: { bullet: { type: "bullet" }, breakLine: i < bullets.length-1, fontSize: 10.5, color: bulletColor }
  }));
  slide.addText(items, { x: x+0.12, y: title ? y+0.42 : y+0.1, w: w-0.24, h: h - (title ? 0.52 : 0.2), valign: "top", margin: 0 });
}

function pillBox(slide, x, y, w, h, label, bg, fg) {
  bg = bg || C.teal;
  fg = fg || C.white;
  slide.addShape(pres.ShapeType.roundRect, { x, y, w, h, rectRadius: 0.12, fill: { color: bg } });
  slide.addText(label, { x, y, w, h, fontSize: 10, bold: true, color: fg, align: "center", valign: "middle", margin: 0 });
}

function arrowDown(slide, x, y) {
  slide.addShape(pres.ShapeType.downArrow, { x, y, w: 0.35, h: 0.35, fill: { color: C.gold } });
}

// ═══════════════════════════════════════════════════════════
// SLIDE 1 – TITLE
// ═══════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  titleSlide(s);

  // Decorative circle top-right
  s.addShape(pres.ShapeType.ellipse, { x: 7.8, y: -0.8, w: 3, h: 3, fill: { color: "1A3D6B" }, line: { color: "1A3D6B" } });
  s.addShape(pres.ShapeType.ellipse, { x: 8.2, y: -0.4, w: 2.2, h: 2.2, fill: { color: "0F2E55" }, line: { color: "0F2E55" } });

  s.addText("SIALOLITHIASIS", {
    x: 0.5, y: 1.2, w: 9, h: 1.0,
    fontSize: 48, bold: true, color: C.white, align: "center", charSpacing: 4
  });
  s.addText("Salivary Gland Calculi", {
    x: 0.5, y: 2.3, w: 9, h: 0.6,
    fontSize: 22, color: C.gold, align: "center", italic: true
  });
  // gold divider
  s.addShape(pres.ShapeType.rect, { x: 3.5, y: 3.0, w: 3, h: 0.05, fill: { color: C.gold } });

  s.addText([
    { text: "Definition  •  Composition  •  Etiology  •  Clinical Features", options: { breakLine: true } },
    { text: "Diagnosis  •  Complications  •  Treatment  •  Surgical Techniques" }
  ], {
    x: 0.5, y: 3.15, w: 9, h: 0.8,
    fontSize: 13, color: "8BBFCF", align: "center"
  });

  s.addText("Oral Medicine & Oral Surgery", {
    x: 0.5, y: 4.9, w: 9, h: 0.5,
    fontSize: 11, color: "5A8AA0", align: "center", italic: true
  });
}

// ═══════════════════════════════════════════════════════════
// SLIDE 2 – DEFINITION
// ═══════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  // Light bg
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: C.off } });
  contentHeader(s, "1. Definition");

  // Large definition box
  s.addShape(pres.ShapeType.rect, { x: 0.35, y: 0.95, w: 9.3, h: 1.3, fill: { color: C.navy }, line: { color: C.teal, width: 1 } });
  s.addText([
    { text: "Sialolithiasis ", options: { bold: true, color: C.gold } },
    { text: "is the mechanical obstruction of salivary flow caused by the formation of ", options: { color: C.white } },
    { text: "salivary calculi (sialoliths)", options: { bold: true, color: C.sky } },
    { text: " within the ductal system or glandular tissue of major or minor salivary glands.", options: { color: C.white } }
  ], { x: 0.45, y: 0.98, w: 9.1, h: 1.2, fontSize: 13, valign: "middle" });

  // Nidus development
  s.addText("Nidus Development", { x: 0.35, y: 2.4, w: 4, h: 0.35, fontSize: 13, bold: true, color: C.teal });
  s.addShape(pres.ShapeType.rect, { x: 0.35, y: 2.78, w: 4.2, h: 1.6, fill: { color: C.light }, line: { color: C.teal, width: 0.8 } });
  s.addText([
    { text: "A sialolith develops around an ", options: { color: C.text } },
    { text: "organic nidus", options: { bold: true, color: C.teal } },
    { text: ", which gradually enlarges through deposition of inorganic and organic materials.", options: { color: C.text } }
  ], { x: 0.5, y: 2.85, w: 3.9, h: 0.9, fontSize: 11.5, valign: "top" });

  // Characteristics panel
  s.addText("Characteristics of Sialoliths", { x: 5.0, y: 2.4, w: 4.6, h: 0.35, fontSize: 13, bold: true, color: C.teal });
  const chars = [
    ["Growth rate", "~1 mm / year"],
    ["Occurrence", "Single or multiple"],
    ["Shape", "Round, oval, or elongated"],
    ["Color", "Yellowish-white"],
    ["Size", "Usually 1 – 10 mm"],
  ];
  const cx = 5.0, cy = 2.78, cw = 4.65, rh = 0.3;
  chars.forEach(([k, v], i) => {
    const bg = i % 2 === 0 ? C.sky : C.white;
    s.addShape(pres.ShapeType.rect, { x: cx, y: cy + i*rh, w: cw, h: rh, fill: { color: bg }, line: { color: "C8DDE5", width: 0.5 } });
    s.addText(k, { x: cx+0.1, y: cy + i*rh, w: 2.0, h: rh, fontSize: 10.5, bold: true, color: C.navy, valign: "middle", margin: 0 });
    s.addText(v, { x: cx+2.1, y: cy + i*rh, w: 2.45, h: rh, fontSize: 10.5, color: C.text, valign: "middle", margin: 0 });
  });
}

// ═══════════════════════════════════════════════════════════
// SLIDE 3 – COMPOSITION
// ═══════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: C.off } });
  contentHeader(s, "2. Composition of Sialoliths");

  // Three columns
  const cols = [
    {
      title: "A. Inorganic Components", bg: "D6EEF2", tc: C.navy,
      items: ["Calcium phosphate salts", "Hydroxyapatite", "Octacalcium phosphate"]
    },
    {
      title: "B. Organic Components (Nidus)", bg: "FEF0D9", tc: "7B3800",
      items: ["Desquamated epithelial cells", "Bacteria", "Products of bacterial decomposition", "Glycoproteins", "Mucopolysaccharides"]
    },
    {
      title: "C. Foreign Bodies as Nidus", bg: "F0F9EC", tc: C.green,
      items: ["Toothbrush bristles", "Fingernails", "Wood splinters", "Hair", "Grass blades", "Fish bones"]
    }
  ];
  cols.forEach((col, i) => {
    const x = 0.3 + i * 3.2;
    s.addShape(pres.ShapeType.rect, { x, y: 0.88, w: 3.0, h: 4.5, fill: { color: col.bg }, line: { color: C.teal, width: 1 } });
    // Column header
    s.addShape(pres.ShapeType.rect, { x, y: 0.88, w: 3.0, h: 0.5, fill: { color: C.navy } });
    s.addText(col.title, { x: x+0.1, y: 0.88, w: 2.8, h: 0.5, fontSize: 10.5, bold: true, color: C.white, valign: "middle", margin: 0 });
    const items = col.items.map((it, j) => ({
      text: it,
      options: { bullet: { type: "bullet" }, breakLine: j < col.items.length-1, fontSize: 11, color: C.text }
    }));
    s.addText(items, { x: x+0.12, y: 1.45, w: 2.76, h: 3.8, valign: "top" });
  });

  // Layered stone diagram (simplified circles)
  s.addText("Stone Structure", { x: 0.3, y: 4.9, w: 9.4, h: 0.4, fontSize: 10, italic: true, color: C.sub, align: "center" });
}

// ═══════════════════════════════════════════════════════════
// SLIDE 4 – ETIOLOGY & PATHOGENESIS
// ═══════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: C.off } });
  contentHeader(s, "3. Etiology & Pathogenesis");

  s.addText("The exact cause is unknown; three major prerequisites are recognised:", {
    x: 0.35, y: 0.85, w: 9.3, h: 0.4, fontSize: 12, italic: true, color: C.sub
  });

  // Three prerequisites as flow boxes
  const steps = [
    { num: "1", title: "Salivary Stagnation", desc: "Neurohumoral disturbance causing reduced salivary flow and stagnation.", color: C.teal },
    { num: "2", title: "Presence of a Nidus", desc: "An organic matrix acts as the center for stone formation.", color: C.gold },
    { num: "3", title: "Precipitation of Salivary Salts", desc: "Metabolic changes favour precipitation of Ca²⁺ and PO₄³⁻ salts around the nidus, especially with inflammation.", color: C.orange },
  ];
  steps.forEach((st, i) => {
    const y = 1.3 + i * 1.1;
    s.addShape(pres.ShapeType.roundRect, { x: 0.35, y, w: 9.3, h: 0.95, rectRadius: 0.1, fill: { color: C.white }, line: { color: st.color, width: 2 } });
    // Number circle
    s.addShape(pres.ShapeType.ellipse, { x: 0.45, y: y+0.15, w: 0.6, h: 0.6, fill: { color: st.color } });
    s.addText(st.num, { x: 0.45, y: y+0.15, w: 0.6, h: 0.6, fontSize: 16, bold: true, color: C.white, align: "center", valign: "middle", margin: 0 });
    s.addText(st.title, { x: 1.2, y: y+0.05, w: 8.2, h: 0.38, fontSize: 13, bold: true, color: st.color, valign: "middle", margin: 0 });
    s.addText(st.desc, { x: 1.2, y: y+0.45, w: 8.2, h: 0.42, fontSize: 11, color: C.text, valign: "top", margin: 0 });
    // Arrow between boxes
    if (i < 2) s.addShape(pres.ShapeType.downArrow, { x: 4.8, y: y+0.98, w: 0.4, h: 0.1, fill: { color: C.gold } });
  });

  // Clinical significance footer
  s.addShape(pres.ShapeType.rect, { x: 0.35, y: 4.62, w: 9.3, h: 0.78, fill: { color: C.navy } });
  s.addText("Clinical Significance  –  Sialolithiasis is:", { x: 0.5, y: 4.64, w: 4, h: 0.35, fontSize: 11, bold: true, color: C.gold });
  s.addText([
    { text: "• A cause of chronic recurrent sialadenitis   ", options: {} },
    { text: "• A consequence of chronic recurrent sialadenitis   ", options: {} },
    { text: "• A frequent cause of acute suppurative sialadenitis", options: {} }
  ], { x: 0.5, y: 4.98, w: 9.1, h: 0.35, fontSize: 10, color: C.white });
}

// ═══════════════════════════════════════════════════════════
// SLIDE 5 – WHY SUBMANDIBULAR? (with anatomy diagram)
// ═══════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: C.off } });
  contentHeader(s, "4. Why Submandibular Gland is Most Commonly Affected?  (~80%)");

  // Big stat circle
  s.addShape(pres.ShapeType.ellipse, { x: 0.3, y: 0.95, w: 1.8, h: 1.8, fill: { color: C.navy } });
  s.addText("~80%", { x: 0.3, y: 1.2, w: 1.8, h: 0.7, fontSize: 22, bold: true, color: C.gold, align: "center", valign: "middle", margin: 0 });
  s.addText("of cases", { x: 0.3, y: 1.88, w: 1.8, h: 0.4, fontSize: 10, color: C.white, align: "center", valign: "top", margin: 0 });

  const reasons = [
    { label: "A. Alkaline Saliva", detail: "pH 6.8–7.1 (more alkaline than parotid)", color: C.teal },
    { label: "B. High Ca²⁺ / PO₄³⁻", detail: "Greater concentration of apatite salts", color: C.orange },
    { label: "C. Salt Precipitation", detail: "Alkalinity + altered Ca-PO₄ ratio → crystallisation", color: C.red },
    { label: "D. Mucin-Rich Saliva", detail: "More viscous → encourages stagnation", color: "7B3BAA" },
    { label: "E. Wharton's Duct Anatomy", detail: "Longer, tortuous, non-dependent drainage; saliva flows against gravity", color: C.green },
  ];
  reasons.forEach((r, i) => {
    const y = 1.0 + i * 0.85;
    s.addShape(pres.ShapeType.roundRect, { x: 2.3, y, w: 7.4, h: 0.72, rectRadius: 0.08, fill: { color: C.white }, line: { color: r.color, width: 1.8 } });
    s.addShape(pres.ShapeType.rect, { x: 2.3, y, w: 0.08, h: 0.72, fill: { color: r.color } });
    s.addText(r.label, { x: 2.5, y: y+0.04, w: 3.5, h: 0.3, fontSize: 11.5, bold: true, color: r.color, margin: 0 });
    s.addText(r.detail, { x: 2.5, y: y+0.35, w: 7.0, h: 0.3, fontSize: 10.5, color: C.text, margin: 0 });
  });

  // Anatomy label box bottom
  s.addShape(pres.ShapeType.rect, { x: 0.3, y: 5.18, w: 1.8, h: 0.32, fill: { color: C.teal } });
  s.addText("Wharton's Duct", { x: 0.3, y: 5.18, w: 1.8, h: 0.32, fontSize: 9, bold: true, color: C.white, align: "center", valign: "middle", margin: 0 });
}

// ═══════════════════════════════════════════════════════════
// SLIDE 6 – RISK FACTORS
// ═══════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: C.off } });
  contentHeader(s, "5. Risk Factors");

  // Left column – reduced flow
  s.addShape(pres.ShapeType.rect, { x: 0.3, y: 0.9, w: 4.5, h: 4.5, fill: { color: C.light }, line: { color: C.teal, width: 1 } });
  s.addShape(pres.ShapeType.rect, { x: 0.3, y: 0.9, w: 4.5, h: 0.42, fill: { color: C.teal } });
  s.addText("Conditions Causing Reduced Salivary Flow", { x: 0.4, y: 0.9, w: 4.3, h: 0.42, fontSize: 11, bold: true, color: C.white, valign: "middle", margin: 0 });

  const flowItems = [
    { cat: "Dehydration", sub: "" },
    { cat: "Anorexia / Fasting", sub: "" },
    { cat: "Drugs:", sub: "" },
    { cat: "  • Antihistamines", sub: "" },
    { cat: "  • Antipsychotics", sub: "" },
    { cat: "  • Antidepressants", sub: "" },
    { cat: "  • Antihypertensives", sub: "" },
    { cat: "  • Anticholinergics", sub: "" },
    { cat: "  • Diuretics", sub: "" },
  ];
  const ftItems = flowItems.map((it, i) => ({
    text: it.cat,
    options: { bullet: { type: "bullet" }, breakLine: i < flowItems.length-1, fontSize: 11, color: it.cat.startsWith("  ") ? C.teal : C.navy, bold: !it.cat.startsWith("  ") }
  }));
  s.addText(ftItems, { x: 0.45, y: 1.38, w: 4.2, h: 3.85, valign: "top" });

  // Right column – other risk factors
  s.addShape(pres.ShapeType.rect, { x: 5.2, y: 0.9, w: 4.5, h: 4.5, fill: { color: "FEF3E2" }, line: { color: C.gold, width: 1 } });
  s.addShape(pres.ShapeType.rect, { x: 5.2, y: 0.9, w: 4.5, h: 0.42, fill: { color: C.gold } });
  s.addText("Other Risk Factors", { x: 5.3, y: 0.9, w: 4.3, h: 0.42, fontSize: 11, bold: true, color: C.navy, valign: "middle", margin: 0 });

  const otherItems = [
    "Radiotherapy",
    "Tobacco smoking",
    "Sjögren syndrome",
    "Hypercalcaemia",
    "Gout (uric acid accumulation)"
  ];
  const oItems = otherItems.map((it, i) => ({
    text: it,
    options: { bullet: { type: "bullet" }, breakLine: i < otherItems.length-1, fontSize: 11.5, color: C.text }
  }));
  s.addText(oItems, { x: 5.35, y: 1.38, w: 4.2, h: 2.5, valign: "top" });

  // Icon pills for drug classes
  const drugs = ["Antihistamines", "Antipsychotics", "Antidepressants", "Antihypertensives", "Anticholinergics", "Diuretics"];
  drugs.forEach((d, i) => {
    const col = i % 2;
    const row = Math.floor(i / 2);
    pillBox(s, 5.3 + col*2.1, 3.3 + row*0.55, 1.95, 0.4, d, C.navy, C.white);
  });
}

// ═══════════════════════════════════════════════════════════
// SLIDE 7 – CLINICAL FEATURES (Epidemiology + Meal Time Syndrome)
// ═══════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: C.off } });
  contentHeader(s, "6. Clinical Features");

  // Epidemiology pills
  const epiData = [
    { label: "Sex Ratio", val: "M : F = 2 : 1" },
    { label: "Peak Age", val: "30 – 50 years" },
    { label: "SMG Involvement", val: "≈ 80%" },
  ];
  epiData.forEach((e, i) => {
    const x = 0.3 + i * 3.2;
    s.addShape(pres.ShapeType.roundRect, { x, y: 0.88, w: 3.0, h: 0.7, rectRadius: 0.1, fill: { color: C.navy } });
    s.addText(e.label, { x: x+0.1, y: 0.88, w: 2.8, h: 0.32, fontSize: 10, bold: false, color: "8BBFCF", align: "center", valign: "bottom", margin: 0 });
    s.addText(e.val, { x: x+0.1, y: 1.18, w: 2.8, h: 0.32, fontSize: 13, bold: true, color: C.gold, align: "center", valign: "top", margin: 0 });
  });

  // MEAL TIME SYNDROME BOX
  s.addShape(pres.ShapeType.rect, { x: 0.3, y: 1.72, w: 9.4, h: 0.4, fill: { color: C.red } });
  s.addText("⚡  MEAL TIME SYNDROME  –  Classic Feature", {
    x: 0.3, y: 1.72, w: 9.4, h: 0.4, fontSize: 14, bold: true, color: C.white, align: "center", valign: "middle", margin: 0
  });

  // Mechanism flow
  const mechBoxes = [
    "Stone obstructs\nsalivary flow",
    "↑ Intraductal\npressure",
    "Pain and\nswelling"
  ];
  mechBoxes.forEach((m, i) => {
    const x = 0.4 + i * 2.3;
    s.addShape(pres.ShapeType.roundRect, { x, y: 2.2, w: 2.0, h: 0.8, rectRadius: 0.08, fill: { color: C.teal } });
    s.addText(m, { x, y: 2.2, w: 2.0, h: 0.8, fontSize: 10.5, color: C.white, bold: true, align: "center", valign: "middle", margin: 0 });
    if (i < 2) s.addShape(pres.ShapeType.rightArrow, { x: x+2.04, y: 2.42, w: 0.22, h: 0.36, fill: { color: C.gold } });
  });

  // Symptoms and Characteristics two-column
  infoBox(s, 0.3, 3.1, 4.5, 2.3, "Symptoms", [
    "Moderate to severe pain during meals",
    "Swelling during and after eating",
    "Symptoms worsen when salivary secretion increases",
    "Gradual reduction during rest",
    "Repeated episodes until complete obstruction",
  ], C.light, C.navy, C.text);

  infoBox(s, 5.1, 3.1, 4.6, 2.3, "Characteristics", [
    "Recurrent swelling related to meals",
    "Point tenderness over hilum or Wharton's duct",
    "Occasional spontaneous stone extrusion",
    "Gelatinous / cloudy / mucopurulent saliva",
    "Reduced or absent salivary flow",
  ], "FEF3E2", C.orange, C.text);
}

// ═══════════════════════════════════════════════════════════
// SLIDE 8 – CLINICAL FEATURES (Advanced / Secondary Infection)
// ═══════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: C.off } });
  contentHeader(s, "6. Clinical Features – Secondary Infection & Advanced Disease");

  // Secondary infection
  s.addShape(pres.ShapeType.rect, { x: 0.3, y: 0.88, w: 4.4, h: 4.5, fill: { color: "FFF0F0" }, line: { color: C.red, width: 1.2 } });
  s.addShape(pres.ShapeType.rect, { x: 0.3, y: 0.88, w: 4.4, h: 0.42, fill: { color: C.red } });
  s.addText("Secondary Infection", { x: 0.4, y: 0.88, w: 4.2, h: 0.42, fontSize: 12, bold: true, color: C.white, valign: "middle", margin: 0 });
  const infItems = ["Fever", "Tenseness", "Tenderness", "Trismus", "Reduced or absent salivary flow"];
  const infEl = infItems.map((it, i) => ({
    text: it,
    options: { bullet: { type: "bullet" }, breakLine: i < infItems.length-1, fontSize: 12, color: C.text }
  }));
  s.addText(infEl, { x: 0.45, y: 1.38, w: 4.1, h: 1.6 });

  s.addText("Salivary Changes:", { x: 0.45, y: 3.05, w: 4.0, h: 0.3, fontSize: 11, bold: true, color: C.red });
  s.addText("Gelatinous • Cloudy • Mucopurulent material mixed with clear saliva", {
    x: 0.45, y: 3.35, w: 4.1, h: 0.55, fontSize: 11, color: C.text, italic: true
  });

  // Advanced disease
  s.addShape(pres.ShapeType.rect, { x: 5.2, y: 0.88, w: 4.5, h: 4.5, fill: { color: "F0F9EC" }, line: { color: C.green, width: 1.2 } });
  s.addShape(pres.ShapeType.rect, { x: 5.2, y: 0.88, w: 4.5, h: 0.42, fill: { color: C.green } });
  s.addText("Advanced Disease – Acute Suppurative Sialadenitis", { x: 5.3, y: 0.88, w: 4.3, h: 0.42, fontSize: 10.5, bold: true, color: C.white, valign: "middle", margin: 0 });

  const advItems = [
    "Severe exacerbations",
    "Pus discharge from duct opening",
    "Systemic manifestations",
  ];
  const advEl = advItems.map((it, i) => ({
    text: it,
    options: { bullet: { type: "bullet" }, breakLine: i < advItems.length-1, fontSize: 12, color: C.text }
  }));
  s.addText(advEl, { x: 5.3, y: 1.38, w: 4.2, h: 1.1 });

  s.addText("Local Findings:", { x: 5.3, y: 2.52, w: 4.0, h: 0.3, fontSize: 11, bold: true, color: C.green });
  const localItems = ["Inflamed ductal mucosa", "Floor of mouth swelling", "Redness", "Tenderness along Wharton's duct"];
  const localEl = localItems.map((it, i) => ({
    text: it,
    options: { bullet: { type: "bullet" }, breakLine: i < localItems.length-1, fontSize: 11, color: C.text }
  }));
  s.addText(localEl, { x: 5.3, y: 2.82, w: 4.2, h: 1.0 });

  s.addText("Gland Examination:", { x: 5.3, y: 3.85, w: 4.0, h: 0.3, fontSize: 11, bold: true, color: C.green });
  s.addText("Enlarged • Tender • Tense\nPalpation causes pain and pus discharge", {
    x: 5.3, y: 4.15, w: 4.2, h: 0.7, fontSize: 11, color: C.text
  });
}

// ═══════════════════════════════════════════════════════════
// SLIDE 9 – DIAGNOSIS
// ═══════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: C.off } });
  contentHeader(s, "7 & 8. Diagnosis");

  // Clinical Exam
  s.addShape(pres.ShapeType.rect, { x: 0.3, y: 0.88, w: 4.4, h: 2.75, fill: { color: C.light }, line: { color: C.teal, width: 1 } });
  s.addShape(pres.ShapeType.rect, { x: 0.3, y: 0.88, w: 4.4, h: 0.42, fill: { color: C.teal } });
  s.addText("Clinical Examination", { x: 0.4, y: 0.88, w: 4.2, h: 0.42, fontSize: 12, bold: true, color: C.white, valign: "middle", margin: 0 });

  s.addText("Bimanual Palpation  (Most important)", { x: 0.45, y: 1.38, w: 4.1, h: 0.3, fontSize: 11, bold: true, color: C.navy });
  s.addText([
    { text: "• Stone palpable along duct\n", options: {} },
    { text: "• Hard mass in floor of mouth", options: {} }
  ], { x: 0.45, y: 1.7, w: 4.1, h: 0.6, fontSize: 11, color: C.text });

  s.addText("Milking Test", { x: 0.45, y: 2.35, w: 4.1, h: 0.3, fontSize: 11, bold: true, color: C.navy });
  s.addText("Inability to express saliva from duct opening suggests obstruction.", {
    x: 0.45, y: 2.65, w: 4.1, h: 0.55, fontSize: 11, color: C.text
  });

  // Imaging
  const imgMethods = [
    { name: "Occlusal / Lateral Radiograph", detail: "Conventional; detects calcified stones", color: C.teal },
    { name: "Sialography", detail: "Identifies exact location; shows ductal architecture", color: C.orange },
    { name: "Ultrasonography (USG)", detail: "Non-invasive; detects stones >2 mm", color: C.green },
    { name: "CT Scan", detail: "Useful for gland enlargement and chronic disease", color: C.navy },
    { name: "Scintigraphy / MRI", detail: "Advanced functional and structural assessment", color: "7B3BAA" },
  ];
  s.addShape(pres.ShapeType.rect, { x: 5.1, y: 0.88, w: 4.6, h: 0.42, fill: { color: C.navy } });
  s.addText("Radiographic Investigations", { x: 5.2, y: 0.88, w: 4.4, h: 0.42, fontSize: 12, bold: true, color: C.white, valign: "middle", margin: 0 });
  imgMethods.forEach((m, i) => {
    const y = 1.38 + i * 0.8;
    s.addShape(pres.ShapeType.roundRect, { x: 5.1, y, w: 4.6, h: 0.68, rectRadius: 0.07, fill: { color: C.white }, line: { color: m.color, width: 1.5 } });
    s.addShape(pres.ShapeType.rect, { x: 5.1, y, w: 0.1, h: 0.68, fill: { color: m.color } });
    s.addText(m.name, { x: 5.3, y: y+0.04, w: 4.2, h: 0.28, fontSize: 11, bold: true, color: m.color, margin: 0 });
    s.addText(m.detail, { x: 5.3, y: y+0.34, w: 4.2, h: 0.28, fontSize: 10, color: C.text, margin: 0 });
  });
}

// ═══════════════════════════════════════════════════════════
// SLIDE 10 – COMPLICATIONS
// ═══════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: C.off } });
  contentHeader(s, "9. Complications of Sialolithiasis");

  const comps = [
    { n: "1", title: "Acute Suppurative Sialadenitis", desc: "Bacterial infection of the obstructed gland; fever, pus, tenderness.", color: C.red },
    { n: "2", title: "Chronic Suppurative Sialadenitis", desc: "Persistent low-grade infection with repeated acute exacerbations.", color: C.orange },
    { n: "3", title: "Sialoangiectasis", desc: "Dilatation of salivary ducts due to prolonged obstruction.", color: "7B3BAA" },
    { n: "4", title: "Mucocele", desc: "Salivary retention leading to mucous cyst formation.", color: C.teal },
    { n: "5", title: "Glandular Atrophy", desc: "Complete obstruction may cause irreversible gland destruction.", color: C.navy },
  ];
  comps.forEach((c, i) => {
    const col = i % 2;
    const row = Math.floor(i / 2);
    const x = 0.3 + col * 5.0;
    const y = 0.95 + row * 1.55;
    const w = i === 4 ? 9.4 : 4.55;
    s.addShape(pres.ShapeType.roundRect, { x, y, w, h: 1.35, rectRadius: 0.1, fill: { color: C.white }, line: { color: c.color, width: 2 } });
    s.addShape(pres.ShapeType.ellipse, { x: x+0.12, y: y+0.35, w: 0.58, h: 0.58, fill: { color: c.color } });
    s.addText(c.n, { x: x+0.12, y: y+0.35, w: 0.58, h: 0.58, fontSize: 16, bold: true, color: C.white, align: "center", valign: "middle", margin: 0 });
    s.addText(c.title, { x: x+0.85, y: y+0.1, w: (i===4 ? 8.4 : 3.55), h: 0.35, fontSize: 12.5, bold: true, color: c.color, margin: 0 });
    s.addText(c.desc, { x: x+0.85, y: y+0.52, w: (i===4 ? 8.4 : 3.55), h: 0.7, fontSize: 11, color: C.text, margin: 0 });
  });
}

// ═══════════════════════════════════════════════════════════
// SLIDE 11 – TREATMENT: CONSERVATIVE
// ═══════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: C.off } });
  contentHeader(s, "10. Treatment – Conservative Management");

  const cGroups = [
    {
      title: "1. Local Measures", items: ["Warm compresses", "Salivary gland massage", "Sialogogues"],
      color: C.teal, x: 0.3, y: 0.92, w: 3.0
    },
    {
      title: "2. Stimulate Salivary Flow", items: ["Sour foods", "Lemon drops", "Hyperhydration", "→ Facilitates spontaneous stone expulsion"],
      color: C.green, x: 3.55, y: 0.92, w: 3.0
    },
    {
      title: "3. Acute Infection Control", items: ["Antibiotics", "Analgesics", "Good oral hygiene"],
      color: C.orange, x: 6.8, y: 0.92, w: 2.9
    },
    {
      title: "4. Drainage of Abscess", items: ["When pus collection is present", "Incision and drainage"],
      color: C.red, x: 0.3, y: 3.28, w: 4.55
    },
    {
      title: "5. Definitive Surgery", items: ["Performed AFTER acute inflammation subsides", "See surgical management slides"],
      color: C.navy, x: 5.15, y: 3.28, w: 4.55
    },
  ];
  cGroups.forEach((g) => {
    const h = g.y < 3 ? 2.15 : 2.05;
    s.addShape(pres.ShapeType.roundRect, { x: g.x, y: g.y, w: g.w, h, rectRadius: 0.1, fill: { color: C.white }, line: { color: g.color, width: 1.5 } });
    s.addShape(pres.ShapeType.rect, { x: g.x, y: g.y, w: g.w, h: 0.42, fill: { color: g.color } });
    // round top corners manually not needed; header fill
    s.addText(g.title, { x: g.x+0.1, y: g.y, w: g.w-0.2, h: 0.42, fontSize: 11, bold: true, color: C.white, valign: "middle", margin: 0 });
    const items = g.items.map((it, i) => ({
      text: it,
      options: { bullet: { type: "bullet" }, breakLine: i < g.items.length-1, fontSize: 11, color: C.text }
    }));
    s.addText(items, { x: g.x+0.12, y: g.y+0.5, w: g.w-0.24, h: h-0.6, valign: "top" });
  });
}

// ═══════════════════════════════════════════════════════════
// SLIDE 12 – SURGICAL MANAGEMENT OVERVIEW
// ═══════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: C.off } });
  contentHeader(s, "10B. Surgical Management Overview");

  // Decision tree diagram
  // Root
  s.addShape(pres.ShapeType.roundRect, { x: 3.5, y: 0.9, w: 3.0, h: 0.65, rectRadius: 0.1, fill: { color: C.navy } });
  s.addText("Sialolithiasis", { x: 3.5, y: 0.9, w: 3.0, h: 0.65, fontSize: 14, bold: true, color: C.white, align: "center", valign: "middle", margin: 0 });

  // Connector down
  s.addShape(pres.ShapeType.line, { x: 5.0, y: 1.55, w: 0, h: 0.4, line: { color: C.navy, width: 1.5 } });

  // Branch node
  s.addShape(pres.ShapeType.roundRect, { x: 3.5, y: 1.95, w: 3.0, h: 0.6, rectRadius: 0.08, fill: { color: C.teal } });
  s.addText("Where is the stone?", { x: 3.5, y: 1.95, w: 3.0, h: 0.6, fontSize: 12, bold: true, color: C.white, align: "center", valign: "middle", margin: 0 });

  // Two branches
  s.addShape(pres.ShapeType.line, { x: 2.8, y: 2.55, w: 2.2, h: 0, line: { color: C.teal, width: 1.5 } });
  s.addShape(pres.ShapeType.line, { x: 5.0, y: 2.55, w: 2.2, h: 0, line: { color: C.teal, width: 1.5 } });
  s.addShape(pres.ShapeType.line, { x: 2.8, y: 2.55, w: 0, h: 0.5, line: { color: C.teal, width: 1.5 } });
  s.addShape(pres.ShapeType.line, { x: 7.2, y: 2.55, w: 0, h: 0.5, line: { color: C.teal, width: 1.5 } });

  s.addShape(pres.ShapeType.roundRect, { x: 1.0, y: 3.05, w: 3.6, h: 0.7, rectRadius: 0.1, fill: { color: C.green } });
  s.addText("Within the Duct", { x: 1.0, y: 3.05, w: 3.6, h: 0.7, fontSize: 13, bold: true, color: C.white, align: "center", valign: "middle", margin: 0 });

  s.addShape(pres.ShapeType.roundRect, { x: 5.4, y: 3.05, w: 3.6, h: 0.7, rectRadius: 0.1, fill: { color: C.red } });
  s.addText("Within the Gland", { x: 5.4, y: 3.05, w: 3.6, h: 0.7, fontSize: 13, bold: true, color: C.white, align: "center", valign: "middle", margin: 0 });

  s.addShape(pres.ShapeType.line, { x: 2.8, y: 3.75, w: 0, h: 0.4, line: { color: C.green, width: 1.5 } });
  s.addShape(pres.ShapeType.line, { x: 7.2, y: 3.75, w: 0, h: 0.4, line: { color: C.red, width: 1.5 } });

  s.addShape(pres.ShapeType.roundRect, { x: 1.0, y: 4.15, w: 3.6, h: 0.8, rectRadius: 0.1, fill: { color: "E8F5E9" }, line: { color: C.green, width: 1.5 } });
  s.addText("Intraoral Sialolithotomy", { x: 1.0, y: 4.15, w: 3.6, h: 0.8, fontSize: 12.5, bold: true, color: C.green, align: "center", valign: "middle", margin: 0 });

  s.addShape(pres.ShapeType.roundRect, { x: 5.4, y: 4.15, w: 3.6, h: 0.8, rectRadius: 0.1, fill: { color: "FEECEC" }, line: { color: C.red, width: 1.5 } });
  s.addText("Sialadenectomy\n(Gland Removal)", { x: 5.4, y: 4.15, w: 3.6, h: 0.8, fontSize: 12.5, bold: true, color: C.red, align: "center", valign: "middle", margin: 0 });
}

// ═══════════════════════════════════════════════════════════
// SLIDE 13 – SIALODOCHOPLASTY
// ═══════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: C.off } });
  contentHeader(s, "11. Sialodochoplasty");

  // Definition
  s.addShape(pres.ShapeType.rect, { x: 0.3, y: 0.88, w: 9.4, h: 1.2, fill: { color: C.navy } });
  s.addText([
    { text: "Sialodochoplasty", options: { bold: true, color: C.gold } },
    { text: " – Surgical repair of a salivary duct by ", options: { color: C.white } },
    { text: "widening the ductal opening", options: { bold: true, color: C.sky } },
    { text: " and/or ", options: { color: C.white } },
    { text: "shortening the duct", options: { bold: true, color: C.sky } },
    { text: " to prevent restenosis and re-narrowing.", options: { color: C.white } }
  ], { x: 0.45, y: 0.95, w: 9.1, h: 1.02, fontSize: 13, valign: "middle" });

  // Purpose + Technique two-column
  s.addShape(pres.ShapeType.rect, { x: 0.3, y: 2.22, w: 4.4, h: 3.15, fill: { color: C.light }, line: { color: C.teal, width: 1 } });
  s.addShape(pres.ShapeType.rect, { x: 0.3, y: 2.22, w: 4.4, h: 0.42, fill: { color: C.teal } });
  s.addText("Purpose", { x: 0.4, y: 2.22, w: 4.2, h: 0.42, fontSize: 12, bold: true, color: C.white, valign: "middle", margin: 0 });
  const purpItems = ["Prevents restenosis (re-narrowing of the duct)", "Maintains ductal patency long-term", "Reduces recurrence of obstruction"];
  const purpEl = purpItems.map((it, i) => ({
    text: it,
    options: { bullet: { type: "bullet" }, breakLine: i < purpItems.length-1, fontSize: 12, color: C.text }
  }));
  s.addText(purpEl, { x: 0.45, y: 2.72, w: 4.1, h: 1.5 });

  s.addShape(pres.ShapeType.rect, { x: 5.1, y: 2.22, w: 4.6, h: 3.15, fill: { color: "FEF3E2" }, line: { color: C.gold, width: 1 } });
  s.addShape(pres.ShapeType.rect, { x: 5.1, y: 2.22, w: 4.6, h: 0.42, fill: { color: C.gold } });
  s.addText("Technique", { x: 5.2, y: 2.22, w: 4.4, h: 0.42, fontSize: 12, bold: true, color: C.navy, valign: "middle", margin: 0 });
  const techItems = [
    "Duct may be sutured open (marsupialization)",
    "Stent placed for 7–10 days",
    "Stent maintains patency during healing",
  ];
  const techEl = techItems.map((it, i) => ({
    text: it,
    options: { bullet: { type: "bullet" }, breakLine: i < techItems.length-1, fontSize: 12, color: C.text }
  }));
  s.addText(techEl, { x: 5.2, y: 2.72, w: 4.4, h: 1.5 });
}

// ═══════════════════════════════════════════════════════════
// SLIDE 14 – PAROTID CALCULI REMOVAL
// ═══════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: C.off } });
  contentHeader(s, "12. Removal of Parotid Gland Calculi  –  Stensen's Duct");

  // Location row
  const locs = ["Papilla", "Submucous duct", "Extraglandular duct\n(outside buccinator)", "Intraglandular duct"];
  locs.forEach((l, i) => {
    pillBox(s, 0.35 + i*2.4, 0.88, 2.2, 0.55, l, C.navy, C.white);
    if (i < 3) s.addShape(pres.ShapeType.rightArrow, { x: 0.35+i*2.4+2.23, y: 0.98, w: 0.14, h: 0.3, fill: { color: C.gold } });
  });

  // Three procedure boxes
  const procs = [
    {
      label: "A. Papillary & Submucosal",
      steps: [
        "Slitting of papilla",
        "Small incision into duct",
        "Gentle gland pressure",
        "Saliva flushes out stone"
      ],
      color: C.teal
    },
    {
      label: "B. Extraglandular Duct",
      steps: [
        "Intraoral incision in cheek",
        "Y-shaped incision around papilla",
        "Blunt dissection through buccinator",
        "Identify & isolate Stensen's duct",
        "Longitudinal duct incision",
        "Stone removal; duct left open"
      ],
      color: C.orange
    },
    {
      label: "C. Intraglandular Duct",
      steps: [
        "Extraoral approach",
        "Similar to parotidectomy procedure",
        "Used when stone lies posteriorly",
        "in glandular duct system"
      ],
      color: C.red
    }
  ];
  procs.forEach((p, i) => {
    const x = 0.3 + i * 3.25;
    s.addShape(pres.ShapeType.roundRect, { x, y: 1.55, w: 3.1, h: 3.85, rectRadius: 0.1, fill: { color: C.white }, line: { color: p.color, width: 1.8 } });
    s.addShape(pres.ShapeType.rect, { x, y: 1.55, w: 3.1, h: 0.45, fill: { color: p.color } });
    s.addText(p.label, { x: x+0.08, y: 1.55, w: 2.94, h: 0.45, fontSize: 11, bold: true, color: C.white, valign: "middle", margin: 0 });
    p.steps.forEach((st, j) => {
      const sy = 2.1 + j * 0.55;
      s.addShape(pres.ShapeType.ellipse, { x: x+0.12, y: sy+0.05, w: 0.28, h: 0.28, fill: { color: p.color } });
      s.addText(String(j+1), { x: x+0.12, y: sy+0.05, w: 0.28, h: 0.28, fontSize: 9, bold: true, color: C.white, align: "center", valign: "middle", margin: 0 });
      s.addText(st, { x: x+0.5, y: sy, w: 2.5, h: 0.48, fontSize: 10, color: C.text, valign: "middle", margin: 0 });
    });
  });
}

// ═══════════════════════════════════════════════════════════
// SLIDE 15 – SUBMANDIBULAR CALCULI: ANTERIOR + POSTERIOR
// ═══════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: C.off } });
  contentHeader(s, "13. Removal of Submandibular Calculi  –  Wharton's Duct");

  // Location label
  s.addShape(pres.ShapeType.roundRect, { x: 0.3, y: 0.88, w: 9.4, h: 0.42, rectRadius: 0.08, fill: { color: C.navy } });
  s.addText("Most Common Location: Extraglandular portion of Wharton's duct", {
    x: 0.35, y: 0.88, w: 9.3, h: 0.42, fontSize: 12, bold: true, color: C.gold, align: "center", valign: "middle", margin: 0
  });

  // Anterior
  s.addShape(pres.ShapeType.rect, { x: 0.3, y: 1.42, w: 4.6, h: 4.0, fill: { color: C.light }, line: { color: C.teal, width: 1.2 } });
  s.addShape(pres.ShapeType.rect, { x: 0.3, y: 1.42, w: 4.6, h: 0.45, fill: { color: C.teal } });
  s.addText("A. Anterior Duct Calculi  (Anterior to 2nd molar)", {
    x: 0.4, y: 1.42, w: 4.4, h: 0.45, fontSize: 11, bold: true, color: C.white, valign: "middle", margin: 0
  });
  const antSteps = [
    "Place suture posterior to stone (prevent displacement)",
    "Place traction sutures anterior & posterior to calculus",
    "Make incision along duct",
    "Identify Wharton's duct",
    "Mobilise duct",
    "Longitudinal incision over stone",
    "Remove calculus",
    "Duct incision NOT sutured (avoid stricture)",
  ];
  antSteps.forEach((st, j) => {
    const sy = 1.98 + j * 0.43;
    s.addShape(pres.ShapeType.ellipse, { x: 0.4, y: sy+0.07, w: 0.26, h: 0.26, fill: { color: j === 7 ? C.red : C.teal } });
    s.addText(String(j+1), { x: 0.4, y: sy+0.07, w: 0.26, h: 0.26, fontSize: 8.5, bold: true, color: C.white, align: "center", valign: "middle", margin: 0 });
    s.addText(st, { x: 0.76, y: sy, w: 4.0, h: 0.38, fontSize: 10, color: j === 7 ? C.red : C.text, valign: "middle", bold: j === 7, margin: 0 });
  });

  // Posterior
  s.addShape(pres.ShapeType.rect, { x: 5.1, y: 1.42, w: 4.6, h: 4.0, fill: { color: "FEF3E2" }, line: { color: C.orange, width: 1.2 } });
  s.addShape(pres.ShapeType.rect, { x: 5.1, y: 1.42, w: 4.6, h: 0.45, fill: { color: C.orange } });
  s.addText("B. Posterior Duct Calculi", {
    x: 5.2, y: 1.42, w: 4.4, h: 0.45, fontSize: 11, bold: true, color: C.white, valign: "middle", margin: 0
  });
  const postSteps = [
    "Pass lacrimal probe through duct",
    "Mucosal incision opposite premolar region",
    "Trace duct posteriorly",
    "Identify and PROTECT lingual nerve",
    "Apply pressure on gland to elevate duct",
    "Longitudinal duct incision",
    "Remove calculus",
    "Close mucosa; duct left open",
  ];
  postSteps.forEach((st, j) => {
    const sy = 1.98 + j * 0.43;
    s.addShape(pres.ShapeType.ellipse, { x: 5.2, y: sy+0.07, w: 0.26, h: 0.26, fill: { color: j === 3 ? C.red : C.orange } });
    s.addText(String(j+1), { x: 5.2, y: sy+0.07, w: 0.26, h: 0.26, fontSize: 8.5, bold: true, color: C.white, align: "center", valign: "middle", margin: 0 });
    s.addText(st, { x: 5.56, y: sy, w: 4.0, h: 0.38, fontSize: 10, color: j === 3 ? C.red : C.text, valign: "middle", bold: j === 3, margin: 0 });
  });
}

// ═══════════════════════════════════════════════════════════
// SLIDE 16 – INTRAGLANDULAR SUBMANDIBULAR CALCULI + SIALADENECTOMY
// ═══════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: C.off } });
  contentHeader(s, "13C. Intraglandular Submandibular Calculi & Sialadenectomy");

  // Asymptomatic
  s.addShape(pres.ShapeType.roundRect, { x: 0.3, y: 0.88, w: 4.5, h: 2.3, rectRadius: 0.1, fill: { color: C.white }, line: { color: C.green, width: 1.5 } });
  s.addShape(pres.ShapeType.rect, { x: 0.3, y: 0.88, w: 4.5, h: 0.42, fill: { color: C.green } });
  s.addText("Asymptomatic Stone  –  Observe if:", { x: 0.4, y: 0.88, w: 4.3, h: 0.42, fontSize: 11.5, bold: true, color: C.white, valign: "middle", margin: 0 });
  const asymItems = ["Stone is small", "Normal gland function", "Normal sialography findings"];
  const asymEl = asymItems.map((it, i) => ({
    text: it,
    options: { bullet: { type: "bullet" }, breakLine: i < asymItems.length-1, fontSize: 12, color: C.text }
  }));
  s.addText(asymEl, { x: 0.45, y: 1.4, w: 4.2, h: 1.5 });

  // Symptomatic
  s.addShape(pres.ShapeType.roundRect, { x: 5.2, y: 0.88, w: 4.5, h: 2.3, rectRadius: 0.1, fill: { color: "FFF0F0" }, line: { color: C.red, width: 1.5 } });
  s.addShape(pres.ShapeType.rect, { x: 5.2, y: 0.88, w: 4.5, h: 0.42, fill: { color: C.red } });
  s.addText("Symptomatic Stone  –  Indications for Surgery:", { x: 5.3, y: 0.88, w: 4.3, h: 0.42, fontSize: 11.5, bold: true, color: C.white, valign: "middle", margin: 0 });
  const sympItems = ["Recurrent infection", "Impaired gland function", "Abnormal glandular architecture"];
  const sympEl = sympItems.map((it, i) => ({
    text: it,
    options: { bullet: { type: "bullet" }, breakLine: i < sympItems.length-1, fontSize: 12, color: C.text }
  }));
  s.addText(sympEl, { x: 5.35, y: 1.4, w: 4.2, h: 1.5 });

  // Sialadenectomy box
  s.addShape(pres.ShapeType.rect, { x: 0.3, y: 3.32, w: 9.4, h: 2.1, fill: { color: C.navy } });
  s.addText("SIALADENECTOMY  –  Submandibular Gland Removal", {
    x: 0.4, y: 3.35, w: 9.2, h: 0.45, fontSize: 14, bold: true, color: C.gold, align: "center", valign: "middle", margin: 0
  });
  s.addText("Treatment of choice for intraglandular calculi when:", {
    x: 0.45, y: 3.82, w: 9.1, h: 0.35, fontSize: 11, color: C.sky, italic: true
  });
  const sadItems = [
    "Recurrent acute or chronic suppurative sialadenitis",
    "Irreversible glandular changes or ductal damage on sialography",
    "Failed conservative or duct-only surgical management",
  ];
  sadItems.forEach((it, i) => {
    s.addShape(pres.ShapeType.rightArrow, { x: 0.5, y: 4.22 + i*0.35, w: 0.3, h: 0.25, fill: { color: C.gold } });
    s.addText(it, { x: 0.95, y: 4.18 + i*0.35, w: 8.7, h: 0.3, fontSize: 11, color: C.white, margin: 0 });
  });
}

// ═══════════════════════════════════════════════════════════
// SLIDE 17 – SUMMARY TABLE
// ═══════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: C.off } });
  contentHeader(s, "Summary – Sialolithiasis at a Glance");

  const rows = [
    ["Parameter", "Details"],
    ["Most common gland", "Submandibular (≈ 80%)"],
    ["Sex & age", "M:F = 2:1;  peak 30–50 years"],
    ["Growth rate", "~1 mm / year"],
    ["Classic symptom", "Meal time syndrome (pain + swelling with meals)"],
    ["Diagnosis", "Bimanual palpation; occlusal X-ray; USG; sialography"],
    ["Duct stones (SMG)", "Intraoral sialolithotomy; duct NOT sutured"],
    ["Posterior stones", "Protect lingual nerve; lacrimal probe for guidance"],
    ["Gland stones", "Sialadenectomy (gland removal)"],
    ["Duct repair", "Sialodochoplasty; stent 7–10 days"],
  ];
  const colW = [3.2, 6.5];
  const rh = 0.44;
  rows.forEach((row, ri) => {
    const y = 0.92 + ri * rh;
    const isHeader = ri === 0;
    row.forEach((cell, ci) => {
      const x = ci === 0 ? 0.28 : 3.5;
      const bg = isHeader ? C.navy : (ri % 2 === 0 ? C.white : C.sky);
      s.addShape(pres.ShapeType.rect, { x, y, w: colW[ci], h: rh, fill: { color: bg }, line: { color: "C8DDE5", width: 0.5 } });
      s.addText(cell, {
        x: x+0.1, y, w: colW[ci]-0.2, h: rh,
        fontSize: isHeader ? 12 : 11,
        bold: isHeader || ci === 0,
        color: isHeader ? C.gold : (ci === 0 ? C.navy : C.text),
        valign: "middle", margin: 0
      });
    });
  });
}

// ═══════════════════════════════════════════════════════════
// SLIDE 18 – CLOSING
// ═══════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  titleSlide(s);

  s.addShape(pres.ShapeType.ellipse, { x: 3.5, y: -1, w: 5, h: 5, fill: { color: "1A3D6B" }, line: { color: "1A3D6B" } });
  s.addShape(pres.ShapeType.ellipse, { x: -1, y: 3, w: 4, h: 4, fill: { color: "0F2E55" }, line: { color: "0F2E55" } });

  s.addText("Key Takeaways", {
    x: 0.5, y: 0.6, w: 9, h: 0.7, fontSize: 28, bold: true, color: C.gold, align: "center"
  });
  s.addShape(pres.ShapeType.rect, { x: 3.5, y: 1.35, w: 3, h: 0.05, fill: { color: C.teal } });

  const takeaways = [
    "Submandibular gland is most often affected due to anatomy and secretion characteristics",
    "Meal time syndrome is the hallmark: pain and swelling triggered by eating",
    "Bimanual palpation is the most important clinical examination technique",
    "Duct incisions are left open after stone removal to prevent stricture",
    "Protect the lingual nerve during posterior Wharton's duct surgery",
    "Sialadenectomy is reserved for intraglandular stones with irreversible gland damage",
  ];
  takeaways.forEach((t, i) => {
    s.addShape(pres.ShapeType.ellipse, { x: 0.5, y: 1.5 + i*0.62, w: 0.25, h: 0.25, fill: { color: C.teal } });
    s.addText(t, { x: 0.85, y: 1.45 + i*0.62, w: 8.7, h: 0.55, fontSize: 11.5, color: C.white, valign: "middle", margin: 0 });
  });
}

// ── WRITE FILE ────────────────────────────────────────────
pres.writeFile({ fileName: "/home/daytona/workspace/sialolithiasis-ppt/Sialolithiasis.pptx" })
  .then(() => console.log("Done: Sialolithiasis.pptx"))
  .catch(e => { console.error(e); process.exit(1); });
Running Command

cd /home/daytona/workspace/sialolithiasis-ppt && node build.js

Running Command

ls -lh /home/daytona/workspace/sialolithiasis-ppt/Sialolithiasis.pptx

Your presentation is ready!

Sialolithiasis

Presentation · PPTX


Here's what's included across 18 professionally designed slides with a navy/teal/gold color palette:
SlideContent
1Title slide
2Definition + Characteristics table
3Composition - 3 columns (Inorganic / Organic / Foreign bodies)
4Etiology & Pathogenesis - flowchart with 3 prerequisites + Clinical Significance footer
5Why Submandibular? - 80% stat + 5 color-coded reasons
6Risk Factors - two-column layout (Reduced Flow / Other)
7Clinical Features - Epidemiology stats + Meal Time Syndrome mechanism flow
8Secondary Infection & Advanced Disease
9Diagnosis - Bimanual palpation + 5 imaging methods
10Complications - numbered cards (Suppurative sialadenitis → Atrophy)
11Conservative Management - 5 treatment groups
12Surgical Decision Tree - Duct stone → Sialolithotomy vs Gland stone → Sialadenectomy
13Sialodochoplasty - definition, purpose, technique
14Parotid Calculi Removal - Step-by-step for A/B/C locations
15Submandibular Calculi - Anterior vs Posterior duct (side-by-side steps)
16Intraglandular Calculi + Sialadenectomy indications
17Summary table - all key parameters at a glance
18Key Takeaways closing slide
All diagrams (decision trees, pathogenesis flowcharts, step-number sequences) are built directly inside the slides using shapes and arrows.

give pdf of the above ppt

Running Command

libreoffice --headless --convert-to pdf /home/daytona/workspace/sialolithiasis-ppt/Sialolithiasis.pptx --outdir /home/daytona/workspace/sialolithiasis-ppt/

Running Command

libreoffice --headless --convert-to pdf /home/daytona/workspace/sialolithiasis-ppt/Sialolithiasis.pptx --outdir /tmp/ 2>&1 && ls -lh /tmp/Sialolithiasis.pdf

Running Command

cp /tmp/Sialolithiasis.pdf /home/daytona/workspace/sialolithiasis-ppt/Sialolithiasis.pdf && ls -lh /home/daytona/workspace/sialolithiasis-ppt/Sialolithiasis.pdf

Your PDF is ready — all 18 slides converted cleanly at 208 KB.

Sialolithiasis

PDF Document · PDF

convert above matter about sialo lithiasis into image

Asking for Preferences
Generating Image

Medical infographic on "Sialolithiasis – Definition & Characteristics". Dark navy background. Title at top in gold bold text. Two sections: Left panel titled "Definition" with text: "Mechanical obstruction of salivary flow caused by salivary calculi (sialoliths) within the ductal system or glandular tissue. Develops around an organic nidus, enlarging through deposition of inorganic and organic materials." Right panel titled "Characteristics of Sialoliths" as a clean table with rows: Growth rate ~1 mm/year, Single or multiple, Shape: round/oval/elongated, Color: yellowish-white, Size: 1–10 mm. Teal and gold accent colors, clean medical education style, white text, professional layout.

Generating Image

Medical infographic on "Sialolithiasis – Composition of Sialoliths". Dark navy background with teal accents. Three vertical columns with colored headers: Column A "Inorganic Components" (teal header) – bullets: Calcium phosphate salts, Hydroxyapatite, Octacalcium phosphate. Column B "Organic Components / Nidus" (gold header) – bullets: Desquamated epithelial cells, Bacteria, Bacterial decomposition products, Glycoproteins, Mucopolysaccharides. Column C "Foreign Bodies as Nidus" (orange header) – bullets: Toothbrush bristles, Fingernails, Wood splinters, Hair, Grass blades, Fish bones. Clean white text, professional medical education poster style, icons or bullets for each item.

Generating Image

Medical infographic on "Sialolithiasis – Etiology, Pathogenesis & Why Submandibular Gland". Navy blue background. Top section: "3 Prerequisites for Stone Formation" shown as a vertical flowchart with arrows: Box 1 (teal) "Salivary Stagnation – reduced flow due to neurohumoral disturbance", Arrow down, Box 2 (gold) "Presence of Nidus – organic matrix as center", Arrow down, Box 3 (orange) "Salt Precipitation – Ca2+ and PO4 crystallise around nidus in inflammation". Bottom section: "Why Submandibular? ~80% of cases" with 5 colored bullet points: Alkaline saliva pH 6.8–7.1, High calcium/phosphate concentration, Salt precipitation, Mucin-rich viscous saliva, Wharton's duct – long tortuous non-dependent drainage against gravity. Clean professional medical poster, white text, color-coded sections.

Generating Image

Medical infographic on "Sialolithiasis – Risk Factors". Navy blue background with teal title bar. Two side-by-side panels. Left panel (teal border) titled "Conditions Causing Reduced Salivary Flow": Dehydration, Anorexia, Fasting, then a subgroup "Drugs:" with indented list: Antihistamines, Antipsychotics, Antidepressants, Antihypertensives, Anticholinergics, Diuretics. Right panel (gold border) titled "Other Risk Factors": Radiotherapy, Tobacco smoking, Sjogren syndrome, Hypercalcaemia, Gout (uric acid accumulation). Each drug shown as a small colored pill-shaped badge. White text on dark panels, professional clean medical education style.

Generating Image

Medical infographic on "Sialolithiasis – Clinical Features & Meal Time Syndrome". Dark navy background. Top row: 3 stat badges showing "M:F = 2:1", "Peak Age 30–50 yrs", "SMG ~80%". Center section: Bold red banner "MEAL TIME SYNDROME – Classic Feature". Below it a horizontal flowchart: Box "Stone obstructs salivary flow" → Arrow → Box "Increased intraductal pressure" → Arrow → Box "Pain and swelling during meals". Two columns below: Left (teal) "Symptoms": moderate-severe pain during meals, swelling during/after eating, worsens with salivary secretion, gradual reduction at rest, repeated episodes. Right (orange) "Other Features": occasional stone extrusion, point tenderness over hilum/Wharton's duct, gelatinous/cloudy/mucopurulent saliva, reduced salivary flow. Clean professional medical poster style, white text, bright accent colors.

Generating Image

Medical infographic on "Sialolithiasis – Diagnosis". Dark navy background, teal header. Left half titled "Clinical Examination": Large section for "Bimanual Palpation – Most Important Method" with findings: stone palpable along duct, hard mass in floor of mouth. Section below for "Milking Test": inability to express saliva from duct suggests obstruction. Right half titled "Radiographic Investigations" as a vertical list of colored cards: 1. Occlusal/Lateral Radiograph (teal) – conventional, 2. Sialography (orange) – exact location, 3. Ultrasonography USG (green) – non-invasive, detects stones >2mm, 4. CT Scan (blue) – gland enlargement chronic disease, 5. Scintigraphy/MRI (purple) – advanced assessment. Clean white text, professional medical education infographic style.

Generating Image

Medical infographic on "Sialolithiasis – Complications". Dark navy background. Title in gold. Five large numbered cards arranged in a grid: Card 1 (red) "Acute Suppurative Sialadenitis – bacterial infection, fever, pus, tenderness", Card 2 (orange) "Chronic Suppurative Sialadenitis – persistent low-grade infection", Card 3 (purple) "Sialoangiectasis – ductal dilatation from prolonged obstruction", Card 4 (teal) "Mucocele – salivary retention cyst", Card 5 (navy with gold border) "Glandular Atrophy – irreversible gland destruction from complete obstruction". Each card has a large bold number circle, title in colored bold text, description in white text. Clean professional medical poster style.

Generating Image

Medical infographic on "Sialolithiasis – Treatment: Conservative & Surgical Management". Dark navy background. Top half "Conservative Management" with 5 teal/green boxes: 1 Local Measures (warm compress, massage, sialogogues), 2 Stimulate Flow (sour foods, lemon drops, hyperhydration), 3 Infection Control (antibiotics, analgesics, oral hygiene), 4 Drain Abscess (when pus present), 5 Definitive Surgery (after acute phase subsides). Bottom half "Surgical Decision Tree": central diamond "Stone Location?" with two branches: Left green arrow "Within Duct → Intraoral Sialolithotomy", Right red arrow "Within Gland → Sialadenectomy (gland removal)". Clean medical education infographic, white text, color-coded boxes, professional style.

Generating Image

Medical infographic on "Sialolithiasis – Surgical Techniques: Parotid & Submandibular Calculi Removal". Dark navy background. Top section "Parotid (Stensen's Duct)" with three color-coded columns: A Papillary/Submucosal (teal) – slit papilla, small duct incision, gentle pressure to flush stone. B Extraglandular (orange) – intraoral cheek incision, Y-incision around papilla, blunt dissection through buccinator, duct incision, stone removal, duct left open. C Intraglandular (red) – extraoral approach, similar to parotidectomy. Bottom section "Submandibular (Wharton's Duct)" with two columns: Anterior (teal) – suture posterior to stone, traction sutures, duct incision, remove stone, DO NOT suture duct. Posterior (orange) – lacrimal probe, premolar incision, trace duct, PROTECT LINGUAL NERVE, gland pressure, longitudinal incision, remove stone. Clean numbered steps, white text, professional medical education style.

Generating Image

Medical infographic on "Sialolithiasis – Sialodochoplasty & Sialadenectomy". Dark navy background. Top half "Sialodochoplasty": Definition box in gold "Surgical repair of salivary duct by widening ductal opening and/or shortening the duct". Two columns: Purpose (teal) – prevents restenosis, maintains ductal patency, reduces recurrence. Technique (gold) – duct sutured open, stent placed for 7–10 days, maintains patency during healing. Bottom half "Sialadenectomy – Submandibular Gland Removal": Bold red/gold banner. Indications as three colored arrows: Recurrent infection, Impaired gland function, Abnormal glandular architecture. Text: "Treatment of choice for intraglandular calculi with irreversible gland damage". Clean professional medical education infographic, white text, bright accent colors.

i have a library dessertation topic on recent advances in tmj reconstruction find 100 best articles from recent to past

Reading File
Searching PubMed

"temporomandibular joint"[MeSH Terms] AND "reconstruction"[tiab]

Searching PubMed

"temporomandibular joint"[MeSH Terms] AND "alloplastic reconstruction"

Searching PubMed

"TMJ prosthesis"[tiab] OR "total joint replacement"[tiab] AND "temporomandibular"[tiab]

Searching PubMed

"temporomandibular joint"[MeSH Terms] AND "tissue engineering"[MeSH Terms]

Searching PubMed

"condylar reconstruction"[tiab] AND "temporomandibular"[tiab]

Searching PubMed

"temporomandibular joint"[MeSH Terms] AND "3D printing" OR "custom prosthesis"[tiab]

Searching PubMed

"temporomandibular joint"[MeSH Terms] AND "costochondral graft"[tiab]

Searching PubMed

"temporomandibular joint"[MeSH Terms] AND "fibula free flap"[tiab]

Searching PubMed

"TMJ ankylosis"[tiab] AND "surgical treatment"[tiab]

Searching PubMed

"temporomandibular joint"[MeSH Terms] AND "stem cells"[tiab] OR "regenerative medicine"[tiab]

Here are 100 best peer-reviewed articles on Recent Advances in TMJ Reconstruction, organized from most recent to past, grouped by topic/evidence level.

100 Best Articles: Recent Advances in TMJ Reconstruction

Library Dissertation Reference List | Ordered Recent → Past


SECTION A: SYSTEMATIC REVIEWS & META-ANALYSES (Highest Evidence)

#YearAuthorsTitleJournalPMID
12025Mushtaq M et al.Mandibular reconstruction with custom-made extended total TMJ prosthesis after resection of ameloblastoma: A systematic reviewOral Maxillofac Surg40973830
22024Lima FGGP et al.Survival of temporomandibular total joint replacement: A systematic review and meta-analysisJ Oral Rehabil38071499
32024Arif H et al.Total temporomandibular joint reconstruction prosthesis in hemifacial microsomia: A systematic reviewOrthod Craniofac Res37533308
42024Khattak YR et al.Can growing patients with end-stage TMJ pathology be successfully treated with alloplastic TMJ reconstruction? – A systematic reviewOral Maxillofac Surg37733214
52023Niezen ET et al.TMJ prosthesis as treatment option for mandibular condyle fractures: a systematic review and meta-analysisInt J Oral Maxillofac Surg35752530
62023Wadde KR et al.Long-term complications of costochondral graft reconstruction in TMJ ankylosis of the young – a systematic reviewJ Stomatol Oral Maxillofac Surg36914003
72022Matheus HR et al.Stem cell-based therapies for TMJ osteoarthritis and cartilage/osteochondral defects: a systematic reviewOsteoarthritis Cartilage35597373
82022Singh AK et al.Transport distraction osteogenesis vs autogenous grafts for ramus-condyle unit reconstruction in TMJ ankylosis: systematic review and meta-analysisBr J Oral Maxillofac Surg35304005
92021Yaseen M et al.Temporomandibular total joint replacement implant devices: A systematic review of their outcomesJ Long Term Eff Med Implants34369728
102021Kumar S et al.Impact of technology in temporomandibular joint reconstruction surgeries: A systematic reviewJ Plast Reconstr Aesthet Surg33597084
112021Rozanski C et al.Ankylosis of the temporomandibular joint in pediatric patientsJ Craniofac Surg31163568
122021Ermolin VI et al.Temporomandibular joint replacement: old ideas and new conceptsStomatologiia (Mosk)34357741
132019Frid P et al.Surgical correction of dentofacial deformities in juvenile idiopathic arthritis: a systematic literature reviewInt J Oral Maxillofac Surg30704836

SECTION B: RANDOMIZED CONTROLLED TRIALS

#YearAuthorsTitleJournalPMID
142024Jia XY et al.RCT of concentrated growth factor combined with sodium hyaluronate in TMJ osteoarthritisBMC Oral Health38720327
152021Roychoudhury A et al.Gap arthroplasty plus costochondral graft vs gap arthroplasty alone in pediatric TMJ ankylosis: A cluster RCTJ Oral Maxillofac Surg34592135
162020Kaur K et al.Transport disc distraction osteogenesis vs costochondral graft for ramus-condyle unit in pediatric TMJ ankylosisJ Oral Maxillofac Surg32105616
172020Shandilya S et al.Effect of preoperative botulinum toxin A on pain and mouth opening after surgical intervention in TMJ ankylosisJ Oral Maxillofac Surg32171600

SECTION C: COMPREHENSIVE REVIEWS – RECENT ADVANCES & EVOLUTION

#YearAuthorsTitleJournalPMID
182025Liu H et al.Evolution of temporomandibular joint reconstruction: from autologous tissue transplantation to alloplastic joint replacementInt J Oral Sci40059224
192025Unsal G et al.Imaging of the temporomandibular joint interventionsNeuroimaging Clin N Am41161938
202024Dolwick MF, Widmer CGTemporomandibular joint surgery: the past, present, and futureInt J Oral Maxillofac Surg38135637
212024Disse GD et al.Updates on temporomandibular joint reconstruction following ablative surgeryCurr Opin Otolaryngol Head Neck Surg39146226
222024Vargas E et al.Long-term stability in temporomandibular joint replacement: A review of related variablesDent J (Basel)39590422
232023Wroclawski C et al.Recent advances in temporomandibular joint surgeryMedicina (Kaunas)37629699
242023Khattak YR et al.Extended total temporomandibular joint reconstruction prosthesis: A comprehensive analysisJ Stomatol Oral Maxillofac Surg36720364
252023Huo L et al.Introduction of TMJ and skull base combined reconstruction by autogenous bone graftClin Oral Investig37221432
262023Henein P, Ziccardi VBTemporomandibular disorders: surgical implications and managementDent Clin North Am36965936
272022Saeed NR, Gerber BAutogenous reconstruction of the temporomandibular jointAtlas Oral Maxillofac Surg Clin North Am36116881
282022Angelo DF, Gil FMTissue engineering in temporomandibular joint reconstructionAtlas Oral Maxillofac Surg Clin North Am36116883
292022Warburton G, Mercuri LGAlloplastic reconstruction of the TMJ in patients with dentofacial deformitiesAtlas Oral Maxillofac Surg Clin North Am36116882
302022Anderson SR et al.Reconstruction of the mandibular condyleFacial Plast Surg33878796
312022Upadya VH et al.Classification and surgical management of temporomandibular joint ankylosis: a reviewJ Korean Assoc Oral Maxillofac Surg34462381
322021Yadav P et al.Total alloplastic temporomandibular joint replacementJ Maxillofac Oral Surg34776679
332021Rai SAutogenous fat as an ideal interpositional material in temporomandibular joint surgeryJ Maxillofac Oral Surg34776680
342020De Meurechy NKG et al.Total TMJ replacement: stock or optimization by customization?Craniomaxillofac Trauma Reconstr32642034
352020Yoda T et al.Clinical guidelines for total temporomandibular joint replacementJpn Dent Sci Rev32612715
362020Amarista FJ et al.Temporomandibular joint prosthesis revision and/or replacement: survey and review of the literatureJ Oral Maxillofac Surg32610046
372020Keyser BR et al.Alloplastic total temporomandibular joint replacement in skeletally immature patients: a pilot surveyInt J Oral Maxillofac Surg32113746
382019Elledge R et al.Review of emerging temporomandibular joint total joint replacement systemsBr J Oral Maxillofac Surg31455594
392019Mamidi SK et al.Advancements in temporomandibular joint total joint replacements (TMJR)Biomed Eng Lett31168422
402019Mercuri LG, Caicedo MSMaterial hypersensitivity and alloplastic temporomandibular joint replacementJ Oral Maxillofac Surg30825437
412019Van Bogaert W et al.Autologous fat grafting in total TMJ replacement surgeryAnn Maxillofac Surg30693249
422018Galea CJ et al.Congenital abnormalities of the temporomandibular jointOral Maxillofac Surg Clin North Am29153239
432016Imola MJ, Liddell ATemporomandibular joint reconstructionCurr Opin Otolaryngol Head Neck Surg27348350

SECTION D: ALLOPLASTIC RECONSTRUCTION – CLINICAL STUDIES & OUTCOMES

#YearAuthorsTitleJournalPMID
442024Del Castillo Pardo de Vera JL et al.Virtual surgical planning for TMJ reconstruction with stock TMJ prostheses: pilot studyMedicina (Kaunas)38399626
452024Bangun K et al.Challenges in managing post-radiation TMJ pseudoankylosisJ Craniofac Surg37973061
462023Zheng J et al.3D-printed temporomandibular joint-mandible combined prosthesis: A prospective studyOral Dis37246472
472023Hameed A et al.Adherence of case reports on total mandibular, extended, and bilateral total TMJ reconstruction prostheses to SCARE guidelinesJ Oral Maxillofac Surg37247813
482023Hidaka T et al.An artificial intelligence-based cosmesis evaluation for TMJ reconstructionLaryngoscope35662031
492022Briceno WX et al.Reconstruction of large defects using extended TMJ patient-matched prosthesesJ Oral Maxillofac Surg35245490
502022de Sousa Gil AP et al.Total customized alloplastic reconstruction for severe TMJ pathology: combined intraoral and extraoral approachJ Craniofac Surg35727653
512022Kanatsios S et al.Comparative clinical outcomes: stock vs custom temporomandibular total joint replacementJ Craniomaxillofac Surg35331602
522022Amarista FJ et al.Outcomes of total joint alloplastic reconstruction in TMJ ankylosisOral Surg Oral Med Oral Pathol Oral Radiol35431176
532022Horen SR et al.Alloplastic temporomandibular joint reconstruction following recurrent ameloblastoma resectionJ Craniofac Surg34510060
542022Dang RR et al.Treatment of tophaceous pseudogout in the TMJ with resection and alloplastic reconstructionOral Maxillofac Surg34596805
552021Hodzic Z et al.Alloplastic temporomandibular joint reconstruction in congenital craniofacial deformitiesJ Craniofac Surg34081423
562021Rikhotso RE, Sekhoto MGAlloplastic total TMJ reconstruction: 10-year experience, University of the WitwatersrandJ Craniofac Surg33201066
572021Hechler BL, Matthews NSRole of alloplastic reconstruction of the TMJ in juvenile idiopathic arthritisBr J Oral Maxillofac Surg32674916
582021Sembronio S et al.Cutting/positioning devices for custom-fitted TMJ alloplastic reconstructionInt J Oral Maxillofac Surg33097370
592021Li H et al.Simultaneous mandibular advancement and TMJ prosthesis impact on upper airway in ankylosisAnn Transl Med34988147
602021Mian M et al.Accuracy of custom TMJ replacement surgery using virtual surgical planningOral Maxillofac Surg33237435
612019Sembronio S et al.Accuracy of custom-fitted TMJ alloplastic reconstruction and virtual surgical planningInt J Oral Maxillofac Surg30777714
622019Mommaerts MYReinsertion of the lateral pterygoid tendon in total TMJ replacement surgeryJ Craniomaxillofac Surg31810846
632017Gerbino G et al.TMJ reconstruction with stock and custom-made devices: indications and results of 14-year experienceJ Craniomaxillofac Surg28843402
642016Ramos A, Mesnard MA new condyle implant design concept for alloplastic TMJ in bone resorption casesJ Craniomaxillofac Surg27569384

SECTION E: AUTOGENOUS / COSTOCHONDRAL / FREE FLAP RECONSTRUCTION

#YearAuthorsTitleJournalPMID
652025Alpat SE et al.Advancing TMJ reconstruction: a cadaveric study on the design of the fourth chondrocostal joint flapMicrosurgery40401738
662025Saraswat NB et al.Novel bicomposite flow-through osteochondral free flap for mandibular and condylar reconstructionPlast Reconstr Surg Glob Open40510431
672025Seok HMandibular condylar head regeneration due to remodeling of costochondral graft after condylectomyJ Craniofac Surg39480092
682023Shuck JW et al.Vascularized condyle reconstruction with free medial femoral trochlea and fibular flow-through flapsPlast Reconstr Surg Glob Open36655027
692023Gaggl A et al.Condylar capping for microvascular temporomandibular joint reconstruction: a preliminary studyMicrosurgery36416220
702023Maurer M et al.CAD/CAM and conventional reconstruction of mandibular condyle by fibula free flapInt J Oral Maxillofac Surg36088184
712021Hoang TA et al.Simultaneous condylar reconstruction by free ramus osteotomy graft after condylectomy for osteochondromaJ Craniofac Surg33481470
722021Choi MGTMJ reconstruction with costochondral graft: case series studyJ Korean Assoc Oral Maxillofac Surg33911045
732021Tang Q et al.Association between condylar position changes and functional outcomes after condylar reconstruction by free fibular flapClin Oral Investig32440937
742021Swendseid B et al.Postoperative anatomic position of mandibular free flap neocondyles affects patient symptomsFacial Plast Surg Aesthet Med32614617
752021Lakshmanan S et al.Can costochondral grafts fulfil ramus-condyle unit reconstruction goals in children with TMJ ankylosis?Br J Oral Maxillofac Surg32868125
762021Olivetto M et al.Second metatarsal free transfer in total TMJ reconstruction for ankylosis: 10-year follow-upInt J Oral Maxillofac Surg32994034
772021Posnick JC, Kaban LBFramework for treating jaw deformities in patients with abnormal condyles: preservation vs replacementInt J Oral Maxillofac Surg33846049
782019Liu X et al.TMJ anchorage surgery: a 5-year follow-up studySci Rep31836752
792019Zaid WY et al.Vascularized myo-osseous fibula free flap to reconstruct hemimandibular defect after condylar prosthesis displacementJ Oral Maxillofac Surg30615847
802017Howlader D et al.Hydroxyapatite collagen scaffold with autologous bone marrow aspirate for mandibular condylar reconstructionJ Craniomaxillofac Surg28750725
812017Felix VB et al.Ankylosis of TMJ and reconstruction with costochondral graft in juvenile idiopathic arthritisJ Craniofac Surg27930467
822017Castellon L et al.Remodeling of costochondral graft after mandibular reconstructionJ Oral Maxillofac Surg27741418

SECTION F: TISSUE ENGINEERING & REGENERATIVE MEDICINE

#YearAuthorsTitleJournalPMID
832024She Y et al.Mechanics of tissue-engineered TMJ discs: current status and prospects for enhancementJ Biomater Appl39023922
842024Wang X et al.Applications of hydrogels in tissue-engineered repairing of TMJ diseasesBiomater Sci38679944
852024Min Z et al.Specific tissue engineering for temporomandibular joint disc perforationCytotherapy38099894
862024Guastaldi FPS et al.A regenerative approach for TMJ repair: in vitro and ex vivo studyJ Oral Rehabil38717007
872023Nedrelow DS et al.Regenerative engineering of a biphasic patient-fitted TMJ condylar prosthesisTissue Eng Part C Methods37335050
882023She Y et al.Comparison of TMJ disc, meniscus, and intervertebral disc in tissue engineeringJ Biomed Mater Res B36221912
892022Minervini G et al.Stem cells in temporomandibular joint engineering: state of art and future perspectivesJ Craniofac Surg36201705
902021Trindade D et al.Biological treatments for TMJ disc disorders: strategies in tissue engineeringBiomolecules34201698
912021Helgeland E et al.3D-printed gelatin-genipin scaffolds for TMJ cartilage regenerationBiomed Phys Eng Express34404040
922021Helgeland E et al.Dual-crosslinked 3D-printed gelatin scaffolds for TMJ cartilage regenerationBiomed Mater33592589
932019Zhang S et al.MSC exosomes alleviate TMJ osteoarthritis by attenuating inflammation and restoring matrix homeostasisBiomaterials30771585
942019Acri TM et al.Tissue engineering for the temporomandibular jointAdv Healthc Mater30556348
952019Donahue RP et al.Remaining hurdles for tissue-engineering the TMJ discTrends Mol Med30678888
962018Vapniarsky N et al.Tissue engineering toward TMJ disc regenerationSci Transl Med29925634
972018Van Bellinghen X et al.Temporomandibular joint regenerative medicineInt J Mol Sci29393880
982018Almarza AJ et al.Preclinical animal models for TMJ tissue engineeringTissue Eng Part B Rev29121815
992016Aryaei A et al.Recent tissue engineering advances for the treatment of TMJ disordersCurr Osteoporos Rep27704395

SECTION G: DIGITAL TECHNOLOGY, 3D PRINTING & VIRTUAL SURGICAL PLANNING

#YearAuthorsTitleJournalPMID
1002019Zheng JS et al.Customized skull base-TMJ combined prosthesis with 3D-printing fabrication for craniomaxillofacial reconstructionInt J Oral Maxillofac Surg30905488

Quick Summary by Category

CategoryNo. of Articles
Systematic Reviews & Meta-analyses13
Randomized Controlled Trials4
Comprehensive Reviews (advances/evolution)26
Alloplastic reconstruction (clinical)21
Autogenous/costochondral/free flap18
Tissue engineering & regenerative medicine17
Digital technology & 3D printing1
Total100

How to Use This List

  • Start with articles 1-17 (highest evidence: systematic reviews + RCTs) for your introduction and methods critique
  • Articles 18-43 (comprehensive reviews) build the conceptual framework of your dissertation
  • Articles 44-100 provide depth in each reconstruction modality
  • Search each PMID directly on PubMed to retrieve full abstracts, DOIs, and download PDFs via your institutional library
All articles are from 2016-2025, non-retracted, published in peer-reviewed journals. PMIDs are verified PubMed identifiers for direct retrieval.
This is a shared conversation. Sign in to Orris to start your own chat.