attachment
attachment

Make practical theory aspects and FAQ viva and tricks to remember General surgery Final year PG exam level

analyse_media
Reading File
Now I have the full specimen list. Let me search the medical library for key topics from this list to generate high-quality PG viva content.
Finding Sources
Finding Sources
Finding Sources
Finding Sources
Finding Sources
Finding Sources
Finding Sources
Finding Sources
I now have enough information from the medical library to compile a comprehensive PG-level viva guide for all 19 specimens. Let me write the full document now.

General Surgery Final Year PG Exam - Specimen Viva Guide

Practical Theory | FAQ | Tricks to Remember


πŸ”΄ I. CARCINOMA COLON

Practical Theory

  • Most common site: Rectosigmoid (40%), followed by cecum/ascending colon
  • Macroscopic types: Polypoidal/fungating (right side), Annular/constricting (left side - "apple core" on barium)
  • Most common type histologically: Adenocarcinoma (90%)
  • Spread: Lymphatic (para-colic nodes β†’ inferior mesenteric nodes), hematogenous (portal β†’ liver first), transcoelomic, direct

Staging (High-yield)

Dukes StageDescriptionTNM
AConfined to mucosa/submucosaT1/T2 N0 M0
BThrough muscularis, no nodesT3/T4 N0 M0
CLymph nodes involvedAny T, N1 M0
D (modified)Distant metastasisAny T, Any N, M1
  • Modified Dukes by Kirklin: A = mucosa only, B1 = through muscularis (not breached), B2 = through all layers
  • Astler-Coller: Most detailed modification
  • TNM (AJCC) is now the standard for reporting

FAQ Viva Questions

Q: Why does right-sided Ca colon present late? A: Because the right colon has a larger lumen and liquid stool - no early obstruction. Presents with anemia, fatigue, weight loss.
Q: Why does left-sided Ca colon obstruct early? A: Smaller lumen + semi-solid stool - annular constriction causes early change in bowel habit and obstruction.
Q: What is Dukes' original description? A: Dukes described only 3 stages (A, B, C). Stage D was added by Gabriel, Dukes himself never described it.
Q: What is the treatment for resectable Ca colon? A: Right hemicolectomy (cecum/ascending), transverse colectomy, left hemicolectomy, sigmoid colectomy depending on site. Anastomosis if feasible. Total colectomy for FAP/HNPCC.
Q: Adjuvant chemotherapy in colon cancer? A: Stage III (Dukes C) - FOLFOX (5-FU + leucovorin + oxaliplatin). Stage II high-risk also considered.

Memory Tricks

  • "Right = Rich, Left = Lean" - Right colon Ca is rich/large/presents late with iron deficiency anemia; Left is lean/narrow/presents early with obstruction
  • Dukes ABC = "A-Below muscularis, B-Beyond muscularis, C-Caught in nodes"
  • Apple core on barium = Left colon Ca (annular constriction)

🟠 II. TRICHOBEZOAR

Practical Theory

  • Bezoar = concretion of indigestible material in stomach
  • Trichobezoar = hair bolus - occurs in young females with trichotillomania and trichophagia (pulling and eating own hair)
  • Classically forms a cast of the stomach - "black, foul-smelling mass"
  • Rapunzel Syndrome: Tail of trichobezoar extends into small intestine through pylorus

FAQ Viva Questions

Q: What are the types of bezoars?
  • Trichobezoar - hair
  • Phytobezoar - vegetable fiber (most common type overall)
  • Lactobezoar - milk protein (neonates)
  • Pharmacobezoar - medications (e.g., sucralfate)
Q: How does trichobezoar present? A: Young female, epigastric mass, nausea/vomiting, weight loss, halitosis, alopecia (bald patches). Epigastric mass shaped like stomach.
Q: Diagnosis? A: X-ray - mottled gas pattern. CT scan confirms (heterogeneous mass with air pockets). Upper GI endoscopy - definitive diagnosis and attempted removal.
Q: Treatment? A: Small - endoscopic removal. Large - surgical gastrotomy and removal. Psychiatric consultation essential (treat underlying trichotillomania - CBT, SSRIs).
Q: What is Rapunzel syndrome? A: Extension of trichobezoar tail beyond pylorus into duodenum/jejunum - can cause intestinal obstruction.

Memory Tricks

  • TRICHOBEZOAR = TRICH (hair) + BEZOAR (stone) - hair stone of the stomach
  • "Rapunzel = long tail" - Rapunzel syndrome = tail extends from stomach into bowel
  • Young female + epigastric mass + alopecia = Think trichobezoar

🟑 III. TB LYMPH NODE

Practical Theory

  • Commonest site: Cervical lymph nodes (scrofula) - anterior/posterior triangle
  • Pathology: Caseating granuloma with Langhans giant cells, epithelioid cells, lymphocytes
  • Stages: Lymphadenitis β†’ Periadenitis β†’ Caseation β†’ Collar stud abscess β†’ Sinus formation
  • Collar stud abscess: Deep abscess perforates deep fascia, subcutaneous collection - "collar stud" shaped

FAQ Viva Questions

Q: What is the classic histological finding? A: Caseating granuloma with Langhans giant cells (nuclei arranged in horseshoe pattern at periphery) + epithelioid cells + central caseous necrosis.
Q: How is TB lymph node diagnosed? A: FNAC (first-line - shows epithelioid cells, caseous material), excisional biopsy (definitive), Mantoux test, CECT neck, AFB staining, Gene Xpert/PCR.
Q: Collar stud abscess - what is it? A: Abscess in a lymph node that perforates through deep cervical fascia. Creates an "hourglass" appearance - deep and superficial components connected by a narrow neck through the fascia.
Q: Treatment of TB lymph node? A: ATT (anti-tubercular therapy) - 2HRZE + 4HR (WHO regimen). Surgical drainage only if abscess is pointing. Excision if no response to ATT or for diagnostic purposes.
Q: Difference from pyogenic lymph node? A: TB - multiple, matted, non-tender initially, no warmth; becomes fluctuant with caseation. Pyogenic - tender, warm, rapid onset, single.

Memory Tricks

  • "Langhans = Horseshoe nuclei" (peripheral arrangement)
  • Collar stud = Cufflink shaped abscess - button above and below the fascia
  • Scrofula = Cervical TB (from Latin "scrofa" = brood sow, referring to glandular swellings)

🟒 IV. HODGKIN'S LYMPH NODE

Practical Theory

  • Hallmark cell: Reed-Sternberg (RS) cell - large binucleated cell with prominent "owl-eye" nucleoli
  • Bimodal age distribution: 15-35 years and >50 years
  • Contiguous spread (spreads to adjacent nodes in order - unlike NHL)
  • Ann Arbor Staging (I-IV)

Histological Subtypes (WHO)

SubtypeRS CellsPrognosis
Nodular SclerosisLacunar variantBest (most common in young females)
Mixed CellularityMany classic RSIntermediate
Lymphocyte RichFew RSExcellent
Lymphocyte DepletedMany RS, few lymphocytesWorst

FAQ Viva Questions

Q: What is the Reed-Sternberg cell? A: Large cell (15-45 ΞΌm), bilobed or binucleated nucleus, each lobe with prominent eosinophilic "owl-eye" nucleolus. CD15+, CD30+, CD45-, EBV-associated.
Q: Most common subtype of Hodgkin's? A: Nodular sclerosis (60-70%) - most common overall, especially in young women.
Q: B symptoms in Hodgkin's? A: Fever (>38Β°C), night sweats, unexplained weight loss >10% in 6 months. Presence = "B" designation, confers worse prognosis.
Q: Pel-Ebstein fever? A: Cyclical fever characteristic of Hodgkin's - weeks of fever alternating with afebrile periods. Rarely seen in practice.
Q: Treatment of Hodgkin's lymphoma? A: Stage I/II: ABVD chemotherapy Β± radiotherapy. Stage III/IV: ABVD (Adriamycin/doxorubicin, Bleomycin, Vinblastine, Dacarbazine) x 6-8 cycles. Highly curable (>85% stage I/II).
Q: How to differentiate Hodgkin's from TB lymph node on FNAC? A: Hodgkin's: RS cells on background of mixed inflammatory cells, NO caseous necrosis. TB: caseating granuloma with Langhans giant cells, no RS cells.

Memory Tricks

  • "RS cell = OWL EYES" - always say this in viva
  • ABVD = "A Big Vicious Drug" - Adriamycin, Bleomycin, Vinblastine, Dacarbazine
  • Hodgkin's spreads CONTIGUOUSLY - like a train moving station to station
  • "CD15 + CD30 = RS cell positive" (15 + 30 = 45 = CD45 negative - Rs cells!)

πŸ”΅ V. GB STONE (GALLBLADDER STONE)

Practical Theory

  • Types: Cholesterol (most common in West, 80%), Pigment (black = hemolysis; brown = infection), Mixed
  • Risk factors: 5 F's - Fat, Forty, Female, Fertile, Fair (+ Family history, Western diet)
  • Charcot's triad (acute cholangitis): RUQ pain + fever/rigors + jaundice
  • Reynolds' pentad (suppurative cholangitis): + shock + confusion

FAQ Viva Questions

Q: What are the types of gallstones and their composition?
  • Cholesterol stones: >50% cholesterol, yellow/green, single/multiple, radiolucent (10-15% opaque)
  • Pigment stones: Black (calcium bilirubinate, sterile bile, hemolysis); Brown (infection, E. coli, in bile ducts)
  • Mixed stones: Most common, faceted, calcium bilirubinate + cholesterol
Q: Complications of gallstones (Mucocele, Empyema, etc.)? A: Biliary colic β†’ Acute cholecystitis β†’ Empyema β†’ Gangrene β†’ Perforation/Peritonitis β†’ Mucocele β†’ Carcinoma GB β†’ Choledocholithiasis β†’ Cholangitis β†’ Pancreatitis β†’ Mirizzi syndrome β†’ Gallstone ileus
Q: What is Mirizzi syndrome? A: Large gallstone impacts in Hartmann's pouch/cystic duct, compresses common hepatic duct externally, causing jaundice. On ERCP - extrinsic compression of CBD.
Q: Gallstone ileus? A: Large gallstone erodes through GB wall into duodenum (cholecystoduodenal fistula), migrates distally, impacts at terminal ileum (narrowest point). X-ray: Rigler's triad - pneumobilia + small bowel obstruction + ectopic gallstone.
Q: Treatment of symptomatic cholelithiasis? A: Laparoscopic cholecystectomy (gold standard). Open if complicated or failed laparoscopy.

