Dantal carries ppt

Asking for Preferences
Reading File
Reading File
Reading File
Finding Sources
Searching the Web

dental oral health clinical overview key topics 2024

Running Command

ls -la /home/daytona/workspace/ 2>/dev/null && mkdir -p /home/daytona/workspace/dental-ppt

Writing File

~/dental-ppt/dental.js

const pptxgen = require("pptxgenjs");

const pres = new pptxgen();
pres.layout = "LAYOUT_16x9";
pres.title = "Dental & Oral Health – Clinical Overview";
pres.author = "Orris Medical";

// === COLOUR PALETTE ===
// Primary deep teal: 0D5C7A  |  Accent sky: 38B2D4  |  Light: E8F7FC
// Text dark: 1A2B35  |  Highlight amber: F2A900  |  White: FFFFFF

const C = {
  darkBg:    "0D5C7A",
  midBg:     "0E7CA0",
  accent:    "38B2D4",
  light:     "E8F7FC",
  white:     "FFFFFF",
  textDark:  "1A2B35",
  amber:     "F2A900",
  softGray:  "D4EEF7",
};

function addSlideHeader(slide, title, subtitle) {
  // Top accent bar
  slide.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 0.55, fill: { color: C.darkBg } });
  slide.addText(title.toUpperCase(), {
    x: 0.35, y: 0.06, w: 7.5, h: 0.42,
    fontSize: 15, bold: true, color: C.accent, fontFace: "Calibri", charSpacing: 2, margin: 0
  });
  if (subtitle) {
    slide.addText(subtitle, {
      x: 0.35, y: 0.06, w: 9.3, h: 0.42, align: "right",
      fontSize: 10, color: C.softGray, fontFace: "Calibri", italic: true, margin: 0
    });
  }
  // Bottom thin bar
  slide.addShape(pres.ShapeType.rect, { x: 0, y: 5.45, w: 10, h: 0.18, fill: { color: C.accent } });
  slide.addText("Dental & Oral Health | Clinical Reference", {
    x: 0.2, y: 5.45, w: 6, h: 0.18, fontSize: 7, color: C.darkBg, fontFace: "Calibri", margin: 0
  });
  slide.addText("June 2026", {
    x: 8.5, y: 5.45, w: 1.3, h: 0.18, fontSize: 7, color: C.darkBg, fontFace: "Calibri", align: "right", margin: 0
  });
}

// ─────────────────────────────────────────
// SLIDE 1 – TITLE
// ─────────────────────────────────────────
{
  const s = pres.addSlide();
  // Full dark background
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: C.darkBg } });
  // Diagonal accent band
  s.addShape(pres.ShapeType.rect, { x: 0, y: 3.8, w: 10, h: 1.83, fill: { color: C.midBg } });
  // Vertical accent line
  s.addShape(pres.ShapeType.rect, { x: 0.55, y: 1.1, w: 0.07, h: 2.3, fill: { color: C.amber } });

  s.addText("DENTAL & ORAL HEALTH", {
    x: 0.8, y: 1.1, w: 8.5, h: 0.75,
    fontSize: 36, bold: true, color: C.white, fontFace: "Calibri", charSpacing: 3, margin: 0
  });
  s.addText("A Clinical Overview for Healthcare Professionals", {
    x: 0.8, y: 1.9, w: 8.5, h: 0.45,
    fontSize: 18, color: C.accent, fontFace: "Calibri", italic: true, margin: 0
  });
  s.addShape(pres.ShapeType.rect, { x: 0.8, y: 2.5, w: 3.5, h: 0.04, fill: { color: C.accent } });

  s.addText([
    { text: "Topics Covered: ", options: { bold: true, color: C.amber } },
    { text: "Anatomy  •  Common Conditions  •  Periodontitis  •  Dental Caries  •  Oral Cancer  •  Systemic Links  •  Prevention  •  Clinical Procedures", options: { color: C.white } }
  ], { x: 0.8, y: 2.7, w: 8.7, h: 0.6, fontSize: 10, fontFace: "Calibri", margin: 0 });

  s.addText("Prepared by: Clinical Education Department  |  June 2026", {
    x: 0.8, y: 5.0, w: 8.5, h: 0.3,
    fontSize: 9, color: C.softGray, fontFace: "Calibri", margin: 0
  });
}

