Create a super aesthetic, handwritten-style revision note page for the topic: Inguinal hernia โข Make it look like neet pg exam notes written on a page (top view, clean layout, colorful headings, underlines, boxes). โข Keep it crisp, high-yield, and exam-oriented. โข Use clear headings and organize content like this (modify if needed for topic): โ Definition โ Etiology โ Types โ History taking โ Clinical examination โ Important clinical points for viva โ Important clinical questions that can be asked during viva with answers โ Key points / last-minute revision box โข Highlight important keywords. โข Include one memory trick / one-line summary โข Keep handwriting-style fonts, pastel colors, and clean spacing โข Notes should be oriented from Harrison's (International Medicine textbook) โข Add 3 tricky questions with answers which I should know about โข Add 3 difficult questions for the exercise and 3 difficult MCQ for exercise from this topic
ls /home/daytona/workspace/ 2>/dev/null || echo "workspace empty or not found"
~/inguinal-hernia-notes/create_notes.js
const pptxgen = require("pptxgenjs");
const pres = new pptxgen();
pres.layout = 'LAYOUT_WIDE'; // 13.3" x 7.5"
// โโโ COLOUR PALETTE โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
const BG = "FFFEF7"; // warm cream โ like ruled notepad paper
const TITLE_BG = "FFE5B4"; // peach / pastel orange
const H1 = "D64550"; // deep coral-red (headings)
const H2 = "1A6B3C"; // forest green
const H3 = "1D4E89"; // deep blue
const H4 = "7B2D8B"; // purple
const H5 = "C47A00"; // amber/gold
const H6 = "C0392B"; // crimson
const BODY = "333333"; // dark charcoal
const BOX1 = "FFF3CD"; // yellow sticky
const BOX2 = "D4EFDF"; // mint green box
const BOX3 = "D6EAF8"; // baby blue box
const BOX4 = "FCE4EC"; // blush pink box
const BOX5 = "EDE7F6"; // lavender box
const LINE = "AAAAAA"; // rule lines colour
// โโโ Helper: draw a heading banner โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
function hBanner(slide, text, x, y, w, h, fill, color, fontSize=13) {
slide.addShape(pres.ShapeType.roundRect, {
x, y, w, h,
fill: { color: fill },
line: { color: fill },
rectRadius: 0.06,
});
slide.addText(text, {
x, y, w, h,
fontSize,
bold: true,
color,
align: "center",
valign: "middle",
fontFace: "Caveat",
margin: 0,
});
}
// โโโ Helper: underline title โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
function underline(slide, x, y, w, color) {
slide.addShape(pres.ShapeType.line, {
x, y, w, h: 0,
line: { color, width: 1.5 },
});
}
// โโโ Helper: bullet rich text โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
function makeBullets(items, color, boldWords=[]) {
return items.map((item, idx) => {
const isBold = boldWords.some(bw => item.includes(bw));
return {
text: "โข " + item,
options: {
color,
fontSize: 9.5,
fontFace: "Caveat",
bold: isBold,
breakLine: idx < items.length - 1,
paraSpaceBefore: 2,
}
};
});
}
// โโโ Helper: add a lined box with content โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
function addBox(slide, x, y, w, h, fillColor, borderColor, title, titleColor, bodyItems, bodyColor, boldWords=[]) {
// shadow-like base
slide.addShape(pres.ShapeType.roundRect, {
x: x+0.04, y: y+0.04, w, h,
fill: { color: "CCCCCC" },
line: { color: "CCCCCC" },
rectRadius: 0.08,
});
// main box
slide.addShape(pres.ShapeType.roundRect, {
x, y, w, h,
fill: { color: fillColor },
line: { color: borderColor, width: 1.2 },
rectRadius: 0.08,
});
// title bar
if (title) {
slide.addShape(pres.ShapeType.roundRect, {
x, y, w, h: 0.28,
fill: { color: borderColor },
line: { color: borderColor },
rectRadius: 0.06,
});
slide.addText(title, {
x: x+0.08, y: y+0.02, w: w-0.16, h: 0.24,
fontSize: 10,
bold: true,
color: "FFFFFF",
fontFace: "Caveat",
valign: "middle",
margin: 0,
});
}
if (bodyItems && bodyItems.length > 0) {
slide.addText(makeBullets(bodyItems, bodyColor, boldWords), {
x: x+0.12, y: y+0.32, w: w-0.2, h: h-0.38,
fontSize: 9.5,
fontFace: "Caveat",
color: bodyColor,
valign: "top",
});
}
}
// โโโ Helper: two-column table โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
function addTable(slide, rows, x, y, w, h, hdrFill, hdrColor) {
const rowH = h / rows.length;
rows.forEach(([left, right], i) => {
const isHeader = i === 0;
const fill = isHeader ? hdrFill : (i % 2 === 0 ? "FFFFFF" : "F9F9F9");
const textColor = isHeader ? hdrColor : BODY;
const bw = 0.5;
// left cell
slide.addShape(pres.ShapeType.rect, {
x, y: y + i*rowH, w: w*0.5, h: rowH,
fill: { color: fill }, line: { color: "DDDDDD", width: 0.5 },
});
slide.addText(left, {
x: x+0.05, y: y+i*rowH, w: w*0.5-0.1, h: rowH,
fontSize: 9, fontFace: "Caveat",
color: textColor, bold: isHeader, valign: "middle",
});
// right cell
slide.addShape(pres.ShapeType.rect, {
x: x + w*0.5, y: y + i*rowH, w: w*0.5, h: rowH,
fill: { color: fill }, line: { color: "DDDDDD", width: 0.5 },
});
slide.addText(right, {
x: x+w*0.5+0.05, y: y+i*rowH, w: w*0.5-0.1, h: rowH,
fontSize: 9, fontFace: "Caveat",
color: textColor, bold: isHeader, valign: "middle",
});
});
}
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
// SLIDE 1 โ TITLE + DEFINITION + ETIOLOGY + TYPES
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
{
const slide = pres.addSlide();
// Background
slide.addShape(pres.ShapeType.rect, { x:0, y:0, w:13.3, h:7.5, fill:{color:BG}, line:{color:BG} });
// Draw faint horizontal rules
for (let i=1; i<15; i++) {
slide.addShape(pres.ShapeType.line, { x:0, y:i*0.5, w:13.3, h:0, line:{color:"E8E8E0", width:0.5} });
}
// left red margin line
slide.addShape(pres.ShapeType.line, { x:0.9, y:0, w:0, h:7.5, line:{color:"FFAAAA", width:1.2} });
// โโ TITLE BANNER โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
slide.addShape(pres.ShapeType.roundRect, {
x:1.05, y:0.12, w:11.2, h:0.72,
fill:{color:TITLE_BG}, line:{color:"F4A460", width:1.5}, rectRadius:0.1,
});
slide.addText("๐ INGUINAL HERNIA โ NEET PG Revision Notes", {
x:1.05, y:0.12, w:11.2, h:0.72,
fontSize:22, bold:true, color:H1, fontFace:"Caveat",
align:"center", valign:"middle", margin:0,
});
// date tag
slide.addShape(pres.ShapeType.roundRect, {
x:10.6, y:0.88, w:2.5, h:0.25,
fill:{color:"FFD700"}, line:{color:"FFC200"}, rectRadius:0.05,
});
slide.addText("Surgery | Bailey & Love / Schwartz's", {
x:10.6, y:0.88, w:2.5, h:0.25,
fontSize:7, color:"5D4037", fontFace:"Caveat", align:"center", valign:"middle", margin:0,
});
// โโ DEFINITION BOX โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
addBox(slide, 1.0, 1.2, 5.5, 1.1, BOX1, "#C47A00", "๐ DEFINITION", "FFFFFF",
[
"Protrusion of abdominal contents through a defect in the inguinal region",
"Called 'RUPTURE' by patients | Most common hernia in BOTH sexes",
"10x more common in men than women | More common on RIGHT side",
"Herniorrhaphy (children) vs Hernioplasty (adults โ floor reconstruction)",
], BODY, ["10x","Herniorrhaphy","Hernioplasty","RIGHT"]);
// โโ MEMORY TRICK โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
slide.addShape(pres.ShapeType.roundRect, {
x:6.7, y:1.2, w:5.5, h:1.1,
fill:{color:"FFF9C4"}, line:{color:"FBC02D", width:1.5}, rectRadius:0.08,
});
slide.addShape(pres.ShapeType.line, { x:6.7, y:1.48, w:5.5, h:0, line:{color:"FBC02D", width:1} });
slide.addText("โ๏ธ MEMORY TRICK / ONE-LINE SUMMARY", {
x:6.8, y:1.22, w:5.3, h:0.26,
fontSize:9.5, bold:true, color:"B8860B", fontFace:"Caveat", valign:"middle", margin:0,
});
slide.addText([
{ text: '"DIM" โ ', options:{ bold:true, color:H3, fontSize:11 } },
{ text: 'D', options:{ bold:true, color:H1, fontSize:12 } },
{ text: 'irect = ', options:{ color:BODY, fontSize:10 } },
{ text: 'M', options:{ bold:true, color:H1, fontSize:12 } },
{ text: 'edial (old men, broad neck, rarely strangulates) | ', options:{ color:BODY, fontSize:9 } },
{ text: 'I', options:{ bold:true, color:H2, fontSize:12 } },
{ text: 'ndirect = Lateral (young, narrow neck, CAN strangulate)', options:{ color:BODY, fontSize:9 } },
], { x:6.8, y:1.5, w:5.3, h:0.75, fontFace:"Caveat", valign:"middle" });
// โโ ETIOLOGY โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
addBox(slide, 1.0, 2.42, 5.5, 1.65, BOX3, H3, "๐งฌ ETIOLOGY / RISK FACTORS", "FFFFFF",
[
"Patent processus vaginalis (congenital โ all indirect in children)",
"โ Intra-abdominal pressure: chronic cough, constipation, BPH, ascites",
"Collagen defect โ โ type I : type III ratio in direct hernias",
"Heavy lifting, obesity, smoking (โ collagen synthesis)",
"Prior appendicectomy scar weakness",
"Prematurity โ high incidence (processus vaginalis not yet closed)",
], H3, ["patent processus","Patent processus","Prematurity","collagen","chronic cough"]);
// โโ TYPES โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
addBox(slide, 6.7, 2.42, 5.5, 1.65, BOX2, H2, "๐๏ธ TYPES AT A GLANCE", "FFFFFF", [], H2);
addTable(slide, [
["Feature", "INDIRECT (Lateral)", "DIRECT (Medial)"],
].concat([
["Neck of sac", "Lateral to inf. epigastric", "Medial to inf. epigastric"],
["Exit point", "Deep inguinal ring", "Hesselbach's triangle"],
["Origin", "Congenital or acquired", "Always ACQUIRED"],
["Age", "Any (esp. young)", "Elderly males"],
["Strangulation", "Common (narrow neck)", "RARE (wide base)"],
["Can reach scrotum", "YES", "NO"],
["Controlled at deep ring", "YES โ", "NO โ appears medially"],
]).map(r => r),
6.78, 2.75, 5.35, 1.25, H2, "FFFFFF");
// โโ SLIDING HERNIA NOTE โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
slide.addShape(pres.ShapeType.roundRect, {
x:1.0, y:4.12, w:5.5, h:0.45,
fill:{color:"FDEBD0"}, line:{color:"E67E22", width:1}, rectRadius:0.06,
});
slide.addText([
{ text:"โก Sliding hernia: ", options:{bold:true, color:"E67E22", fontSize:9.5} },
{ text:"Acquired indirect hernia where bowel forms part of the sac wall (sigmoid left; caecum right). DANGER: bowel can be cut during surgery!", options:{color:BODY, fontSize:9} },
], { x:1.08, y:4.14, w:5.35, h:0.41, fontFace:"Caveat", valign:"middle" });
// โโ PANTALOON HERNIA โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
slide.addShape(pres.ShapeType.roundRect, {
x:6.7, y:4.12, w:5.5, h:0.45,
fill:{color:"F5E6FF"}, line:{color:"9B59B6", width:1}, rectRadius:0.06,
});
slide.addText([
{ text:"๐ Pantaloon hernia: ", options:{bold:true, color:"9B59B6", fontSize:9.5} },
{ text:"Both INDIRECT + DIRECT present simultaneously, straddling inferior epigastric vessels. EHS classification: Primary/Recurrent (P/R) + L/M/F + size in fingerbreadths.", options:{color:BODY, fontSize:9} },
], { x:6.78, y:4.14, w:5.35, h:0.41, fontFace:"Caveat", valign:"middle" });
// โโ INGUINAL CANAL ANATOMY โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
addBox(slide, 1.0, 4.65, 11.2, 2.62, BOX5, H4, "๐๏ธ INGUINAL CANAL ANATOMY (MUST KNOW)", "FFFFFF", [], H4);
// 4 sub boxes inside
const anatItems = [
["ANTERIOR WALL", "External oblique aponeurosis\n+ internal oblique (lateral 1/3)", H1],
["POSTERIOR WALL", "Transversalis fascia\n+ conjoint tendon (medial 1/3)", H2],
["ROOF / SUPERIOR", "Arching fibres of internal oblique\n& transversus abdominis", H3],
["FLOOR / INFERIOR", "Inguinal (Poupart's) ligament\n+ lacunar ligament medially", H4],
];
anatItems.forEach(([title, body, color], idx) => {
const bx = 1.1 + idx*2.75;
slide.addShape(pres.ShapeType.roundRect, {
x:bx, y:4.98, w:2.6, h:1.0,
fill:{color:"FFFFFF"}, line:{color, width:1.2}, rectRadius:0.06,
});
slide.addShape(pres.ShapeType.roundRect, {
x:bx, y:4.98, w:2.6, h:0.25,
fill:{color}, line:{color}, rectRadius:0.04,
});
slide.addText(title, {
x:bx+0.05, y:4.98, w:2.5, h:0.25,
fontSize:8, bold:true, color:"FFFFFF", fontFace:"Caveat", valign:"middle", margin:0,
});
slide.addText(body, {
x:bx+0.07, y:5.25, w:2.46, h:0.72,
fontSize:9, color, fontFace:"Caveat", valign:"top",
});
});
// contents
slide.addText([
{ text:"CONTENTS (M): ", options:{bold:true, color:H4, fontSize:9.5} },
{ text:"Spermatic cord (testicular A/V, vas deferens, cremasteric fibres, processus vaginalis remnant) | Ilioinguinal nerve | Genital branch of genitofemoral nerve\n", options:{color:BODY, fontSize:9} },
{ text:"CONTENTS (F): ", options:{bold:true, color:H4, fontSize:9.5} },
{ text:"Round ligament | Ilioinguinal nerve | Genital branch of genitofemoral nerve", options:{color:BODY, fontSize:9} },
], { x:1.1, y:6.0, w:11.1, h:0.6, fontFace:"Caveat", valign:"top" });
// Hesselbach's triangle note
slide.addShape(pres.ShapeType.roundRect, {
x:1.0, y:6.65, w:11.2, h:0.6,
fill:{color:"FFF3CD"}, line:{color:"F4A460", width:1}, rectRadius:0.06,
});
slide.addText([
{ text:"๐ Hesselbach's Triangle: ", options:{bold:true, color:"C47A00", fontSize:10} },
{ text:"Lateral border = Inferior epigastric vessels | Medial border = Lateral edge of rectus abdominis | Inferior = Inguinal ligament (iliopubic tract). Only transversalis fascia + ext. oblique here โ WEAK zone โ DIRECT hernia!", options:{color:BODY, fontSize:9.5} },
], { x:1.1, y:6.67, w:11.05, h:0.56, fontFace:"Caveat", valign:"middle" });
}
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
// SLIDE 2 โ HISTORY, EXAMINATION, CLINICAL POINTS, VIVA Q&A
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
{
const slide = pres.addSlide();
slide.addShape(pres.ShapeType.rect, { x:0, y:0, w:13.3, h:7.5, fill:{color:BG}, line:{color:BG} });
for (let i=1; i<15; i++) {
slide.addShape(pres.ShapeType.line, { x:0, y:i*0.5, w:13.3, h:0, line:{color:"E8E8E0", width:0.5} });
}
slide.addShape(pres.ShapeType.line, { x:0.9, y:0, w:0, h:7.5, line:{color:"FFAAAA", width:1.2} });
// page header
slide.addText("INGUINAL HERNIA โ History ยท Examination ยท Viva (Page 2)", {
x:1.0, y:0.05, w:11.2, h:0.32,
fontSize:14, bold:true, color:H1, fontFace:"Caveat", valign:"middle",
});
underline(slide, 1.0, 0.36, 11.2, H1);
// โโ HISTORY TAKING โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
addBox(slide, 1.0, 0.42, 5.6, 2.2, BOX3, H3, "๐ HISTORY TAKING", "FFFFFF",
[
"PRESENTING COMPLAINT: Groin swelling ยฑ pain, 'feels a dragging sensation'",
"Onset: Sudden (after straining) vs gradual",
"Reducibility: Does it go back on lying down? Spontaneous vs manual",
"Aggravating factors: Coughing, straining, lifting, standing",
"Symptoms of complications: Irreducibility, vomiting, obstruction (โ pain)",
"Predisposing Hx: Chronic cough (COPD/asthma), BPH (straining to micturate), constipation, ascites, heavy lifting",
"PMH: Previous hernia repair, abdominal surgery",
"Family Hx: Connective tissue disorders (Marfan, EDS)",
"Social Hx: Occupation (manual labour), smoking",
], H3, ["Reducibility","complications","straining"]);
// โโ CLINICAL EXAMINATION โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
addBox(slide, 6.75, 0.42, 5.5, 2.2, BOX2, H2, "๐ฉบ CLINICAL EXAMINATION", "FFFFFF",
[
"INSPECTION (standing): Swelling above & medial to pubic tubercle",
"Ask to COUGH โ expansile impulse confirms hernia",
"PALPATION (supine): Attempt reduction; identify pubic tubercle & ASIS",
"Deep ring pressure test: Press midpoint of inguinal lig (2cm above femoral pulse). Ask to cough โ Controlled = INDIRECT; Not controlled = DIRECT",
"Percussion: Resonant (bowel) or Dull (omentum/solid)",
"Auscultation: Bowel sounds if bowel in sac",
"ALWAYS examine: Contralateral side, scrotal contents, lymph nodes",
"Scrotal hernia: Cannot get above swelling โ key sign!",
], H2, ["Deep ring","Controlled","Cannot get above","INDIRECT","DIRECT"]);
// โโ IMPORTANT CLINICAL POINTS (VIVA) โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
addBox(slide, 1.0, 2.72, 11.25, 1.9, BOX4, H1, "โญ IMPORTANT CLINICAL POINTS FOR VIVA", "FFFFFF",
[
"Indirect hernia descends into scrotum; direct hernia CANNOT (no processus vaginalis in adults)",
"Neck of indirect hernia sac is at the deep ring โ LATERAL to inferior epigastric vessels",
"Direct hernia: broad base โ strangulation RARE; can contain urinary bladder (sliding type)",
"Strangulation more likely with INDIRECT (narrow neck at deep ring)",
"Femoral hernia: BELOW & LATERAL to pubic tubercle; inguinal is ABOVE & MEDIAL",
"Richter's hernia: only PART of bowel wall caught โ obstruction WITHOUT complete occlusion; can strangulate silently",
"Littre's hernia: sac contains Meckel's diverticulum",
"Maydl's hernia (hernia-en-W): two loops in sac, middle loop (in abdomen) strangulates first โ beware!",
"Patient with single hernia has ~50% lifetime risk of contralateral hernia",
"No cough impulse in tense irreducible hernia โ obstruction / strangulation until proved otherwise",
], H1, ["CANNOT","RARE","BELOW & LATERAL","ABOVE & MEDIAL","Richter","Littre","Maydl","50%","strangulation"]);
// โโ VIVA Q&A โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
addBox(slide, 1.0, 4.7, 11.25, 2.62, BOX5, H4, "๐ค IMPORTANT VIVA QUESTIONS & ANSWERS", "FFFFFF", [], H4);
const vivaItems = [
["Q1. Boundaries of Hesselbach's triangle?", "Lat: Inf. epigastric vessels | Med: Lateral edge rectus abdominis | Inf: Inguinal ligament", H1],
["Q2. Why does indirect hernia strangulate more?", "Narrow neck at deep inguinal ring โ constriction of blood supply", H2],
["Q3. How to differentiate inguinal vs femoral hernia?", "Inguinal: above & medial to pubic tubercle. Femoral: below & lateral to pubic tubercle", H3],
["Q4. What is a pantaloon hernia?", "Combined direct + indirect hernia straddling the inf. epigastric vessels", H4],
["Q5. Contents of spermatic cord?", "3 arteries, 3 veins, 3 nerves, vas deferens, lymphatics, pampiniform plexus, cremasteric fibres", H5],
["Q6. What operation for bilateral recurrent hernias?", "Laparoscopic (TEP/TAPP) repair โ evidence-based first choice", H6],
];
vivaItems.forEach(([q, a, color], idx) => {
const by = 5.02 + idx * 0.37;
slide.addText([
{ text: q + " ", options: { bold: true, color, fontSize: 9.5, fontFace: "Caveat" } },
{ text: a, options: { color: BODY, fontSize: 9, fontFace: "Caveat" } },
], { x: 1.1, y: by, w: 11.0, h: 0.34, valign: "middle" });
if (idx < vivaItems.length - 1) {
slide.addShape(pres.ShapeType.line, { x: 1.1, y: by+0.33, w: 11.0, h: 0, line: { color: "DDDDDD", width: 0.4 } });
}
});
}
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
// SLIDE 3 โ TRICKY Qs, EXERCISE, MCQs, KEY POINTS BOX
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
{
const slide = pres.addSlide();
slide.addShape(pres.ShapeType.rect, { x:0, y:0, w:13.3, h:7.5, fill:{color:BG}, line:{color:BG} });
for (let i=1; i<15; i++) {
slide.addShape(pres.ShapeType.line, { x:0, y:i*0.5, w:13.3, h:0, line:{color:"E8E8E0", width:0.5} });
}
slide.addShape(pres.ShapeType.line, { x:0.9, y:0, w:0, h:7.5, line:{color:"FFAAAA", width:1.2} });
slide.addText("INGUINAL HERNIA โ Tricky Qs ยท Exercise ยท MCQs ยท Last-Minute Box (Page 3)", {
x:1.0, y:0.05, w:11.2, h:0.32,
fontSize:13, bold:true, color:H1, fontFace:"Caveat", valign:"middle",
});
underline(slide, 1.0, 0.36, 11.2, H1);
// โโ TRICKY QUESTIONS โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
addBox(slide, 1.0, 0.42, 11.25, 2.0, BOX1, "#C47A00", "๐ฏ 3 TRICKY QUESTIONS YOU MUST KNOW", "FFFFFF", [], "#C47A00");
const trickyQs = [
{
q: "TQ1. A patient has an irreducible groin swelling below the inguinal ligament with NO cough impulse. What is the MOST LIKELY diagnosis and why is it dangerous?",
a: "Strangulated FEMORAL hernia. Below & lateral to pubic tubercle. Dangerous because: narrow rigid femoral ring โ early vascular compromise โ bowel gangrene. Femoral hernias have the HIGHEST strangulation rate of all hernias (~40%). No cough impulse = loss of peritoneal sac connection due to tension.",
color: H1,
},
{
q: "TQ2. During laparoscopic inguinal hernia repair (TEP), the surgeon accidentally enters a large space on the left side containing sigmoid colon as part of the sac wall. What is this, and what is the DANGER?",
a: "Sliding hernia (left side = sigmoid colon). The bowel wall forms part of the sac โ if the sac is ligated carelessly the bowel is TRANSECTED. Must identify and reduce the sliding component before any ligation.",
color: H2,
},
{
q: "TQ3. Post-herniorrhaphy, a patient develops numbness of the scrotum and inner thigh. Which nerve was injured, and at what level?",
a: "Ilioinguinal nerve โ runs along the floor of the inguinal canal (on the inguinal ligament), exits through the superficial ring โ supplies skin of inner thigh, base of penis/scrotum (or mons pubis/labia majora in females). Injury occurs during incision or sac dissection.",
color: H3,
},
];
trickyQs.forEach(({ q, a, color }, idx) => {
const ty = 0.76 + idx * 0.58;
slide.addText([
{ text: q + "\n", options: { bold: true, color, fontSize: 9, fontFace: "Caveat" } },
{ text: " โ " + a, options: { color: BODY, fontSize: 8.8, fontFace: "Caveat" } },
], { x: 1.1, y: ty, w: 11.0, h: 0.55, valign: "top" });
if (idx < 2) slide.addShape(pres.ShapeType.line, { x:1.1, y: ty+0.56, w:11.0, h:0, line:{color:"DDCCAA", width:0.4} });
});
// โโ EXERCISE QUESTIONS โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
addBox(slide, 1.0, 2.5, 5.6, 2.5, BOX2, H2, "๐ 3 DIFFICULT EXERCISE QUESTIONS", "FFFFFF", [], H2);
const eqItems = [
"EQ1: Describe the steps of open Lichtenstein mesh repair for indirect inguinal hernia. What layer is the mesh placed in, and what are the key complications?",
"EQ2: Compare TEP (totally extraperitoneal) vs TAPP (transabdominal preperitoneal) laparoscopic hernia repair โ indications, approach, advantages, and complication profiles.",
"EQ3: A 6-week-old premature infant presents with an incarcerated indirect inguinal hernia that cannot be reduced under sedation. Outline your management including operative considerations.",
];
eqItems.forEach((item, idx) => {
const ey = 2.83 + idx * 0.7;
slide.addShape(pres.ShapeType.roundRect, {
x:1.1, y:ey, w:5.4, h:0.62,
fill:{color:"FFFFFF"}, line:{color:H2, width:0.7}, rectRadius:0.05,
});
slide.addText(item, {
x:1.18, y:ey+0.04, w:5.25, h:0.55,
fontSize:8.8, color:BODY, fontFace:"Caveat", valign:"top",
});
});
// โโ MCQs โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
addBox(slide, 6.75, 2.5, 5.5, 2.5, BOX4, H1, "๐ต 3 DIFFICULT MCQs (with answers)", "FFFFFF", [], H1);
const mcqs = [
{
q: "MCQ1: A 65-yr-old man has a reducible groin swelling above and medial to the pubic tubercle. On cough, it fails to be controlled by pressure at the deep ring. Diagnosis?",
opts: ["A. Indirect inguinal hernia", "B. Direct inguinal hernia โ", "C. Femoral hernia", "D. Saphena varix"],
ans: "B. Direct (medial) โ not controlled at deep ring, pops through Hesselbach's triangle. Answer: B",
},
{
q: "MCQ2: Which hernia has the highest risk of strangulation among all external abdominal hernias?",
opts: ["A. Indirect inguinal โ", "B. Direct inguinal", "C. Femoral hernia โ (clinical context)", "D. Umbilical"],
ans: "C in adults (femoral ~40%); In children, indirect inguinal. The answer depends on context โ Femoral highest in ADULTS.",
},
{
q: "MCQ3: During repair of a left-sided indirect inguinal hernia, the surgeon finds sigmoid colon forming part of the sac wall. The CORRECT step is:",
opts: ["A. Ligate and divide the sac at the neck", "B. Open and reduce sac contents, then repair ring", "C. Reduce the sigmoid colon and do NOT ligate the sac", "D. Convert to open and do Hartmann's"],
ans: "C. Sliding hernia โ sigmoid forms the sac wall. Reduce the sliding component; do NOT ligate the sac. Answer: C",
},
];
mcqs.forEach(({ q, opts, ans }, idx) => {
const my = 2.83 + idx * 0.7;
slide.addShape(pres.ShapeType.roundRect, {
x:6.85, y:my, w:5.3, h:0.62,
fill:{color:"FFFFFF"}, line:{color:H1, width:0.7}, rectRadius:0.05,
});
slide.addText([
{ text: q + "\n", options: { bold: true, color: H1, fontSize: 8, fontFace: "Caveat" } },
{ text: ans, options: { bold: true, color: H2, fontSize: 8, fontFace: "Caveat", italic: true } },
], {
x:6.93, y:my+0.03, w:5.15, h:0.58,
valign:"top",
});
});
// โโ KEY POINTS LAST-MINUTE REVISION BOX โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
slide.addShape(pres.ShapeType.roundRect, {
x:1.0, y:5.1, w:11.25, h:2.22,
fill:{color:"FFFDE7"}, line:{color:"FFC107", width:2}, rectRadius:0.1,
});
// star decoration
slide.addShape(pres.ShapeType.rect, {
x:1.0, y:5.1, w:11.25, h:0.32,
fill:{color:"FFC107"}, line:{color:"FFC107"},
});
slide.addText("โญ LAST-MINUTE REVISION BOX โ HIGH YIELD POINTS", {
x:1.05, y:5.11, w:11.15, h:0.3,
fontSize:11, bold:true, color:"5D4037", fontFace:"Caveat", align:"center", valign:"middle", margin:0,
});
const keyPoints = [
"Indirect hernia: LATERAL to inf. epigastric vessels | sac = patent processus vaginalis | CAN reach scrotum",
"Direct hernia: MEDIAL to inf. epigastric vessels | through Hesselbach's triangle | CANNOT reach scrotum | ACQUIRED",
"Femoral hernia: BELOW inguinal ligament, lateral to pubic tubercle | MORE COMMON in women | Highest strangulation risk in adults",
"Richter's: partial bowel wall strangulation โ no complete obstruction but gangrene possible | Littre's: Meckel's diverticulum in sac",
"Maydl's (hernia-en-W): middle loop in abdomen strangulates first โ beware at operation!",
"Hesselbach's triangle borders: INF. epigastric (lateral) | Rectus abdominis (medial) | Inguinal ligament (floor)",
"Deep inguinal ring = midpoint of inguinal ligament (midpoint ASISโpubic tubercle) | Superficial ring = inverted V in ext. oblique aponeurosis",
"Herniorrhaphy (children โ sac ligation only) vs Hernioplasty (adults โ floor repair with mesh)",
"TEP/TAPP indicated: bilateral hernias, recurrent hernias after open repair (compelling evidence)",
"Ilioinguinal nerve injury โ numbness inner thigh + base of scrotum/penis post-hernia repair",
];
slide.addText(
keyPoints.map((pt, i) => ({
text: "โ
" + pt,
options: {
color: i % 2 === 0 ? "5D4037" : H3,
fontSize: 8.8,
fontFace: "Caveat",
bold: false,
breakLine: i < keyPoints.length - 1,
paraSpaceBefore: 1,
}
})),
{ x:1.08, y:5.45, w:11.1, h:1.82, valign:"top" }
);
}
// โโโ WRITE FILE โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
pres.writeFile({ fileName: "/home/daytona/workspace/inguinal-hernia-notes/Inguinal_Hernia_NEET_PG_Notes.pptx" })
.then(() => console.log("โ
File written successfully"))
.catch(err => { console.error("โ Error:", err); process.exit(1); });
cd /home/daytona/workspace/inguinal-hernia-notes && node create_notes.js 2>&1
ls -lh /home/daytona/workspace/inguinal-hernia-notes/
python /home/daytona/skills/pptx/scripts/thumbnail.py /home/daytona/workspace/inguinal-hernia-notes/Inguinal_Hernia_NEET_PG_Notes.pptx 2>&1 | head -20
find /home/daytona/workspace/inguinal-hernia-notes -name "*.jpg" -o -name "*.png" 2>/dev/null; find /home/daytona -maxdepth 2 -name "thumbnails*" 2>/dev/null
cp /home/daytona/thumbnails.jpg /home/daytona/workspace/inguinal-hernia-notes/preview.jpg

Inguinal Hernia NEET PG Notes
Presentation ยท PPTX