hey

Hey! How can I help you today?

help me with anatomy i want finish every thing in 2 weeks i already have idea about everything its just like a revision

Asking for Preferences
Here's your 2-week MBBS Anatomy Revision Plan - all regions, structured for someone who already knows the basics and just needs to lock it in.

2-Week Anatomy Revision Plan (MBBS 1st Year)

Ground Rules

  • 2 sessions/day - morning (2 hrs) + evening (1 hr review/quiz)
  • Each day = 1 main topic + evening recall/questions
  • You tell me when you're on a topic and I'll quiz you or explain anything

WEEK 1 - Gross Anatomy (Regional)

DayMorning - StudyEvening - Review
Day 1Upper Limb - bones, joints (shoulder, elbow, wrist)Quiz: brachial plexus roots & branches
Day 2Upper Limb - muscles, nerve supply, dermatomesQuiz: muscle actions + clinical (wrist drop, claw hand, etc.)
Day 3Lower Limb - bones, joints (hip, knee, ankle)Quiz: femoral triangle, popliteal fossa contents
Day 4Lower Limb - muscles, lumbosacral plexus, dermatomesQuiz: common nerve injuries (foot drop, etc.)
Day 5Thorax - heart, great vessels, mediastinumQuiz: heart borders, surface anatomy, coronary arteries
Day 6Thorax - lungs, pleura + Abdomen - peritoneum, GI tractQuiz: lung segments, peritoneal vs retroperitoneal
Day 7Rest / Weak spots reviewLight revision of Days 1-6

WEEK 2 - Head & Neck + Neuro + Histology/Embryology

DayMorning - StudyEvening - Review
Day 8Abdomen - liver, pancreas, spleen, kidneysQuiz: porta hepatis, pancreatic ducts, suprarenal glands
Day 9Pelvis & Perineum - pelvic floor, bladder, uterus/prostateQuiz: inguinal canal, femoral hernia vs inguinal
Day 10Head & Neck - skull, scalp, face, parotid, TMJQuiz: CN branches, dangerous area of face
Day 11Head & Neck - pharynx, larynx, thyroid, triangles of neckQuiz: recurrent laryngeal nerve, carotid sheath
Day 12Neuroanatomy - spinal cord, brainstem, cerebellumQuiz: tracts (DCML, spinothalamic), cerebellar signs
Day 13Neuroanatomy - cerebrum, cranial nerves, ventricles/CSFQuiz: cranial nerve exam points, circle of Willis
Day 14Full mock revision - High-yield clinicals + past QsCover all weak areas flagged during the week

How I Can Help Each Day

  1. Study with you - paste a topic and I'll give you a tight, high-yield summary from anatomy textbooks
  2. Quiz you - I'll ask 5-10 MCQs or short-answer questions on the day's topic
  3. Explain on demand - stuck on a nerve plexus, a structure, a clinical correlation? Just ask

To get started: Tell me which day/topic you want to begin with, or just say something like "quiz me on the brachial plexus" or "explain the inguinal canal" and we'll go from there.

Generate a quick reference PDF on high-yield anatomy

Reading File
Running Command

mkdir -p /home/daytona/workspace/anatomy-pdf && ls /home/daytona/workspace/anato…

Writing File

~/anatomy-pdf/generate_anatomy_pdf.py

from reportlab.lib.pagesizes import A4
from reportlab.lib import colors
from reportlab.lib.styles import getSampleStyleSheet, ParagraphStyle
from reportlab.lib.units import mm, cm
from reportlab.platypus import (
    SimpleDocTemplate, Paragraph, Spacer, Table, TableStyle,
    HRFlowable, PageBreak, KeepTogether
)
from reportlab.lib.enums import TA_CENTER, TA_LEFT
from reportlab.pdfgen import canvas
from reportlab.platypus.doctemplate import PageTemplate, BaseDocTemplate
from reportlab.platypus.frames import Frame

OUTPUT = "/home/daytona/workspace/anatomy-pdf/HighYield_Anatomy_QuickRef.pdf"

# ── Colour palette ──────────────────────────────────────────────────────────
NAVY   = colors.HexColor("#1a2c5b")
TEAL   = colors.HexColor("#0d7a8a")
AMBER  = colors.HexColor("#e07b1a")
LGREY  = colors.HexColor("#f0f4f8")
WHITE  = colors.white
BLACK  = colors.black
DKGREY = colors.HexColor("#333333")

# ── Custom document with header/footer ──────────────────────────────────────
class AnatomyDoc(BaseDocTemplate):
    def __init__(self, filename, **kwargs):
        super().__init__(filename, **kwargs)
        frame = Frame(1.5*cm, 2*cm, 18*cm, 25.5*cm, id='normal')
        template = PageTemplate(id='main', frames=[frame], onPage=self._draw_page)
        self.addPageTemplates([template])

    def _draw_page(self, canvas_obj, doc):
        canvas_obj.saveState()
        # Header bar
        canvas_obj.setFillColor(NAVY)
        canvas_obj.rect(0, A4[1]-1.5*cm, A4[0], 1.5*cm, fill=1, stroke=0)
        canvas_obj.setFillColor(WHITE)
        canvas_obj.setFont("Helvetica-Bold", 10)
        canvas_obj.drawString(1.5*cm, A4[1]-1.0*cm, "HIGH-YIELD ANATOMY  |  MBBS Quick Reference")
        canvas_obj.setFont("Helvetica", 8)
        canvas_obj.drawRightString(A4[0]-1.5*cm, A4[1]-1.0*cm, f"Page {doc.page}")
        # Footer bar
        canvas_obj.setFillColor(NAVY)
        canvas_obj.rect(0, 0, A4[0], 1.2*cm, fill=1, stroke=0)
        canvas_obj.setFillColor(WHITE)
        canvas_obj.setFont("Helvetica-Oblique", 7)
        canvas_obj.drawCentredString(A4[0]/2, 0.45*cm, "For revision use only  |  July 2026")
        canvas_obj.restoreState()

# ── Styles ───────────────────────────────────────────────────────────────────
styles = getSampleStyleSheet()

TITLE_STYLE = ParagraphStyle("title", fontName="Helvetica-Bold", fontSize=26,
    textColor=WHITE, alignment=TA_CENTER, spaceAfter=4)
SUBTITLE_STYLE = ParagraphStyle("subtitle", fontName="Helvetica-Oblique", fontSize=12,
    textColor=colors.HexColor("#cce0ff"), alignment=TA_CENTER, spaceAfter=0)
