Naku assignment lo help chesthava pleaseπ₯²
Ok first instructions istha ok na I will give you surgery case on topic stomach and you will give the answers to the asked questions there 1. Should be only textbook source based or directly taken from text book references only ok na. 2. Nuvu iche prathidhi accurate ga and surgery case related i vundali. 3. Rasina prathi answer ki please doc adigithr like idhi endhuku pettaru idhi endhuku icharu ante cheppe la vundali gattiga ok na
Preferably swartz textbook ok ma
CASE 1: Β A 65-yo male was a diagnosed of case of chronic gouty arthritis. He was advised to take Ibuprofen as a remedy if ever he experiences an attack. Because of financial constraints, he was unable to follow up with his rheumatologist regarding his gout and will usually double or triple the dose of Ibuprofen if the pain becomes severe or difficult to handle. Recently, the patient encountered recurrent gouty flares and has been taking his medication almost daily with double or triple the dose. The patient was eating his dinner with his family when he suddenly experienced epigastric discomfort. He initially tolerated it and drank 2 glasses of water to relieve the pain. The pain was described to be stabbing and steady in character. Around 2 hours after, the patient noted an increase in the severity of pain, noted to be pale and diaphoretic and was screaming in pain. He was brought to a DMSF Hospital where you are the clinical clerk on duty. Β 1. Extract additional information regarding patientβs history. 2. Perform the necessary assessment needed to diagnose the disease. 3. Give your initial impression on the case. 4. Correlate the symptoms with the patientβs risk factors to develop the disease considered. 5. Provide the necessary diagnostic modalities necessary to confirm or reject your initial impression. 6. Enumerate your plans for the patient.
Why we ask this: Schwartz explains that PUD results from "an imbalance between mucosal defenses and acid/peptic injury" with NSAID use causing ulcers "predominantly by compromise of mucosal defenses." Additional history helps establish chronicity of disease, identify all risk factors, and rule out co-existing pathology like GI cancer or a second ulcer.
Why we do this: Schwartz states that "perforated peptic ulcer usually presents as an acute abdomen" and that "the abdominal examination shows peritoneal signs" - meaning the physical exam is the key to clinical diagnosis before any imaging is done.
| Risk Factor | Evidence in This Patient | Schwartz Explanation |
|---|---|---|
| NSAID use (Ibuprofen) | Daily use, double/triple dosing | "NSAID use causes ulcers predominantly by compromise of mucosal defenses" (p.1149). "NSAID and/or aspirin use have been inextricably linked with perforated PUD, especially in the elderly" (p.1162) |
| Elderly age (65 years) | 65 yo male | "Incidence of emergency surgery and death rate...increased in elderly patients for complications of bleeding and perforation...due in part to increasingly common use of NSAIDs in this elderly cohort" (p.1148) |
| Chronic/excessive dosing | Doubling/tripling dose | Higher NSAID dose = greater mucosal damage; the final pathway is "acid-peptic injury of the gastroduodenal mucosal barrier" (p.1149) |
| No gastroprotection | No PPI prescribed alongside NSAID | Schwartz references "NSAID use (with and without ulcer prophylaxis) in an aging population" as a detrimental epidemiologic factor (p.1148) |
| No follow-up | Financial constraints, no rheumatologist follow-up | Chronic NSAID use without monitoring allows silent ulcer development leading to complications |
Why these tests: Schwartz states that "once the diagnosis has been made, the patient is given analgesia and antibiotics, resuscitated with isotonic fluid, and taken to the operating room" - confirming that rapid diagnostic workup to confirm the diagnosis and prepare for surgery is the priority.
Schwartz also notes: "Nonoperative management is appropriate only if there is objective evidence that the leak has sealed (i.e., radiologic contrast study), and in the absence of clinical peritonitis" - this patient has clinical peritonitis, so surgery is mandatory.
Ok thank you but nenu e 6 questions ppt la tayaru chesi present cheyyali so enni slides ina perledhu like ppt lo pette la ivvu so that i will copy paste that ok na ippudu ichindhi antha bavundhi good
ls /home/daytona/workspace/ 2>/dev/null && mkdir -p /home/daytona/workspace/stomach-case-ppt
~/stomach-case-ppt/create_ppt.js
const pptxgen = require("pptxgenjs");
let pres = new pptxgen();
pres.layout = 'LAYOUT_16x9';
pres.title = 'Stomach Surgery Case - Perforated Peptic Ulcer';
// βββ THEME COLORS βββββββββββββββββββββββββββββββββββββββββββ
const DARK_BG = "1A2B4A"; // deep navy
const MED_BLUE = "1F4E79"; // medium blue
const ACCENT = "2E86AB"; // teal-blue accent
const LIGHT_BG = "EAF2FB"; // very light blue
const WHITE = "FFFFFF";
const YELLOW = "F4D03F"; // accent highlight
const LIGHT_TXT = "D6EAF8";
const BODY_TXT = "1A2B4A";
const GRAY = "7F8C8D";
// βββ HELPER: section header bar βββββββββββββββββββββββββββββ
function addSectionBar(slide, text) {
slide.addShape(pres.ShapeType.rect, {
x: 0, y: 0, w: 10, h: 0.72,
fill: { color: MED_BLUE }, line: { color: MED_BLUE }
});
slide.addText(text, {
x: 0.18, y: 0, w: 9.6, h: 0.72,
fontSize: 20, bold: true, color: WHITE,
valign: "middle", margin: 0
});
}
// βββ HELPER: accent left bar ββββββββββββββββββββββββββββββββ
function addLeftBar(slide, color) {
slide.addShape(pres.ShapeType.rect, {
x: 0, y: 0, w: 0.12, h: 5.625,
fill: { color: color }, line: { color: color }
});
}
// βββ HELPER: bottom source bar ββββββββββββββββββββββββββββββ
function addSourceBar(slide) {
slide.addShape(pres.ShapeType.rect, {
x: 0, y: 5.25, w: 10, h: 0.375,
fill: { color: DARK_BG }, line: { color: DARK_BG }
});
slide.addText("Reference: Schwartz's Principles of Surgery, 11th Edition β Chapter 26: Stomach", {
x: 0.2, y: 5.25, w: 9.6, h: 0.375,
fontSize: 8, color: LIGHT_TXT, italic: true, valign: "middle", margin: 0
});
}
// βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
// SLIDE 1 β TITLE
// βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
let s1 = pres.addSlide();
s1.background = { color: DARK_BG };
// decorative rectangle top-right
s1.addShape(pres.ShapeType.rect, {
x: 7.5, y: 0, w: 2.5, h: 5.625,
fill: { color: MED_BLUE }, line: { color: MED_BLUE }
});
s1.addShape(pres.ShapeType.rect, {
x: 7.62, y: 0, w: 0.15, h: 5.625,
fill: { color: ACCENT }, line: { color: ACCENT }
});
s1.addText("SURGERY CASE 1", {
x: 0.5, y: 0.8, w: 7, h: 0.55,
fontSize: 14, color: YELLOW, bold: true, charSpacing: 5
});
s1.addText("Perforated\nPeptic Ulcer", {
x: 0.5, y: 1.4, w: 7, h: 2.0,
fontSize: 44, bold: true, color: WHITE,
valign: "top"
});
s1.addText("A 65-year-old male β’ Chronic NSAID Use β’ Acute Abdomen", {
x: 0.5, y: 3.55, w: 6.8, h: 0.45,
fontSize: 13, color: LIGHT_TXT, italic: true
});
s1.addShape(pres.ShapeType.line, {
x: 0.5, y: 3.45, w: 5.5, h: 0,
line: { color: ACCENT, width: 2 }
});
s1.addText("Schwartz's Principles of Surgery, 11th Ed β Ch. 26", {
x: 0.5, y: 5.05, w: 7, h: 0.4,
fontSize: 10, color: GRAY, italic: true
});
// βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
// SLIDE 2 β CASE SUMMARY
// βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
let s2 = pres.addSlide();
s2.background = { color: LIGHT_BG };
addLeftBar(s2, ACCENT);
addSectionBar(s2, "CASE OVERVIEW");
s2.addText("Patient Profile", {
x: 0.3, y: 0.85, w: 4.5, h: 0.38,
fontSize: 13, bold: true, color: MED_BLUE
});
s2.addText([
{ text: "Age / Sex: ", options: { bold: true, color: BODY_TXT } },
{ text: "65-year-old Male\n", options: { color: BODY_TXT } },
{ text: "Known Condition: ", options: { bold: true, color: BODY_TXT } },
{ text: "Chronic Gouty Arthritis\n", options: { color: BODY_TXT } },
{ text: "Medication: ", options: { bold: true, color: BODY_TXT } },
{ text: "Ibuprofen (double/triple dose, almost daily)\n", options: { color: BODY_TXT } },
{ text: "Compliance: ", options: { bold: true, color: BODY_TXT } },
{ text: "No rheumatology follow-up (financial constraints)", options: { color: BODY_TXT } },
], { x: 0.3, y: 1.28, w: 4.5, h: 1.6, fontSize: 13, lineSpacingMultiple: 1.4 });
s2.addText("Presenting Complaint", {
x: 5.1, y: 0.85, w: 4.6, h: 0.38,
fontSize: 13, bold: true, color: MED_BLUE
});
s2.addText([
{ text: "Onset: ", options: { bold: true } },
{ text: "Sudden epigastric pain during dinner\n", options: {} },
{ text: "Character: ", options: { bold: true } },
{ text: "Stabbing and steady\n", options: {} },
{ text: "Progression: ", options: { bold: true } },
{ text: "Worsening over 2 hours\n", options: {} },
{ text: "Signs: ", options: { bold: true } },
{ text: "Pallor, diaphoresis, screaming in pain", options: {} },
], { x: 5.1, y: 1.28, w: 4.6, h: 1.6, fontSize: 13, color: BODY_TXT, lineSpacingMultiple: 1.4 });
s2.addShape(pres.ShapeType.line, {
x: 5.0, y: 0.85, w: 0, h: 2.2,
line: { color: ACCENT, width: 1.5 }
});
// highlight box
s2.addShape(pres.ShapeType.rect, {
x: 0.3, y: 3.0, w: 9.4, h: 0.88,
fill: { color: MED_BLUE }, line: { color: MED_BLUE }, rounding: true
});
s2.addText("CLINICAL CLUE: Chemical peritonitis (first 2 hrs) β bacterial peritonitis (after 2 hrs)\n\"Initially, a chemical peritonitis develops from the gastric and/or duodenal secretions, but within hours a bacterial peritonitis supervenes.\" β Schwartz, p.1152", {
x: 0.45, y: 3.0, w: 9.1, h: 0.88,
fontSize: 10.5, color: WHITE, valign: "middle", italic: true
});
addSourceBar(s2);
// βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
// SLIDE 3 β Q1: ADDITIONAL HISTORY
// βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
let s3 = pres.addSlide();
s3.background = { color: WHITE };
addLeftBar(s3, YELLOW);
addSectionBar(s3, "Q1 β Extract Additional History");
// 4 category boxes
const categories = [
{
label: "HPI / Pain",
items: ["Exact time of pain onset", "Radiation (shoulder = diaphragm irritation)", "Nausea, vomiting, hematemesis", "Prior similar episodes"]
},
{
label: "Medications",
items: ["Exact Ibuprofen dose & duration", "Any PPI/gastroprotective use", "Aspirin, steroids, anticoagulants", "Smoking & alcohol history"]
},
{
label: "Past Medical Hx",
items: ["Prior PUD or GI bleeding", "H. pylori infection/treatment", "Prior abdominal surgeries", "Comorbidities (CVD, DM, renal)"]
},
{
label: "Review of Systems",
items: ["Melena or hematochezia", "Weight loss (r/o malignancy)", "Last meal (pre-op planning)", "Bowel habit changes"]
}
];
const bx = [0.22, 2.6, 5.0, 7.38];
categories.forEach((cat, i) => {
s3.addShape(pres.ShapeType.rect, {
x: bx[i], y: 0.85, w: 2.25, h: 4.25,
fill: { color: LIGHT_BG }, line: { color: ACCENT, width: 1.5 }
});
s3.addShape(pres.ShapeType.rect, {
x: bx[i], y: 0.85, w: 2.25, h: 0.44,
fill: { color: ACCENT }, line: { color: ACCENT }
});
s3.addText(cat.label, {
x: bx[i], y: 0.85, w: 2.25, h: 0.44,
fontSize: 11, bold: true, color: WHITE, align: "center", valign: "middle", margin: 0
});
s3.addText(cat.items.map(t => ({ text: t, options: { bullet: { type: "bullet" }, breakLine: true, color: BODY_TXT } })),
{ x: bx[i] + 0.08, y: 1.34, w: 2.1, h: 3.6, fontSize: 10.5, lineSpacingMultiple: 1.5 });
});
addSourceBar(s3);
// βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
// SLIDE 4 β Q2: ASSESSMENT
// βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
let s4 = pres.addSlide();
s4.background = { color: WHITE };
addLeftBar(s4, "E74C3C");
addSectionBar(s4, "Q2 β Necessary Assessment / Physical Examination");
// Vitals box
s4.addShape(pres.ShapeType.rect, {
x: 0.22, y: 0.85, w: 2.9, h: 1.55,
fill: { color: "FDEDEC" }, line: { color: "E74C3C", width: 1.5 }
});
s4.addText("VITALS (Immediate)", {
x: 0.22, y: 0.85, w: 2.9, h: 0.38,
fontSize: 11, bold: true, color: "E74C3C", align: "center", valign: "middle"
});
s4.addText([
{ text: "BP β’ HR β’ RR β’ Temp β’ SpO2\n", options: { bullet: true, breakLine: true } },
{ text: "Assess for hemodynamic instability/shock", options: { bullet: true } }
], { x: 0.3, y: 1.28, w: 2.7, h: 1.05, fontSize: 10.5, color: BODY_TXT, lineSpacingMultiple: 1.4 });
// Abdominal Exam box (large)
s4.addShape(pres.ShapeType.rect, {
x: 3.25, y: 0.85, w: 6.5, h: 4.2,
fill: { color: LIGHT_BG }, line: { color: ACCENT, width: 1.5 }
});
s4.addShape(pres.ShapeType.rect, {
x: 3.25, y: 0.85, w: 6.5, h: 0.38,
fill: { color: MED_BLUE }, line: { color: MED_BLUE }
});
s4.addText("ABDOMINAL EXAMINATION", {
x: 3.25, y: 0.85, w: 6.5, h: 0.38,
fontSize: 11, bold: true, color: WHITE, align: "center", valign: "middle", margin: 0
});
s4.addText([
{ text: "Inspection: ", options: { bold: true, color: "E74C3C", breakLine: false } },
{ text: "Abdominal rigidity, distension, board-like abdomen\n", options: { breakLine: true } },
{ text: "Auscultation: ", options: { bold: true, color: "E74C3C", breakLine: false } },
{ text: "Absent/reduced bowel sounds (peritonitis/ileus)\n", options: { breakLine: true } },
{ text: "Palpation: ", options: { bold: true, color: "E74C3C", breakLine: false } },
{ text: "Marked involuntary guarding + rebound tenderness\n", options: { breakLine: true } },
{ text: ' "Marked involuntary guarding and rebound tenderness is evoked\n by a gentle examination." β Schwartz, p.1152\n', options: { italic: true, color: GRAY, breakLine: true, fontSize: 10 } },
{ text: "Percussion: ", options: { bold: true, color: "E74C3C", breakLine: false } },
{ text: "Loss of hepatic dullness β free air under diaphragm\n", options: { breakLine: true } },
{ text: "Kehr's Sign: ", options: { bold: true, color: "E74C3C", breakLine: false } },
{ text: "Shoulder tip pain β diaphragmatic irritation from leaked contents", options: {} },
], { x: 3.35, y: 1.28, w: 6.3, h: 3.65, fontSize: 11, color: BODY_TXT, lineSpacingMultiple: 1.45 });
// Vitals follow-up box
s4.addShape(pres.ShapeType.rect, {
x: 0.22, y: 2.52, w: 2.9, h: 2.53,
fill: { color: "FDEDEC" }, line: { color: "E74C3C", width: 1.5 }
});
s4.addText("SYSTEMIC SIGNS", {
x: 0.22, y: 2.52, w: 2.9, h: 0.38,
fontSize: 11, bold: true, color: "E74C3C", align: "center", valign: "middle"
});
s4.addText([
{ text: "Pallor β blood loss/shock\n", options: { bullet: true, breakLine: true } },
{ text: "Diaphoresis β sympathetic response\n", options: { bullet: true, breakLine: true } },
{ text: "Fluid sequestration signs\n", options: { bullet: true, breakLine: true } },
{ text: "Level of consciousness", options: { bullet: true } }
], { x: 0.3, y: 2.96, w: 2.72, h: 2.0, fontSize: 10.5, color: BODY_TXT, lineSpacingMultiple: 1.4 });
addSourceBar(s4);
// βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
// SLIDE 5 β Q3: INITIAL IMPRESSION
// βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
let s5 = pres.addSlide();
s5.background = { color: DARK_BG };
addLeftBar(s5, YELLOW);
s5.addText("Q3 β Initial Impression", {
x: 0.22, y: 0.1, w: 9.6, h: 0.6,
fontSize: 20, bold: true, color: YELLOW
});
// Big diagnosis box
s5.addShape(pres.ShapeType.rect, {
x: 0.22, y: 0.75, w: 9.56, h: 1.05,
fill: { color: ACCENT }, line: { color: YELLOW, width: 2 }
});
s5.addText("INITIAL IMPRESSION: Perforated Peptic Ulcer with Acute Peritonitis", {
x: 0.22, y: 0.75, w: 9.56, h: 1.05,
fontSize: 20, bold: true, color: WHITE, align: "center", valign: "middle"
});
s5.addText("Most likely: Perforated Duodenal Ulcer", {
x: 0.25, y: 1.9, w: 9.5, h: 0.42,
fontSize: 14, bold: true, color: YELLOW
});
s5.addText([
{ text: "Schwartz, p.1162: ", options: { bold: true, italic: true, color: YELLOW } },
{ text: '"Perforation is the second most common complication of peptic ulcer, but nowadays it is a much more\ncommon indication for operation than bleeding. As with bleeding ulcer, NSAID and/or aspirin use have\nbeen inextricably linked with perforated PUD, especially in the elderly population."', options: { italic: true, color: LIGHT_TXT } }
], { x: 0.25, y: 2.35, w: 9.5, h: 1.1, fontSize: 11, lineSpacingMultiple: 1.4 });
s5.addText("Supporting Features in This Patient:", {
x: 0.25, y: 3.55, w: 9.5, h: 0.38,
fontSize: 12, bold: true, color: YELLOW
});
s5.addText([
{ text: "Elderly male (65 yo) on chronic NSAID (Ibuprofen) at high doses β’ ", options: { bullet: true, breakLine: false, color: WHITE } },
{ text: "Sudden-onset severe epigastric pain (chemical peritonitis β bacterial peritonitis within 2 hrs) β’ ", options: { breakLine: false, color: WHITE } },
{ text: "Pallor & diaphoresis = systemic peritonitis / shock", options: { color: WHITE } }
], { x: 0.25, y: 3.95, w: 9.5, h: 1.1, fontSize: 11.5, color: WHITE, lineSpacingMultiple: 1.4 });
addSourceBar(s5);
// βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
// SLIDE 6 β Q4: RISK FACTOR CORRELATION
// βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
let s6 = pres.addSlide();
s6.background = { color: WHITE };
addLeftBar(s6, "8E44AD");
addSectionBar(s6, "Q4 β Correlate Symptoms with Risk Factors");
// Table
const tableData = [
[
{ text: "Risk Factor", options: { bold: true, color: WHITE, fill: MED_BLUE } },
{ text: "Evidence in Patient", options: { bold: true, color: WHITE, fill: MED_BLUE } },
{ text: "Schwartz Explanation", options: { bold: true, color: WHITE, fill: MED_BLUE } }
],
[
{ text: "Chronic NSAID Use" },
{ text: "Ibuprofen β double/triple dose, almost daily" },
{ text: '"NSAID use causes ulcers predominantly by compromise of mucosal defenses" (p.1149)' }
],
[
{ text: "Elderly Age (65 yo)" },
{ text: "65-year-old male" },
{ text: '"Increased rates of hospitalization and mortality in elderly for perforation...due in part to NSAIDs" (p.1148)' }
],
[
{ text: "No Gastroprotection" },
{ text: "No PPI given alongside NSAID" },
{ text: '"NSAID use with and without ulcer prophylaxis in aging population" cited as detrimental factor (p.1148)' }
],
[
{ text: "No Medical Follow-up" },
{ text: "Financial constraints; self-medicating" },
{ text: "Chronic NSAID use without monitoring allows progressive mucosal damage β perforation" }
],
[
{ text: "Symptom Timeline" },
{ text: "Pain at dinner β worsening at 2 hrs β diaphoresis, pallor" },
{ text: '"Chemical peritonitis...but within hours a bacterial peritonitis supervenes." (p.1152)' }
]
];
s6.addTable(tableData, {
x: 0.22, y: 0.78, w: 9.56, h: 4.38,
fontSize: 10,
border: { type: "solid", color: "C0D8F0", pt: 0.5 },
colW: [1.6, 2.5, 5.46],
rowH: 0.5,
align: "left",
valign: "middle",
fontFace: "Calibri",
color: BODY_TXT,
fill: { color: LIGHT_BG },
autoPage: false
});
addSourceBar(s6);
// βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
// SLIDE 7 β Q5: DIAGNOSTIC MODALITIES
// βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
let s7 = pres.addSlide();
s7.background = { color: WHITE };
addLeftBar(s7, "27AE60");
addSectionBar(s7, "Q5 β Diagnostic Modalities");
const diagItems = [
{
num: "1",
title: "Upright Chest X-Ray",
sub: "FIRST LINE",
body: 'Free air (pneumoperitoneum) under the diaphragm\n"Upright chest X-ray shows free air in about 80% of patients." β Schwartz, p.1152\nAlternative: Left lateral decubitus X-ray',
col: "27AE60"
},
{
num: "2",
title: "CT Abdomen & Pelvis",
sub: "CONFIRMATORY",
body: "More sensitive for small free air & free fluid\nIdentifies site & extent of peritoneal contamination\nRules out: pancreatitis, mesenteric ischemia",
col: MED_BLUE
},
{
num: "3",
title: "Laboratory Work-up",
sub: "PRE-OPERATIVE",
body: "CBC (leukocytosis, anemia)\nElectrolytes, BUN, Creatinine\nSerum amylase/lipase (r/o pancreatitis)\nPT/PTT, Blood type & crossmatch\nSerum lactate (assess sepsis/shock)",
col: "E67E22"
},
{
num: "4",
title: "H. pylori Testing",
sub: "ADJUNCT",
body: "Urea breath test / Stool antigen\nBiopsy at surgery\n\"Biopsy should be performed to evaluate for H. pylori infection.\" β Schwartz",
col: "8E44AD"
}
];
const dx = [0.22, 2.65, 5.1, 7.53];
diagItems.forEach((d, i) => {
// card bg
s7.addShape(pres.ShapeType.rect, {
x: dx[i], y: 0.82, w: 2.3, h: 4.3,
fill: { color: LIGHT_BG }, line: { color: d.col, width: 1.5 }
});
// top colored band
s7.addShape(pres.ShapeType.rect, {
x: dx[i], y: 0.82, w: 2.3, h: 0.72,
fill: { color: d.col }, line: { color: d.col }
});
// number circle
s7.addShape(pres.ShapeType.ellipse, {
x: dx[i] + 0.06, y: 0.87, w: 0.48, h: 0.48,
fill: { color: WHITE }, line: { color: d.col }
});
s7.addText(d.num, {
x: dx[i] + 0.06, y: 0.87, w: 0.48, h: 0.48,
fontSize: 13, bold: true, color: d.col, align: "center", valign: "middle"
});
s7.addText(d.title, {
x: dx[i] + 0.6, y: 0.87, w: 1.65, h: 0.3,
fontSize: 10, bold: true, color: WHITE, valign: "middle", margin: 0
});
s7.addText(d.sub, {
x: dx[i] + 0.6, y: 1.17, w: 1.65, h: 0.22,
fontSize: 8, color: WHITE, italic: true, valign: "middle", margin: 0
});
s7.addText(d.body, {
x: dx[i] + 0.1, y: 1.6, w: 2.1, h: 3.4,
fontSize: 10, color: BODY_TXT, lineSpacingMultiple: 1.45, valign: "top"
});
});
addSourceBar(s7);
// βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
// SLIDE 8 β Q6: MANAGEMENT PLANS
// βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
let s8 = pres.addSlide();
s8.background = { color: WHITE };
addLeftBar(s8, "E74C3C");
addSectionBar(s8, "Q6 β Management Plans");
// Column A β Immediate resuscitation
s8.addShape(pres.ShapeType.rect, {
x: 0.22, y: 0.82, w: 3.1, h: 4.3,
fill: { color: "FDEDEC" }, line: { color: "E74C3C", width: 1.5 }
});
s8.addShape(pres.ShapeType.rect, {
x: 0.22, y: 0.82, w: 3.1, h: 0.38,
fill: { color: "E74C3C" }, line: { color: "E74C3C" }
});
s8.addText("A. IMMEDIATE RESUSCITATION", {
x: 0.22, y: 0.82, w: 3.1, h: 0.38,
fontSize: 10, bold: true, color: WHITE, align: "center", valign: "middle", margin: 0
});
s8.addText([
{ text: "NPO\n", options: { bullet: true, breakLine: true } },
{ text: "Large-bore IV access\n", options: { bullet: true, breakLine: true } },
{ text: "Isotonic IV fluid resuscitation\n", options: { bullet: true, breakLine: true } },
{ text: '"Fluid sequestration into the third space...preoperative fluid resuscitation is mandatory." β Schwartz, p.1152\n', options: { italic: true, color: GRAY, fontSize: 9.5, breakLine: true } },
{ text: "Nasogastric tube (NGT)\n", options: { bullet: true, breakLine: true } },
{ text: "Urinary catheter (urine output monitoring)\n", options: { bullet: true, breakLine: true } },
{ text: "IV Broad-spectrum Antibiotics\n", options: { bullet: true, breakLine: true } },
{ text: "Analgesia + Oxygen\n", options: { bullet: true, breakLine: true } },
{ text: "Continuous vitals monitoring", options: { bullet: true } }
], { x: 0.3, y: 1.25, w: 2.95, h: 3.8, fontSize: 10.5, color: BODY_TXT, lineSpacingMultiple: 1.3 });
// Column B β Surgery
s8.addShape(pres.ShapeType.rect, {
x: 3.45, y: 0.82, w: 3.2, h: 4.3,
fill: { color: "EAF2FB" }, line: { color: MED_BLUE, width: 1.5 }
});
s8.addShape(pres.ShapeType.rect, {
x: 3.45, y: 0.82, w: 3.2, h: 0.38,
fill: { color: MED_BLUE }, line: { color: MED_BLUE }
});
s8.addText("B. SURGICAL INTERVENTION", {
x: 3.45, y: 0.82, w: 3.2, h: 0.38,
fontSize: 10, bold: true, color: WHITE, align: "center", valign: "middle", margin: 0
});
s8.addText('"Surgery is almost always indicated for ulcer perforation." β Schwartz', {
x: 3.5, y: 1.25, w: 3.05, h: 0.45,
fontSize: 9.5, italic: true, color: "E74C3C"
});
s8.addText([
{ text: "Hemodynamically UNSTABLE:\n", options: { bold: true, breakLine: true, color: "E74C3C" } },
{ text: "Simple patch closure (Graham patch)\n", options: { bullet: true, breakLine: true } },
{ text: "For perforation >24 hrs or exudative peritonitis\n\n", options: { italic: true, color: GRAY, fontSize: 9.5, breakLine: true } },
{ text: "Hemodynamically STABLE:\n", options: { bold: true, breakLine: true, color: "27AE60" } },
{ text: "Patch closure + Highly Selective Vagotomy (HSV)\n", options: { bullet: true, breakLine: true } },
{ text: "Vagotomy and Drainage (V+D) β also acceptable\n\n", options: { bullet: true, breakLine: true } },
{ text: "Perforated GASTRIC ulcers:\n", options: { bold: true, breakLine: true, color: "E67E22" } },
{ text: "Distal gastric resection (preferred in stable)\n", options: { bullet: true, breakLine: true } },
{ text: "ALL gastric ulcers must be BIOPSIED to r/o malignancy", options: { bullet: true, bold: true, color: "E74C3C" } }
], { x: 3.52, y: 1.74, w: 3.05, h: 3.25, fontSize: 10.5, color: BODY_TXT, lineSpacingMultiple: 1.3 });
// Column C β Post-op
s8.addShape(pres.ShapeType.rect, {
x: 6.78, y: 0.82, w: 3.0, h: 4.3,
fill: { color: "EAFAF1" }, line: { color: "27AE60", width: 1.5 }
});
s8.addShape(pres.ShapeType.rect, {
x: 6.78, y: 0.82, w: 3.0, h: 0.38,
fill: { color: "27AE60" }, line: { color: "27AE60" }
});
s8.addText("C. POST-OPERATIVE PLANS", {
x: 6.78, y: 0.82, w: 3.0, h: 0.38,
fontSize: 10, bold: true, color: WHITE, align: "center", valign: "middle", margin: 0
});
s8.addText([
{ text: "Continue IV antibiotics & PPI therapy\n", options: { bullet: true, breakLine: true } },
{ text: "Test & eradicate H. pylori if positive\n", options: { bullet: true, breakLine: true } },
{ text: "STOP NSAIDs permanently\n", options: { bullet: true, bold: true, color: "E74C3C", breakLine: true } },
{ text: "Shift gout Rx: colchicine or allopurinol\n", options: { bullet: true, breakLine: true } },
{ text: "Rheumatology referral for gout management\n", options: { bullet: true, breakLine: true } },
{ text: "Monitor for complications:\n", options: { bullet: true, breakLine: true } },
{ text: "Re-leakage, abscess, delayed gastric emptying\n", options: { indent: 2270, breakLine: true, color: GRAY, fontSize: 10 } },
{ text: "Nutritional support", options: { bullet: true } }
], { x: 6.86, y: 1.25, w: 2.85, h: 3.8, fontSize: 10.5, color: BODY_TXT, lineSpacingMultiple: 1.3 });
addSourceBar(s8);
// βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
// SLIDE 9 β CLOSING / REFERENCE
// βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
let s9 = pres.addSlide();
s9.background = { color: DARK_BG };
s9.addShape(pres.ShapeType.rect, {
x: 0, y: 0, w: 0.18, h: 5.625,
fill: { color: ACCENT }, line: { color: ACCENT }
});
s9.addShape(pres.ShapeType.rect, {
x: 0, y: 4.8, w: 10, h: 0.825,
fill: { color: MED_BLUE }, line: { color: MED_BLUE }
});
s9.addText("Summary", {
x: 0.4, y: 0.3, w: 9.4, h: 0.55,
fontSize: 22, bold: true, color: YELLOW
});
s9.addText([
{ text: "Diagnosis: ", options: { bold: true, color: YELLOW } },
{ text: "Perforated Peptic Ulcer with Acute Peritonitis\n", options: { color: WHITE } },
{ text: "Key Risk Factor: ", options: { bold: true, color: YELLOW } },
{ text: "Chronic high-dose NSAID use (Ibuprofen) in elderly male without gastroprotection\n", options: { color: WHITE } },
{ text: "Pathophysiology: ", options: { bold: true, color: YELLOW } },
{ text: "NSAID-induced mucosal defense compromise β peptic ulcer β perforation β peritonitis\n", options: { color: WHITE } },
{ text: "Key Diagnostic Test: ", options: { bold: true, color: YELLOW } },
{ text: "Upright CXR (free air in ~80% of cases per Schwartz) + CT Abdomen\n", options: { color: WHITE } },
{ text: "Definitive Treatment: ", options: { bold: true, color: YELLOW } },
{ text: "Surgical repair (Graham patch or resection) after IV fluid resuscitation", options: { color: WHITE } }
], { x: 0.4, y: 0.95, w: 9.4, h: 3.65, fontSize: 13, lineSpacingMultiple: 1.55 });
s9.addText("Reference: Schwartz's Principles of Surgery, 11th Edition β Chapter 26: Stomach, pp. 1148β1149, 1152, 1162β1163", {
x: 0.3, y: 4.85, w: 9.5, h: 0.6,
fontSize: 11, color: LIGHT_TXT, italic: true, valign: "middle"
});
// βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
// WRITE FILE
// βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
pres.writeFile({ fileName: "/home/daytona/workspace/stomach-case-ppt/StomachCase1_PUPerforation.pptx" })
.then(() => console.log("PPT created successfully!"))
.catch(err => console.error("Error:", err));
cd /home/daytona/workspace/stomach-case-ppt && node create_ppt.js 2>&1
StomachCase1 PUPerforation
Presentation Β· PPTX
| Slide | Content |
|---|---|
| 1 | Title Slide - Perforated Peptic Ulcer |
| 2 | Case Overview (Patient profile + presenting complaint) |
| 3 | Q1 - Additional History (4 category boxes) |
| 4 | Q2 - Assessment / Physical Examination |
| 5 | Q3 - Initial Impression (dark theme, diagnosis highlighted) |
| 6 | Q4 - Risk Factor Correlation (table format) |
| 7 | Q5 - Diagnostic Modalities (4 cards) |
| 8 | Q6 - Management Plans (3 columns: Resuscitation / Surgery / Post-op) |
| 9 | Summary Slide + Full Reference |
Upright Chest X-Ray FIRST LINE CT Abdomen & Pelvis CONFIRMATORY Free air (pneumoperitoneum) under the diaphragm "Upright chest X-ray shows free air in about 80% of patients." - Schwartz, p.1152 Alternative: Left lateral decubitus X-ray More sensitive for small free air & free fluid Identifies site & extent of peritoneal contamination Rules out: pancreatitis, mesenteric ischemia Reference: Schwartz's Principles of Surgery, 11th Edition - Chapter 26: Stomach Laboratory Work-up PRE-OPERATIVE CBC (leukocytosis, anemia) Electrolytes, BUN, Creatinine Serum amylase/lipase (r/o pancreatitis PT/PTT, Blood type & crossmatch Serum lactate (assess sepsis/ shock) H. pylori Testing ADJUNCT Urea breath test / Stool antigen Biopsy at surgery "Biopsy should be performed to evaluate for H. pylori infection." γΌ Schwartz Idhi antha 5th question lo ichav kadha nice bavundhi but idhi patient ki relate chesthu ivvu like for suppose patient have this this condition valla idhi annatu ivvu kust ivvu chalu ppt odhuπ
"Upright chest X-ray shows free air in about 80% of patients." β Schwartz's Principles of Surgery, 11th Ed., p. 1152
Ppt lo patte la simple ga ivvu intha pedda ga kadhu
~/stomach-case-ppt/create_ppt.js
Successfully replaced 1 instance(s) of the string in '/home/daytona/workspace/stomach-case-ppt/create_ppt.js'
~/stomach-case-ppt/create_ppt.js
Successfully replaced 1 instance(s) of the string in '/home/daytona/workspace/stomach-case-ppt/create_ppt.js'
cd /home/daytona/workspace/stomach-case-ppt && node create_ppt.js 2>&1
StomachCase1 PUPerforation
Presentation Β· PPTX
| Test | Why for THIS patient | Expected Finding |
|---|---|---|
| Upright CXR | Sudden epigastric pain + peritonitis β suspected perforation | Free air under diaphragm |
| CT Abdomen | Confirm site, rule out cancer/pancreatitis | Free air, fluid, perforation site |
| Labs (CBC, lactate etc.) | Pale + diaphoretic β shock; 3rd space shifts pre-op | Leukocytosis, high lactate |
| H. pylori | NSAID is cause but co-infection common; biopsy r/o cancer | Positive β eradicate post-op |
Denlo to confirm or reject ani vundi so vetillo annitiki to confirm ani em rayali and to reject ani em rayali cheppu ppt ivvodhu pls just ivvu nen copy cheslunta
LABS: CBC Electrolytes BUN/Cr Amylase PT/PTT Serum Lactate (PRE-OPERATIVE) Idhi okkokati endhuku chepinchali test asalu cbc endhuku asal ivanni endhuku chepinchali e patient lo oka 2 lines each lo cheppu