// ─────────────────────────────────────────
// SLIDE 2 – ANATOMY OF THE ORAL CAVITY
// ─────────────────────────────────────────
{
  const s = pres.addSlide();
  s.background = { color: C.light };
  addSlideHeader(s, "Anatomy of the Oral Cavity", "Slide 2 of 10");

  // Left column – structures list
  const structures = [
    ["Lips & Cheeks", "Labial mucosa / buccal mucosa; key in speech and food manipulation"],
    ["Hard Palate", "Bony roof; formed by palatine processes of maxilla & palatine bones"],
    ["Soft Palate", "Muscular; uvula at posterior; involved in swallowing/phonation"],
    ["Tongue", "Intrinsic/extrinsic muscles; taste buds; lingual nerve (V3), CN VII (taste)"],
    ["Floor of Mouth", "Mylohyoid muscle; sublingual/submandibular salivary glands"],
    ["Teeth", "32 permanent (incisors, canines, premolars, molars); PDL anchors to alveolar bone"],
    ["Periodontium", "Gingiva, cementum, periodontal ligament, alveolar bone"],
    ["Salivary Glands", "Parotid (CN IX), submandibular, sublingual; 1-1.5 L saliva/day"],
  ];

  structures.forEach(([title, desc], i) => {
    const y = 0.7 + i * 0.57;
    s.addShape(pres.ShapeType.rect, { x: 0.3, y: y + 0.02, w: 0.28, h: 0.28, fill: { color: C.darkBg }, line: { color: C.darkBg } });
    s.addText(title, { x: 0.65, y: y, w: 2.5, h: 0.3, fontSize: 9.5, bold: true, color: C.darkBg, fontFace: "Calibri", margin: 0 });
    s.addText(desc, { x: 0.65, y: y + 0.3, w: 5.5, h: 0.24, fontSize: 8, color: "3A5668", fontFace: "Calibri", margin: 0 });
  });

  // Right panel – key fact box
  s.addShape(pres.ShapeType.rect, { x: 6.7, y: 0.65, w: 3.0, h: 4.6, fill: { color: C.darkBg }, line: { color: C.darkBg } });
  s.addText("KEY FACTS", { x: 6.7, y: 0.72, w: 3.0, h: 0.35, align: "center", fontSize: 11, bold: true, color: C.amber, fontFace: "Calibri", charSpacing: 2, margin: 0 });
  s.addShape(pres.ShapeType.rect, { x: 6.9, y: 1.1, w: 2.6, h: 0.03, fill: { color: C.accent } });

  const facts = [
    "Oral cavity boundary: lips anteriorly to palatoglossal arches posteriorly",
    "Primary teeth: 20 total; erupt 6 mo–3 yrs",
    "pH <5.5 demineralises enamel (critical caries threshold)",
    "Gingival sulcus depth: 1–3 mm (normal); >3 mm = periodontal pocket",
    "Blood supply: facial artery; lingual artery (branch of ECA)",
    "Lymph drainage: submandibular, submental, deep cervical nodes",
    "Saliva contains: amylase, IgA, lysozyme, mucins — antimicrobial function",
  ];
  facts.forEach((f, i) => {
    s.addText("• " + f, {
      x: 6.82, y: 1.22 + i * 0.49, w: 2.72, h: 0.44,
      fontSize: 8, color: C.white, fontFace: "Calibri", margin: 0
    });
  });
}

// ─────────────────────────────────────────
// SLIDE 3 – DENTAL CARIES
// ─────────────────────────────────────────
{
  const s = pres.addSlide();
  s.background = { color: C.white };
  addSlideHeader(s, "Dental Caries", "Slide 3 of 10");

  // Title subtitle
  s.addText("Mechanism, Classification & Management", {
    x: 0.3, y: 0.62, w: 9.4, h: 0.32, fontSize: 12, italic: true, color: C.midBg, fontFace: "Calibri", margin: 0
  });

  // Keyes Triad boxes
  const triad = [
    { label: "HOST", sub: "Tooth anatomy\nSaliva flow/pH\nGenetics", col: C.darkBg },
    { label: "MICROBE", sub: "Strep mutans\nLactobacillus\nBiofilm (plaque)", col: C.midBg },
    { label: "SUBSTRATE", sub: "Fermentable\ncarbohydrates\n(sucrose chief)", col: C.amber },
    { label: "TIME", sub: "Duration of\nacid exposure\n> repair capacity", col: "2E7D32" },
  ];
  triad.forEach((t, i) => {
    const x = 0.3 + i * 2.35;
    s.addShape(pres.ShapeType.rect, { x, y: 1.05, w: 2.1, h: 1.3, fill: { color: t.col }, line: { color: t.col } });
    s.addText(t.label, { x, y: 1.1, w: 2.1, h: 0.35, align: "center", fontSize: 13, bold: true, color: C.white, fontFace: "Calibri", charSpacing: 2, margin: 0 });
    s.addText(t.sub, { x, y: 1.47, w: 2.1, h: 0.82, align: "center", fontSize: 9, color: C.white, fontFace: "Calibri", margin: 0 });
  });

  // Caries classification
  s.addText("ICDAS / Clinical Classification", {
    x: 0.3, y: 2.5, w: 5, h: 0.3, fontSize: 10, bold: true, color: C.darkBg, fontFace: "Calibri", charSpacing: 1, margin: 0
  });

  const stages = [
    ["Stage 0", "Sound tooth – no clinical evidence"],
    ["Stage 1", "First visual change – white/brown spot (enamel), reversible"],
    ["Stage 2", "Distinct visual change – enamel lesion, no cavitation"],
    ["Stage 3", "Cavitation into enamel only"],
    ["Stage 4", "Shadow of dentine (enamel intact)"],
    ["Stage 5", "Cavitation into dentine"],
    ["Stage 6", "Extensive cavitation – pulp involvement likely"],
  ];
  stages.forEach(([st, desc], i) => {
    const bg = i % 2 === 0 ? "F0FAFF" : C.white;
    s.addShape(pres.ShapeType.rect, { x: 0.3, y: 2.85 + i * 0.35, w: 9.4, h: 0.34, fill: { color: bg }, line: { color: "D0E8F0" } });
    s.addText(st, { x: 0.35, y: 2.87 + i * 0.35, w: 1.2, h: 0.3, fontSize: 8.5, bold: true, color: C.darkBg, fontFace: "Calibri", margin: 0 });
    s.addText(desc, { x: 1.6, y: 2.87 + i * 0.35, w: 7.9, h: 0.3, fontSize: 8.5, color: C.textDark, fontFace: "Calibri", margin: 0 });
  });
}