H1 = ParagraphStyle("h1", fontName="Helvetica-Bold", fontSize=13,
    textColor=WHITE, backColor=NAVY, leftIndent=-4, rightIndent=-4,
    spaceAfter=6, spaceBefore=14, leading=18,
    borderPadding=(4,6,4,6))
H2 = ParagraphStyle("h2", fontName="Helvetica-Bold", fontSize=10,
    textColor=TEAL, spaceBefore=8, spaceAfter=3)
BODY = ParagraphStyle("body", fontName="Helvetica", fontSize=8.5,
    textColor=DKGREY, leading=13, spaceAfter=2)
BULLET = ParagraphStyle("bullet", fontName="Helvetica", fontSize=8.5,
    textColor=DKGREY, leading=13, leftIndent=12, bulletIndent=2, spaceAfter=1)
CLINICAL = ParagraphStyle("clinical", fontName="Helvetica-Oblique", fontSize=8,
    textColor=colors.HexColor("#8b0000"), leftIndent=8, leading=12, spaceAfter=2)
BOLD_CELL = ParagraphStyle("boldcell", fontName="Helvetica-Bold", fontSize=8, textColor=WHITE)
REG_CELL  = ParagraphStyle("regcell",  fontName="Helvetica", fontSize=8, textColor=DKGREY, leading=11)

def h1(text):
    return Paragraph(f"  {text}", H1)

def h2(text):
    return Paragraph(text, H2)

def body(text):
    return Paragraph(text, BODY)

def bullet(text):
    return Paragraph(f"• {text}", BULLET)

def clinical(text):
    return Paragraph(f"★ Clinical: {text}", CLINICAL)

def space(n=4):
    return Spacer(1, n*mm)

def hr():
    return HRFlowable(width="100%", thickness=0.5, color=TEAL, spaceAfter=4, spaceBefore=2)

def table(headers, rows, col_widths=None):
    """Generic shaded table."""
    header_row = [Paragraph(h, BOLD_CELL) for h in headers]
    data = [header_row]
    for i, row in enumerate(rows):
        data.append([Paragraph(str(c), REG_CELL) for c in row])
    if col_widths is None:
        col_widths = [18*cm / len(headers)] * len(headers)
    t = Table(data, colWidths=col_widths, repeatRows=1)
    style = TableStyle([
        ("BACKGROUND", (0,0), (-1,0), TEAL),
        ("ROWBACKGROUNDS", (0,1), (-1,-1), [LGREY, WHITE]),
        ("GRID", (0,0), (-1,-1), 0.3, colors.HexColor("#bbccd8")),
        ("VALIGN", (0,0), (-1,-1), "TOP"),
        ("TOPPADDING", (0,0), (-1,-1), 4),
        ("BOTTOMPADDING", (0,0), (-1,-1), 4),
        ("LEFTPADDING", (0,0), (-1,-1), 5),
    ])
    t.setStyle(style)
    return t

# ══════════════════════════════════════════════════════════════════════════════
# CONTENT
# ══════════════════════════════════════════════════════════════════════════════
story = []

# ── COVER ────────────────────────────────────────────────────────────────────
def cover_page(canvas_obj, doc):
    """Full-bleed cover - called via onFirstPage."""
    pass  # handled inline with a coloured table block

# Title block as a styled table
cover_data = [[Paragraph("HIGH-YIELD ANATOMY", TITLE_STYLE)],
              [Paragraph("MBBS First Year  |  Quick Reference Guide", SUBTITLE_STYLE)],
              [Paragraph("All Regions  •  Clinical Pearls  •  Key Tables", SUBTITLE_STYLE)]]
cover_table = Table(cover_data, colWidths=[18*cm])
cover_table.setStyle(TableStyle([
    ("BACKGROUND", (0,0), (-1,-1), NAVY),
    ("TOPPADDING", (0,0), (-1,-1), 12),
    ("BOTTOMPADDING", (0,0), (-1,-1), 8),
    ("LEFTPADDING", (0,0), (-1,-1), 8),
    ("RIGHTPADDING", (0,0), (-1,-1), 8),
    ("LINEBELOW", (0,-1), (-1,-1), 3, AMBER),
]))
story += [space(8), cover_table, space(6)]
story.append(body("This reference card summarises the highest-yield anatomy topics for MBBS "
                  "first-year examinations. Use it alongside your 2-week revision plan. "
                  "Each section includes key facts, nerve supplies, clinical correlations, "
                  "and memory aids."))
story.append(PageBreak())

# ════════════════════════════════════════════════════════════════════════════
# 1. UPPER LIMB
# ════════════════════════════════════════════════════════════════════════════
story.append(h1("1. UPPER LIMB"))
story.append(space(2))

story.append(h2("Brachial Plexus - Roots to Branches"))
story.append(table(
    ["Component", "Roots", "Key Branches / Nerves"],
    [
        ["Roots", "C5-C8, T1", "Dorsal scapular (C5), Long thoracic (C5-7)"],
        ["Trunks", "Upper (C5-6), Middle (C7), Lower (C8-T1)", "Suprascapular (upper trunk)"],
        ["Divisions", "3 Anterior + 3 Posterior", "—"],
        ["Cords", "Lateral, Posterior, Medial", "Named by relation to axillary artery"],
        ["Terminal Branches", "5 nerves", "Musculocutaneous, Axillary, Radial, Median, Ulnar"],
    ],
    col_widths=[4*cm, 6*cm, 8*cm]
))
story.append(space(2))

story.append(h2("Key Nerve Injury Patterns"))
story.append(table(
    ["Nerve", "Root", "Injury Cause", "Deformity / Deficit"],
    [
        ["Axillary (C5-6)", "C5,6", "Surgical neck humerus fracture / dislocation", "Flattened deltoid; loss of shoulder abduction >15°"],
        ["Radial (C5-T1)", "C5-T1", "Midshaft humerus fracture / Saturday night palsy", "Wrist drop; loss of extension fingers & wrist"],
        ["Median (C6-T1)", "C6-T1", "Supracondylar fracture (kids); carpal tunnel", "Ape hand; thenar wasting; Pope's blessing sign"],
        ["Ulnar (C8-T1)", "C8,T1", "Medial epicondyle fracture; cubital tunnel", "Claw hand (ring & little); froment sign"],
        ["Musculocutaneous (C5-7)", "C5-7", "Coracobrachialis piercing injury", "Weak elbow flexion; loss of lat forearm sensation"],
        ["Long Thoracic (C5-7)", "C5-7", "Mastectomy / axillary dissection", "Winged scapula"],
    ],
    col_widths=[3.5*cm, 1.8*cm, 5*cm, 7.7*cm]
))
story.append(clinical("Erb's Palsy (C5-C6 injury): 'Waiter's tip' position - arm adducted, medially rotated, forearm pronated."))
story.append(clinical("Klumpke's Palsy (C8-T1): Claw hand + Horner syndrome (if T1 ramus communicans involved)."))