Memory Tricks

  • 5 F's: Fat, Forty, Female, Fertile, Fair
  • Rigler's triad: "Gallstone Ileus = GAS in CBD + Obstruction + Stone visible"
  • Reynolds = Charcot + 2R (2 R's = aRterial shock, pRostration/confusion)
  • "Brown stones in the DUCT (infected), Black stones in the BAG (GB)"

🟣 VI. METASTASIS IN LIVER

Practical Theory

  • Liver is the most common site of visceral metastasis
  • Most common primary: Colorectal carcinoma (portal drainage), followed by breast, lung, pancreas, stomach
  • Gross appearance: Multiple whitish nodules, "umbilicated" surface due to central necrosis
  • "Canon ball" metastases on CT from colorectal primary

FAQ Viva Questions

Q: Why is liver the most common site for metastasis from GI tumors? A: Portal venous drainage of GI tract goes to liver β†’ tumor emboli lodge in hepatic sinusoids β†’ metastasize.
Q: Liver mets from colorectal Ca - what is the treatment? A: Resectable (solitary/few lesions, adequate remnant liver >25%): Hepatic resection - potentially curative. Unresectable: Chemotherapy (FOLFOX, FOLFIRI Β± targeted therapy - bevacizumab, cetuximab), ablation (RFA, microwave), TACE, SIRT/Y-90.
Q: What are the criteria for resectability of liver metastases? A: Adequate future liver remnant (>25-30%), no extrahepatic disease (or limited and resectable), technically achievable R0 resection, patient fit for surgery.
Q: Liver function tests in metastatic disease? A: Elevated ALP and GGT (liver mets cause cholestatic pattern), elevated LDH. CEA elevated in colorectal metastases.
Q: Staging of liver metastases from colorectal Ca? A: Fong clinical risk score (5 factors): node positive primary, disease-free interval <12 months, >1 hepatic tumor, size >5cm, CEA >200 ng/mL. Score 0-2 = good prognosis, 3-5 = poor.

Memory Tricks

  • "Portal = Colorectal goes to Liver FIRST"
  • Most common primary causing liver mets overall = Colorectal > Breast > Lung
  • Umbilicated nodules = central necrosis (outgrows blood supply at center)

🌿 VII. INTESTINAL WORMS

Practical Theory

  • Ascaris lumbricoides - most common intestinal helminth globally; adult worm 15-35 cm
  • Complications: Intestinal obstruction (bolus of worms), biliary ascariasis (worm in CBD), pancreatitis, appendicitis, perforation
  • Hookworm (Ancylostoma/Necator): Iron deficiency anemia due to blood-sucking
  • Tapeworm (Taenia): Beef (T. saginata), Pork (T. solium - causes cysticercosis)

FAQ Viva Questions

Q: Ascaris intestinal obstruction - how does it present and how is it managed? A: Child with colicky abdominal pain, vomiting, "doughy" mass in RIF/umbilical area. X-ray - may show worms. Conservative first: IV fluids, NG tube, piperazine (paralyzes worms - safe in obstruction). Surgery if no resolution - milking worms through ileocecal valve or enterotomy.
Q: Biliary ascariasis? A: Worm migrates through ampulla of Vater into CBD. Presents with biliary colic/cholangitis. USG - parallel echogenic lines in CBD ("railway track" sign). Treatment: ERCP extraction, anthelmintics.
Q: Treatment of ascariasis? A: Albendazole 400mg single dose or Mebendazole 100mg BD x 3 days. Pyrantel pamoate also effective.
Q: Tape worm vs roundworm in specimen? A: Ascaris - cylindrical, long (15-35cm), pinkish worm. Tapeworm - flat, segmented (proglottids), can be meters long.

Memory Tricks

  • "ASCARIS = A Silly Child ARound Ileum Suffers" - most common in children
  • Piperazine = PARALYZES worms (not kills - use in obstruction, worms pass safely)
  • Albendazole = kills + eggs (broad spectrum)

πŸ”Ά VIII. MECKEL'S DIVERTICULUM

Practical Theory

  • Most common congenital anomaly of GI tract (2% of population)
  • Remnant of vitello-intestinal (omphalomesenteric) duct
  • Rule of 2's: 2% population, 2 feet from ileocecal valve, 2 inches long, 2 types of ectopic mucosa (gastric > pancreatic), presents in first 2 years, 2x more common in males
  • True diverticulum - all layers of bowel wall present, antimesenteric border
  • Ectopic gastric mucosa in 50% - secretes acid β†’ ileal ulceration β†’ painless rectal bleeding

FAQ Viva Questions

Q: Most common presentation of Meckel's diverticulum in children? A: Painless rectal bleeding (brick red / maroon colored) - due to peptic ulceration from ectopic gastric mucosa.
Q: Most common presentation in adults? A: Intestinal obstruction (from band, volvulus, intussusception), or diverticulitis (mimics appendicitis).
Q: How is it diagnosed? A: Technetium-99m pertechnetate scan (Meckel's scan) - isotope concentrates in ectopic gastric mucosa. Sensitivity 85% in children, lower in adults. CT scan for obstruction/diverticulitis.
Q: Complications of Meckel's diverticulum? A: Bleeding > Obstruction > Diverticulitis > Perforation > Intussusception > Malignancy (carcinoid most common tumor in Meckel's)
Q: Treatment? A: Symptomatic Meckel's β†’ Meckel's diverticulectomy (wedge resection) or segmental ileal resection (if base is wide or inflamed). Incidentally found Meckel's in adult β†’ controversial (generally leave alone unless features of complications).
Q: Why is Meckel's scan positive? A: Technetium-99m pertechnetate is taken up by mucus-secreting cells of ectopic gastric mucosa.

Memory Tricks

  • Rule of 2's - memorize as: "2% 2 feet 2 inches 2 types 2 years 2x males"
  • "MECKEL'S = Most common GI congenital anomaly"
  • Diverticulitis mimics appendicitis but pain is slightly more medial/periumbilical
  • Ectopic gastric mucosa β†’ Acid β†’ Bleeding (like a mini-peptic ulcer at the wrong place)

🟀 IX. TB INTESTINE

Practical Theory

  • Most common site: Ileocecal junction (due to relative physiological stasis, abundant lymphoid tissue - Peyer's patches)
  • Forms: Ulcerative (most common in gut - multiple transverse ulcers, may perforate), Hypertrophic (ileocecal thickening, mass), Ulcerohypertrophic (mixed)
  • Macroscopy: Transverse "collar-stud" ulcers (perpendicular to long axis - because TB spreads via lymphatics which run circumferentially)
  • Pathology: Caseating granuloma with Langhans giant cells in submucosa/serosa

FAQ Viva Questions

Q: Why is the ileocecal region most commonly affected in intestinal TB? A: (1) Physiological stasis allows prolonged contact with mycobacteria, (2) abundant lymphoid tissue (Peyer's patches) - gateway for TB bacilli, (3) terminal ileum has most lymphoid tissue.
Q: Ulcerative vs hypertrophic TB intestine - clinical difference? A: Ulcerative - diarrhea, bleeding, risk of perforation (silent "cold" perforation unlike typhoid perforations). Hypertrophic - RIF mass, constipation, mimics cecal carcinoma/Crohn's.
Q: How to differentiate TB from Crohn's disease (high-yield viva question!)?
FeatureTB IntestineCrohn's Disease
Skip lesionsPresentPresent
GranulomaCaseatingNon-caseating
FistulaLess commonVery common
Perianal diseaseRareCommon
ASCA/ANCANegativeASCA positive
Mantoux/IGRAPositiveNegative
Response to ATTYesNo
Q: Surgical indications in intestinal TB? A: Obstruction not responding to ATT, perforation, fistula formation, bleeding, mass not resolving (suspect malignancy).
Q: Transverse vs longitudinal ulcers - which is TB and which is typhoid? A: TB = Transverse ulcers (circumferential lymphatic spread). Typhoid = Longitudinal ulcers along the axis of Peyer's patches.

Memory Tricks

  • "TB - Transverse, Typhoid - Longitudinal"
  • Ileocecal = most common site (Peyer's patches = "parking lots" for TB bugs)
  • Hypertrophic TB = doughy cecum - palpable RIF mass like Ca cecum
  • Caseating granuloma = TB (NON-caseating = Sarcoidosis, Crohn's)

🦠 X. HYDATID CYST (Liver)

Practical Theory

  • Caused by Echinococcus granulosus (cystic hydatid disease)
  • Life cycle: Dog (definitive host) β†’ Sheep (intermediate host) β†’ Human (accidental intermediate host)
  • Structure of cyst: Pericyst (host fibrous reaction - outer, calcified), Ectocyst/Laminated membrane (parasite - white, laminated), Endocyst/Germinal layer (inner, produces daughter cysts, brood capsules, scolices, hydatid sand)
  • Location: Liver (70%) > Lung (20%) > other organs

FAQ Viva Questions

Q: What is hydatid sand? A: Free scolices, daughter cysts, and hooklets floating in hydatid fluid. If cyst leaks/ruptures - risk of anaphylaxis and dissemination.
Q: Clinical features? A: Slowly enlarging painless hepatomegaly, usually right lobe. May be asymptomatic for years. Complications: rupture (anaphylaxis), biliary communication (jaundice, cholangitis, coughing up hydatid material), secondary infection, pressure effects.
Q: Diagnosis? A: USG - cyst with daughter cysts, floating membranes ("water lily" sign), calcification. CT - confirms. Serology - ELISA (anti-Echinococcus antibodies), indirect haemagglutination test. Casoni's skin test (now obsolete).
Q: What is the "water lily" sign? A: On USG/CT - collapsed/detached endocyst floating in fluid-filled pericyst = water lily sign = pathognomonic of hydatid cyst.
Q: PAIR procedure? A: Puncture, Aspiration, Injection (hypertonic saline/ethanol - scolicidal agent), Re-aspiration. Minimally invasive treatment for accessible cysts. Contraindicated if biliary communication.
Q: Surgical treatment? A: PAIR (percutaneous) or surgical: Total pericystectomy (ideal - removes entire cyst), partial pericystectomy with omentoplasty, ERCP if biliary communication. Medical: Albendazole (before and after procedure, reduces recurrence).
Q: Casoni's test? A: Intradermal injection of hydatid fluid antigen - wheal and flare = positive. Now obsolete (replaced by ELISA).

Memory Tricks

  • "DOG gives, SHEEP gets, HUMAN suffers" - life cycle in 3 words
  • "EGG shape + Daughter cysts = Hydatid"
  • Water lily sign = collapsed membrane floating in cyst
  • PAIR = Puncture, Aspirate, Inject, Re-aspirate (remember in order)
  • Liver (70%) + Lung (20%) = 90% of cases

⚫ XI. CARCINOMA STOMACH (Ca Stomach)

Practical Theory

  • Most common type: Adenocarcinoma (95%)
  • Most common site: Pyloric antrum/lesser curvature (60%)
  • Gross patterns: Ulcerative (most common), Polypoid, Infiltrative/Diffuse (linitis plastica), Superficial spreading
  • Linitis plastica ("leather bottle stomach"): Diffuse infiltration with fibrous reaction β†’ rigid, non-distensible stomach

Spread and Named Metastases

  • Virchow's node: Left supraclavicular node (Troisier's sign) - via thoracic duct
  • Krukenberg tumor: Bilateral ovarian metastasis (signet ring cells via transcoelomic/hematogenous spread)
  • Sister Mary Joseph nodule: Periumbilical nodule - transcoelomic/lymphatic spread
  • Blumer's shelf: Rectal shelf felt on PR exam - peritoneal drop metastasis to pouch of Douglas

FAQ Viva Questions

Q: Risk factors for Ca Stomach? A: H. pylori infection (most important - 6x risk), blood group A, smoked/salted food, atrophic gastritis, pernicious anemia, intestinal metaplasia, previous partial gastrectomy (Bilroth II - 10-15x after 15 years), HNPCC, FAP.
Q: Early gastric cancer vs advanced? A: EGC = confined to mucosa/submucosa (regardless of node status) - 5-year survival >90%. Advanced = invades muscularis propria or beyond.
Q: Lauren's classification? A: Intestinal type (well-differentiated, glandular, H. pylori related, better prognosis, older patients). Diffuse type (poorly differentiated, signet ring cells, hereditary, younger patients, worse prognosis).
Q: Curative surgery for Ca stomach? A: Distal 1/3: Subtotal gastrectomy + D2 lymphadenectomy. Proximal/total involvement: Total gastrectomy + D2 lymphadenectomy. D2 = removal of perigastric + second tier nodes. Japanese experience shows D2 is superior.
Q: Palliative surgery? A: Gastrojejunostomy (for pyloric obstruction), PEJ tube (for feeding), palliative gastrectomy (for bleeding/pain).

Memory Tricks

  • "Virchow = Left SCF, Krukenberg = Ovary, Sister MJ = Umbilicus, Blumer = Rectum" - 4 named metastases
  • Linitis plastica = "Leather bottle" = rigid stomach - linitis from "linen" (rigid fabric)
  • H. pylori = #1 risk factor (causes > 70% of Ca stomach)
  • Blood group A = Ca Stomach (Blood group O = peptic ulcer - "O for OLD ulcer, A for ADENOCA")

🦷 XII. AMOEBIC LIVER ABSCESS

Practical Theory

  • Caused by Entamoeba histolytica - trophozoites reach liver via portal vein from colon
  • Classically: Single abscess, right lobe (due to streaming in portal blood from right colon)
  • Content: "Anchovy sauce" or "chocolate sauce" (dark brown, odorless, sterile pus = liquefied liver tissue)
  • No true pus - actually necrotic liver

FAQ Viva Questions

Q: Classic presentation of amoebic liver abscess? A: Fever with rigors, RUQ pain, tender hepatomegaly (point tenderness over abscess), elevation of right hemidiaphragm on X-ray. No jaundice usually (unless multiple).
Q: How to differentiate pyogenic vs amoebic liver abscess?
FeatureAmoebicPyogenic
Age/SexYoung maleOlder, both sexes
NumberSingle (usually)Multiple (biliary source)
LobeRight lobeBoth lobes
ContentAnchovy sauceCream/yellow pus
SerologyELISA positiveNegative
Stool examCysts/trophozoitesNegative
Response to metronidazoleDramaticPoor
Q: Investigations for amoebic liver abscess? A: USG (first line - hypoechoic lesion), CT (if USG inconclusive), ELISA (positive in 95%), stool microscopy, LFTs (elevated ALP).
Q: Treatment? A: Medical: Metronidazole 800mg TID x 10 days (drug of choice) β†’ followed by Diloxanide furoate 500mg TID x 10 days (luminal amebicide, eradicates cysts from colon). Drainage: If no response in 72 hours, very large abscess (>10cm), left lobe (risk of cardiac tamponade if ruptures), or imminent rupture. FNAC/USG-guided aspiration preferred.
Q: Complications of amoebic liver abscess? A: Rupture into pleural space (most common - right pleural effusion), peritoneum, pericardium (left lobe - life-threatening), lung (hepatobronchial fistula - patient coughs up "chocolate" material).
Q: Why is anchovy sauce odorless? A: Unlike pyogenic abscess, amoebic abscess is sterile - no bacterial proteolysis - hence no foul odor.

Memory Tricks

  • "ANCHOR(vy sauce) = AMOEBIC"
  • "Right lobe, single = Amoebic | Multiple, biliary source = Pyogenic"
  • Metro first, then Dilox (Metro kills trophozoites in liver; Dilox kills cysts in gut)
  • "Left lobe abscess β†’ pericardial rupture β†’ emergency"

πŸ’Ž XIII. POLYCYSTIC KIDNEY

Practical Theory

  • ADPKD (Autosomal Dominant PKD - PKD1/PKD2 genes): Adult form, most common hereditary renal disease
  • ARPKD (Autosomal Recessive): Infantile form, presents at birth/neonatal, associated with congenital hepatic fibrosis, worse prognosis
  • ADPKD: Bilateral enlarged kidneys with multiple cysts of varying size replacing normal parenchyma
  • Associated with: Berry aneurysms (intracranial, 10-15%), hepatic cysts (50%), pancreatic cysts, mitral valve prolapse

FAQ Viva Questions

Q: ADPKD vs ARPKD - key differences?
  • ADPKD: AD, PKD1 (chr 16)/PKD2 (chr 4), adult onset, bilateral large kidneys, associated with berry aneurysms, hepatic cysts
  • ARPKD: AR, PKHD1 gene, neonatal/infantile, congenital hepatic fibrosis, Potter sequence (oligohydramnios β†’ pulmonary hypoplasia)
Q: How does ADPKD present? A: Hypertension (most common first symptom), flank pain, hematuria (cyst rupture/stone), renal failure (progressive), palpable bilateral renal masses, UTI.
Q: Extrarenal manifestations of ADPKD? A: Berry (saccular) aneurysms (subarachnoid hemorrhage), hepatic cysts, pancreatic cysts, cardiac (MVP, aortic root dilatation), colonic diverticulosis, intracranial aneurysms.
Q: Treatment? A: Blood pressure control (ACE inhibitors preferred), avoid nephrotoxins, tolvaptan (vasopressin V2 receptor antagonist - slows cyst growth in rapidly progressive ADPKD), renal replacement therapy/transplant for ESRD.
Q: Diagnosis? A: USG (first line - bilateral multiple cysts). Criteria based on age: <30 years β†’ β‰₯2 cysts bilaterally; 30-59 β†’ β‰₯2 cysts in each kidney; >60 β†’ β‰₯4 cysts in each kidney.

Memory Tricks

  • ADPKD = "Adult Disease, PKD1+2, Berry + Hepatic cysts"
  • ARPKD = "Autosomal Recessive, Potter sequence + Hepatic fibrosis"
  • "PKD1 is chromosome 16, PKD2 is chromosome 4" (1+6=7, 2+4=6... or just remember PKD1 = most common = earlier/worse)
  • Berry aneurysms β†’ SAH β†’ "ADPKD kills with bleeding in brain"

♂️ XIV. SEMINOMA

Practical Theory

  • Most common testicular germ cell tumor in adults (age 20-40 years)
  • Gross: Homogeneous, gray-white, lobulated, replaces entire testis
  • Histology: Large cells with clear cytoplasm ("fried egg" appearance), fibrous septa with lymphocytic infiltrate
  • Tumor markers: AFP = normal (never elevated in pure seminoma), Ξ²-hCG = mildly elevated in 15%, LDH elevated
  • Most radiosensitive testicular tumor

Staging (Royal Marsden)

  • Stage I: Confined to testis
  • Stage II: Retroperitoneal nodes
  • Stage III: Supra-diaphragmatic nodes
  • Stage IV: Extralymphatic metastasis

FAQ Viva Questions

Q: Tumor markers in testicular tumors?
TumorAFPΞ²-hCGLDH
SeminomaNormalMildly ↑ (15%)↑
Embryonal Ca↑↑↑
Yolk sac↑↑Normal↑
ChoriocarcinomaNormal↑↑↑↑
Teratoma (mature)NormalNormal-
Q: What is the treatment for Stage I seminoma? A: Radical orchidectomy via inguinal approach (never scrotal - risk of lymphatic disruption and spread to inguinal nodes). Post-orchidectomy: surveillance vs carboplatin x1 cycle vs para-aortic radiotherapy.
Q: Why never do scrotal orchidectomy? A: Scrotum drains to inguinal lymph nodes; testis drains to para-aortic/retroperitoneal nodes. Scrotal approach disrupts lymphatic drainage, can spread to inguinal nodes, changing staging and treatment.
Q: Retroperitoneal lymph node dissection (RPLND)? A: For NSGCT Stage I/II (less so for seminoma). For seminoma - radiotherapy to para-aortic nodes more standard (Stage IIA/B).
Q: Gynecomastia in testicular tumor? A: Due to Ξ²-hCG (LH-like activity) β†’ stimulates Leydig cells β†’ increased estrogen relative to testosterone. Also in Leydig cell tumors.

Memory Tricks

  • "AFP negative in Seminoma" - if AFP is elevated = mixed tumor/NSGCT
  • "SEMINOMA = RADIO-Sensitive" (S for Sensitive, S for Seminoma)
  • "INGUINAL approach ALWAYS" - never scrotal (contamination changes drainage)
  • Retroperitoneal nodes are the FIRST landing zone (testicular lymphatics β†’ retroperitoneal/para-aortic)

πŸŒ€ XV. TERATOMA

Practical Theory

  • Arises from pluripotent germ cells - contain elements of all 3 germ layers (ectoderm, mesoderm, endoderm)
  • Mature teratoma (dermoid cyst in ovary): Benign, contains hair, teeth, sebum
  • Immature teratoma: Malignant, contains immature embryonal elements, aggressive
  • Testicular teratoma in adults - considered malignant (even mature)
  • Most common location: Ovary (dermoid cyst), sacrococcygeal region (in children), testis, mediastinum

FAQ Viva Questions

Q: Sacrococcygeal teratoma? A: Most common solid tumor in neonates. Presents as a mass at the base of spine/buttocks. Altman classification (I-IV based on extent). Treatment: Complete excision including coccyx (reduces recurrence). AFP is tumor marker for malignant SCT.
Q: Dermoid cyst vs teratoma - any difference? A: Dermoid cyst = mature cystic teratoma of ovary (benign). All dermoid cysts are teratomas. Teratoma is the broader term including immature (malignant) variants.
Q: Mediastinal teratoma - where? A: Anterior mediastinum (along with thymoma, thyroid, and "T's" - teratoma, terrible lymphoma).
Q: Tumor markers in teratoma? A: Mature teratoma: AFP normal, Ξ²-hCG normal. Malignant/immature: AFP elevated. (Remember: AFP is secreted by yolk sac elements if present.)
Q: 4 A's of anterior mediastinal masses? A: Aortic aneurysm, Awful lymphoma, Aberrant thyroid, (t)eratoma, thymoma - actually the "4 T's": Thymoma, Teratoma, Terrible lymphoma, Thyroid.

Memory Tricks

  • "Teratoma = 3 germ layers" (Tera = monster = all cell types)
  • Dermoid cyst = "Dermatological cyst" = skin + hair + teeth + sebaceous material
  • "4 T's of anterior mediastinum = Thymoma, Teratoma, Thyroid, Terrible lymphoma"
  • Sacrococcygeal = most common neonatal solid tumor

πŸŽ€ XVI. CARCINOMA BREAST

Practical Theory

  • Most common cancer in women worldwide
  • Most common type: Invasive ductal carcinoma (IDC) - 75-80%
  • Special types: ILC (lobular), mucinous, medullary, tubular, Paget's disease
  • Gross: Scirrhous (hard, irregular, gritty on cutting - most common), medullary (soft, necrosis)
  • Spread: Local β†’ Lymphatic (axillary level Iβ†’IIβ†’III, then supraclavicular, internal mammary) β†’ Hematogenous (bone, lung, liver, brain, adrenals)

Staging (TNM)

  • Staging up to T4 includes: T4a - chest wall, T4b - skin (peau d'orange/ulceration), T4c - both, T4d - inflammatory carcinoma (worst)
  • Peau d'orange: Lymphatic permeation causing dermal edema around hair follicles (like orange peel)

FAQ Viva Questions

Q: Risk factors for Ca Breast? A: Female sex, increasing age, BRCA1/2 mutation, first-degree family history, early menarche/late menopause (prolonged estrogen exposure), nulliparity/late first pregnancy, HRT, radiation exposure, previous breast cancer.
Q: BRCA1 vs BRCA2?
  • BRCA1 (chr 17q): Higher risk of ovarian Ca, triple-negative breast Ca, premenopausal
  • BRCA2 (chr 13q): Associated with male breast Ca, also pancreatic/prostate Ca
Q: What is inflammatory carcinoma of breast? A: Not a histological type but a clinical presentation - rapid onset erythema, warmth, edema of skin (>1/3 of breast), peau d'orange WITHOUT a discrete palpable mass. Pathology: Dermal lymphatic emboli. Stage T4d = Stage IIIB. Treatment: Neo-adjuvant chemotherapy first (surgery second).
Q: Paget's disease of nipple? A: Eczema-like rash of nipple/areola - red, scaly, itching. Always associated with underlying ductal carcinoma (in situ or invasive). Histology: Paget cells (large clear cells with prominent nuclei in epidermis). Treatment: Mastectomy or conservative surgery + radiation.
Q: Sentinel lymph node biopsy (SLNB)? A: Injection of blue dye (Methylene blue/Patent blue) and/or technetium-99m colloid around tumor β†’ identifies first draining (sentinel) lymph node β†’ if SLN negative, axillary clearance not required. Reduces morbidity.
Q: Hormone receptor status and treatment? A: ER+/PR+ β†’ Hormonal therapy (Tamoxifen for premenopausal; Aromatase inhibitors - letrozole/anastrozole for postmenopausal). HER2+ β†’ Trastuzumab (Herceptin). Triple negative (ER-/PR-/HER2-) β†’ Chemotherapy only.

Memory Tricks

  • "Scirrhous = Scirrho(us) = Hard, Gritty texture" (most common gross appearance)
  • "BRCA1 = 17 (One Seven), BRCA2 = 13 (Thirteen)" - remember 1 goes with 17, 2 goes with 13
  • "T4d = inflammatory = DERMIS = dermal lymphatics" - d for dermis/dermal
  • Paget = NIPPLE eczema + ALWAYS underlying Ca
  • Peau d'orange = Lymphatic obstruction of skin (not the lymph nodes - skin lymphatics!)

πŸ¦‹ XVII. THYROID SWELLING

Practical Theory

  • Most common thyroid swelling: Simple (colloid) goiter
  • Most common thyroid carcinoma: Papillary carcinoma (80%)
  • Malignancy risk in a solitary thyroid nodule: 15-20%
  • FNAC - gold standard investigation for thyroid nodule (Bethesda system I-VI)

Classification of Thyroid Carcinomas

TypeOriginFeaturesPrognosis
PapillaryFollicular cellsPsammoma bodies, Orphan Annie nuclei, lymphatic spreadExcellent (95% 10yr)
FollicularFollicular cellsVascular invasion, hematogenous spread, no lymph nodesGood
MedullaryParafollicular C cellsCalcitonin ↑, amyloid deposits, MEN2A/2BIntermediate
AnaplasticFollicular cellsRapidly fatal, not resectable usuallyVery poor

FAQ Viva Questions

Q: Orphan Annie nuclei - what is it? A: Nuclear clearing/grooves in papillary carcinoma - nuclei appear empty/clear (ground-glass) on H&E. Pathognomonic of papillary thyroid carcinoma.
Q: Psammoma bodies? A: Laminated calcific concentric deposits in papillary carcinoma (also in meningioma, serous ovarian Ca, mesothelioma). On FNAC = suggests papillary Ca.
Q: What is MEN2A and MEN2B? A: MEN2A = Medullary thyroid Ca + Phaeochromocytoma + Hyperparathyroidism (RET mutation). MEN2B = Medullary thyroid Ca + Phaeochromocytoma + Mucosal neuromas + Marfanoid habitus (no HPT).
Q: Recurrent laryngeal nerve (RLN) and thyroid surgery? A: RLN runs in tracheo-oesophageal groove, at risk during thyroid surgery. Unilateral RLN injury β†’ hoarseness. Bilateral β†’ stridor/respiratory distress (requires tracheostomy). RLN must be identified and preserved during thyroidectomy.
Q: Post-thyroidectomy complications? A: Hemorrhage (early, most dangerous), RLN injury, hypoparathyroidism (Ca2+ drops β†’ tetany, Chvostek's/Trousseau's sign), thyroid storm (rare), hypothyroidism, wound infection.
Q: Lateral aberrant thyroid - what is it? A: Previously thought to be ectopic thyroid tissue. Now known to be metastatic papillary carcinoma in lymph nodes (as papillary Ca metastasizes to cervical lymph nodes which may be cystic and resemble thyroid tissue). Always treat as malignancy.

Memory Tricks

  • "Papillary = POOF! (Psammoma bodies, Orphan Annie, Orphan lymph nodes, Frequent spread to nodes)"
  • "Follicular = FHB = Follicular, Hematogenous spread, Blood vessels (vascular invasion)"
  • "Medullary = MEN + Calcitonin + aMyloid" - M for MEN, M for Medullary, M for aMyloid, M for Marker (calcitonin)
  • "Anaplastic = Always fatal"
  • RLN is in "TE groove" - Tracheo-Esophageal groove, identify before dividing anything!

πŸŸ₯ XVIII. RENAL CELL CARCINOMA (RCC)

Practical Theory

  • Also called "hypernephroma" or Grawitz tumor
  • Most common type: Clear cell RCC (75%) - arises from proximal convoluted tubule cells
  • Triad: Hematuria + Flank pain + Palpable mass (classical but only 10% present with all 3)
  • Gross: Upper pole, yellow-golden (lipid-rich clear cells), with areas of necrosis and hemorrhage

Paraneoplastic Syndromes (CLASSIC high-yield)

  • Polycythemia - ectopic EPO production
  • Hypercalcemia - PTHrP
  • Hypertension - renin secretion
  • Stauffer's syndrome - non-metastatic hepatic dysfunction (elevated LFTs) that resolves with nephrectomy
  • Varicocele (left side, sudden onset in older male) - renal vein invasion/IVC thrombus

FAQ Viva Questions

Q: Why does left varicocele indicate RCC? A: Left testicular vein drains into left renal vein (right drains into IVC). Left RCC with renal vein thrombus β†’ obstructs left testicular vein β†’ left varicocele. Doesn't decompress on lying down. Always suspect RCC in adult male with sudden left varicocele.
Q: VHL gene and RCC? A: Von Hippel-Lindau gene (chromosome 3p) mutation β†’ sporadic clear cell RCC. VHL syndrome β†’ bilateral/multifocal RCC + hemangioblastomas (CNS/retina) + pheochromocytoma.
Q: Staging? A: Robson classification (older - I-IV) or TNM. T1 (<7cm, confined), T2 (>7cm, confined), T3 (renal vein/IVC/perirenal fat), T4 (beyond Gerota's fascia).
Q: Treatment? A: Localized: Radical nephrectomy (gold standard) - laparoscopic preferred. Partial nephrectomy for small tumors (<4cm), solitary kidney, bilateral disease. Metastatic: Targeted therapy - sunitinib, pazopanib (anti-VEGF/TKI), nivolumab (anti-PD1). RCC is chemo-resistant and radio-resistant.
Q: IVC thrombus in RCC? A: Tumor thrombus extends into renal vein β†’ IVC β†’ right atrium. Level of thrombus determines surgical approach. Level I (infrarenal IVC), Level II (infrahepatic IVC), Level III (suprahepatic IVC), Level IV (right atrium - requires cardiopulmonary bypass).

Memory Tricks

  • "RCC Triad = HPM = Hematuria, Pain, Mass" (only 10% have all 3)
  • "GOLDEN YELLOW tumor = Clear cell RCC" (lipid in cytoplasm = clear, yellow gross appearance)
  • "Sudden LEFT varicocele in adult male β†’ Rule out RCC FIRST"
  • Stauffer's syndrome = Liver acts up but no mets (non-metastatic) β†’ resolves after nephrectomy
  • "VHL = Very Hard to Live" - chr 3p, bilateral RCC

πŸ‘Ά XIX. WILMS' TUMOR (Nephroblastoma)

Practical Theory

  • Most common primary renal tumor in children (peak age 3-4 years)
  • Bilateral in 5-10%
  • Classic triad: Abdominal mass + Hematuria + Hypertension
  • Associated syndromes: WAGR (Wilms, Aniridia, GU anomalies, mental Retardation - WT1 deletion, chr 11p13), Beckwith-Wiedemann (macroglossia, organomegaly, hemihypertrophy - WT2/IGF2, chr 11p15), Denys-Drash (Wilms + DSD + nephropathy)
  • Histology: Triphasic - blastemal + stromal + epithelial components

FAQ Viva Questions

Q: What is the classic presentation of Wilms' tumor? A: Child (3-4 years), parents notice incidentally a large, smooth, firm abdominal mass (does NOT cross midline unlike neuroblastoma). Associated with hematuria, hypertension, fever, anemia.
Q: How to differentiate Wilms' from Neuroblastoma (high-yield)?
FeatureWilms' TumorNeuroblastoma
OriginRenal (kidney itself)Adrenal medulla
Age3-4 years<2 years
MassSmooth, intrarenalFirm, nodular, crosses midline
Crosses midlineNoYes
CalcificationRareCommon (eggshell)
Urine VMA/HVANormalElevated
IVPCalyceal distortion, intrarenalKidney displaced down/laterally
Q: Staging of Wilms' tumor (NWTSG)?
  • Stage I: Confined to kidney, completely excised
  • Stage II: Extends beyond kidney, completely excised
  • Stage III: Residual tumor post-op (not hematogenous)
  • Stage IV: Hematogenous metastasis (lung most common)
  • Stage V: Bilateral at diagnosis
Q: Treatment of Wilms' tumor (NWTSG vs SIOP)? A: NWTSG (North American): Surgery first β†’ then chemotherapy (vincristine + actinomycin D) Β± radiotherapy based on stage/histology. SIOP (European): Pre-operative chemotherapy first β†’ then surgery. Radiotherapy for stages III/IV. Anaplastic histology = poor prognosis β†’ add doxorubicin.
Q: WT1 and WT2 genes? A: WT1 (chr 11p13): WAGR syndrome, Denys-Drash. WT2 (chr 11p15): Beckwith-Wiedemann syndrome. Both are tumor suppressor genes.
Q: Favorable vs unfavorable histology? A: Favorable (most cases): Triphasic + no anaplasia β†’ excellent prognosis (90%). Unfavorable: Anaplastic (focal or diffuse) β†’ worse prognosis β†’ add doxorubicin.

Memory Tricks

  • WAGR = "Wilms + Aniridia + GU anomalies + Retardation" - all on chr 11p13
  • "Wilms STAYS on ITS side, Neuro CROSSES the midline"
  • "Wilms = 3, Neuro = under 2" (peak age)
  • "Triphasic = Blast + Stroma + Epithelium = BSE"
  • Vincristine + Actinomycin D = backbone of Wilms chemotherapy (VA regiment)

πŸ“ QUICK VIVA CHEAT SHEET - All 19 Specimens

SpecimenKey BuzzwordMost Asked Point
Ca ColonApple core / Dukes stagingDukes never described stage D
TrichobezoarRapunzel syndromeYoung female, trichophagia
TB LNCollar stud abscessCaseating granuloma + Langhans
Hodgkin's LNReed-Sternberg "owl eye"CD15+, CD30+, AFP negative
GB Stone5 F's / Rigler's triadBlack=hemolysis, Brown=infection
Liver MetsUmbilicated nodulesColorectal = most common primary
Intestinal WormsBiliary ascariasisPiperazine in obstruction
Meckel'sRule of 2'sPainless bleeding in child
TB IntestineTransverse ulcers, ileocecalTB vs Crohn's table
Hydatid CystWater lily signPAIR + Albendazole
Ca StomachVirchow/Krukenberg/BlumerLinitis plastica = leather bottle
Amoebic AbscessAnchovy sauceMetro first, Dilox second
Polycystic KidneyBerry aneurysm, ADPKDPKD1 chr 16, PKD2 chr 4
SeminomaAFP always normalInguinal orchidectomy
Teratoma3 germ layers4 T's of anterior mediastinum
Ca BreastPeau d'orange, BRCA1/2ER/PR/HER2 determines treatment
Thyroid SwellingPapillary = Orphan AnnieLateral aberrant = metastasis
RCCGolden yellow, Stauffer'sSudden left varicocele β†’ RCC
Wilms' TumorWAGR, does not cross midlineTriphasic histology

🧠 GOLDEN VIVA RULES

  1. Always state the specimen type first ("This is a... specimen showing...")
  2. Gross description before diagnosis (color, size, cut surface, notable features)
  3. Name all relevant staging systems (Dukes for colon, Ann Arbor for lymphoma, Robson/TNM for renal)
  4. Know the gold standard investigation for each (FNAC for thyroid/lymph node, Meckel's scan for Meckel's, ELISA for hydatid/amoebic)
  5. Know the gold standard treatment (lap chole for GB stones, radical inguinal orchidectomy for testis tumors, metro for amoebic abscess)
  6. Always mention complications - examiners love complication-based follow-up questions
  7. Tumor markers - AFP/Ξ²hCG/CEA/CA19-9/Calcitonin - know which tumor produces which

Sources: Bailey & Love's Short Practice of Surgery 28th Ed.; Sabiston Textbook of Surgery; Maingot's Abdominal Operations; Campbell-Walsh Urology; S Das Manual of Clinical Surgery; Fischer's Mastery of SurgeryHere is your complete General Surgery Final Year PG Exam Specimen Viva Guide covering all 19 specimens from your list. Here's what's included for each specimen:

What's Covered for Each of the 19 Specimens:

Format per specimen:
  • Practical Theory - key pathology, anatomy, gross/histological features
  • FAQ Viva Q&A - the questions examiners most commonly ask, with model answers
  • Memory Tricks - mnemonics and quick recall hooks

Quick Summary of High-Yield Points to Never Forget:

GI Tract
  • Ca Colon: Dukes never described Stage D | Apple core = left colon | Right = anemia, Left = obstruction
  • Ca Stomach: 4 named metastases (Virchow, Krukenberg, Sister Mary Joseph, Blumer) | Linitis plastica = leather bottle
  • Meckel's: Rule of 2's | Painless rectal bleeding in child | Meckel's scan (Tc-99m)
  • TB Intestine: Transverse ulcers | Ileocecal region | TB vs Crohn's table is a common viva trap
  • Trichobezoar: Young female + trichophagia | Rapunzel syndrome = extends into small bowel
Hepatobiliary
  • Hydatid: Water lily sign | PAIR procedure | Dogβ†’Sheepβ†’Human | Liver 70%, Lung 20%
  • Amoebic Abscess: Anchovy sauce | Single, right lobe | Metronidazole then Diloxanide furoate
  • GB Stones: 5 F's | Rigler's triad (gallstone ileus) | Black = hemolysis, Brown = infection
Lymph Nodes
  • TB LN: Collar stud abscess | Caseating granuloma | Langhans = horseshoe nuclei
  • Hodgkin's: Reed-Sternberg "owl eye" | CD15+/CD30+ | ABVD chemotherapy | Contiguous spread
Renal/Urological
  • Polycystic Kidney: ADPKD (Berry aneurysms) vs ARPKD (congenital hepatic fibrosis)
  • RCC: Sudden left varicocele β†’ think RCC | Stauffer's syndrome | Golden yellow tumor | Chemo-resistant
  • Wilms' Tumor: Does NOT cross midline (unlike neuroblastoma) | WAGR syndrome | Triphasic histology
Testicular
  • Seminoma: AFP ALWAYS NORMAL | Inguinal orchidectomy (never scrotal) | Most radiosensitive
  • Teratoma: 3 germ layers | 4 T's of anterior mediastinum
Breast/Thyroid
  • Ca Breast: Peau d'orange = dermal lymphatics | BRCA1=chr17, BRCA2=chr13 | ER/PR/HER2 drives treatment
  • Thyroid: Orphan Annie nuclei = papillary Ca | Lateral aberrant thyroid = metastatic papillary Ca | RLN in TE groove

Generate a presentation with gross/microscopic images of these 19 specimens

Reading File
Finding Sources
Reading File
Finding Sources
Now let me search the textbook library for image URLs for all 19 specimens in parallel:
Finding Sources
Finding Sources
Finding Sources
Finding Sources
Good - I have several images. Let me get more image URLs for the remaining specimens:
Finding Sources
Finding Sources
Finding Sources
Finding Sources
Excellent - I now have a rich set of images from the medical library. Let me now build the full PPTX presentation:
Running Command

mkdir -p /home/daytona/workspace/surgery-specimens-ppt && ls /home/daytona/workspace/surgery-specimens-ppt/

Writing File

~/surgery-specimens-ppt/build.js

const pptxgen = require("pptxgenjs");
const { execSync } = require("child_process");

// ── helpers ──────────────────────────────────────────────────────────────────
function fetchImages(urls) {
  try {
    const arg = urls.map(u => `"${u}"`).join(" ");
    const raw = execSync(
      `node /home/daytona/skills/shared/scripts/fetch_images.js ${arg}`,
      { maxBuffer: 50 * 1024 * 1024 }
    ).toString();
    return JSON.parse(raw);
  } catch (e) {
    console.error("fetchImages error:", e.message);
    return urls.map(u => ({ url: u, base64: null, error: e.message }));
  }
}

// ── colour palette ────────────────────────────────────────────────────────────
const DEEP_NAVY   = "0D1B2A";   // dominant dark
const MID_BLUE    = "1B4F8A";   // header accent
const TEAL        = "0A7E8C";   // sub-accent
const CREAM       = "F5F0E8";   // slide background
const GOLD        = "C8963E";   // highlight accent
const WHITE       = "FFFFFF";
const DARK_TEXT   = "1A1A2E";
const LIGHT_GREY  = "E8EDF2";

// ── specimen data ─────────────────────────────────────────────────────────────
const specimens = [
  {
    title: "01. Carcinoma Colon",
    type: "Adenocarcinoma (95%)",
    gross: "Annular/fungating mass; apple-core deformity on barium",
    micro: "Malignant glands invading bowel wall; mucin pools; dirty necrosis",
    key: ["Dukes A/B/C β€” never described D himself",
          "Right colon β†’ polypoid, anemia; Left β†’ annular, obstruction",
          "CEA tumour marker; KRAS/BRAF mutations"],
    trick: "Apple core = Left colon Ca (annular constriction)",
    images: [
      "https://cdn.orris.care/cdss_images/1dbc47a11a0802d5d9f652705bbc8630072c2783912547ad293fefe9a7038168.png",
      "https://cdn.orris.care/cdss_images/7043c8abbc26b0f1ce6b091ea69e92d78df449e227fa062c55cf32f654e6f8ec.png"
    ]
  },
  {
    title: "02. Trichobezoar",
    type: "Hair concretion in stomach",
    gross: "Black, foul-smelling, cast of stomach; matted hair mass",
    micro: "Hair shafts + undigested food debris; no epithelium (not a cyst)",
    key: ["Young female, trichotillomania + trichophagia",
          "Rapunzel syndrome: tail extends into small bowel",
          "Tx: large β†’ surgical gastrotomy; small β†’ endoscopy + CBT"],
    trick: "Rapunzel = long tail through pylorus",
    images: []
  },
  {
    title: "03. TB Lymph Node",
    type: "Granulomatous lymphadenitis (Scrofula)",
    gross: "Matted nodes; central caseation; collar-stud abscess",
    micro: "Caseating granuloma: Langhans giant cells + epithelioid cells + caseous centre",
    key: ["Langhans: peripheral horseshoe nuclei arrangement",
          "Collar-stud: abscess perforates deep fascia (hourglass shape)",
          "ATT 2HRZE + 4HR; surgery only if no ATT response"],
    trick: "Collar stud = cufflink shaped (button above + below fascia)",
    images: []
  },
  {
    title: "04. Hodgkin's Lymph Node",
    type: "Hodgkin Lymphoma (Classical)",
    gross: "Rubbery, matted, non-tender lymph nodes; fish-flesh cut surface",
    micro: "Reed-Sternberg cells (owl-eye nucleoli): CD15+, CD30+, CD45βˆ’",
    key: ["Nodular sclerosis = most common subtype (60-70%)",
          "Contiguous nodal spread (unlike NHL)",
          "ABVD chemo Β± RT; >85% cure rate stage I/II",
          "B symptoms: fever, night sweats, >10% weight loss"],
    trick: "RS cell = OWL EYES | ABVD = A Big Vicious Drug",
    images: []
  },
  {
    title: "05. GB Stone",
    type: "Cholelithiasis",
    gross: "Cholesterol (yellow, single/multiple); Pigment-black (hemolysis); Pigment-brown (infected)",
    micro: "Chronic cholecystitis: mucosal atrophy, Rokitansky-Aschoff sinuses, fibrosis",
    key: ["5 F's: Fat, Forty, Female, Fertile, Fair",
          "Rigler's triad (gallstone ileus): pneumobilia + SBO + ectopic stone",
          "Charcot triad: RUQ pain + fever + jaundice",
          "Gold standard Tx: Laparoscopic cholecystectomy"],
    trick: "Black = Bag (GB, hemolysis); Brown = Bile Duct (infected)",
    images: []
  },
  {
    title: "06. Metastasis in Liver",
    type: "Secondary hepatic deposits",
    gross: "Multiple whitish umbilicated nodules; central necrosis (outgrows blood supply)",
    micro: "Adenocarcinoma glands (colon primary most common); 'dirty necrosis'",
    key: ["Colorectal = most common primary (portal drainage)",
          "Resectable criteria: adequate FLR >25%, R0 achievable",
          "Fong score: 5 factors; 0-2 = good prognosis",
          "Unresectable: FOLFOX Β± bevacizumab"],
    trick: "Umbilicated = central necrosis (like a belly button dipping in)",
    images: [
      "https://cdn.orris.care/cdss_images/82872323800ba714e8e0dbbb13f26bbbbcdc6bb0837f078f7a27471379c61e62.png"
    ]
  },
  {
    title: "07. Intestinal Worms",
    type: "Helminthiasis (Ascaris lumbricoides most common)",
    gross: "Long cylindrical pinkish worms (15-35 cm); may form bolus causing obstruction",
    micro: "Nematode cross-section: lateral ridges, polymyarian musculature, intestine, reproductive organs",
    key: ["Biliary ascariasis: worm in CBD β†’ 'railway track' sign on USG",
          "Obstruction: conservative first, piperazine (paralyzes worms)",
          "Treatment: Albendazole 400 mg single dose",
          "Piperazine used in obstruction β€” does NOT kill, just paralyzes"],
    trick: "Piperazine = Paralyzes (safe in obstruction); Albendazole = Kills all",
    images: []
  },
  {
    title: "08. Meckel's Diverticulum",
    type: "True congenital GI diverticulum",
    gross: "Finger-like outpouching from antimesenteric border of ileum, 2 feet from IC valve",
    micro: "All bowel wall layers (true diverticulum); ectopic gastric mucosa (50%) or pancreatic",
    key: ["Rule of 2s: 2%, 2 ft, 2 inches, 2 types mucosa, 2 yrs, 2Γ— males",
          "Painless rectal bleeding in child (brick-red / maroon) = #1 presentation",
          "Diagnosis: Tc-99m pertechnetate scan (Meckel's scan)",
          "Malignancy in Meckel's: carcinoid (most common)"],
    trick: "Rule of 2s β€” most common congenital GI anomaly ever!",
    images: [
      "https://cdn.orris.care/cdss_images/b50fe6c5b3c2c35971d12c5c3de96a7cd086d7ab8efe5914b5a94c63d2e0e6ce.png",
      "https://cdn.orris.care/cdss_images/8d9d5940714d4f5197f0c6e1f1c613e4e0b53c69482014e2e65baea81fee4036.png"
    ]
  },
  {
    title: "09. TB Intestine",
    type: "Intestinal tuberculosis",
    gross: "Ileocecal hypertrophic mass OR transverse ulcers (collar-button) in ileum",
    micro: "Caseating granuloma in submucosa/serosa; Langhans giant cells",
    key: ["Most common site: Ileocecal junction (Peyer's patches + stasis)",
          "Transverse ulcers (TB) vs Longitudinal (Typhoid)",
          "Hypertrophic type mimics Ca cecum / Crohn's disease",
          "Caseating granuloma = TB; Non-caseating = Crohn's/Sarcoid"],
    trick: "TB = Transverse; Typhoid = Tangential(Longitudinal)",
    images: []
  },
  {
    title: "10. Hydatid Cyst",
    type: "Echinococcus granulosus (Cystic echinococcosis)",
    gross: "Pericyst (host fibrous wall) + ectocyst (white laminated) + endocyst (germinal); daughter cysts",
    micro: "Laminated eosinophilic membrane; germinal layer with scolices; brood capsules; hooklets",
    key: ["Dog (definitive) β†’ Sheep (intermediate) β†’ Human (accidental)",
          "Water lily sign on USG: collapsed membrane floating in cyst",
          "PAIR: Puncture, Aspirate, Inject (hypertonic saline), Re-aspirate",
          "Medical: Albendazole before + after procedure"],
    trick: "DOG gives SHEEP gets HUMAN suffers | PAIR = 4-step procedure",
    images: [
      "https://cdn.orris.care/cdss_images/fae0bb18d4a4cc362d6a23f8614b116745deb21873fb404f71becc542f02ee1c.png",
      "https://cdn.orris.care/cdss_images/8f8e2a166458849e8feec02ed7ac2f07d8d249eb15787d1dc222e224a3218f88.png"
    ]
  },
  {
    title: "11. Ca Stomach",
    type: "Gastric Adenocarcinoma (95%)",
    gross: "Ulcerative (most common) / Polypoid / Linitis plastica ('leather bottle')",
    micro: "Intestinal type (tubular glands, H.pylori related); Diffuse type (signet ring cells, worse)",
    key: ["Named mets: Virchow (L SCF), Krukenberg (ovary), Sister MJ (umbilicus), Blumer (rectum PR)",
          "Linitis plastica = diffuse infiltration + fibrosis = rigid stomach",
          "Curative Tx: Subtotal/Total gastrectomy + D2 lymphadenectomy",
          "H. pylori = #1 risk factor (>70%)"],
    trick: "VKBS = Virchow, Krukenberg, Blumer, Sister MJ β€” 4 named metastases",
    images: []
  },
  {
    title: "12. Amoebic Liver Abscess",
    type: "Entamoeba histolytica hepatic abscess",
    gross: "Single abscess, right lobe; 'anchovy sauce' = dark brown odourless liquid necrotic liver",
    micro: "Liquefactive necrosis; E. histolytica trophozoites at wall (PAS positive); no true pus",
    key: ["Right lobe, single (portal streaming from right colon)",
          "ELISA serology positive in 95%; dramatic response to metronidazole",
          "Tx: Metronidazole 800 mg TID x10d β†’ Diloxanide furoate 500 mg TID x10d",
          "Drain if: no response 72h, >10 cm, left lobe (cardiac tamponade risk)"],
    trick: "ANCHOR(vy sauce) = AMOEBIC | Metro kills trophozoites; Dilox kills gut cysts",
    images: []
  },
  {
    title: "13. Polycystic Kidney",
    type: "ADPKD (Adult) / ARPKD (Infantile)",
    gross: "Massively enlarged kidney replaced by innumerable cysts of varying size; compressed parenchyma",
    micro: "Dilated tubules forming cysts lined by flattened epithelium; interstitial fibrosis",
    key: ["ADPKD: PKD1 (chr 16) / PKD2 (chr 4); Berry aneurysms + hepatic cysts",
          "ARPKD: PKHD1 gene; congenital hepatic fibrosis; Potter sequence at birth",
          "Tolvaptan (V2R antagonist) slows progression in rapid ADPKD",
          "Hypertension = first symptom; ACE inhibitors preferred"],
    trick: "PKD1 = chromosome 16 (1Γ—16); PKD2 = chromosome 4 (2Γ—4=8... just remember 4!)",
    images: []
  },
  {
    title: "14. Seminoma",
    type: "Testicular Germ Cell Tumour β€” Seminoma",
    gross: "Homogeneous, grey-white, lobulated, replaces entire testis; no haemorrhage/necrosis",
    micro: "'Fried egg' cells: large clear cytoplasm, prominent nucleolus; fibrous septa + lymphocytes",
    key: ["AFP always NORMAL in pure seminoma (elevation = mixed/NSGCT)",
          "Ξ²-hCG mildly elevated in 15%; LDH elevated",
          "Most radiosensitive testicular tumour",
          "ALWAYS inguinal orchidectomy β€” NEVER scrotal (lymphatic contamination)"],
    trick: "AFP negative = Seminoma | Inguinal = I for Important/Indispensable",
    images: [
      "https://cdn.orris.care/cdss_images/fd66c724db2413f301ea279bf8a6ca0e60c8ec36ffcf0823d5379da4cdedaad3.png"
    ]
  },
  {
    title: "15. Teratoma",
    type: "Germ cell tumour β€” all 3 germ layers",
    gross: "Mature (dermoid): cystic, contains hair/teeth/sebum; Immature: solid, necrotic, aggressive",
    micro: "Ectodermal (skin, neural), Mesodermal (cartilage, muscle), Endodermal (gut, respiratory epithelium)",
    key: ["Mature cystic teratoma = dermoid cyst of ovary (benign)",
          "Testicular teratoma in adults = always malignant (even if mature)",
          "Sacrococcygeal teratoma = most common solid neonatal tumour",
          "4 T's of anterior mediastinum: Thymoma, Teratoma, Thyroid, Terrible lymphoma"],
    trick: "Tera = monster (all cell types from 3 layers) | 4T's for anterior mediastinum",
    images: []
  },
  {
    title: "16. Carcinoma Breast",
    type: "Invasive Ductal Carcinoma (IDC) β€” 75-80%",
    gross: "Scirrhous (hard, gritty, irregular) = most common; stellate margins; skin tethering / peau d'orange",
    micro: "Malignant ductal cells in cords/nests; desmoplastic stroma; lymphovascular invasion",
    key: ["Peau d'orange = dermal lymphatic obstruction (NOT lymph node obstruction)",
          "T4d = Inflammatory Ca = dermal lymphatics emboli; neoadjuvant chemo first",
          "BRCA1 = chr 17q (triple-neg); BRCA2 = chr 13q (male breast Ca)",
          "ER+/PR+ β†’ Tamoxifen/AI | HER2+ β†’ Trastuzumab | TN β†’ Chemo only"],
    trick: "BRCA1=17 (one-seven); BRCA2=13 (thir-teen) | T4d = d for Dermal",
    images: []
  },
  {
    title: "17. Thyroid Swelling",
    type: "Papillary Thyroid Carcinoma (most common, 80%)",
    gross: "Papillary Ca: ill-defined, hard, calcified, non-encapsulated; cut surface shows papillary projections",
    micro: "Orphan Annie eye nuclei (empty/clear); nuclear grooves; psammoma bodies; papillary architecture",
    key: ["Orphan Annie nuclei = ground-glass nuclear clearing = pathognomonic papillary Ca",
          "Psammoma bodies: papillary Ca, meningioma, serous ovarian Ca, mesothelioma",
          "Medullary Ca: calcitonin marker + amyloid deposits + MEN2A/2B",
          "Lateral aberrant thyroid = metastatic papillary Ca in lymph node"],
    trick: "Papillary = POOF: Psammoma bodies, Orphan Annie, Orphan (nodal mets), Frequent lymphatics",
    images: [
      "https://cdn.orris.care/cdss_images/79fe551637d4d859a72c00f9ed7c6a0cfa16a69b7e40af5c68a5498a63b6d3fe.png",
      "https://cdn.orris.care/cdss_images/1b3201bef82c838b9a284c77c33f247168262cb4d7a57d58706722424d8f7e0a.png"
    ]
  },
  {
    title: "18. Renal Cell Carcinoma (RCC)",
    type: "Clear cell RCC (75%) β€” Grawitz tumour / Hypernephroma",
    gross: "Upper pole; golden-yellow (lipid-rich); variegated with haemorrhage and necrosis; pseudo-capsule",
    micro: "Clear cells (lipid/glycogen washed out in processing); nested/alveolar pattern; delicate vasculature",
    key: ["Triad: Haematuria + Flank pain + Mass (only 10% present with all 3)",
          "Sudden LEFT varicocele in adult male β†’ rule out RCC immediately",
          "Stauffer syndrome: non-metastatic hepatic dysfunction β†’ resolves after nephrectomy",
          "VHL gene (chr 3p25); chemo-resistant + radio-resistant β†’ targeted therapy (sunitinib)"],
    trick: "GOLDEN YELLOW = Clear cell RCC | Sudden left varicocele β†’ RCC",
    images: [
      "https://cdn.orris.care/cdss_images/f1e65eb6e5675904e1285b4163471d0035ac11a06fab7e0dc9eded000b1bfe02.png"
    ]
  },
  {
    title: "19. Wilms' Tumour (Nephroblastoma)",
    type: "Embryonal renal tumour of childhood",
    gross: "Large, soft, tan-grey mass replacing renal parenchyma; pseudocapsule; cystic areas; haemorrhage",
    micro: "Triphasic: Blastemal (small blue cells) + Stromal + Epithelial (primitive tubules); anaplasia = poor prognosis",
    key: ["Does NOT cross midline (unlike neuroblastoma which does)",
          "WAGR syndrome: Wilms + Aniridia + GU anomalies + Retardation (WT1, chr 11p13)",
          "Beckwith-Wiedemann: macroglossia + organomegaly + hemihypertrophy (WT2, chr 11p15)",
          "NWTSG: surgery first β†’ VA chemo (vincristine + actinomycin D)"],
    trick: "Wilms STAYS on its side; Neuroblastoma CROSSES | BSE = Blast, Stroma, Epithelium",
    images: [
      "https://cdn.orris.care/cdss_images/084a80f25098e68c190c5fae917e65501b6886475080ec0939eb8402601aaaa3.png",
      "https://cdn.orris.care/cdss_images/a2528f381c5f44acf8c297f88b778e8116e6e038ea1c4a603f79b2dee9b5a990.png"
    ]
  }
];

// ── collect all image URLs and pre-fetch ──────────────────────────────────────
const allUrls = [...new Set(specimens.flatMap(s => s.images))];
console.log(`Fetching ${allUrls.length} images...`);
const fetched = allUrls.length > 0 ? fetchImages(allUrls) : [];
const imgMap = {};
fetched.forEach(f => { imgMap[f.url] = f; });
const successCount = fetched.filter(f => !f.error && f.base64).length;
console.log(`Successfully fetched: ${successCount}/${allUrls.length}`);

// ── build presentation ────────────────────────────────────────────────────────
const pres = new pptxgen();
pres.layout = "LAYOUT_WIDE"; // 13.3" Γ— 7.5"
pres.title = "General Surgery Specimens – PG Viva Guide";
pres.author = "PG Exam Prep";

// ── TITLE SLIDE ───────────────────────────────────────────────────────────────
{
  const sl = pres.addSlide();
  sl.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 13.3, h: 7.5, fill: { color: DEEP_NAVY } });
  // decorative stripe
  sl.addShape(pres.ShapeType.rect, { x: 0, y: 5.8, w: 13.3, h: 0.12, fill: { color: GOLD } });
  sl.addShape(pres.ShapeType.rect, { x: 0, y: 6.0, w: 13.3, h: 0.06, fill: { color: TEAL } });
  // title
  sl.addText("General Surgery Specimens", {
    x: 0.6, y: 1.2, w: 12.1, h: 1.2,
    fontSize: 42, bold: true, color: WHITE, fontFace: "Calibri",
    align: "center", charSpacing: 2
  });
  sl.addText("PG Final Year Exam β€” Viva Guide", {
    x: 0.6, y: 2.6, w: 12.1, h: 0.7,
    fontSize: 24, color: GOLD, fontFace: "Calibri",
    align: "center", italic: true
  });
  sl.addText("19 Essential Specimens with Gross & Microscopic Pathology", {
    x: 0.6, y: 3.5, w: 12.1, h: 0.55,
    fontSize: 18, color: LIGHT_GREY, fontFace: "Calibri", align: "center"
  });
  sl.addText([
    { text: "Gross  |  Microscopy  |  Key Points  |  FAQ  |  Memory Tricks", options: {} }
  ], {
    x: 0.6, y: 4.35, w: 12.1, h: 0.5,
    fontSize: 16, color: TEAL, fontFace: "Calibri", align: "center"
  });
  // specimen count badge
  sl.addShape(pres.ShapeType.roundRect, {
    x: 5.4, y: 5.2, w: 2.5, h: 0.8,
    fill: { color: GOLD }, rectRadius: 0.15, line: { color: GOLD }
  });
  sl.addText("19 Specimens", {
    x: 5.4, y: 5.2, w: 2.5, h: 0.8,
    fontSize: 18, bold: true, color: DEEP_NAVY, fontFace: "Calibri", align: "center", valign: "middle"
  });
}

// ── SPECIMEN SLIDES ───────────────────────────────────────────────────────────
specimens.forEach((spec, idx) => {
  const sl = pres.addSlide();

  // ---- background
  sl.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 13.3, h: 7.5, fill: { color: CREAM } });

  // ---- left column header band
  sl.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 13.3, h: 1.1, fill: { color: DEEP_NAVY } });
  // gold accent line under header
  sl.addShape(pres.ShapeType.rect, { x: 0, y: 1.1, w: 13.3, h: 0.07, fill: { color: GOLD } });

  // ---- title
  sl.addText(spec.title, {
    x: 0.25, y: 0.1, w: 8.5, h: 0.55,
    fontSize: 22, bold: true, color: WHITE, fontFace: "Calibri", margin: 0
  });
  sl.addText(spec.type, {
    x: 0.25, y: 0.6, w: 8.5, h: 0.42,
    fontSize: 13, color: GOLD, fontFace: "Calibri", italic: true, margin: 0
  });

  // ---- slide number badge
  sl.addShape(pres.ShapeType.roundRect, {
    x: 12.35, y: 0.15, w: 0.7, h: 0.7,
    fill: { color: GOLD }, rectRadius: 0.12, line: { color: GOLD }
  });
  sl.addText(`${idx + 1}`, {
    x: 12.35, y: 0.15, w: 0.7, h: 0.7,
    fontSize: 18, bold: true, color: DEEP_NAVY, fontFace: "Calibri", align: "center", valign: "middle"
  });

  // ---- CONTENT AREA  (decide layout based on image availability)
  const imgs = spec.images.filter(u => imgMap[u] && !imgMap[u].error && imgMap[u].base64);
  const hasImages = imgs.length > 0;

  // column widths
  const textX = 0.25;
  const textW = hasImages ? 7.8 : 12.8;
  const imgX  = 8.25;
  const imgW  = 4.8;

  // ---- Gross description block
  sl.addShape(pres.ShapeType.roundRect, {
    x: textX, y: 1.28, w: textW, h: 0.95,
    fill: { color: MID_BLUE }, line: { color: MID_BLUE }, rectRadius: 0.1
  });
  sl.addText([
    { text: "GROSS  ", options: { bold: true, color: GOLD, fontSize: 11 } },
    { text: spec.gross, options: { color: WHITE, fontSize: 11 } }
  ], { x: textX + 0.12, y: 1.3, w: textW - 0.25, h: 0.91, valign: "middle" });

  // ---- Microscopy block
  sl.addShape(pres.ShapeType.roundRect, {
    x: textX, y: 2.32, w: textW, h: 0.95,
    fill: { color: TEAL }, line: { color: TEAL }, rectRadius: 0.1
  });
  sl.addText([
    { text: "MICRO  ", options: { bold: true, color: GOLD, fontSize: 11 } },
    { text: spec.micro, options: { color: WHITE, fontSize: 11 } }
  ], { x: textX + 0.12, y: 2.34, w: textW - 0.25, h: 0.91, valign: "middle" });

  // ---- Key Points
  sl.addText("KEY POINTS", {
    x: textX, y: 3.38, w: 2.5, h: 0.32,
    fontSize: 11, bold: true, color: MID_BLUE, fontFace: "Calibri", margin: 0
  });
  const keyItems = spec.key.map((k, i) => ({
    text: k,
    options: { bullet: { type: "number", indent: 20 }, fontSize: 10.5, color: DARK_TEXT, breakLine: i < spec.key.length - 1 }
  }));
  sl.addText(keyItems, {
    x: textX, y: 3.72, w: textW, h: spec.key.length > 3 ? 1.55 : 1.25,
    fontFace: "Calibri"
  });

  // ---- Memory Trick box
  const trickY = 5.4;
  sl.addShape(pres.ShapeType.roundRect, {
    x: textX, y: trickY, w: textW, h: 0.78,
    fill: { color: "FFF3CD" }, line: { color: GOLD, pt: 1.5 }, rectRadius: 0.1
  });
  sl.addText([
    { text: "πŸ’‘ TRICK  ", options: { bold: true, color: "7D4E00", fontSize: 11 } },
    { text: spec.trick, options: { color: DARK_TEXT, fontSize: 10.5 } }
  ], { x: textX + 0.12, y: trickY + 0.04, w: textW - 0.25, h: 0.72, valign: "middle" });

  // ---- Images
  if (hasImages) {
    const maxImgs = Math.min(imgs.length, 2);
    const singleH = maxImgs === 1 ? 5.0 : 2.4;
    const gap = 0.12;
    for (let i = 0; i < maxImgs; i++) {
      const iy = 1.28 + i * (singleH + gap);
      try {
        sl.addImage({
          data: imgMap[imgs[i]].base64,
          x: imgX, y: iy, w: imgW, h: singleH,
          sizing: { type: "contain", w: imgW, h: singleH }
        });
      } catch (e) {
        console.error(`Image placement error slide ${idx + 1}:`, e.message);
      }
    }
    // image label
    sl.addText("Textbook images β€” educational use", {
      x: imgX, y: 6.2, w: imgW, h: 0.28,
      fontSize: 7, color: "888888", fontFace: "Calibri", align: "center", italic: true
    });
  }

  // ---- footer rule + text
  sl.addShape(pres.ShapeType.rect, { x: 0, y: 7.18, w: 13.3, h: 0.03, fill: { color: MID_BLUE } });
  sl.addText("General Surgery Specimens β€” PG Final Year Viva Guide", {
    x: 0.25, y: 7.22, w: 10, h: 0.25,
    fontSize: 8, color: "888888", fontFace: "Calibri"
  });
  sl.addText(`${idx + 1} / 19`, {
    x: 12.3, y: 7.22, w: 0.8, h: 0.25,
    fontSize: 8, color: "888888", fontFace: "Calibri", align: "right"
  });
});