// ─────────────────────────────────────────
// SLIDE 4 – PERIODONTITIS
// ─────────────────────────────────────────
{
  const s = pres.addSlide();
  s.background = { color: C.light };
  addSlideHeader(s, "Periodontitis", "Slide 4 of 10");

  s.addText("Classification (2017 World Workshop) & Clinical Features", {
    x: 0.3, y: 0.62, w: 9.4, h: 0.3, fontSize: 11, italic: true, color: C.midBg, fontFace: "Calibri", margin: 0
  });

  // Left: Staging & Grading
  s.addShape(pres.ShapeType.rect, { x: 0.3, y: 1.0, w: 4.4, h: 0.32, fill: { color: C.darkBg }, line: { color: C.darkBg } });
  s.addText("STAGING (Severity & Complexity)", { x: 0.3, y: 1.0, w: 4.4, h: 0.32, align: "center", fontSize: 9, bold: true, color: C.white, fontFace: "Calibri", margin: 0 });

  const stages = [
    ["Stage I", "CAL 1-2 mm, probing depth ≤4 mm, no bone loss beyond coronal third"],
    ["Stage II", "CAL 3-4 mm, probing depth ≤5 mm, <15% bone loss, no complexity factors"],
    ["Stage III", "CAL ≥5 mm, PD ≥6 mm, bone loss extending to middle/apical third, tooth loss <4"],
    ["Stage IV", "Stage III + masticatory dysfunction; ≥5 teeth lost due to perio"],
  ];
  stages.forEach(([st, desc], i) => {
    s.addShape(pres.ShapeType.rect, { x: 0.3, y: 1.35 + i * 0.62, w: 1.0, h: 0.55, fill: { color: C.accent }, line: { color: C.accent } });
    s.addText(st, { x: 0.3, y: 1.38 + i * 0.62, w: 1.0, h: 0.5, align: "center", valign: "middle", fontSize: 9, bold: true, color: C.white, fontFace: "Calibri", margin: 0 });
    s.addText(desc, { x: 1.35, y: 1.38 + i * 0.62, w: 3.3, h: 0.55, fontSize: 8.5, color: C.textDark, fontFace: "Calibri", margin: 0 });
  });

  // Right: Grading
  s.addShape(pres.ShapeType.rect, { x: 5.1, y: 1.0, w: 4.6, h: 0.32, fill: { color: C.midBg }, line: { color: C.midBg } });
  s.addText("GRADING (Rate of Progression & Risk)", { x: 5.1, y: 1.0, w: 4.6, h: 0.32, align: "center", fontSize: 9, bold: true, color: C.white, fontFace: "Calibri", margin: 0 });

  const grades = [
    ["Grade A", "Slow progression; no risk factors; non-smoker, normoglycaemic"],
    ["Grade B", "Moderate progression; <10% bone loss per year; smoker <10 cig/day"],
    ["Grade C", "Rapid progression; >2 mm bone loss in 5 yrs; DM HbA1c ≥7%; smoker ≥10/day"],
  ];
  grades.forEach(([g, desc], i) => {
    s.addShape(pres.ShapeType.rect, { x: 5.1, y: 1.35 + i * 0.72, w: 1.05, h: 0.62, fill: { color: C.darkBg }, line: { color: C.darkBg } });
    s.addText(g, { x: 5.1, y: 1.38 + i * 0.72, w: 1.05, h: 0.55, align: "center", valign: "middle", fontSize: 9, bold: true, color: C.amber, fontFace: "Calibri", margin: 0 });
    s.addText(desc, { x: 6.2, y: 1.38 + i * 0.72, w: 3.4, h: 0.62, fontSize: 8.5, color: C.textDark, fontFace: "Calibri", margin: 0 });
  });

  // Bottom: Treatment steps
  s.addShape(pres.ShapeType.rect, { x: 0.3, y: 3.65, w: 9.4, h: 0.28, fill: { color: C.darkBg }, line: { color: C.darkBg } });
  s.addText("TREATMENT PATHWAY", { x: 0.3, y: 3.65, w: 9.4, h: 0.28, align: "center", fontSize: 9, bold: true, color: C.amber, fontFace: "Calibri", charSpacing: 2, margin: 0 });

  const steps = ["Step 1: Patient Education & Risk Reduction", "Step 2: Supra/Subgingival Debridement (SRP)", "Step 3: Re-evaluation (8–12 wks)", "Step 4: Periodontal Surgery (if needed)", "Step 5: Supportive Perio Therapy"];
  steps.forEach((st, i) => {
    s.addShape(pres.ShapeType.rect, { x: 0.3 + i * 1.88, y: 3.96, w: 1.82, h: 1.2, fill: { color: i % 2 === 0 ? "0D5C7A" : "0E7CA0" }, line: { color: C.accent } });
    s.addText(st, { x: 0.35 + i * 1.88, y: 4.0, w: 1.72, h: 1.1, align: "center", valign: "middle", fontSize: 8, color: C.white, fontFace: "Calibri", margin: 0 });
  });
}