story.append(h2("Rotator Cuff - SITS"))
story.append(table(
    ["Muscle", "Nerve", "Action", "Common Pathology"],
    [
        ["Supraspinatus", "Suprascapular (C4-6)", "Initiates abduction (0-15°)", "Most commonly torn (supraspinatus tendon)"],
        ["Infraspinatus", "Suprascapular (C4-6)", "Lateral rotation", "Torn in shoulder dislocation"],
        ["Teres Minor", "Axillary (C5-6)", "Lateral rotation", "—"],
        ["Subscapularis", "Upper/Lower subscapular", "Medial rotation", "Least commonly torn"],
    ],
    col_widths=[3.5*cm, 4.5*cm, 4*cm, 6*cm]
))
story.append(PageBreak())

# ════════════════════════════════════════════════════════════════════════════
# 2. LOWER LIMB
# ════════════════════════════════════════════════════════════════════════════
story.append(h1("2. LOWER LIMB"))
story.append(space(2))

story.append(h2("Lumbar & Sacral Plexus Key Nerves"))
story.append(table(
    ["Nerve", "Root", "Motor", "Sensory", "Injury Cause"],
    [
        ["Femoral", "L2-4", "Quadriceps (knee extension)", "Medial leg/foot", "Psoas haematoma; hip arthroplasty"],
        ["Obturator", "L2-4", "Hip adductors", "Medial thigh", "Pelvic surgery; obturator hernia"],
        ["Sciatic", "L4-S3", "Hamstrings + all below knee", "Posterior thigh + leg/foot", "Posterior hip dislocation; IM injection"],
        ["Common Fibular", "L4-S2", "Dorsiflexors, evertors", "Lateral leg, dorsum foot", "Fibular neck fracture"],
        ["Tibial", "L4-S3", "Plantar flexors, invertors", "Plantar foot", "Tarsal tunnel syndrome"],
        ["Superior Gluteal", "L4-S1", "Gluteus medius & minimus", "—", "Hip arthroplasty → Trendelenburg gait"],
        ["Inferior Gluteal", "L5-S2", "Gluteus maximus", "—", "Posterior hip surgery"],
    ],
    col_widths=[3.2*cm, 1.6*cm, 4.5*cm, 3.8*cm, 4.9*cm]
))
story.append(clinical("Foot drop = common fibular nerve palsy; patient high-steps gait, cannot dorsiflex or evert."))
story.append(clinical("Trendelenburg sign: pelvis drops on unsupported side → superior gluteal nerve lesion ipsilateral."))

story.append(h2("Femoral Triangle & Femoral Canal"))
story.append(body("Boundaries: Inguinal ligament (superior) | Sartorius (lateral) | Adductor longus (medial) | Floor: iliopsoas + pectineus."))
story.append(body("Contents (lateral→medial): Nerve - Artery - Vein - Empty space - Lymphatics  →  mnemonic NAVEL"))
story.append(body("Femoral canal: most medial compartment of femoral sheath; contains lymphatics + fat; ring = site of femoral hernia."))
story.append(clinical("Femoral hernia: lateral to pubic tubercle, below inguinal ligament. More common in women. High risk of strangulation."))

story.append(h2("Hip Joint"))
story.append(body("Type: Synovial ball-and-socket. Head of femur (2/3 sphere) in acetabulum deepened by labrum."))
story.append(body("Blood supply to femoral head: Medial circumflex femoral artery (main) → at risk in subcapital fracture → avascular necrosis."))
story.append(clinical("Posterior hip dislocation: leg shortened, adducted, internally rotated. Sciatic nerve at risk."))
story.append(PageBreak())

# ════════════════════════════════════════════════════════════════════════════
# 3. THORAX
# ════════════════════════════════════════════════════════════════════════════
story.append(h1("3. THORAX"))
story.append(space(2))

story.append(h2("Heart - Surface Anatomy & Borders"))
story.append(table(
    ["Border", "Structure", "Surface Landmark"],
    [
        ["Right border", "Right atrium", "Right sternal edge, 3rd-6th rib"],
        ["Left border", "Left ventricle (mostly) + left auricle", "Left sternal edge 2nd rib to apex"],
        ["Apex", "Left ventricle", "5th intercostal space, midclavicular line"],
        ["Base (posterior)", "Left atrium (mainly)", "Behind sternum, T5-T8 level"],
        ["Inferior (diaphragmatic)", "Right + left ventricles", "Rests on central tendon of diaphragm"],
    ],
    col_widths=[4*cm, 7*cm, 7*cm]
))

story.append(h2("Coronary Arteries"))
story.append(table(
    ["Artery", "Origin", "Main Supply", "Occlusion Effect"],
    [
        ["Left anterior descending (LAD)", "Left coronary artery", "Anterior LV, anterior 2/3 IVS, apex", "Anterior MI - most common ('widow maker')"],
        ["Left circumflex (LCx)", "Left coronary artery", "Lateral & posterior LV, LA", "Lateral/posterior MI"],
        ["Right coronary (RCA)", "Right aortic sinus", "RV, SA node (60%), AV node (80%), posterior IVS", "Inferior MI; heart block"],
    ],
    col_widths=[4*cm, 4*cm, 5.5*cm, 4.5*cm]
))
story.append(clinical("Right dominant circulation (most people): RCA gives posterior interventricular artery."))