// ── SUMMARY / QUICK REFERENCE SLIDE ──────────────────────────────────────────
{
  const sl = pres.addSlide();
  sl.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 13.3, h: 7.5, fill: { color: DEEP_NAVY } });
  sl.addShape(pres.ShapeType.rect, { x: 0, y: 1.15, w: 13.3, h: 0.06, fill: { color: GOLD } });
  sl.addText("Quick Reference β€” All 19 Specimens", {
    x: 0.4, y: 0.18, w: 12.5, h: 0.85,
    fontSize: 26, bold: true, color: WHITE, fontFace: "Calibri", align: "center"
  });

  const summaryData = [
    ["Specimen", "Key Buzzword", "Don't Forget"],
    ["Ca Colon", "Apple core / Dukes", "Dukes never described Stage D"],
    ["Trichobezoar", "Rapunzel syndrome", "Young female, trichotillomania"],
    ["TB LN", "Collar-stud abscess", "Caseating granuloma + Langhans cells"],
    ["Hodgkin's LN", "Owl-eye RS cell", "CD15+, CD30+; ABVD chemo"],
    ["GB Stone", "5 F's / Rigler's triad", "Brown duct, Black bag"],
    ["Liver Mets", "Umbilicated nodules", "Colorectal = most common primary"],
    ["Intestinal Worms", "Biliary ascariasis", "Piperazine in obstruction"],
    ["Meckel's", "Rule of 2s", "Painless rectal bleeding in child"],
    ["TB Intestine", "Transverse ulcers", "Ileocecal; TB vs Crohn's table"],
    ["Hydatid Cyst", "Water lily sign", "PAIR + Albendazole"],
    ["Ca Stomach", "Virchow/Krukenberg", "Linitis plastica = leather bottle"],
    ["Amoebic Abscess", "Anchovy sauce", "Metro then Diloxanide"],
    ["Polycystic Kidney", "Berry aneurysm", "PKD1 chr 16, PKD2 chr 4"],
    ["Seminoma", "AFP always normal", "Inguinal orchidectomy only"],
    ["Teratoma", "3 germ layers", "4T's of anterior mediastinum"],
    ["Ca Breast", "Peau d'orange", "ER/PR/HER2 drives treatment"],
    ["Thyroid", "Orphan Annie nuclei", "Lateral aberrant = metastasis"],
    ["RCC", "Golden yellow", "Sudden L varicocele β†’ RCC"],
    ["Wilms' Tumour", "Does not cross midline", "Triphasic histology; WAGR"]
  ];

  const rows = summaryData.map((row, ri) => row.map((cell, ci) => ({
    text: cell,
    options: {
      bold: ri === 0,
      color: ri === 0 ? DEEP_NAVY : (ri % 2 === 0 ? DARK_TEXT : "2C3E50"),
      fontSize: ri === 0 ? 10 : 9,
      align: ci === 0 ? "left" : "left"
    }
  })));

  sl.addTable(rows, {
    x: 0.3, y: 1.3, w: 12.7,
    colW: [2.2, 2.8, 7.7],
    rowH: 0.29,
    fill: { color: WHITE },
    border: { type: "none" },
    fontFace: "Calibri",
    autoPage: false
  });
}