// ─────────────────────────────────────────
// SLIDE 5 – ORAL CANCER
// ─────────────────────────────────────────
{
  const s = pres.addSlide();
  s.background = { color: C.white };
  addSlideHeader(s, "Oral Cancer", "Slide 5 of 10");

  s.addText("Squamous Cell Carcinoma (SCC) accounts for >90% of oral malignancies", {
    x: 0.3, y: 0.62, w: 9.4, h: 0.3, fontSize: 11, italic: true, color: C.midBg, fontFace: "Calibri", margin: 0
  });

  // Two-column layout
  // Col1 – Epidemiology + Risk Factors
  s.addShape(pres.ShapeType.rect, { x: 0.3, y: 1.0, w: 4.5, h: 0.3, fill: { color: C.darkBg } });
  s.addText("EPIDEMIOLOGY & RISK FACTORS", { x: 0.3, y: 1.0, w: 4.5, h: 0.3, align: "center", fontSize: 9, bold: true, color: C.white, fontFace: "Calibri", margin: 0 });

  const riskItems = [
    ["Tobacco use", "Single largest risk factor (×6 relative risk); includes chewing tobacco"],
    ["Alcohol", "Synergistic with tobacco (×15 risk when combined)"],
    ["HPV-16/18", "Oropharyngeal SCC strongly linked; increasing incidence in younger pts"],
    ["Chronic UV exposure", "Lower lip carcinoma (actinic cheilitis progression)"],
    ["Betel quid", "Major risk in South/Southeast Asia; causes oral submucous fibrosis"],
    ["Immunosuppression", "HIV, transplant recipients – higher risk for malignant transformation"],
    ["Prior oral SCC", "~20% risk of second primary within 5 years"],
  ];
  riskItems.forEach(([title, desc], i) => {
    const bg = i % 2 === 0 ? "F0FAFF" : C.white;
    s.addShape(pres.ShapeType.rect, { x: 0.3, y: 1.33 + i * 0.48, w: 4.5, h: 0.46, fill: { color: bg }, line: { color: "D0E8F0" } });
    s.addText(title, { x: 0.38, y: 1.35 + i * 0.48, w: 1.5, h: 0.22, fontSize: 8.5, bold: true, color: C.darkBg, fontFace: "Calibri", margin: 0 });
    s.addText(desc, { x: 0.38, y: 1.57 + i * 0.48, w: 4.2, h: 0.22, fontSize: 8, color: "3A5668", fontFace: "Calibri", margin: 0 });
  });

  // Col2 – TNM + Screening
  s.addShape(pres.ShapeType.rect, { x: 5.1, y: 1.0, w: 4.6, h: 0.3, fill: { color: C.midBg } });
  s.addText("TNM STAGING (AJCC 8th ed.)", { x: 5.1, y: 1.0, w: 4.6, h: 0.3, align: "center", fontSize: 9, bold: true, color: C.white, fontFace: "Calibri", margin: 0 });

  const tnm = [
    ["T1", "≤2 cm, DOI ≤5 mm"],
    ["T2", "≤2 cm DOI >5 mm; or >2–4 cm, DOI ≤10 mm"],
    ["T3", ">4 cm OR any tumour DOI >10 mm"],
    ["T4a", "Invades adjacent structures (cortical bone, deep muscles of tongue, maxillary sinus, skin)"],
    ["T4b", "Masticator space, pterygoid plates, skull base, carotid artery"],
    ["N0", "No regional LN involvement"],
    ["N1", "Single ipsilateral node ≤3 cm, ENE(-)"],
    ["N2a", "Single ipsilateral 3-6 cm, ENE(-)"],
    ["M1", "Distant metastasis (lung, liver, bone most common)"],
  ];
  tnm.forEach(([cat, desc], i) => {
    const bg = i % 2 === 0 ? "F5F5F5" : C.white;
    s.addShape(pres.ShapeType.rect, { x: 5.1, y: 1.33 + i * 0.42, w: 4.6, h: 0.4, fill: { color: bg }, line: { color: "E0E0E0" } });
    s.addText(cat, { x: 5.18, y: 1.35 + i * 0.42, w: 0.6, h: 0.36, fontSize: 9, bold: true, color: C.darkBg, fontFace: "Calibri", margin: 0 });
    s.addText(desc, { x: 5.82, y: 1.35 + i * 0.42, w: 3.78, h: 0.36, fontSize: 8.5, color: C.textDark, fontFace: "Calibri", margin: 0 });
  });
}