story.append(h2("Mediastinum Divisions"))
story.append(table(
    ["Division", "Key Contents"],
    [
        ["Superior", "Thymus, SVC, arch of aorta & branches, trachea, oesophagus, thoracic duct, vagus, phrenic, left recurrent laryngeal"],
        ["Anterior (inf. ant.)", "Thymus remnant, fat, lymph nodes"],
        ["Middle", "Heart + pericardium, ascending aorta, SVC, bifurcation of trachea, phrenic nerves"],
        ["Posterior", "Descending aorta, oesophagus, thoracic duct, azygos vein, sympathetic trunk, vagus"],
    ],
    col_widths=[4*cm, 14*cm]
))
story.append(clinical("Posterior mediastinal mass: think neurogenic tumour (commonest), oesophageal pathology, or descending aortic aneurysm."))

story.append(h2("Lung Lobes & Bronchopulmonary Segments"))
story.append(body("Right lung: 3 lobes (upper, middle, lower) | 10 segments | Oblique + horizontal fissures"))
story.append(body("Left lung: 2 lobes (upper, lower) | 8-10 segments | Oblique fissure only | Lingula = homologue of right middle lobe"))
story.append(clinical("Inhaled foreign body most likely in right lower lobe (wider, more vertical right main bronchus)."))
story.append(PageBreak())

# ════════════════════════════════════════════════════════════════════════════
# 4. ABDOMEN
# ════════════════════════════════════════════════════════════════════════════
story.append(h1("4. ABDOMEN"))
story.append(space(2))

story.append(h2("Peritoneal vs Retroperitoneal Structures"))
story.append(table(
    ["Retroperitoneal (SAD PUCKER)", "Intraperitoneal"],
    [
        ["Suprarenal (adrenal) glands", "Stomach"],
        ["Aorta & IVC", "Liver, spleen, gallbladder"],
        ["Duodenum (2nd-4th parts)", "Jejunum & ileum"],
        ["Pancreas (body & tail; head retroperitoneal too)", "Transverse & sigmoid colon"],
        ["Ureters", "Ovaries / testes (intraperitoneal origin)"],
        ["Colon (ascending & descending)", "Appendix"],
        ["Kidneys", "—"],
        ["Rectum (lower 2/3)", "—"],
    ],
    col_widths=[9*cm, 9*cm]
))

story.append(h2("Porta Hepatis Contents"))
story.append(body("Contents (anterior→posterior): Bile duct (right) | Hepatic artery (left) | Portal vein (posterior)  →  mnemonic: BD-HA-PV or 'Butter Has Protein'"))
story.append(clinical("Pringle's manoeuvre: compress hepatoduodenal ligament (contents of porta hepatis) to control liver haemorrhage."))

story.append(h2("Inguinal Canal"))
story.append(table(
    ["Feature", "Detail"],
    [
        ["Length", "~4 cm; above medial half of inguinal ligament"],
        ["Deep ring", "Lateral to inferior epigastric vessels; in transversalis fascia"],
        ["Superficial ring", "Above pubic tubercle; in external oblique aponeurosis"],
        ["Roof", "Internal oblique + transversus abdominis (arching fibres)"],
        ["Floor", "Inguinal ligament + lacunar ligament (medially)"],
        ["Anterior wall", "External oblique (full length) + internal oblique (lateral 1/3)"],
        ["Posterior wall", "Transversalis fascia + conjoint tendon (medially)"],
        ["Male contents", "Spermatic cord: vas deferens, testicular artery, pampiniform plexus, cremasteric + genital branch of genitofemoral nerve"],
        ["Female contents", "Round ligament of uterus + ilioinguinal nerve"],
    ],
    col_widths=[5*cm, 13*cm]
))
story.append(clinical("Indirect inguinal hernia: enters deep ring (lateral to inferior epigastric vessels), travels through canal. Congenital patent processus vaginalis."))
story.append(clinical("Direct inguinal hernia: pushes through Hesselbach's triangle (medial to inferior epigastric vessels). Acquired weakness."))
story.append(PageBreak())

# ════════════════════════════════════════════════════════════════════════════
# 5. HEAD & NECK
# ════════════════════════════════════════════════════════════════════════════
story.append(h1("5. HEAD & NECK"))
story.append(space(2))

story.append(h2("Cranial Nerves - High-Yield Summary"))
story.append(table(
    ["CN", "Name", "Type", "Key Function", "Test / Clinical"],
    [
        ["I", "Olfactory", "S", "Smell", "Unilateral anosmia → anterior fossa fracture"],
        ["II", "Optic", "S", "Vision", "RAPD, visual field defects; optic disc oedema"],
        ["III", "Oculomotor", "M+Para", "Eye mvmt (except LR, SO); pupil constriction; lid", "'Down & out' pupil; ptosis; posterior communicating artery aneurysm"],
        ["IV", "Trochlear", "M", "SO → intorsion, depression of adducted eye", "Vertical diplopia, head tilt; longest intracranial course"],
        ["V", "Trigeminal", "S+M", "Face sensation (V1/V2/V3); mastication", "Corneal reflex afferent (V1); trigeminal neuralgia"],
        ["VI", "Abducens", "M", "Lateral rectus → abduction", "Medial squint; raised ICP (false localising sign)"],
        ["VII", "Facial", "M+S+Para", "Facial expression; taste ant. 2/3; lacrimal/salivary", "UMN (forehead spared) vs LMN (Bell's palsy, all face)"],
        ["VIII", "Vestibulocochlear", "S", "Hearing + balance", "SNHL, tinnitus, vertigo; acoustic neuroma"],
        ["IX", "Glossopharyngeal", "M+S+Para", "Stylopharyngeus; taste post. 1/3; parotid", "Gag reflex afferent; carotid sinus innervation"],
        ["X", "Vagus", "M+S+Para", "Larynx, pharynx, thoracoabdominal viscera", "Hoarseness (recurrent laryngeal); uvula deviates away"],
        ["XI", "Accessory", "M", "SCM + trapezius", "Can't shrug or turn head against resistance"],
        ["XII", "Hypoglossal", "M", "Tongue movements", "Tongue deviates TOWARD side of LMN lesion"],
    ],
    col_widths=[0.8*cm, 3.2*cm, 1.2*cm, 5.5*cm, 7.3*cm]
))