// ── WRITE FILE ────────────────────────────────────────────────────────────────
const outPath = "/home/daytona/workspace/surgery-specimens-ppt/Surgery_Specimens_PG_Viva.pptx";
pres.writeFile({ fileName: outPath })
  .then(() => console.log("βœ… PPTX written to:", outPath))
  .catch(e => { console.error("Write error:", e); process.exit(1); });
Running Command

cd /home/daytona/workspace/surgery-specimens-ppt && node build.js 2>&1

The fetch failed due to a buffer limit with 13 URLs at once. Let me fetch images in smaller batches and embed them:
Running Command

cd /home/daytona/workspace/surgery-specimens-ppt && node -e " const { execSync } = require('child_process'); const urls = [ 'https://cdn.orris.care/cdss_images/1dbc47a11a0802d5d9f652705bbc8630072c2783912547ad293fefe9a7038168.png', 'https://cdn.orris.care/cdss_images/7043c8abbc26b0f1ce6b091ea69e92d78df449e227fa062c55cf32f654e6f8ec.png', 'https://cdn.orris.care/cdss_images/82872323800ba714e8e0dbbb13f26bbbbcdc6bb0837f078f7a27471379c61e62.png', 'https://cdn.orris.care/cdss_images/b50fe6c5b3c2c35971d12c5c3de96a7cd086d7ab8efe5914b5a94c63d2e0e6ce.png' ]; const result = execSync('node /home/daytona/skills/shared/scripts/fetch_images.js ' + urls.map(u=>'\"'+u+'\"').join(' '), {maxBuffer: 80*1024*1024}).toString(); const parsed = JSON.parse(result); parsed.forEach(r => console.log(r.url.slice(-20), r.error ? 'ERROR:'+r.error : 'OK len='+r.base64.length)); " 2>&1 | head -20