// ─────────────────────────────────────────
// SLIDE 6 – ORAL HEALTH & SYSTEMIC DISEASE
// ─────────────────────────────────────────
{
  const s = pres.addSlide();
  s.background = { color: C.light };
  addSlideHeader(s, "Oral-Systemic Connections", "Slide 6 of 10");

  s.addText("Bidirectional relationships between oral disease and systemic health", {
    x: 0.3, y: 0.62, w: 9.4, h: 0.3, fontSize: 11, italic: true, color: C.midBg, fontFace: "Calibri", margin: 0
  });

  const connections = [
    {
      system: "Cardiovascular Disease",
      detail: "Periodontal pathogens (P. gingivalis, F. nucleatum) identified in atheromatous plaques. Meta-analyses show adjusted OR ~1.2-1.5 for CAD in periodontitis patients. Bacteraemia from dental procedures → infective endocarditis risk in high-risk valvular disease.",
      icon: "♥",
      col: "C62828"
    },
    {
      system: "Diabetes Mellitus",
      detail: "True bidirectional link: poor glycaemic control worsens periodontitis; periodontal infection increases insulin resistance. Treating periodontitis reduces HbA1c by ~0.4% (comparable to adding a second-line anti-diabetic). Screen all diabetics for periodontitis.",
      icon: "⚕",
      col: "1565C0"
    },
    {
      system: "Adverse Pregnancy Outcomes",
      detail: "Periodontal disease associated with preterm birth, low birth weight, and pre-eclampsia. Proposed mechanism: IL-6, TNF-α, PGE2 from periodontal tissues enter bloodstream → premature cervical ripening. SRP in pregnancy is safe and recommended.",
      icon: "♀",
      col: "6A1B9A"
    },
    {
      system: "Respiratory Disease",
      detail: "Aspiration of oral bacteria (Streptococcus, anaerobes) → aspiration pneumonia, especially in elderly/ICU/ventilated patients. Oral hygiene in ICU patients reduces VAP by ~40% (Cochrane review). COPD exacerbations linked to periodontitis.",
      icon: "⛽",
      col: "2E7D32"
    },
    {
      system: "Osteoporosis / Medications",
      detail: "Bisphosphonates (alendronate, zoledronate) → MRONJ (medication-related osteonecrosis of jaw). Risk increased with IV bisphosphonates (oncology doses), denosumab. Dental clearance before antiresorptive therapy is best practice.",
      icon: "🦴",
      col: "E65100"
    },
    {
      system: "Alzheimer's Disease",
      detail: "P. gingivalis and its toxins (gingipains) detected in brain tissue of AD patients. Gingipains promote Aβ plaque formation and tau hyperphosphorylation. Longitudinal studies show periodontitis → faster cognitive decline.",
      icon: "🧠",
      col: "00695C"
    },
  ];

  connections.forEach((c, i) => {
    const col = i < 3 ? 0 : 1;
    const row = i % 3;
    const x = col === 0 ? 0.3 : 5.2;
    const y = 1.0 + row * 1.52;
    s.addShape(pres.ShapeType.rect, { x, y, w: 4.6, h: 1.42, fill: { color: C.white }, line: { color: "C8E8F5", pt: 1 } });
    s.addShape(pres.ShapeType.rect, { x, y, w: 0.5, h: 1.42, fill: { color: c.col }, line: { color: c.col } });
    s.addText(c.system, { x: x + 0.6, y: y + 0.04, w: 3.9, h: 0.3, fontSize: 9.5, bold: true, color: c.col, fontFace: "Calibri", margin: 0 });
    s.addText(c.detail, { x: x + 0.6, y: y + 0.36, w: 3.95, h: 1.0, fontSize: 7.8, color: C.textDark, fontFace: "Calibri", margin: 0 });
  });
}