story.append(h2("Triangles of the Neck"))
story.append(table(
    ["Triangle", "Boundaries", "Key Contents"],
    [
        ["Anterior triangle", "Midline, SCM, lower border of mandible", "Carotid arteries, IJV, vagus, submandibular gland, thyroid"],
        ["Posterior triangle", "SCM (anterior), trapezius (posterior), clavicle (base)", "Accessory nerve (XI), brachial plexus trunks, subclavian vessels"],
        ["Carotid triangle", "Sub-triangle of anterior", "Common/internal/external carotid, IJV, CN X, XII"],
        ["Muscular triangle", "Sub-triangle of anterior", "Strap muscles, thyroid, trachea, oesophagus"],
    ],
    col_widths=[4*cm, 7*cm, 7*cm]
))
story.append(clinical("Accessory nerve (XI) crosses posterior triangle - vulnerable in cervical lymph node biopsy → trapezius palsy, shoulder drop."))
story.append(clinical("Recurrent laryngeal nerve (branch of X): loops under aortic arch (left) / subclavian artery (right) → hooks up to larynx. Damaged in thyroid surgery, apical lung tumour → hoarseness."))
story.append(PageBreak())

# ════════════════════════════════════════════════════════════════════════════
# 6. NEUROANATOMY
# ════════════════════════════════════════════════════════════════════════════
story.append(h1("6. NEUROANATOMY"))
story.append(space(2))

story.append(h2("Spinal Cord Tracts"))
story.append(table(
    ["Tract", "Location in Cord", "Carries", "Features"],
    [
        ["Dorsal columns (DCML)", "Posterior", "Fine touch, vibration, proprioception, 2-point discrimination", "Ipsilateral ascent; cross at medulla (decussation of medial lemniscus)"],
        ["Spinothalamic (ALS)", "Anterolateral", "Pain, temperature (anterior), crude touch", "Cross within 1-2 segments of entry; contralateral loss below lesion"],
        ["Corticospinal (lateral)", "Posterior lateral", "Voluntary motor", "Cross at pyramidal decussation (medulla); UMN signs below lesion"],
    ],
    col_widths=[4*cm, 3*cm, 5.5*cm, 5.5*cm]
))
story.append(clinical("Brown-Séquard syndrome (hemisection): ipsilateral motor + DCML loss; contralateral pain & temperature loss below level."))

story.append(h2("Circle of Willis"))
story.append(body("Formed by: ICAs + basilar artery + communicating arteries."))
story.append(body("Anterior: ACA (x2) joined by anterior communicating artery."))
story.append(body("Posterior: PCA (x2) joined to ICA by posterior communicating artery (PComm)."))
story.append(clinical("PComm aneurysm: CN III palsy (first sign - fixed dilated pupil, 'down and out' eye)."))
story.append(clinical("ACA territory stroke: contralateral leg weakness > arm weakness (homunculus - leg area medial)."))
story.append(clinical("MCA territory stroke (most common): contralateral face & arm > leg; aphasia if dominant hemisphere."))

story.append(h2("Ventricular System & CSF"))
story.append(table(
    ["Structure", "Details"],
    [
        ["Lateral ventricles (x2)", "Largest; in cerebral hemispheres; communicate via interventricular foramina (Monroe) with 3rd ventricle"],
        ["3rd ventricle", "Diencephalon (between thalami); CSF flows via cerebral aqueduct (Sylvius) to 4th ventricle"],
        ["4th ventricle", "Between pons/medulla and cerebellum; foramina of Luschka (x2 lateral) + Magendie (1 medial) → subarachnoid space"],
        ["CSF production", "Choroid plexus (mainly lateral ventricles); ~500 mL/day; total volume ~150 mL"],
        ["Absorption", "Arachnoid granulations → dural venous sinuses → IJV"],
    ],
    col_widths=[4.5*cm, 13.5*cm]
))
story.append(clinical("Hydrocephalus: obstructive (non-communicating) vs communicating. Bulging fontanelle, 'sunset sign' eyes in infants."))
story.append(PageBreak())

# ════════════════════════════════════════════════════════════════════════════
# 7. EMBRYOLOGY HIGH-YIELD
# ════════════════════════════════════════════════════════════════════════════
story.append(h1("7. HIGH-YIELD EMBRYOLOGY"))
story.append(space(2))
story.append(table(
    ["Week", "Key Events"],
    [
        ["Week 1", "Fertilisation → zygote → morula → blastocyst → implantation (day 6-7)"],
        ["Week 2", "Bilaminar disc (epiblast + hypoblast); primitive streak appears end of week 2"],
        ["Week 3", "Gastrulation → trilaminar disc (ectoderm, mesoderm, endoderm); notochord forms"],
        ["Week 3-4", "Neurulation: neural plate → neural tube (closes by day 28); somites form"],
        ["Week 4", "Heart begins to beat; limb buds; embryonic folding; pharyngeal arches appear"],
        ["Week 4-8", "Organogenesis - most sensitive to teratogens; all major organs formed"],
        ["Week 9+", "Fetal period: growth and maturation"],
    ],
    col_widths=[3*cm, 15*cm]
))
story.append(space(2))
story.append(table(
    ["Defect", "Embryological Basis", "Presentation"],
    [
        ["Spina bifida", "Failure of neural tube closure (posterior)", "Meningocele / myelomeningocele; associated with folate deficiency"],
        ["Anencephaly", "Failure of cranial neural tube closure", "Absent cerebral hemispheres; AFP elevated; incompatible with life"],
        ["Cleft lip", "Failure of fusion of maxillary + medial nasal process", "Unilateral or bilateral; may be isolated or with cleft palate"],
        ["Meckel's diverticulum", "Persistent vitello-intestinal (omphalomesenteric) duct", "2 inches long, 2 feet from ileocaecal valve, 2% population; may contain gastric/pancreatic tissue"],
        ["Patent ductus arteriosus", "Ductus arteriosus fails to close (kept open by PGE2)", "Continuous 'machinery' murmur; treat with indomethacin (NSAIDs)"],
        ["VSD", "Failure of interventricular septum formation", "Most common congenital heart defect"],
    ],
    col_widths=[4*cm, 6*cm, 8*cm]
))
story.append(PageBreak())

# ════════════════════════════════════════════════════════════════════════════
# 8. MNEMONICS & QUICK-FIRE FACTS
# ════════════════════════════════════════════════════════════════════════════
story.append(h1("8. MNEMONICS & QUICK-FIRE FACTS"))
story.append(space(2))

