Prepare a ppt on topic potts spine related to orthopaedics for a pg presentation with atleast 8 slides including management techniques and all other stuff
Pott's spine tuberculosis spinal MRI X-ray
Pott disease tuberculosis spine kyphosis

This composite educational graphic features two lateral diagnostic images of the thoracic spine illustrating late-onset Pott's paraplegia in healed disease. Image A is a lateral plain film X-ray showing severe, sharp-angled thoracic kyphosis (gibbus deformity). There is evidence of significant vertebral body destruction and anterior wedging at the lower thoracic level, leading to collapse and a prominent sagittal deformity. Image B is a sagittal T2-weighted MRI scan of the same patient. The MRI demonstrates the acute angulation of the spinal column and the proximity of the spinal cord to the apex of the internal kyphus. Notably, the vertebral bodies show uniform marrow signal intensity with no evidence of marrow edema, soft tissue abscesses, or gadolinium enhancement, which indicates that the underlying tuberculous infection is healed and inactive. The educational focus is on distinguishing structural mechanical complications (kyphosis causing cord kinking) from active spinal tuberculosis (Pott's disease).

This lateral-view spinal skiagram (X-ray) comparison demonstrates the preoperative and postoperative states of a severe thoracolumbar kyphotic deformity. (a) Preoperative image: Shows a high-grade, acute angular kyphosis of the dorsal spine. A wedge-shaped 'internal gibbus' is visible, formed by the anterior collapse and subsequent posterior protrusion of vertebral remnants into the spinal canal, leading to mechanical spinal stenosis. (b) Postoperative image: Displays the result of anterior decompression via gibbus excision. The sharp curvature is noticeably corrected, and an autogenous iliac bone graft is seen bridging the intervertebral gap to provide structural stability and promote arthrodesis. The alignment of the vertebral column is significantly improved compared to the preoperative state. The images illustrate surgical management for paraplegia resulting from healed spinal tuberculosis (Pott's disease) with secondary kyphosis.

Lateral view X-ray of the thoracolumbar spine demonstrating a severe reversal of physiological spinal curvature. The thoracic region exhibits an atypical inward concavity (lordosis), while the lumbar region shows a pronounced outward convexity (kyphosis), creating a large gibbus deformity in the lumbosacral junction. The vertebral bodies appear crowded and irregular, with visible loss of intervertebral disc space in the affected segments. These structural findings are clinically consistent with sequelae of spinal tuberculosis (Pott's disease), resulting in a 'kyphotic pelvis' and significant skeletal remodeling. The image illustrates advanced orthopedic pathology and its impact on sagittal alignment, often leading to restricted pulmonary function and obstetric complications such as obstructed labor.

This composite diagnostic image features two lateral plain X-ray radiographs (a and b) illustrating severe spinal deformities resulting from healed spinal tuberculosis (Pott's disease). Image (a) depicts a lateral view of the cervical spine, showing significant anterior wedging and collapse of multiple mid-cervical vertebral bodies. This structural loss has resulted in a marked cervical kyphosis, reversing the normal lordotic curvature. There is visible irregularity of the vertebral endplates and narrowing of the intervertebral disc spaces, suggesting chronic degeneration and secondary fusion. Image (b) shows the thoracic (dorsal) spine, demonstrating an acute, angular kyphotic deformity (gibbus deformity). The X-ray reveals severe anterior collapse of multiple thoracic vertebrae, with the apex of the curve showing significant structural distortion and narrowing of disc spaces. Crowding of the posterior elements and ribs is evident at the apex. Together, these images illustrate the long-term musculoskeletal sequelae of spinal tuberculosis, focusing on severe sagittal plane malalignment and vertebral destruction.

This composite educational image illustrates the progression and external manifestation of severe spinal kyphosis. (a) Lateral radiograph of the dorsolumbar spine showing acute angular kyphosis resulting from childhood spinal tuberculosis (Pott's disease). There is complete destruction of vertebral bodies D9 through D11 with significant loss of height and anterior column collapse. (b) A follow-up lateral radiograph 2.5 years later demonstrates progression of the kyphotic deformity despite posterior spinal fusion, highlighting the risks of exponential growth of the deformity in pediatric patients. (c) A clinical photograph of the patient’s back showing a prominent, sharp angular gibbus deformity in the thoracolumbar region. A midline surgical scar from a previous posterior fusion procedure is visible over the apex of the deformity. The image set demonstrates the clinical-radiological correlation of post-tubercular spinal destruction and the long-term orthopedic challenge of managing spinal stability during growth.

This composite diagnostic image illustrates a case of severe thoracic angular kyphosis and its subsequent surgical management. Image (a) is a sagittal CT scan of the thoracic spine demonstrating the destruction and collapse of four vertebral bodies at the apex of the deformity. Dashed lines highlight the areas of significant bone loss and structural irregularity, resulting in a sharp gibbus deformity. The posterior arches remain visible despite the anterior column collapse. Image (b) is a lateral postoperative radiograph showing a posterior spinal fixation construct spanning from T4 to T11. The instrumentation consists of pedicle screws and longitudinal rods intended to stabilize the segment and provide partial correction. The image shows a residual postoperative kyphosis of 55 degrees. This comparison is characteristic of spinal tuberculosis (Pott's disease) or severe traumatic collapse leading to neurological compromise, specifically demonstrating the transition from a Frankel C paraparesis state to postoperative stabilization.
spinal tuberculosis abscess MRI sagittal T2

A multi-panel MRI compilation demonstrating spinal tuberculosis with a large calcified abscess. (A) T1-weighted coronal view showing a hypointense lesion. (B) T1-weighted sagittal view and (C) T2-weighted sagittal view highlight severe kyphotic deformity of the spine with a prevertebral and paraspinal abscess (arrows). (D) T2-weighted fat-suppressed sagittal sequence (STIR/lipid pressing) enhances the visibility of the inflammatory process and fluid components. (E) Axial T2-weighted fat-suppressed and (F) standard T2-weighted axial sections demonstrate the circumferential extent of the abscess and its spatial relationship to the spinal canal and collapsed vertebral bodies. The calcified nature of the abscess is indicated by heterogeneous, primarily low-signal regions within the collection across all sequences. This imaging series illustrates the typical presentation of Pott's disease, including vertebral destruction, severe angulation (kyphosis), and chronic cold abscess formation with secondary calcification.

This composite diagnostic image illustrates lumbosacral spinal tuberculosis (Pott's disease) through axial CT and sagittal MRI views. Panel A is an axial CT scan showing extensive destruction of the S1 vertebral body, characterized by irregular bone margins, sequestrum (necrotic bone fragments), and a large, hypodense presacral cold abscess within the prevertebral space. Panel B is a sagittal T2-weighted MRI highlighting the involvement of the L5-S1 junction. Key findings include altered marrow signal intensity within the L5 and S1 vertebrae, significant narrowing of the L5-S1 intervertebral disc space, and the longitudinal extent of the presacral cold abscess. The visual findings demonstrate classic features of spinal infection, specifically the destruction of the anterior vertebral elements and the formation of characteristic cold abscesses typical of Mycobacterium tuberculosis infection in the lumbosacral region.

A comparison of sagittal lumbosacral spine imaging demonstrating the progression and resolution of spinal tuberculosis (Pott disease). Panels A and B are pretreatment sagittal MRI scans (T2-weighted and likely T1-weighted sequences) showing significant osseous destruction of the L5 and S1 vertebral bodies. A large, hyperintense prevertebral and paravertebral abscess is visible in the presacral space, causing mass effect and spinal cord compression at the lumbosacral junction. Panels C and D are follow-up sagittal MRI scans taken 15 months after conservative anti-tuberculosis therapy. These images show complete resolution of the fluid-filled abscesses and significant healing of the vertebral bodies. Evidence of spontaneous interbody fusion between L5 and S1 is present, with restoration of the lumbosacral angle and decompression of the neural elements. The series illustrates the efficacy of long-term pharmacological management in treating multi-level spinal infection, highlighting key diagnostic features such as vertebral endplate destruction, soft tissue abscess formation, and eventual bony stabilization.

This composite of diagnostic images illustrates the longitudinal management of infectious spondylitis (likely tuberculous) in the lumbar spine. (a) Preoperative sagittal T2-weighted MRI shows signal hyperintensity between the L3 and L4 vertebral bodies and within the epidural space, indicative of an abscess with compression of the dural sac. (b) Preoperative axial contrast-enhanced CT displays multiple paravertebral abscesses (arrows) containing internal calcifications, a hallmark of tuberculous infection. (c) Follow-up sagittal T2-weighted MRI at 18 months postoperatively demonstrates resolution of the hyperintense abscess and normalization of the spinal canal. (d) Lateral plain radiography at 30 months postoperatively shows successful bone union and stabilization of the L3-L4 segment. The sequence highlights key diagnostic markers for spinal tuberculosis—including disc space involvement, epidural abscess formation, and intralesional calcification—and documents the radiographic progression from active infection to postoperative recovery and osseous fusion.
Pott paraplegia surgical decompression anterior approach
mkdir -p /tmp/workspace/potts-spine-ppt
~/potts-spine-ppt/create_ppt.py
import json, subprocess, base64
from io import BytesIO
from pptx import Presentation
from pptx.util import Inches, Pt, Emu
from pptx.dml.color import RGBColor
from pptx.enum.text import PP_ALIGN, MSO_ANCHOR
from pptx.oxml.ns import qn
from pptx.oxml import parse_xml
import copy
# ── Colour palette ───────────────────────────────────────────────────────────
DEEP_BLUE = RGBColor(0x0D, 0x2B, 0x55) # dark navy header
MID_BLUE = RGBColor(0x1A, 0x5E, 0xA0) # section colour
ACCENT = RGBColor(0xE8, 0x3A, 0x3A) # red accent
LIGHT_BG = RGBColor(0xF0, 0xF5, 0xFF) # slide background
WHITE = RGBColor(0xFF, 0xFF, 0xFF)
DARK_TEXT = RGBColor(0x1A, 0x1A, 0x2E)
GOLD = RGBColor(0xF5, 0xA6, 0x23)
prs = Presentation()
prs.slide_width = Inches(13.333)
prs.slide_height = Inches(7.5)
blank_layout = prs.slide_layouts[6] # fully blank
# ── helper: add coloured rectangle ──────────────────────────────────────────
def add_rect(slide, x, y, w, h, fill_rgb, alpha=None):
shape = slide.shapes.add_shape(1, Inches(x), Inches(y), Inches(w), Inches(h))
shape.fill.solid()
shape.fill.fore_color.rgb = fill_rgb
shape.line.fill.background()
return shape
# ── helper: add textbox ──────────────────────────────────────────────────────
def add_text(slide, text, x, y, w, h,
font_size=18, bold=False, color=DARK_TEXT,
align=PP_ALIGN.LEFT, italic=False, wrap=True, v_anchor=None):
tb = slide.shapes.add_textbox(Inches(x), Inches(y), Inches(w), Inches(h))
tf = tb.text_frame
tf.word_wrap = wrap
if v_anchor:
tf.vertical_anchor = v_anchor
tf.margin_left = Pt(4)
tf.margin_right = Pt(4)
tf.margin_top = Pt(2)
tf.margin_bottom = Pt(2)
p = tf.paragraphs[0]
p.alignment = align
run = p.add_run()
run.text = text
run.font.size = Pt(font_size)
run.font.bold = bold
run.font.color.rgb = color
run.font.italic = italic
run.font.name = "Calibri"
return tf
# ── helper: add bullet list ──────────────────────────────────────────────────
def add_bullets(slide, items, x, y, w, h,
font_size=16, color=DARK_TEXT, bold_first=False,
level_2_items=None):
tb = slide.shapes.add_textbox(Inches(x), Inches(y), Inches(w), Inches(h))
tf = tb.text_frame
tf.word_wrap = True
tf.margin_left = Pt(6)
tf.margin_right = Pt(4)
tf.margin_top = Pt(2)
tf.margin_bottom = Pt(2)
first = True
for item in items:
if first:
p = tf.paragraphs[0]
first = False
else:
p = tf.add_paragraph()
p.level = 0
p.space_before = Pt(3)
run = p.add_run()
run.text = item
run.font.size = Pt(font_size)
run.font.color.rgb = color
run.font.bold = bold_first and (items.index(item) == 0)
run.font.name = "Calibri"
return tf
# ── helper: multi-column bullets ────────────────────────────────────────────
def add_two_col_bullets(slide, left_title, left_items, right_title, right_items,
y_start=1.5, col_h=4.8, font_size=15):
# Left column header
add_rect(slide, 0.4, y_start, 6.0, 0.45, MID_BLUE)
add_text(slide, left_title, 0.4, y_start, 6.0, 0.45,
font_size=15, bold=True, color=WHITE, align=PP_ALIGN.CENTER,
v_anchor=MSO_ANCHOR.MIDDLE)
add_bullets(slide, left_items, 0.5, y_start+0.5, 5.8, col_h,
font_size=font_size, color=DARK_TEXT)
# Right column header
add_rect(slide, 6.9, y_start, 6.0, 0.45, MID_BLUE)
add_text(slide, right_title, 6.9, y_start, 6.0, 0.45,
font_size=15, bold=True, color=WHITE, align=PP_ALIGN.CENTER,
v_anchor=MSO_ANCHOR.MIDDLE)
add_bullets(slide, right_items, 7.0, y_start+0.5, 5.8, col_h,
font_size=font_size, color=DARK_TEXT)
# ── helper: slide header bar ─────────────────────────────────────────────────
def make_slide_header(slide, title, subtitle=None):
add_rect(slide, 0, 0, 13.333, 1.1, DEEP_BLUE)
add_text(slide, title, 0.3, 0.05, 12.5, 0.7,
font_size=28, bold=True, color=WHITE, align=PP_ALIGN.LEFT,
v_anchor=MSO_ANCHOR.MIDDLE)
if subtitle:
add_text(slide, subtitle, 0.3, 0.75, 12.5, 0.35,
font_size=14, bold=False, color=GOLD,
align=PP_ALIGN.LEFT, italic=True)
# thin accent line
add_rect(slide, 0, 1.1, 13.333, 0.06, ACCENT)
# light background
add_rect(slide, 0, 1.16, 13.333, 6.34, LIGHT_BG)
# ── helper: footer ───────────────────────────────────────────────────────────
def add_footer(slide, text="PG Presentation | Orthopaedics | Pott's Spine"):
add_rect(slide, 0, 7.2, 13.333, 0.3, DEEP_BLUE)
add_text(slide, text, 0.3, 7.2, 12.5, 0.3,
font_size=9, color=RGBColor(0xAA, 0xC4, 0xFF),
align=PP_ALIGN.LEFT, v_anchor=MSO_ANCHOR.MIDDLE)
# ─────────────────────────────────────────────────────────────────────────────
# SLIDE 1 – TITLE SLIDE
# ─────────────────────────────────────────────────────────────────────────────
s1 = prs.slides.add_slide(blank_layout)
# Full background gradient effect using two rectangles
add_rect(s1, 0, 0, 13.333, 7.5, DEEP_BLUE)
add_rect(s1, 0, 4.8, 13.333, 2.7, RGBColor(0x08, 0x18, 0x38))
# Red accent bar
add_rect(s1, 0, 2.2, 0.18, 3.6, ACCENT)
# Title
add_text(s1, "POTT'S SPINE", 0.5, 1.0, 12.0, 1.4,
font_size=52, bold=True, color=WHITE, align=PP_ALIGN.LEFT)
add_text(s1, "Tuberculosis of the Spine", 0.5, 2.35, 12.0, 0.7,
font_size=26, bold=False, color=GOLD, align=PP_ALIGN.LEFT, italic=True)
# Divider line
add_rect(s1, 0.5, 3.15, 10.0, 0.05, ACCENT)
# Subtitle block
add_text(s1, "A Comprehensive PG Presentation", 0.5, 3.3, 12.0, 0.55,
font_size=20, bold=False, color=RGBColor(0xCC, 0xDD, 0xFF),
align=PP_ALIGN.LEFT)
add_text(s1, "Department of Orthopaedics", 0.5, 3.85, 12.0, 0.5,
font_size=18, bold=False, color=RGBColor(0xAA, 0xBB, 0xEE),
align=PP_ALIGN.LEFT)
# Historical note
add_text(s1, "\"First described by Sir Percivall Pott in 1779\"",
0.5, 5.3, 12.0, 0.55,
font_size=14, bold=False, color=GOLD,
align=PP_ALIGN.LEFT, italic=True)
add_footer(s1, "Department of Orthopaedics | PG CME Presentation | Pott's Spine")
# ─────────────────────────────────────────────────────────────────────────────
# SLIDE 2 – INTRODUCTION & EPIDEMIOLOGY
# ─────────────────────────────────────────────────────────────────────────────
s2 = prs.slides.add_slide(blank_layout)
make_slide_header(s2, "Introduction & Epidemiology",
"Pott's Disease — Tuberculous Spondylitis")
# Left panel: intro
add_rect(s2, 0.3, 1.3, 6.0, 0.4, MID_BLUE)
add_text(s2, "Background", 0.3, 1.3, 6.0, 0.4, font_size=15, bold=True,
color=WHITE, align=PP_ALIGN.CENTER, v_anchor=MSO_ANCHOR.MIDDLE)
intro_bullets = [
"⚫ Oldest human disease — molecular evidence dating to 3000 BCE",
"⚫ Clearly described by Percivall Pott in 1779",
"⚫ Most common form of extrapulmonary skeletal TB",
"⚫ Hematogenous spread from a primary pulmonary source",
"⚫ Spine involved in 50% of musculoskeletal TB cases",
"⚫ 10% of all TB cases involve musculoskeletal system",
]
add_bullets(s2, intro_bullets, 0.4, 1.8, 5.7, 4.5, font_size=15)
# Right panel: epidemiology
add_rect(s2, 6.9, 1.3, 6.0, 0.4, MID_BLUE)
add_text(s2, "Epidemiology", 6.9, 1.3, 6.0, 0.4, font_size=15, bold=True,
color=WHITE, align=PP_ALIGN.CENTER, v_anchor=MSO_ANCHOR.MIDDLE)
epi_bullets = [
"⚫ Worldwide incidence: >10 million TB cases/year",
"⚫ 1.3 million deaths per year globally",
"⚫ 1.2 million cases occur in children",
"⚫ Males and females equally affected",
"⚫ Incidence increases with age",
"⚫ Thoracolumbar spine: most common (40-50%)",
"⚫ Lumbar: 35-45% | Cervical: 2-3%",
"⚫ Endemic in South Asia, Africa, South America",
]
add_bullets(s2, epi_bullets, 7.0, 1.8, 5.7, 4.5, font_size=15)
add_footer(s2)
# ─────────────────────────────────────────────────────────────────────────────
# SLIDE 3 – PATHOLOGY & PATHOGENESIS
# ─────────────────────────────────────────────────────────────────────────────
s3 = prs.slides.add_slide(blank_layout)
make_slide_header(s3, "Pathology & Pathogenesis",
"Mechanism of Disease Progression in Spinal TB")
# Three boxes
boxes = [
("ROUTE OF SPREAD", [
"Hematogenous — arterial or Batson's venous plexus",
"Primary focus: lung (most common), GI tract, lymph nodes",
"Subchondral region of vertebral body seeded first",
"Paradiscal: adjacent to disc space (most common)",
"Central: within vertebral body",
"Anterior: beneath anterior longitudinal ligament",
"Posterior: neural arch (rare, <2%)",
], 0.3, 1.35, 4.1),
("HISTOPATHOLOGY", [
"Acid-fast positive caseating granulomas",
"Epithelioid cells + Langerhans giant cells",
"Central caseation necrosis ± purulence",
"Abscesses expand, contain necrotic debris",
"Skin sinuses form, drain, and heal spontaneously",
"Bone reaction varies: lytic or minimal",
"Discs SPARED in adults (avascular in adults)",
], 4.65, 1.35, 4.1),
("DISEASE PROGRESSION", [
"Anterior vertebral body destruction initially",
"Disc involvement (children > adults)",
"Collapse → gibbus/kyphotic deformity",
"Cold abscess formation (no surrounding inflammation)",
"Epidural spread → cord compression",
"Para-spinal abscess: psoas, retropharyngeal, paravertebral",
"Late: cord ischaemia (endarteritis obliterans)",
], 9.0, 1.35, 4.1),
]
for (title, items, bx, by, bw) in boxes:
add_rect(s3, bx, by, bw, 0.42, MID_BLUE)
add_text(s3, title, bx, by, bw, 0.42, font_size=13, bold=True,
color=WHITE, align=PP_ALIGN.CENTER, v_anchor=MSO_ANCHOR.MIDDLE)
add_bullets(s3, ["• " + i for i in items], bx+0.05, by+0.48, bw-0.1, 4.8,
font_size=13, color=DARK_TEXT)
add_footer(s3)
# ─────────────────────────────────────────────────────────────────────────────
# SLIDE 4 – CLINICAL FEATURES
# ─────────────────────────────────────────────────────────────────────────────
s4 = prs.slides.add_slide(blank_layout)
make_slide_header(s4, "Clinical Features",
"Symptoms, Signs & Neurological Complications")
# Left: Symptoms & Signs
add_rect(s4, 0.3, 1.3, 6.1, 0.42, MID_BLUE)
add_text(s4, "SYMPTOMS & SIGNS", 0.3, 1.3, 6.1, 0.42, font_size=14, bold=True,
color=WHITE, align=PP_ALIGN.CENTER, v_anchor=MSO_ANCHOR.MIDDLE)
symp = [
"Constitutional symptoms: fever, malaise, night sweats, weight loss",
"Back pain — present in 70% at presentation",
"Presentation may be months to years after onset",
"Local tenderness & paravertebral muscle spasm",
"Kyphotic deformity / gibbus formation",
"Cold abscess: psoas abscess, retropharyngeal mass",
"Cervical: hoarseness, dysphagia, respiratory stridor",
"Sudden death reported (cervical erosion into great vessels)",
]
add_bullets(s4, ["◆ " + i for i in symp], 0.4, 1.82, 5.9, 4.6, font_size=14)
# Right: Neurological
add_rect(s4, 6.9, 1.3, 6.0, 0.42, MID_BLUE)
add_text(s4, "NEUROLOGICAL DEFICIT (Pott's Paraplegia)", 6.9, 1.3, 6.0, 0.42,
font_size=13, bold=True, color=WHITE, align=PP_ALIGN.CENTER,
v_anchor=MSO_ANCHOR.MIDDLE)
neuro = [
"Neurologic signs usually occur late",
"May wax and wane in early disease",
"Epidural extension — most dangerous",
"Spinal cord compression via:",
" — Inflammatory granulation tissue",
" — Cold abscess / caseous material",
" — Pathological kyphosis / gibbus",
" — Sequestrated disc or bone fragment",
"Motor function & rectal tone = good prognostic predictors",
"Frankel grading used for severity classification",
"Late-onset paraplegia (healed disease): due to mechanical cord kinking",
]
add_bullets(s4, ["◆ " + i for i in neuro], 7.0, 1.82, 5.8, 4.6, font_size=13)
add_footer(s4)
# ─────────────────────────────────────────────────────────────────────────────
# SLIDE 5 – INVESTIGATIONS & IMAGING
# ─────────────────────────────────────────────────────────────────────────────
s5 = prs.slides.add_slide(blank_layout)
make_slide_header(s5, "Investigations & Imaging",
"Diagnosis of Spinal Tuberculosis")
# Download and embed image
img_url = "https://cdn.orris.care/cdss_images/pmc_clinical_VQA_2b7121cbefc86852646ef2c0ff789867b559dc8063c15d5b8e19f408bf4f899a.jpg"
result = json.loads(subprocess.check_output(
["python", "/tmp/skills/shared/scripts/fetch_images.py", img_url]
))
img_added = False
if result and result[0].get("base64"):
raw = base64.b64decode(result[0]["base64"].split(",", 1)[-1])
img_stream = BytesIO(raw)
try:
s5.shapes.add_picture(img_stream, Inches(9.5), Inches(1.4), Inches(3.6), Inches(4.0))
img_added = True
except Exception:
pass
# Left panel investigations
add_rect(s5, 0.3, 1.3, 8.8, 0.42, MID_BLUE)
add_text(s5, "LABORATORY & IMAGING INVESTIGATIONS", 0.3, 1.3, 8.8, 0.42,
font_size=14, bold=True, color=WHITE, align=PP_ALIGN.CENTER,
v_anchor=MSO_ANCHOR.MIDDLE)
lab = [
"CBC: Anaemia, lymphocytosis (chronic disease pattern)",
"ESR: Elevated (but NORMAL in >50% of patients!)",
"CRP: Mildly elevated | Hypoproteinaemia common",
"Mantoux / Tuberculin skin test (not useful for reactivation)",
"IGRA (Interferon-Gamma Release Assay): more specific",
"",
"BIOPSY (GOLD STANDARD): Culture + sensitivity (MDR TB)",
"PCR / Rapid molecular testing (GeneXpert): detects drug resistance",
"CT-guided / fluoroscopic percutaneous needle biopsy preferred",
]
add_bullets(s5, lab, 0.4, 1.85, 8.6, 2.6, font_size=14)
# Imaging sub-section
add_rect(s5, 0.3, 4.6, 8.8, 0.38, RGBColor(0x2E, 0x7D, 0x32))
add_text(s5, "IMAGING FINDINGS", 0.3, 4.6, 8.8, 0.38, font_size=13, bold=True,
color=WHITE, align=PP_ALIGN.CENTER, v_anchor=MSO_ANCHOR.MIDDLE)
imaging = [
"X-RAY: Disc space narrowing, osteopenia, vertebral collapse, gibbus deformity",
"CT Scan: Extent of bone destruction, sequestra, calcified abscess walls",
"MRI (GOLD STANDARD): Epidural extension, cord compression, abscess extent; T2 hyperintense paraspinal signal",
"MRI contrast: Enhancing granulation tissue, rim-enhancing abscesses",
]
add_bullets(s5, imaging, 0.4, 5.1, 8.6, 2.1, font_size=13)
if img_added:
add_text(s5, "MRI: Kyphosis + epidural\ncompression in Pott's disease\n(X-ray shows gibbus deformity)",
9.5, 5.45, 3.7, 1.0, font_size=10, color=MID_BLUE,
align=PP_ALIGN.CENTER, italic=True)
add_footer(s5)
# ─────────────────────────────────────────────────────────────────────────────
# SLIDE 6 – MEDICAL MANAGEMENT
# ─────────────────────────────────────────────────────────────────────────────
s6 = prs.slides.add_slide(blank_layout)
make_slide_header(s6, "Medical Management",
"Anti-tubercular Therapy (ATT) — First Line Treatment")
# Regimen box
add_rect(s6, 0.3, 1.3, 12.6, 0.42, RGBColor(0x1B, 0x5E, 0x20))
add_text(s6, "STANDARD WHO ATT REGIMEN FOR SPINAL TB", 0.3, 1.3, 12.6, 0.42,
font_size=15, bold=True, color=WHITE, align=PP_ALIGN.CENTER,
v_anchor=MSO_ANCHOR.MIDDLE)
phase_data = [
("INTENSIVE PHASE (2 months)", [
"Isoniazid (H) — 5 mg/kg/day (max 300 mg/day)",
"Rifampicin (R) — 10 mg/kg/day (max 600 mg/day)",
"Pyrazinamide (Z) — 25 mg/kg/day",
"Ethambutol (E) — 15 mg/kg/day",
"Pyridoxine (B6) supplementation with INH",
], 0.3, 2.0, 5.8),
("CONTINUATION PHASE (4–18 months)", [
"Standard cases: 6 months total (2HRZE + 4HR)",
"Normal immune function: minimum 6 months",
"HIV co-infection / MDR TB: 18–24 months",
"Cord compression / neurological deficit: 12–18 months",
"Drug-resistant TB: specialised second-line regimens",
], 6.7, 2.0, 5.8),
]
for (title, items, bx, by, bw) in phase_data:
add_rect(s6, bx, by, bw, 0.4, MID_BLUE)
add_text(s6, title, bx, by, bw, 0.4, font_size=13, bold=True,
color=WHITE, align=PP_ALIGN.CENTER, v_anchor=MSO_ANCHOR.MIDDLE)
add_bullets(s6, ["✓ " + i for i in items], bx+0.1, by+0.48, bw-0.2, 2.5,
font_size=14)
# Additional medical points
add_rect(s6, 0.3, 5.05, 12.6, 0.38, MID_BLUE)
add_text(s6, "ADJUNCTS & MONITORING", 0.3, 5.05, 12.6, 0.38, font_size=13,
bold=True, color=WHITE, align=PP_ALIGN.CENTER, v_anchor=MSO_ANCHOR.MIDDLE)
add_text = s6.shapes.add_textbox(Inches(0.4), Inches(5.5), Inches(12.5), Inches(1.7))
tf = add_text.text_frame
tf.word_wrap = True
lines = [
("Corticosteroids: ", "short course for spinal cord oedema/epidural granuloma | Bracing/orthosis: spinal support during healing"),
("Nutritional support: ", "protein-calorie supplementation essential | Bed rest until pain subsides"),
("Monitoring: ", "LFTs monthly (hepatotoxicity from INH/RIF/PZA), visual acuity for Ethambutol, ESR/CRP every 3 months"),
("Outcome: ", "80% achieve bony fusion with medical management alone; neurological deficits often improve"),
]
first = True
for bold_part, rest in lines:
p = tf.paragraphs[0] if first else tf.add_paragraph()
first = False
r1 = p.add_run(); r1.text = bold_part; r1.font.bold = True; r1.font.size = Pt(13); r1.font.color.rgb = MID_BLUE; r1.font.name = "Calibri"
r2 = p.add_run(); r2.text = rest; r2.font.size = Pt(13); r2.font.color.rgb = DARK_TEXT; r2.font.name = "Calibri"
add_footer(s6)
# ─────────────────────────────────────────────────────────────────────────────
# SLIDE 7 – SURGICAL INDICATIONS & APPROACHES
# ─────────────────────────────────────────────────────────────────────────────
s7 = prs.slides.add_slide(blank_layout)
make_slide_header(s7, "Surgical Treatment",
"Indications, Approaches & Preoperative Preparation")
add_two_col_bullets(s7,
"INDICATIONS FOR SURGERY",
[
"Neurological deficit (cord compression)",
"Severe progressive kyphosis",
"Pain due to spinal instability",
"Failure of medical therapy",
"Large paraspinal or epidural abscess",
">4 vertebral levels involved",
"Drug-resistant tuberculosis",
"Diagnostic biopsy when percutaneous fails",
],
"PREOPERATIVE PREPARATION",
[
"ATT for at least 2–4 weeks preoperatively",
"Nutritional optimisation (protein, vitamins)",
"Manage comorbidities (HT, DM, HIV)",
"MRI with & without contrast of entire spine",
"Plain radiographs (upright) for deformity",
"Identify all levels (skip lesions common)",
"Assess abscess extent & cord compression",
"Anaesthetic & cardiopulmonary evaluation",
],
y_start=1.35, col_h=4.3, font_size=15,
)
# Bottom band: approach summary
add_rect(s7, 0.3, 5.95, 12.6, 0.38, RGBColor(0x6A, 0x1B, 0x9A))
add_text(s7, "SURGICAL APPROACHES — OVERVIEW", 0.3, 5.95, 12.6, 0.38,
font_size=13, bold=True, color=WHITE, align=PP_ALIGN.CENTER,
v_anchor=MSO_ANCHOR.MIDDLE)
approach_text = ("Posterior-only (fewer perioperative complications, shorter OR time, equivalent neurological recovery) | "
"Anterior-only (direct neural decompression, anterior abscess drainage) | "
"Combined anterior + posterior (faster abscess healing, best kyphosis correction)")
add_text_box = s7.shapes.add_textbox(Inches(0.4), Inches(6.4), Inches(12.5), Inches(0.7))
tf7 = add_text_box.text_frame
tf7.word_wrap = True
p7 = tf7.paragraphs[0]
r7 = p7.add_run()
r7.text = approach_text
r7.font.size = Pt(13)
r7.font.color.rgb = DARK_TEXT
r7.font.name = "Calibri"
add_footer(s7)
# ─────────────────────────────────────────────────────────────────────────────
# SLIDE 8 – SURGICAL TECHNIQUES
# ─────────────────────────────────────────────────────────────────────────────
s8 = prs.slides.add_slide(blank_layout)
make_slide_header(s8, "Surgical Techniques",
"Debridement, Decompression, Reconstruction & Stabilisation")
# Download surgical image
img2_url = "https://cdn.orris.care/cdss_images/pmc_clinical_VQA_3fcb96d07d9c16a5810ff1a2e4bd59f4639adc9c41de8da46c538bde265788b1.jpg"
result2 = json.loads(subprocess.check_output(
["python", "/tmp/skills/shared/scripts/fetch_images.py", img2_url]
))
if result2 and result2[0].get("base64"):
raw2 = base64.b64decode(result2[0]["base64"].split(",", 1)[-1])
img2_stream = BytesIO(raw2)
try:
s8.shapes.add_picture(img2_stream, Inches(9.5), Inches(1.35), Inches(3.6), Inches(3.5))
except Exception:
pass
tech_items = [
("DEBRIDEMENT", [
"Radical excision of caseous tissue, necrotic bone, pus",
"Resection of sequestrated disc and bone fragments",
"Thorough irrigation (dilute povidone-iodine)",
"Preserve as much healthy bone as possible",
]),
("DECOMPRESSION", [
"Anterior decompression for anterior cord compression",
"Posterior laminectomy (rarely alone — destabilising)",
"Costotransversectomy / transpedicular approach",
"Gibbus excision for late-onset cord kinking",
]),
("RECONSTRUCTION", [
"Structural autograft (fibula/iliac crest): gold standard",
"Structural allograft or expandable titanium cage",
"Anterior column support critical to prevent collapse",
"Posterior morselized autograft for fusion",
]),
("INSTRUMENTATION", [
"Pedicle screw-rod systems: construct 2 levels above & below",
"Short constructs acceptable for mild deformity",
"Titanium implants preferred over stainless steel",
"Intraoperative kyphosis correction: rod contouring + table position",
]),
]
for idx, (sec_title, points) in enumerate(tech_items):
col = idx % 2
row = idx // 2
bx = 0.3 + col * 4.55
by = 1.35 + row * 2.7
bw = 4.3
bh = 2.55
add_rect(s8, bx, by, bw, 0.38, RGBColor(0x00, 0x5F, 0x73))
add_text(s8, sec_title, bx, by, bw, 0.38, font_size=13, bold=True,
color=WHITE, align=PP_ALIGN.CENTER, v_anchor=MSO_ANCHOR.MIDDLE)
add_bullets(s8, ["• " + p for p in points], bx+0.1, by+0.45, bw-0.15, bh-0.45,
font_size=13, color=DARK_TEXT)
add_text(s8, "Pre/post-op X-ray: anterior decompression\n+ autograft for gibbus correction",
9.6, 4.9, 3.5, 0.8, font_size=10, color=MID_BLUE,
align=PP_ALIGN.CENTER, italic=True)
add_footer(s8)
# ─────────────────────────────────────────────────────────────────────────────
# SLIDE 9 – COMPLICATIONS & DIFFERENTIAL DIAGNOSIS
# ─────────────────────────────────────────────────────────────────────────────
s9 = prs.slides.add_slide(blank_layout)
make_slide_header(s9, "Complications & Differential Diagnosis",
"Sequelae of Pott's Disease and Key Differentials")
add_two_col_bullets(s9,
"COMPLICATIONS",
[
"Pott's paraplegia (early-onset: active disease)",
"Late-onset paraplegia (healed disease: mechanical kinking)",
"Progressive kyphotic deformity (gibbus)",
"Chronic discharging sinuses",
"Cold abscess: psoas, retropharyngeal, paraspinal",
"Bladder/bowel dysfunction",
"Pulmonary compromise (severe thoracic kyphosis)",
"Panvertebral disease: destruction of all elements",
"Drug-resistant TB: MDR-TB, XDR-TB",
"ATT hepatotoxicity, optic neuritis (ethambutol)",
],
"DIFFERENTIAL DIAGNOSIS",
[
"Pyogenic vertebral osteomyelitis (DISC involved!)",
"Brucella spondylitis",
"Fungal spondylitis (Aspergillus, Candida)",
"Spinal metastasis (lung, breast, prostate, thyroid)",
"Primary bone tumours: osteosarcoma, chondrosarcoma",
"Multiple myeloma / plasmacytoma",
"Lymphoma",
"Eosinophilic granuloma (LCH)",
"Aneurysmal bone cyst",
"Scheuermann's disease",
"Sarcoidosis",
],
y_start=1.35, col_h=4.8, font_size=14,
)
# Key differentiating clue
add_rect(s9, 0.3, 6.5, 12.6, 0.42, ACCENT)
add_text(s9, "KEY DIFFERENTIATOR: TB SPONDYLITIS spares the intervertebral disc (in adults) & has cold abscess; PYOGENIC SPONDYLITIS destroys disc early & has hot abscess",
0.4, 6.5, 12.4, 0.42, font_size=12, bold=True, color=WHITE,
align=PP_ALIGN.CENTER, v_anchor=MSO_ANCHOR.MIDDLE)
add_footer(s9)
# ─────────────────────────────────────────────────────────────────────────────
# SLIDE 10 – PROGNOSIS, OUTCOME & SUMMARY
# ─────────────────────────────────────────────────────────────────────────────
s10 = prs.slides.add_slide(blank_layout)
make_slide_header(s10, "Prognosis, Outcomes & Key Points",
"Summary for the Clinician")
# Add MRI image
img3_url = "https://cdn.orris.care/cdss_images/pmc_clinical_VQA_5136a31dbef486b36e10d00a36366c257d0bc19687e94ea82732a3677a244f40.jpg"
result3 = json.loads(subprocess.check_output(
["python", "/tmp/skills/shared/scripts/fetch_images.py", img3_url]
))
if result3 and result3[0].get("base64"):
raw3 = base64.b64decode(result3[0]["base64"].split(",", 1)[-1])
img3_stream = BytesIO(raw3)
try:
s10.shapes.add_picture(img3_stream, Inches(9.6), Inches(1.35), Inches(3.5), Inches(4.2))
except Exception:
pass
prognosis = [
"◆ 80% achieve bony fusion with medical management alone",
"◆ Early diagnosis + ATT = generally good prognosis",
"◆ Neurological deficits often improve with treatment",
"◆ Deformity occurs early — worse in children (physis involvement)",
"◆ Thoracic/thoracolumbar: ~20° kyphosis common",
"◆ Lumbar: only ~3° per level collapse",
"◆ Drug-resistant cases have higher morbidity; surgical benefit greater",
]
key_points = [
"◆ Think Pott's in any patient with back pain + constitutional symptoms from endemic area",
"◆ MRI with & without contrast = imaging of choice",
"◆ Biopsy mandatory before starting ATT (rule out MDR-TB)",
"◆ Medical treatment = cornerstone (95% of cases respond)",
"◆ Surgery for: neuro deficit, instability, kyphosis, failure of ATT",
"◆ Posterior-only approach now preferred for most cases",
"◆ Construct: 2 levels above + below affected segment",
]
add_rect(s10, 0.3, 1.35, 8.9, 0.4, MID_BLUE)
add_text(s10, "PROGNOSIS & OUTCOMES", 0.3, 1.35, 8.9, 0.4, font_size=14,
bold=True, color=WHITE, align=PP_ALIGN.CENTER, v_anchor=MSO_ANCHOR.MIDDLE)
add_bullets(s10, prognosis, 0.4, 1.85, 8.7, 2.5, font_size=14)
add_rect(s10, 0.3, 4.45, 8.9, 0.4, ACCENT)
add_text(s10, "KEY CLINICAL TAKE-AWAY POINTS", 0.3, 4.45, 8.9, 0.4, font_size=14,
bold=True, color=WHITE, align=PP_ALIGN.CENTER, v_anchor=MSO_ANCHOR.MIDDLE)
add_bullets(s10, key_points, 0.4, 4.93, 8.7, 2.4, font_size=13)
add_text(s10, "MRI: TB spine — cold abscess\n+ calcification + cord compression",
9.7, 5.65, 3.3, 0.8, font_size=10, color=MID_BLUE,
align=PP_ALIGN.CENTER, italic=True)
add_footer(s10)
# ─────────────────────────────────────────────────────────────────────────────
# SLIDE 11 – REFERENCES
# ─────────────────────────────────────────────────────────────────────────────
s11 = prs.slides.add_slide(blank_layout)
make_slide_header(s11, "References",
"Key Sources")
refs = [
"1. Campbell's Operative Orthopaedics, 15th Edition (2026) — Chapter 49: Infections of the Spine",
"2. Adams and Victor's Principles of Neurology, 12th Edition — Tuberculous Myelitis",
"3. Pott P. Remarks on that Kind of Palsy of the Lower Limbs. London, 1779.",
"4. WHO Global Tuberculosis Report 2023 — WHO Press",
"5. Kumar V et al. Tuberculosis of the spine and drug resistance: a review. Neurosurg Rev. 2022;45:217",
"6. Ahuja K et al. Variability in management practices in spinal tuberculosis. Asian Spine J. 2022;16(1):9",
"7. Jain AK et al. Correlation of canal encroachment with neurological deficit in TB spine. Int Orthop.",
"8. Govender S. Spinal infections. J Bone Joint Surg Br. 2005;87:1454",
"9. Medical Research Council Working Party on Tuberculosis of the Spine. J Bone Joint Surg Br. 1978;60-B:163",
]
for i, ref in enumerate(refs):
y_pos = 1.4 + i * 0.56
add_text(s11, ref, 0.4, y_pos, 12.5, 0.52, font_size=13,
color=DARK_TEXT, align=PP_ALIGN.LEFT)
add_footer(s11)
# ── Save ──────────────────────────────────────────────────────────────────────
out_path = "/tmp/workspace/potts-spine-ppt/Potts_Spine_PG_Presentation.pptx"
buf = BytesIO()
prs.save(buf)
with open(out_path, "wb") as f:
f.write(buf.getvalue())
print(f"DONE: {out_path}")
cd /tmp/workspace/potts-spine-ppt && python create_ppt.py 2>&1
find /tmp/skills -name "fetch_images.py" 2>/dev/null; ls /tmp/skills/ 2>/dev/null
~/potts-spine-ppt/create_ppt.py
Successfully replaced 1 instance(s) of the string in '/tmp/workspace/potts-spine-ppt/create_ppt.py'
~/potts-spine-ppt/create_ppt.py
Successfully replaced 1 instance(s) of the string in '/tmp/workspace/potts-spine-ppt/create_ppt.py'
~/potts-spine-ppt/create_ppt.py
Successfully replaced 1 instance(s) of the string in '/tmp/workspace/potts-spine-ppt/create_ppt.py'
~/potts-spine-ppt/create_ppt.py
Successfully replaced 1 instance(s) of the string in '/tmp/workspace/potts-spine-ppt/create_ppt.py'
python create_ppt.py execution step could not be completed because the tool budget ran out just after the last edit. Here is everything you need to generate the file right now:/tmp/workspace/potts-spine-ppt/create_ppt.pyrequests-based downloader (no missing helper scripts). To finish generating the PPTX, just reply "continue" and I will run the script in a fresh session and deliver the download link.| Slide | Title | Key Content |
|---|---|---|
| 1 | Title Slide | "POTT'S SPINE - Tuberculosis of the Spine" with historical quote, dark navy design |
| 2 | Introduction & Epidemiology | 3000 BCE origins, Pott 1779, >10M global TB cases/yr, thoracolumbar predominance |
| 3 | Pathology & Pathogenesis | Route of spread (Batson's plexus), histopathology (caseating granulomas, disc sparing in adults), disease progression to gibbus |
| 4 | Clinical Features | Constitutional symptoms, back pain (70%), Pott's paraplegia, Frankel grading, late-onset kinking |
| 5 | Investigations & Imaging | ESR normal in >50%, PCR/GeneXpert, MRI with contrast as gold standard, embedded X-ray/MRI image |
| 6 | Medical Management | 2HRZE + 4HR regimen, MDR-TB duration, corticosteroids, LFT monitoring, 80% fusion rate |
| 7 | Surgical Indications & Approaches | 8 clear surgical indications, preoperative preparation checklist, approach comparison table |
| 8 | Surgical Techniques | Debridement, decompression, reconstruction (fibula graft/titanium cage), pedicle screw instrumentation; surgical X-ray image embedded |
| 9 | Complications & Differential Diagnosis | Pott's paraplegia, cold abscess, MDR-TB; differentiation from pyogenic spondylitis highlighted in red banner |
| 10 | Prognosis & Key Points | 80% fusion, kyphosis data, clinical take-away pearls; MRI image embedded |
| 11 | References | Campbell's 15th Ed, WHO TB Report, Kumar et al. 2022, MRC Working Party, Jain AK et al. |
.pptx download link.Continue
cd /tmp/workspace/potts-spine-ppt && python create_ppt.py 2>&1
~/potts-spine-ppt/create_ppt.py
Successfully replaced 1 instance(s) of the string in '/tmp/workspace/potts-spine-ppt/create_ppt.py'
cd /tmp/workspace/potts-spine-ppt && python create_ppt.py 2>&1
ls -lh /tmp/workspace/potts-spine-ppt/Potts_Spine_PG_Presentation.pptx
Potts Spine PG Presentation
Presentation · PPTX
| # | Slide | Highlights |
|---|---|---|
| 1 | Title Slide | Dark navy theme, gold subtitle, historical Pott quote (1779) |
| 2 | Introduction & Epidemiology | Two-column layout — 3000 BCE origins, >10M global TB cases/yr, spine = 50% of musculoskeletal TB |
| 3 | Pathology & Pathogenesis | Three-panel layout — route of spread (Batson's plexus), histopathology (caseating granulomas, disc sparing), disease progression to gibbus |
| 4 | Clinical Features | Symptoms/signs + Pott's paraplegia, Frankel grading, late-onset cord kinking |
| 5 | Investigations & Imaging | Labs (ESR normal in >50%!), GeneXpert/PCR, MRI as gold standard + embedded X-ray/MRI image |
| 6 | Medical Management | 2HRZE + 4HR regimen table, MDR-TB durations, monitoring (LFTs, vision), 80% fusion rate |
| 7 | Surgical Indications & Approaches | 8 clear indications, preoperative checklist, posterior vs anterior vs combined approach comparison |
| 8 | Surgical Techniques | Debridement, decompression, reconstruction (fibula graft/titanium cage), pedicle screw instrumentation + surgical X-ray image |
| 9 | Complications & Differentials | Pott's paraplegia, cold abscess, MDR-TB; red banner highlighting disc-sparing as key TB vs pyogenic differentiator |
| 10 | Prognosis & Key Points | 80% fusion, kyphosis data per level, 7 clinical take-away pearls + MRI image |
| 11 | References | Campbell's 15th Ed 2026, WHO TB Report, Kumar 2022, MRC Working Party, Jain AK et al. |