// ─────────────────────────────────────────
// SLIDE 7 – COMMON ORAL LESIONS
// ─────────────────────────────────────────
{
  const s = pres.addSlide();
  s.background = { color: C.white };
  addSlideHeader(s, "Common Oral Mucosal Lesions", "Slide 7 of 10");

  s.addText("Differential diagnosis at a glance", {
    x: 0.3, y: 0.62, w: 9.4, h: 0.3, fontSize: 11, italic: true, color: C.midBg, fontFace: "Calibri", margin: 0
  });

  // Table header
  const cols = ["Lesion", "Appearance", "Location", "Aetiology", "Management"];
  const colWidths = [1.6, 1.9, 1.7, 2.3, 2.2];
  let cx = 0.3;
  cols.forEach((c, i) => {
    s.addShape(pres.ShapeType.rect, { x: cx, y: 0.98, w: colWidths[i], h: 0.3, fill: { color: C.darkBg } });
    s.addText(c, { x: cx + 0.05, y: 0.98, w: colWidths[i] - 0.1, h: 0.3, fontSize: 8.5, bold: true, color: C.white, fontFace: "Calibri", margin: 0, valign: "middle" });
    cx += colWidths[i];
  });

  const rows = [
    ["Aphthous ulcer", "Round/oval, yellow-grey base, red halo", "Non-keratinised mucosa", "Idiopathic; stress, trauma, deficiency (B12/Fe/folate)", "Topical steroids, chlorhexidine; rarely systemic if RAS"],
    ["Oral candidiasis", "White plaques (removable), erythema, angular cheilitis", "Buccal, palate, tongue", "Candida albicans; immunosuppression, AB use, dry mouth", "Nystatin suspension / fluconazole systemic; treat predispose"],
    ["Leukoplakia", "White patch, cannot be wiped off", "Floor of mouth, lateral tongue, vermilion border", "Unknown; tobacco major risk; ~5% malignant transformation", "Biopsy; cessation of risk; excision if dysplasia"],
    ["Erythroplakia", "Bright red velvety patch", "Floor of mouth, soft palate, tongue", "High-grade dysplasia / carcinoma in situ in >90%", "URGENT biopsy + excision; close surveillance"],
    ["Lichen planus", "Reticular (Wickham striae), erosive, plaque forms", "Buccal mucosa bilaterally", "T-cell mediated autoimmune; drug-induced OLP possible", "Topical steroids; tacrolimus; monitor for SCC"],
    ["Herpes labialis", "Vesicles → painful ulcers → crusting", "Lip (vermilion)/perioral skin", "HSV-1 reactivation; UV, stress, immunosuppression", "Topical/oral aciclovir; reduce triggers"],
    ["OSMF", "Fibrous bands, trismus, blanching mucosa", "Buccal mucosa, palate, lips", "Betel quid/areca nut; 5–10% malignant transformation", "Cessation; intralesional steroids; surgery for advanced"],
  ];

  rows.forEach((row, i) => {
    const bg = i % 2 === 0 ? "F0FAFF" : C.white;
    let cx2 = 0.3;
    row.forEach((cell, j) => {
      s.addShape(pres.ShapeType.rect, { x: cx2, y: 1.3 + i * 0.56, w: colWidths[j], h: 0.54, fill: { color: bg }, line: { color: "D0E8F0" } });
      s.addText(cell, { x: cx2 + 0.04, y: 1.32 + i * 0.56, w: colWidths[j] - 0.08, h: 0.5, fontSize: j === 0 ? 8.5 : 7.5, bold: j === 0, color: j === 3 ? "C62828" : C.textDark, fontFace: "Calibri", margin: 0 });
      cx2 += colWidths[j];
    });
  });
}

// ─────────────────────────────────────────
// SLIDE 8 – DENTAL EMERGENCIES
// ─────────────────────────────────────────
{
  const s = pres.addSlide();
  s.background = { color: C.light };
  addSlideHeader(s, "Dental Emergencies", "Slide 8 of 10");

  s.addText("Recognition and initial management in acute settings", {
    x: 0.3, y: 0.62, w: 9.4, h: 0.3, fontSize: 11, italic: true, color: C.midBg, fontFace: "Calibri", margin: 0
  });

  const emergencies = [
    {
      title: "Irreversible Pulpitis / Acute Apical Abscess",
      sx: "Spontaneous, severe, lingering pain; localised swelling; tooth tender to percussion",
      mx: "Incision & drainage if fluctuant; pulpectomy (root canal) or extraction; oral antibiotics only if systemic signs (fever, trismus, cellulitis)",
      color: C.darkBg
    },
    {
      title: "Dental Trauma – Avulsion",
      sx: "Complete tooth displacement from socket. Time-critical: replant within 30–60 min for best prognosis",
      mx: "Handle by crown, NOT root. Store in Hanks BSS / milk / saline / saliva. Replant immediately, splint 2 wks. Refer for RCT within 2 wks.",
      color: C.midBg
    },
    {
      title: "Ludwig's Angina",
      sx: "Bilateral submandibular/sublingual/submental space infection; 'woody' floor of mouth; risk of airway compromise",
      mx: "EMERGENCY: Secure airway (may need surgical airway). IV benzylpenicillin + metronidazole. Surgical decompression. ICU admission often required.",
      color: "C62828"
    },
    {
      title: "Dry Socket (Alveolar Osteitis)",
      sx: "Dull aching pain 3–4 days post-extraction; visible empty socket; halitosis; no abscess",
      mx: "Gentle irrigation with chlorhexidine. Alvogyl dressing (eugenol-based). Analgesia. Resolves in 7–10 days.",
      color: "5D4037"
    },
    {
      title: "Periocoronitis",
      sx: "Pain, swelling, trismus around partially erupted lower wisdom tooth; pericoronal flap (operculum); systemic fever if severe",
      mx: "Irrigation under operculum; oral hygiene instruction; chlorhexidine rinse. Antibiotics (amoxicillin or metronidazole) if spreading cellulitis. Extraction of tooth when acute episode resolves.",
      color: "1565C0"
    },
  ];

  emergencies.forEach((e, i) => {
    s.addShape(pres.ShapeType.rect, { x: 0.3, y: 0.98 + i * 0.9, w: 9.4, h: 0.85, fill: { color: C.white }, line: { color: "C8E8F5" } });
    s.addShape(pres.ShapeType.rect, { x: 0.3, y: 0.98 + i * 0.9, w: 0.35, h: 0.85, fill: { color: e.color } });
    s.addText(e.title, { x: 0.72, y: 1.0 + i * 0.9, w: 8.8, h: 0.24, fontSize: 9.5, bold: true, color: e.color, fontFace: "Calibri", margin: 0 });
    s.addText("Sx: " + e.sx, { x: 0.72, y: 1.24 + i * 0.9, w: 8.8, h: 0.24, fontSize: 8, color: "445566", fontFace: "Calibri", margin: 0 });
    s.addText("Mx: " + e.mx, { x: 0.72, y: 1.47 + i * 0.9, w: 8.8, h: 0.28, fontSize: 8, bold: false, color: C.textDark, fontFace: "Calibri", margin: 0 });
  });
}