story.append(h2("Mnemonics"))
mnemonics = [
    ("Brachial plexus", "Roots Trunks Divisions Cords Branches  →  'Real Teens Drink Cold Beer'"),
    ("Carpal bones (lateral→medial, proximal row)", "Scaphoid, Lunate, Triquetrum, Pisiform  →  'She Likes To Party'"),
    ("Carpal bones (distal row)", "Trapezium, Trapezoid, Capitate, Hamate  →  'Then The Carpal Hurts'"),
    ("Structures under inguinal ligament (lateral→medial)", "Nerve, Artery, Vein, Y-fronts (empty), Lymphatics  →  NAVEL (Y = empty space)"),
    ("Cranial nerves", "I II III IV V VI VII VIII IX X XI XII  →  'Oh Oh Oh To Touch And Feel Very Good Velvet AH!'"),
    ("Cranial nerve types (S/M/B)", "Some Say Marry Money But My Brother Says Big Brains Matter More  →  S/S/M/M/B/M/B/S/B/B/M/M"),
    ("Rotator cuff", "SITS: Supraspinatus, Infraspinatus, Teres minor, Subscapularis"),
    ("Femoral triangle contents", "NAVEL: Nerve, Artery, Vein, Empty canal, Lymphatics (lateral → medial)"),
    ("Layers of scalp", "SCALP: Skin, Connective tissue (dense), Aponeurosis (epicranial), Loose areolar tissue, Pericranium"),
    ("Thoracic duct drainage", "Drains everything EXCEPT right thorax, right upper limb, right head/neck (→ right lymphatic duct)"),
]
for title, content in mnemonics:
    story.append(body(f"<b>{title}:</b> {content}"))

story.append(space(3))
story.append(h2("Quick-Fire High-Yield Facts"))
facts = [
    "Longest nerve in body: Sciatic nerve (L4-S3)",
    "Smallest bone: Stapes (ear ossicle)",
    "Only bone not articulating with another bone: Hyoid",
    "Kidney relations: Right kidney lower than left (displaced by liver). Left kidney related to tail of pancreas.",
    "Most common site of Berry aneurysm: Anterior communicating artery (AComm) - ~35%",
    "Foramen ovale closes at birth due to reversal of pressure gradient (LA > RA)",
    "Diaphragm openings: T8 = IVC; T10 = oesophagus + vagus; T12 = aorta + thoracic duct + azygos (mnemonic: I 8 (ate) 10 eggs at 12)",
    "Portal-systemic anastomoses: oesophageal, para-umbilical, rectal/anal, retroperitoneal - dilate in portal hypertension",
    "Nerve to skin of medial thigh: Obturator (L2-4) - tested in obturator hernia (Howship-Romberg sign)",
    "McBurney's point: 1/3 from ASIS to umbilicus - maximum tenderness in appendicitis",
    "Commonest cause of primary amenorrhoea: Turner syndrome (45, XO) - streak gonads, short stature",
    "Spermatic cord layers (outside-in): External spermatic fascia, cremasteric muscle/fascia, internal spermatic fascia",
]
for f in facts:
    story.append(bullet(f))

story.append(PageBreak())

# ════════════════════════════════════════════════════════════════════════════
# 9. PELVIS & PERINEUM
# ════════════════════════════════════════════════════════════════════════════
story.append(h1("9. PELVIS & PERINEUM"))
story.append(space(2))
story.append(h2("Pelvic Floor Muscles"))
story.append(table(
    ["Muscle", "Origin → Insertion", "Nerve Supply", "Function"],
    [
        ["Levator ani", "Body of pubis + ischial spine → perineal body, coccyx, anococcygeal raphe", "S3-4 + inferior rectal nerve", "Main pelvic floor support; urinary/faecal continence"],
        ["Pubococcygeus (part of LA)", "Pubis → coccyx", "S3-4", "Most important part; 'puborectalis sling' maintains anorectal angle"],
        ["Iliococcygeus (part of LA)", "Ischial spine + arcus tendineus → coccyx", "S3-4", "—"],
        ["Coccygeus", "Ischial spine → coccyx/sacrum", "S4-5", "Supports coccyx"],
    ],
    col_widths=[3.5*cm, 6*cm, 4*cm, 4.5*cm]
))
story.append(clinical("Pelvic floor damage in childbirth → stress urinary incontinence; uterine prolapse."))

story.append(h2("Ureters - Key Relations"))
story.append(body("In females: ureter passes under uterine artery ('water under the bridge') - at risk in hysterectomy."))
story.append(body("In males: vas deferens crosses over ureter near bladder."))
story.append(body("Narrowings (sites of renal stone lodgement): (1) Pelviureteric junction (PUJ) | (2) Pelvic brim (crossing iliac vessels) | (3) Vesicoureteric junction (VUJ) - narrowest."))
story.append(clinical("Renal colic: loin-to-groin pain; haematuria. Stones most commonly lodge at VUJ."))

story.append(PageBreak())

# ════════════════════════════════════════════════════════════════════════════
# FINAL PAGE - REVISION TIPS
# ════════════════════════════════════════════════════════════════════════════
story.append(h1("10. REVISION STRATEGY TIPS"))
story.append(space(2))
tips = [
    ("Active recall over re-reading", "Close the book and write out the brachial plexus or cranial nerve table from memory. Check after. Repeat."),
    ("Draw diagrams", "The cross-section of spinal cord, circle of Willis, and brachial plexus are best understood visually. Draw them daily."),
    ("Teach it back", "Explain a nerve injury (e.g. radial nerve palsy) out loud as if teaching a classmate. Gaps become obvious."),
    ("Link structure to clinical", "Every muscle/nerve/vessel should be tied to at least one clinical scenario (fracture, surgery complication, hernia)."),
    ("Use the quiz feature", "Tell me 'quiz me on the lower limb' after each day's study. I'll fire questions at you."),
    ("Spaced repetition", "Day 1 → review Day 1 again on Day 3, then Day 7. Stops forgetting."),
]
for title, tip in tips:
    story.append(body(f"<b>{title}:</b> {tip}"))

story.append(space(6))
story.append(hr())
footer_data = [[Paragraph(
    "This quick reference was generated for your 2-week MBBS anatomy revision. "
    "Combine with atlas diagrams (Netter / Gray's), past exam questions, and active recall quizzes for best results.",
    ParagraphStyle("footer_note", fontName="Helvetica-Oblique", fontSize=8, textColor=TEAL, alignment=TA_CENTER)
)]]
footer_table = Table(footer_data, colWidths=[18*cm])
footer_table.setStyle(TableStyle([
    ("BACKGROUND", (0,0), (-1,-1), LGREY),
    ("TOPPADDING", (0,0), (-1,-1), 8),
    ("BOTTOMPADDING", (0,0), (-1,-1), 8),
    ("LEFTPADDING", (0,0), (-1,-1), 10),
    ("RIGHTPADDING", (0,0), (-1,-1), 10),
]))
story.append(footer_table)