Batching works. Let me now update the build script to fetch images in batches of 4:
Editing File

~/surgery-specimens-ppt/build.js

Successfully replaced 1 instance(s) of the string in '/home/daytona/workspace/surgery-specimens-ppt/build.js'
Running Command

cd /home/daytona/workspace/surgery-specimens-ppt && node build.js 2>&1

All 13 images fetched and PPTX built successfully. Let me verify the file:
Running Command

ls -lh /home/daytona/workspace/surgery-specimens-ppt/Surgery_Specimens_PG_Viva.pptx

Your presentation is ready! βœ…

Surgery Specimens PG Viva

Presentation Β· PPTX


What's in the Presentation (41 MB, 21 slides)

Slide 1 - Title Slide Dark navy design with gold accents, full title and subtitle
Slides 2-20 - One slide per specimen, each containing:
  • Header band with specimen name + histological type
  • GROSS panel (blue) - macroscopic description
  • MICRO panel (teal) - histological features
  • Key Points - 4 numbered high-yield facts
  • Memory Trick box (gold) - mnemonic/trick for viva
  • Real textbook images (right column, where available from the medical library)
Slide 21 - Quick Reference Table All 19 specimens with buzzword + "Don't Forget" point on one dark slide - perfect to review 10 minutes before your viva.

Specimens WITH textbook images embedded:

SlideImages
Carcinoma ColonPolyp adenoma + endoscopic view
Metastasis in LiverHydatid/liver specimen (gross)
Meckel's DiverticulumGross surgical specimen + Tc scan
Hydatid CystUSG stages (A-D) + gross specimen
SeminomaGross cut surface (homogeneous grey-white)
Thyroid (Papillary)Histology (Orphan Annie nuclei) + thyroid Ca variants
RCCClear cell + papillary + chromophobe histology
Wilms' TumourHistology (triphasic) + CT scan
The remaining slides (TB LN, Hodgkin's, GB stone, Trichobezoar, TB Intestine, Amoebic Abscess, Polycystic Kidney, Teratoma, Ca Breast, Ca Stomach, Intestinal Worms) have full text content - the library had no sufficiently relevant images for those that weren't already captured by the queries.
This is a shared conversation. Sign in to Orris to start your own chat.