// ─────────────────────────────────────────
// SLIDE 9 – PREVENTION & ORAL HYGIENE
// ─────────────────────────────────────────
{
  const s = pres.addSlide();
  s.background = { color: C.white };
  addSlideHeader(s, "Prevention & Oral Hygiene", "Slide 9 of 10");

  s.addText("Evidence-based recommendations for clinicians and patient counselling", {
    x: 0.3, y: 0.62, w: 9.4, h: 0.3, fontSize: 11, italic: true, color: C.midBg, fontFace: "Calibri", margin: 0
  });

  // Three prevention pillars
  const pillars = [
    {
      title: "HOME CARE",
      color: C.darkBg,
      items: [
        "Brush 2×/day, 2 minutes, with fluoride toothpaste (1000–1500 ppm F)",
        "Interdental cleaning daily: floss or interdental brushes (superior for IPD disease)",
        "Fluoride mouthrinse (0.05% NaF daily or 0.2% NaF weekly) for high-caries-risk patients",
        "Tongue cleaning reduces halitosis-causing volatile sulfur compounds",
        "Limit sugar frequency: max 4 sugar exposures/day",
        "Do NOT rinse after brushing — allows fluoride to remain on enamel",
      ]
    },
    {
      title: "PROFESSIONAL CARE",
      color: C.midBg,
      items: [
        "Recall interval: 3–12 months based on caries/perio risk assessment",
        "Scaling and polishing: remove supra-gingival calculus and plaque",
        "Topical fluoride varnish (22,600 ppm NaF): 2–4 × per year in high-risk",
        "Fissure sealants: first permanent molars in children 6–7 yrs",
        "Radiographic monitoring: bitewings 12–24 monthly (moderate-risk adults)",
        "Oral cancer screening: visual examination + palpation of neck nodes at every recall",
      ]
    },
    {
      title: "SYSTEMIC MEASURES",
      color: "2E7D32",
      items: [
        "Water fluoridation: 0.7 mg/L (USA) / 1 mg/L (UK): safe, effective, reduces caries 25%",
        "Tobacco cessation counselling: 5As model at each dental visit",
        "Dietary advice: COMA/SACN guidance on free sugars <5% total energy",
        "Fluoride supplements: children in non-fluoridated areas (0.25–1 mg/day by age)",
        "Xylitol: gum/lozenges reduce Strep mutans colonisation; 5 g/day in divided doses",
        "Salivacoat substitutes/pilocarpine for xerostomia patients (increase caries risk ×10)",
      ]
    }
  ];

  pillars.forEach((p, col) => {
    const x = 0.3 + col * 3.2;
    s.addShape(pres.ShapeType.rect, { x, y: 1.0, w: 3.0, h: 0.32, fill: { color: p.color } });
    s.addText(p.title, { x, y: 1.0, w: 3.0, h: 0.32, align: "center", fontSize: 9, bold: true, color: C.white, fontFace: "Calibri", charSpacing: 1.5, margin: 0 });
    p.items.forEach((item, i) => {
      const bg = i % 2 === 0 ? "F0FAFF" : C.white;
      s.addShape(pres.ShapeType.rect, { x, y: 1.34 + i * 0.65, w: 3.0, h: 0.62, fill: { color: bg }, line: { color: "D0E8F0" } });
      s.addText("• " + item, { x: x + 0.08, y: 1.36 + i * 0.65, w: 2.86, h: 0.58, fontSize: 7.8, color: C.textDark, fontFace: "Calibri", margin: 0 });
    });
  });
}