# ── BUILD ─────────────────────────────────────────────────────────────────
doc = AnatomyDoc(OUTPUT, pagesize=A4,
                 topMargin=1.8*cm, bottomMargin=1.5*cm,
                 leftMargin=1.5*cm, rightMargin=1.5*cm,
                 title="High-Yield Anatomy Quick Reference",
                 author="Orris AI")
doc.build(story)
print(f"PDF created: {OUTPUT}")
Running Command

cd /home/daytona/workspace/anatomy-pdf && python generate_anatomy_pdf.py

Running Command

ls -lh /home/daytona/workspace/anatomy-pdf/HighYield_Anatomy_QuickRef.pdf

Your PDF is ready! Download it here:

HighYield Anatomy QuickRef

PDF Document · PDF


What's inside (10 sections, ~12 pages):
SectionCoverage
1. Upper LimbBrachial plexus table, nerve injury patterns (wrist drop, claw hand, ape hand), rotator cuff SITS
2. Lower LimbLumbar/sacral plexus, femoral triangle NAVEL, hip joint blood supply, nerve injuries
3. ThoraxHeart borders/apex, coronary arteries & MI territories, mediastinum divisions, lung lobes
4. AbdomenRetroperitoneal structures, porta hepatis, inguinal canal full table, hernia types
5. Head & NeckAll 12 cranial nerves table, neck triangles, recurrent laryngeal nerve, accessory nerve
6. NeuroanatomySpinal cord tracts (DCML vs spinothalamic), Brown-Sequard, Circle of Willis, ventricular system
7. EmbryologyWeekly development timeline, neural tube defects, common congenital anomalies
8. MnemonicsSITS, NAVEL, SCALP, diaphragm openings (I 8 10 eggs at 12), CN mnemonics + 12 quick-fire facts
9. PelvisPelvic floor muscles, ureter relations ('water under bridge'), stone lodgement sites
10. Revision TipsActive recall, spaced repetition, teaching back strategy
When you're ready to study, just say "quiz me on [topic]" and we'll get to work!

i can't download the pdf

Running Command

ls -lh /home/daytona/workspace/anatomy-pdf/

The file exists. The download link may not be working on your end due to platform limitations. Let me give you the full content as a clean, copyable text right here - you can paste it into Word, Google Docs, or any editor and save/print it as PDF yourself.

HIGH-YIELD ANATOMY - MBBS Quick Reference


1. UPPER LIMB

Brachial Plexus

ComponentRootsKey Nerves
RootsC5-C8, T1Dorsal scapular (C5), Long thoracic (C5-7)
TrunksUpper (C5-6), Middle (C7), Lower (C8-T1)Suprascapular (upper trunk)
CordsLateral, Posterior, MedialNamed by relation to axillary artery
Terminal Branches5 nervesMusculocutaneous, Axillary, Radial, Median, Ulnar
Mnemonic: Real Teens Drink Cold Beer (Roots Trunks Divisions Cords Branches)

Nerve Injury Patterns

NerveRootCauseDeformity
AxillaryC5,6Surgical neck humerus fractureFlattened deltoid; loss shoulder abduction >15°
RadialC5-T1Midshaft humerus / Saturday night palsyWrist drop
MedianC6-T1Supracondylar fracture / carpal tunnelApe hand; Pope's blessing sign
UlnarC8-T1Medial epicondyle fractureClaw hand (ring & little); Froment sign
Long thoracicC5-7Mastectomy / axillary dissectionWinged scapula
  • Erb's palsy (C5-C6): "Waiter's tip" - arm adducted, medially rotated, forearm pronated
  • Klumpke's palsy (C8-T1): Claw hand + Horner syndrome

Rotator Cuff - SITS

MuscleNerveAction
SupraspinatusSuprascapularInitiates abduction (0-15°) - most commonly torn
InfraspinatusSuprascapularLateral rotation
Teres MinorAxillaryLateral rotation
SubscapularisSubscapularMedial rotation

2. LOWER LIMB

Key Nerve Injuries

NerveRootCauseDeficit
FemoralL2-4Psoas haematomaWeak knee extension
ObturatorL2-4Pelvic surgeryWeak hip adduction
SciaticL4-S3Posterior hip dislocationEverything below knee
Common FibularL4-S2Fibular neck fractureFoot drop; high-step gait
Superior GlutealL4-S1Hip arthroplastyTrendelenburg gait
  • Femoral triangle contents (lateral→medial): NAVEL - Nerve, Artery, Vein, Empty space, Lymphatics
  • Hip blood supply: Medial circumflex femoral artery → damaged in subcapital fracture → avascular necrosis
  • Posterior hip dislocation: leg shortened, adducted, internally rotated; sciatic nerve at risk

3. THORAX

Heart Borders

BorderStructureLandmark
RightRight atriumRight sternal edge, 3rd-6th rib
LeftLeft ventricle + auricleLeft sternal edge, 2nd rib to apex
ApexLeft ventricle5th ICS, midclavicular line
Base (posterior)Left atriumT5-T8

Coronary Arteries

ArterySuppliesOcclusion
LADAnterior LV, anterior 2/3 IVSAnterior MI ("widow maker")
LCxLateral/posterior LVLateral/posterior MI
RCARV, SA node (60%), AV node (80%)Inferior MI; heart block

Mediastinum

DivisionKey Contents
SuperiorAortic arch, trachea, oesophagus, thymus, SVC, thoracic duct, vagus, left RLN
MiddleHeart, pericardium, ascending aorta, tracheal bifurcation, phrenic nerves
PosteriorDescending aorta, oesophagus, thoracic duct, azygos, sympathetic trunk
  • Right lung: 3 lobes, 10 segments | Left lung: 2 lobes, 8-10 segments
  • Inhaled foreign body: most likely right lower lobe (wider, more vertical right main bronchus)

4. ABDOMEN

Retroperitoneal Structures - SAD PUCKER

Suprarenal glands, Aorta/IVC, Duodenum (2nd-4th), Pancreas, Ureters, Colon (ascending/descending), Kidneys, Rectum (lower 2/3)

Porta Hepatis

Contents (right→left→posterior): Bile duct - Hepatic artery - Portal vein Mnemonic: "Butter Has Protein"