// ─────────────────────────────────────────
// SLIDE 10 – KEY CLINICAL GUIDELINES & SUMMARY
// ─────────────────────────────────────────
{
  const s = pres.addSlide();
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: C.darkBg } });
  // Accent bottom band
  s.addShape(pres.ShapeType.rect, { x: 0, y: 4.6, w: 10, h: 1.03, fill: { color: C.midBg } });
  // Top label
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 0.55, fill: { color: "091F2E" } });
  s.addText("DENTAL & ORAL HEALTH  |  CLINICAL REFERENCE", {
    x: 0.3, y: 0.06, w: 9.4, h: 0.42, align: "center", fontSize: 12, bold: true, color: C.accent, fontFace: "Calibri", charSpacing: 3, margin: 0
  });

  s.addText("Key Guidelines & Take-Home Points", {
    x: 0.4, y: 0.65, w: 9.2, h: 0.4, fontSize: 18, bold: true, color: C.amber, fontFace: "Calibri", margin: 0
  });

  const guidelines = [
    { org: "ADA / AAP", point: "Periodontal disease classification: use the 2017 EFP/AAP staging & grading system in all clinical documentation." },
    { org: "NICE (UK)", point: "Recall intervals should be risk-stratified: not a universal 6-month recall. Use BPE scoring at every visit." },
    { org: "SIGN 138", point: "Dental anxiety management: offer cognitive behavioural therapy (CBT), sedation (oral/IV), or general anaesthesia in a hospital setting for severe cases." },
    { org: "WHO IARC", point: "HPV vaccination (Gardasil-9) prevents HPV-16/18 — key drivers of oropharyngeal SCC. Recommend in adolescents." },
    { org: "BSSRO / ADA", point: "Pre-dental treatment for antiresorptive therapy: optimise oral health before IV bisphosphonate or denosumab initiation." },
    { org: "PHE / USPHS", point: "Pit & fissure sealants + topical fluoride varnish are first-line caries prevention in children. Cost-effective." },
  ];

  guidelines.forEach((g, i) => {
    const col = i < 3 ? 0 : 1;
    const row = i % 3;
    const x = col === 0 ? 0.3 : 5.3;
    const y = 1.15 + row * 1.12;
    s.addShape(pres.ShapeType.rect, { x, y, w: 4.7, h: 1.05, fill: { color: "12375A" }, line: { color: C.accent, pt: 1 } });
    s.addText(g.org, { x: x + 0.12, y: y + 0.06, w: 1.2, h: 0.28, fontSize: 9, bold: true, color: C.amber, fontFace: "Calibri", margin: 0 });
    s.addText(g.point, { x: x + 0.12, y: y + 0.35, w: 4.45, h: 0.65, fontSize: 8.2, color: C.white, fontFace: "Calibri", margin: 0 });
  });

  // Footer
  s.addText("Prepared for clinical professional use  |  June 2026  |  For educational purposes only — always refer to current local guidelines for clinical decision-making.", {
    x: 0.3, y: 4.68, w: 9.4, h: 0.35, align: "center", fontSize: 7.5, color: C.softGray, fontFace: "Calibri", italic: true, margin: 0
  });
  s.addText("Sources: ADA, AAP, NICE, SIGN, WHO, PHE, BSSRO | Illustrations: Educational Reference Only", {
    x: 0.3, y: 5.05, w: 9.4, h: 0.3, align: "center", fontSize: 7, color: C.softGray, fontFace: "Calibri", margin: 0
  });
}

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

cd /home/daytona/workspace/dental-ppt && node dental.js 2>&1

Running Command

ls -lh /home/daytona/workspace/dental-ppt/Dental_Oral_Health_Clinical.pptx

Your presentation is ready (360 KB, 16:9 layout, deep teal/amber colour scheme designed for a clinical audience):

Dental Oral Health Clinical

Presentation · PPTX


What's inside (10 slides):
#SlideContent
1TitleFull dark-background cover with topics overview
2Anatomy of the Oral Cavity8 key structures with innervation, blood supply, saliva facts
3Dental CariesKeyes Triad (Host/Microbe/Substrate/Time) + ICDAS Stage 0-6 table
4Periodontitis2017 World Workshop Staging I-IV + Grading A-C + 5-step treatment pathway
5Oral CancerSCC epidemiology, risk factors, AJCC 8th ed. TNM staging
6Oral-Systemic ConnectionsCVD, Diabetes, Pregnancy, Respiratory, Bisphosphonates, Alzheimer's
7Common Oral Lesions7-row differential diagnosis table (aphthous, candida, leukoplakia, erythroplakia, lichen planus, herpes, OSMF)
8Dental EmergenciesPulp abscess, avulsion, Ludwig's angina, dry socket, pericoronitis - with Sx/Mx
9Prevention & Oral Hygiene3-pillar format: Home care, Professional care, Systemic measures
10Guidelines & SummaryDark closing slide with ADA, NICE, SIGN, WHO, BSSRO key recommendations
This is a shared conversation. Sign in to Orris to start your own chat.