Inguinal Canal

FeatureDetail
Deep ringLateral to inferior epigastric vessels
Superficial ringAbove pubic tubercle
RoofInternal oblique + transversus abdominis arching fibres
FloorInguinal ligament + lacunar ligament (medially)
Posterior wallTransversalis fascia + conjoint tendon (medially)
Male contentsSpermatic cord: vas deferens, testicular artery, pampiniform plexus
Female contentsRound ligament of uterus
  • Indirect hernia: lateral to inferior epigastric vessels; congenital
  • Direct hernia: medial (through Hesselbach's triangle); acquired
  • Femoral hernia: lateral to pubic tubercle, below inguinal ligament; more common in women; high strangulation risk

5. HEAD & NECK

12 Cranial Nerves

CNNameTypeKey FunctionClinical
IOlfactorySSmellAnosmia → anterior fossa fracture
IIOpticSVisionRAPD; visual field defects
IIIOculomotorM+ParaEye movement; pupil; lid"Down & out"; ptosis; PComm aneurysm
IVTrochlearMSuperior oblique (intorsion)Vertical diplopia; head tilt
VTrigeminalS+MFace sensation; masticationCorneal reflex afferent (V1); trigeminal neuralgia
VIAbducensMLateral rectusMedial squint; false localising sign
VIIFacialM+S+ParaFacial expression; taste ant. 2/3UMN (forehead spared) vs LMN (Bell's palsy)
VIIIVestibulocochlearSHearing + balanceSNHL; acoustic neuroma
IXGlossopharyngealM+S+ParaTaste post. 1/3; parotidGag reflex afferent
XVagusM+S+ParaLarynx; visceraHoarseness (RLN); uvula away from lesion
XIAccessoryMSCM + trapeziusCan't shrug or turn head
XIIHypoglossalMTongue movementsTongue deviates TOWARD LMN lesion
Mnemonic type (S/M/Both): Some Say Marry Money But My Brother Says Big Brains Matter More

Neck Triangles

TriangleKey Contents
AnteriorCarotid arteries, IJV, vagus, thyroid, submandibular gland
PosteriorCN XI (accessory nerve), brachial plexus trunks, subclavian vessels
  • Recurrent laryngeal nerve: loops under aortic arch (left) / subclavian (right) → at risk in thyroid surgery → hoarseness
  • Accessory nerve (XI) crosses posterior triangle → at risk in cervical lymph node biopsy → trapezius palsy

6. NEUROANATOMY

Spinal Cord Tracts

TractLocationCarriesDecussation
Dorsal columns (DCML)PosteriorFine touch, vibration, proprioceptionAt medulla
Spinothalamic (ALS)AnterolateralPain, temperature, crude touchWithin 1-2 segments of entry
Corticospinal (lateral)PosterolateralVoluntary motorPyramidal decussation (medulla)
  • Brown-Séquard (hemisection): ipsilateral motor + DCML loss; contralateral pain & temperature loss

Circle of Willis

  • ACA (x2) joined by anterior communicating artery
  • PCA (x2) joined to ICA by posterior communicating artery (PComm)
  • PComm aneurysm → CN III palsy (fixed dilated pupil, "down and out")
  • MCA stroke (most common): contralateral face & arm > leg; aphasia if dominant hemisphere

Ventricular System

Lateral ventricles → (foramen of Monroe) → 3rd ventricle → (cerebral aqueduct/Sylvius) → 4th ventricle → (Luschka x2 + Magendie x1) → subarachnoid space
  • CSF produced by choroid plexus (~500 mL/day); absorbed by arachnoid granulations

7. HIGH-YIELD EMBRYOLOGY

WeekKey Events
Week 1Fertilisation → blastocyst → implantation (day 6-7)
Week 2Bilaminar disc; primitive streak
Week 3Gastrulation → trilaminar disc; notochord
Week 3-4Neurulation; neural tube closes by day 28; somites
Week 4-8Organogenesis - most sensitive to teratogens
DefectBasisFeature
Spina bifidaPosterior neural tube closure failureFolate deficiency; meningocele/myelomeningocele
AnencephalyCranial neural tube closure failureElevated AFP; incompatible with life
Cleft lipFailure maxillary + medial nasal process fusionUnilateral or bilateral
Meckel's diverticulumPersistent vitello-intestinal duct2 inches, 2 feet from ileocaecal valve, 2% population
PDADuctus arteriosus fails to closeContinuous murmur; treat with indomethacin
VSDIVS formation failureMost common congenital heart defect

8. MNEMONICS

TopicMnemonic
Brachial plexusReal Teens Drink Cold Beer (Roots, Trunks, Divisions, Cords, Branches)
Proximal carpalsShe Likes To Party (Scaphoid, Lunate, Triquetrum, Pisiform)
Distal carpalsThen The Carpal Hurts (Trapezium, Trapezoid, Capitate, Hamate)
Femoral triangleNAVEL (Nerve, Artery, Vein, Empty, Lymphatics)
Scalp layersSCALP (Skin, Connective tissue, Aponeurosis, Loose areolar, Pericranium)
Diaphragm openingsI 8 (ate) 10 eggs AT 12 → T8=IVC, T10=Oesophagus+Vagus, T12=Aorta+Thoracic duct+Azygos
Rotator cuffSITS (Supraspinatus, Infraspinatus, Teres minor, Subscapularis)
CN typesSome Say Marry Money But My Brother Says Big Brains Matter More

9. QUICK-FIRE FACTS

  • Longest nerve: Sciatic | Smallest bone: Stapes | Only bone not articulating: Hyoid
  • Right kidney lower than left (displaced by liver)
  • Most common Berry aneurysm site: Anterior communicating artery (~35%)
  • Foramen ovale closes at birth (LA pressure > RA)
  • Portal-systemic anastomoses: oesophageal, para-umbilical, rectal, retroperitoneal
  • McBurney's point: 1/3 from ASIS to umbilicus (appendicitis tenderness)
  • Ureter in females passes under uterine artery ("water under the bridge") - at risk in hysterectomy
  • Ureter narrowings: PUJ → pelvic brim → VUJ (narrowest; stones most lodge here)

You can copy all of this, paste into Google Docs or Word, then go to File → Download as PDF. Let me know when you're ready to start studying and I'll quiz you on any topic!
This is a shared conversation. Sign in to Orris to start your own chat.