i will provide syllabus and instruction create study notes according to instructions use standard textbooks , and accurate data, universities standard
write detail by using textbooks referance like rose and wilson etc, 1st unit in docx format
cd /home/daytona/workspace/attachments/e7234bbc-b695-45e5-b087-239bf3be33cd && python3 -c " from pypdf import PdfReader reader = PdfReader('prompt for unit wise docx.pdf') for page in reader.pages: print(page.extract_text()) "
cd /home/daytona/workspace/attachments/e7234bbc-b695-45e5-b087-239bf3be33cd && pandoc 'Syllabus (Applied Anatomy) 1 sem.docx' -o /tmp/syllabus.md && cat /tmp/syllabus.md
ls /home/daytona/workspace/ && ls /home/daytona/skills/docx/scripts/office/ 2>/dev/null || echo "checking scripts" && ls /home/daytona/skills/docx/ 2>/dev/null
ls /home/daytona/workspace/applied-anatomy-unit1/
cd /home/daytona/workspace/applied-anatomy-unit1 && node -e "const docx=require('docx'); console.log('docx version:', require('/home/daytona/workspace/applied-anatomy-unit1/node_modules/docx/package.json').version);" 2>/dev/null || echo "checking global docx" && node -e "const docx=require('docx'); console.log('OK');" 2>/dev/null || echo "docx not available globally"
~/applied-anatomy-unit1/generate_unit1.js
const {
Document, Packer, Paragraph, TextRun, Table, TableRow, TableCell,
Header, Footer, AlignmentType, HeadingLevel, BorderStyle, WidthType,
ShadingType, VerticalAlign, PageNumber, NumberFormat, TableOfContents,
PageBreak, UnderlineType, convertInchesToTwip, LevelFormat,
TabStopType, TabStopPosition, LineRuleType
} = require('docx');
const fs = require('fs');
// ─── COLOR PALETTE ───────────────────────────────────────────────────────────
const DARK_BLUE = "1A3A5C";
const MID_BLUE = "1F6FB2";
const LIGHT_BLUE = "D6E8F7";
const ACCENT_TEAL = "0E7C7B";
const ACCENT_GOLD = "B8860B";
const BOX_GRAY = "F2F4F7";
const BOX_GREEN = "E8F5E9";
const BOX_YELLOW = "FFF9C4";
const BOX_RED = "FDECEA";
const WHITE = "FFFFFF";
const BLACK = "000000";
const DARK_TEXT = "1C1C1C";
const GRAY_BORDER = "AAAAAA";
// ─── HELPER FUNCTIONS ────────────────────────────────────────────────────────
function pageBreak() {
return new Paragraph({ children: [new TextRun({ break: 1 })] });
}
function spacer(lines = 1) {
const children = [];
for (let i = 0; i < lines; i++) children.push(new Paragraph({ text: "" }));
return children;
}
function coverHeading(text) {
return new Paragraph({
alignment: AlignmentType.CENTER,
spacing: { before: 200, after: 200 },
children: [
new TextRun({
text,
bold: true,
size: 52,
color: WHITE,
font: "Calibri",
}),
],
});
}
function coverSubText(text, size = 28, color = "D6E8F7") {
return new Paragraph({
alignment: AlignmentType.CENTER,
spacing: { before: 100, after: 100 },
children: [
new TextRun({ text, size, color, font: "Calibri" }),
],
});
}
function sectionTitle(text) {
return new Paragraph({
heading: HeadingLevel.HEADING_1,
spacing: { before: 320, after: 160 },
border: { bottom: { color: MID_BLUE, size: 16, style: BorderStyle.SINGLE } },
children: [
new TextRun({
text: text.toUpperCase(),
bold: true,
size: 30,
color: DARK_BLUE,
font: "Calibri",
}),
],
});
}
function subTitle(text) {
return new Paragraph({
heading: HeadingLevel.HEADING_2,
spacing: { before: 240, after: 120 },
children: [
new TextRun({
text,
bold: true,
size: 26,
color: MID_BLUE,
font: "Calibri",
}),
],
});
}
function subSubTitle(text) {
return new Paragraph({
heading: HeadingLevel.HEADING_3,
spacing: { before: 180, after: 80 },
children: [
new TextRun({
text,
bold: true,
size: 24,
color: ACCENT_TEAL,
font: "Calibri",
}),
],
});
}
function bodyPara(text) {
return new Paragraph({
spacing: { before: 80, after: 80, line: 340, lineRule: LineRuleType.AUTO },
children: [
new TextRun({ text, size: 22, font: "Calibri", color: DARK_TEXT }),
],
});
}
function bullet(text, level = 0) {
return new Paragraph({
bullet: { level },
spacing: { before: 60, after: 60, line: 300, lineRule: LineRuleType.AUTO },
children: [
new TextRun({ text, size: 22, font: "Calibri", color: DARK_TEXT }),
],
});
}
function bulletBold(label, text) {
return new Paragraph({
bullet: { level: 0 },
spacing: { before: 60, after: 60, line: 300, lineRule: LineRuleType.AUTO },
children: [
new TextRun({ text: label + ": ", bold: true, size: 22, font: "Calibri", color: DARK_BLUE }),
new TextRun({ text, size: 22, font: "Calibri", color: DARK_TEXT }),
],
});
}
function definitionBox(term, definition) {
return new Table({
width: { size: 100, type: WidthType.PERCENTAGE },
margins: { top: 60, bottom: 60 },
rows: [
new TableRow({
children: [
new TableCell({
shading: { fill: LIGHT_BLUE, type: ShadingType.CLEAR },
borders: {
top: { style: BorderStyle.SINGLE, size: 8, color: MID_BLUE },
bottom: { style: BorderStyle.SINGLE, size: 8, color: MID_BLUE },
left: { style: BorderStyle.THICK, size: 24, color: MID_BLUE },
right: { style: BorderStyle.SINGLE, size: 4, color: MID_BLUE },
},
children: [
new Paragraph({
spacing: { before: 80, after: 40 },
children: [
new TextRun({ text: "Definition: ", bold: true, size: 23, color: DARK_BLUE, font: "Calibri" }),
new TextRun({ text: term, bold: true, size: 23, color: MID_BLUE, font: "Calibri" }),
],
}),
new Paragraph({
spacing: { before: 40, after: 80 },
children: [new TextRun({ text: definition, size: 22, font: "Calibri", color: DARK_TEXT })],
}),
],
}),
],
}),
],
});
}
function clinicalNoteBox(text) {
return new Table({
width: { size: 100, type: WidthType.PERCENTAGE },
margins: { top: 100, bottom: 100 },
rows: [
new TableRow({
children: [
new TableCell({
shading: { fill: BOX_GREEN, type: ShadingType.CLEAR },
borders: {
top: { style: BorderStyle.SINGLE, size: 6, color: ACCENT_TEAL },
bottom: { style: BorderStyle.SINGLE, size: 6, color: ACCENT_TEAL },
left: { style: BorderStyle.THICK, size: 30, color: ACCENT_TEAL },
right: { style: BorderStyle.SINGLE, size: 4, color: ACCENT_TEAL },
},
children: [
new Paragraph({
spacing: { before: 80, after: 40 },
children: [
new TextRun({ text: "🩺 CLINICAL NOTE / NURSING IMPLICATION", bold: true, size: 22, color: ACCENT_TEAL, font: "Calibri" }),
],
}),
new Paragraph({
spacing: { before: 40, after: 80 },
children: [new TextRun({ text, size: 22, font: "Calibri", color: DARK_TEXT })],
}),
],
}),
],
}),
],
});
}
function rememberBox(text) {
return new Table({
width: { size: 100, type: WidthType.PERCENTAGE },
margins: { top: 100, bottom: 100 },
rows: [
new TableRow({
children: [
new TableCell({
shading: { fill: BOX_YELLOW, type: ShadingType.CLEAR },
borders: {
top: { style: BorderStyle.SINGLE, size: 6, color: ACCENT_GOLD },
bottom: { style: BorderStyle.SINGLE, size: 6, color: ACCENT_GOLD },
left: { style: BorderStyle.THICK, size: 30, color: ACCENT_GOLD },
right: { style: BorderStyle.SINGLE, size: 4, color: ACCENT_GOLD },
},
children: [
new Paragraph({
spacing: { before: 80, after: 40 },
children: [new TextRun({ text: "⭐ REMEMBER", bold: true, size: 22, color: ACCENT_GOLD, font: "Calibri" })],
}),
new Paragraph({
spacing: { before: 40, after: 80 },
children: [new TextRun({ text, size: 22, font: "Calibri", color: DARK_TEXT })],
}),
],
}),
],
}),
],
});
}
function makeTable(headers, rows) {
const headerRow = new TableRow({
tableHeader: true,
children: headers.map(h =>
new TableCell({
shading: { fill: DARK_BLUE, type: ShadingType.CLEAR },
verticalAlign: VerticalAlign.CENTER,
children: [
new Paragraph({
alignment: AlignmentType.CENTER,
children: [new TextRun({ text: h, bold: true, size: 22, color: WHITE, font: "Calibri" })],
}),
],
})
),
});
const dataRows = rows.map((row, i) =>
new TableRow({
children: row.map((cell, j) =>
new TableCell({
shading: { fill: i % 2 === 0 ? WHITE : BOX_GRAY, type: ShadingType.CLEAR },
children: [
new Paragraph({
spacing: { before: 60, after: 60 },
children: [new TextRun({ text: cell, size: 21, font: "Calibri", color: DARK_TEXT, bold: j === 0 })],
}),
],
})
),
})
);
return new Table({
width: { size: 100, type: WidthType.PERCENTAGE },
rows: [headerRow, ...dataRows],
});
}
// ─── HEADER / FOOTER ─────────────────────────────────────────────────────────
function makeHeader() {
return new Header({
children: [
new Table({
width: { size: 100, type: WidthType.PERCENTAGE },
borders: {
top: { style: BorderStyle.NONE }, bottom: { style: BorderStyle.SINGLE, size: 6, color: MID_BLUE },
left: { style: BorderStyle.NONE }, right: { style: BorderStyle.NONE }, insideH: { style: BorderStyle.NONE }, insideV: { style: BorderStyle.NONE }
},
rows: [
new TableRow({
children: [
new TableCell({
children: [
new Paragraph({
children: [new TextRun({ text: "B.Sc Nursing | 1st Semester", size: 18, color: MID_BLUE, font: "Calibri" })],
}),
],
borders: { top: { style: BorderStyle.NONE }, bottom: { style: BorderStyle.NONE }, left: { style: BorderStyle.NONE }, right: { style: BorderStyle.NONE } }
}),
new TableCell({
children: [
new Paragraph({
alignment: AlignmentType.CENTER,
children: [new TextRun({ text: "Applied Anatomy", bold: true, size: 20, color: DARK_BLUE, font: "Calibri" })],
}),
],
borders: { top: { style: BorderStyle.NONE }, bottom: { style: BorderStyle.NONE }, left: { style: BorderStyle.NONE }, right: { style: BorderStyle.NONE } }
}),
new TableCell({
children: [
new Paragraph({
alignment: AlignmentType.RIGHT,
children: [new TextRun({ text: "UNIT I | 2026", size: 18, color: MID_BLUE, font: "Calibri" })],
}),
],
borders: { top: { style: BorderStyle.NONE }, bottom: { style: BorderStyle.NONE }, left: { style: BorderStyle.NONE }, right: { style: BorderStyle.NONE } }
}),
],
}),
],
}),
],
});
}
function makeFooter() {
return new Footer({
children: [
new Table({
width: { size: 100, type: WidthType.PERCENTAGE },
borders: {
top: { style: BorderStyle.SINGLE, size: 6, color: MID_BLUE },
bottom: { style: BorderStyle.NONE }, left: { style: BorderStyle.NONE }, right: { style: BorderStyle.NONE },
insideH: { style: BorderStyle.NONE }, insideV: { style: BorderStyle.NONE }
},
rows: [
new TableRow({
children: [
new TableCell({
children: [
new Paragraph({
children: [new TextRun({ text: "Smart Nursing Notes for Exam Success | Download more at: https://healtheducationalmedia.com/", size: 16, color: MID_BLUE, font: "Calibri" })],
}),
],
borders: { top: { style: BorderStyle.NONE }, bottom: { style: BorderStyle.NONE }, left: { style: BorderStyle.NONE }, right: { style: BorderStyle.NONE } }
}),
new TableCell({
children: [
new Paragraph({
alignment: AlignmentType.RIGHT,
children: [
new TextRun({ text: "Page ", size: 18, font: "Calibri", color: DARK_TEXT }),
new TextRun({ children: [PageNumber.CURRENT], size: 18, font: "Calibri" }),
new TextRun({ text: " of ", size: 18, font: "Calibri", color: DARK_TEXT }),
new TextRun({ children: [PageNumber.TOTAL_PAGES], size: 18, font: "Calibri" }),
],
}),
],
borders: { top: { style: BorderStyle.NONE }, bottom: { style: BorderStyle.NONE }, left: { style: BorderStyle.NONE }, right: { style: BorderStyle.NONE } }
}),
],
}),
],
}),
],
});
}
// ─── COVER PAGE ──────────────────────────────────────────────────────────────
function buildCoverPage() {
return [
new Table({
width: { size: 100, type: WidthType.PERCENTAGE },
rows: [
new TableRow({
children: [
new TableCell({
shading: { fill: DARK_BLUE, type: ShadingType.CLEAR },
children: [
new Paragraph({
alignment: AlignmentType.CENTER,
spacing: { before: 120, after: 60 },
children: [
new TextRun({
text: '"In the name of Allah, the Most Gracious, the Most Merciful"',
italics: true,
size: 22,
color: "D6E8F7",
font: "Calibri",
}),
],
}),
new Paragraph({
alignment: AlignmentType.CENTER,
spacing: { before: 0, after: 160 },
children: [
new TextRun({
text: "— The Holy Quran (Al-Fatiha 1:1)",
size: 19,
color: "A0C0DD",
italics: true,
font: "Calibri",
}),
],
}),
new Paragraph({
alignment: AlignmentType.CENTER,
spacing: { before: 200, after: 200 },
children: [
new TextRun({
text: "════════════════════════════════",
size: 20,
color: "5A9FCC",
font: "Calibri",
}),
],
}),
coverHeading("APPLIED ANATOMY"),
coverSubText("B.Sc Nursing | 1st Semester | RGUHS", 26, "D6E8F7"),
new Paragraph({
alignment: AlignmentType.CENTER,
spacing: { before: 200, after: 200 },
children: [
new TextRun({ text: "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━", size: 20, color: "5A9FCC", font: "Calibri" }),
],
}),
new Paragraph({
alignment: AlignmentType.CENTER,
spacing: { before: 160, after: 100 },
children: [
new TextRun({
text: "UNIT I",
bold: true,
size: 56,
color: "FFD700",
font: "Calibri",
}),
],
}),
new Paragraph({
alignment: AlignmentType.CENTER,
spacing: { before: 60, after: 200 },
children: [
new TextRun({
text: "Introduction to Anatomical Terms &",
bold: true,
size: 34,
color: WHITE,
font: "Calibri",
}),
],
}),
new Paragraph({
alignment: AlignmentType.CENTER,
spacing: { before: 0, after: 300 },
children: [
new TextRun({
text: "Organization of the Human Body",
bold: true,
size: 34,
color: WHITE,
font: "Calibri",
}),
],
}),
new Paragraph({
alignment: AlignmentType.CENTER,
spacing: { before: 200, after: 100 },
children: [
new TextRun({ text: "Prepared By:", size: 20, color: "A0C0DD", font: "Calibri" }),
],
}),
new Paragraph({
alignment: AlignmentType.CENTER,
spacing: { before: 60, after: 60 },
children: [
new TextRun({
text: "MR. UMAR SHAIKH",
bold: true,
size: 30,
color: "FFD700",
font: "Calibri",
}),
],
}),
new Paragraph({
alignment: AlignmentType.CENTER,
spacing: { before: 60, after: 60 },
children: [
new TextRun({ text: "M.Sc Nursing (CHN)", size: 22, color: WHITE, font: "Calibri" }),
],
}),
new Paragraph({
alignment: AlignmentType.CENTER,
spacing: { before: 40, after: 40 },
children: [
new TextRun({ text: "Nursing Lecturer & Academic Notes Developer", size: 21, color: "A0C0DD", font: "Calibri" }),
],
}),
new Paragraph({
alignment: AlignmentType.CENTER,
spacing: { before: 40, after: 200 },
children: [
new TextRun({ text: "Specialization: Community Health Nursing", size: 20, color: "A0C0DD", italics: true, font: "Calibri" }),
],
}),
new Paragraph({
alignment: AlignmentType.CENTER,
spacing: { before: 100, after: 100 },
children: [
new TextRun({ text: "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━", size: 20, color: "5A9FCC", font: "Calibri" }),
],
}),
new Paragraph({
alignment: AlignmentType.CENTER,
spacing: { before: 80, after: 200 },
children: [
new TextRun({
text: '"These notes are prepared according to university syllabus using standard textbooks, previous question papers, and AI-assisted academic structuring for better student understanding and exam preparation."',
italics: true,
size: 19,
color: "A0C0DD",
font: "Calibri",
}),
],
}),
new Paragraph({
alignment: AlignmentType.CENTER,
spacing: { before: 60, after: 200 },
children: [
new TextRun({ text: "Academic Year: 2026", size: 22, color: "D6E8F7", bold: true, font: "Calibri" }),
],
}),
],
borders: {
top: { style: BorderStyle.NONE }, bottom: { style: BorderStyle.NONE },
left: { style: BorderStyle.NONE }, right: { style: BorderStyle.NONE }
}
}),
],
}),
],
}),
new Paragraph({ children: [new PageBreak()] }),
];
}
// ─── MAIN CONTENT ────────────────────────────────────────────────────────────
function buildContent() {
const content = [];
// ── INTRODUCTION ──────────────────────────────────────────────────────────
content.push(sectionTitle("Introduction to Applied Anatomy"));
content.push(bodyPara(
"Anatomy is the science that studies the structure of the human body. The word 'Anatomy' comes from the Greek words 'ana' (apart) and 'tome' (to cut), meaning 'to cut apart.' For nursing students, a thorough understanding of human anatomy forms the foundation for safe, effective patient care."
));
content.push(bullet("Applied Anatomy = Anatomy + Clinical Application"));
content.push(bullet("Studied as Gross (Macroscopic) Anatomy and Microscopic Anatomy (Histology)"));
content.push(bullet("Approaches: Regional Approach and Systemic Approach"));
content.push(bullet("Key Reference Textbooks: Ross & Wilson (Anatomy & Physiology), Gray's Anatomy for Students, Tortora & Derrickson (Principles of Anatomy & Physiology)"));
content.push(...spacer(1));
// ─── SECTION 1: ANATOMICAL POSITION & TERMS ────────────────────────────────
content.push(sectionTitle("1. Anatomical Terms and Anatomical Position"));
content.push(definitionBox(
"Anatomical Position",
"The standard reference position of the body used to describe locations and directions. The body stands erect, facing forward, feet together, arms at the sides with palms facing forward (anteriorly). All anatomical descriptions are based on this position."
));
content.push(...spacer(1));
content.push(rememberBox(
"TRICK to Remember Anatomical Position:\n'Stand STRAIGHT, Look FORWARD, Palms FRONT' — SSLPF\nThis is the ZERO REFERENCE POINT for ALL anatomical descriptions."
));
content.push(...spacer(1));
// Terms Table
content.push(subTitle("1.1 Directional Terms (Anatomical Terms)"));
content.push(bodyPara("These terms describe the position of one structure relative to another in the body:"));
content.push(...spacer(1));
content.push(makeTable(
["Term", "Meaning / Definition", "Example / Nursing Use"],
[
["Anterior (Ventral)", "Towards the front of the body", "Chest is anterior to the spine"],
["Posterior (Dorsal)", "Towards the back of the body", "Spine is posterior to the chest"],
["Superior (Cranial)", "Towards the head / upper part", "Head is superior to the neck"],
["Inferior (Caudal)", "Towards the feet / lower part", "Feet are inferior to the knees"],
["Medial", "Towards the midline of the body", "Nose is medial to the eyes"],
["Lateral", "Away from the midline", "Arms are lateral to the trunk"],
["Proximal", "Closer to the origin / root of a limb", "Shoulder is proximal to the elbow"],
["Distal", "Further from the origin / root of a limb", "Fingers are distal to the wrist"],
["Superficial", "Close to or on the surface of the body", "Skin is superficial to muscle"],
["Deep", "Further from the surface of the body", "Bones are deep to muscles"],
["Prone", "Lying face downward", "Patient placed prone for back procedures"],
["Supine", "Lying face upward (on back)", "Most common position for examination"],
["Palmar", "Relating to the palm of the hand", "Palmar surface faces anteriorly in anatomical position"],
["Plantar", "Relating to the sole of the foot", "Plantar reflex tested on sole of foot"],
]
));
content.push(...spacer(1));
content.push(clinicalNoteBox(
"Nursing Relevance of Directional Terms:\n" +
"• Supine position: Used for abdominal examination, IV cannulation, CPR\n" +
"• Prone position: Used for spinal surgery, to improve oxygenation in ARDS patients\n" +
"• Superficial veins (e.g., cephalic, basilic, median cubital) are used for venipuncture and IV access\n" +
"• Understanding proximal vs. distal helps in wound description and fracture documentation"
));
content.push(...spacer(1));
// ── SECTION 2: ANATOMICAL PLANES ──────────────────────────────────────────
content.push(sectionTitle("2. Anatomical Planes"));
content.push(definitionBox(
"Anatomical Planes",
"Imaginary flat surfaces or lines that pass through the body to help describe the location and sections of body structures. They are used in anatomy, radiology, surgery, and physiotherapy."
));
content.push(...spacer(1));
content.push(makeTable(
["Plane", "Other Name", "Description", "Clinical Use"],
[
["Sagittal Plane", "Median / Vertical Plane", "Divides body into LEFT and RIGHT parts. The Midsagittal plane divides into equal halves", "MRI sagittal sections; spinal cord views"],
["Coronal Plane", "Frontal Plane", "Divides body into ANTERIOR (front) and POSTERIOR (back) parts", "CT coronals; chest X-ray interpretations"],
["Axial Plane", "Transverse / Horizontal Plane", "Divides body into SUPERIOR (upper) and INFERIOR (lower) parts", "CT scan cross-sections (standard orientation)"],
["Oblique Plane", "Diagonal Plane", "Passes through body at any angle other than the above planes", "Angled surgical incisions and imaging views"],
]
));
content.push(...spacer(1));
content.push(rememberBox(
"MEMORY AID for Planes:\n" +
"S-C-A-O = 'Some Clever Anatomy Online'\n" +
"Sagittal = Left & Right\n" +
"Coronal = Front & Back\n" +
"Axial = Top & Bottom (Think: CT scans are axial!)\n" +
"Oblique = Diagonal"
));
content.push(...spacer(1));
content.push(clinicalNoteBox(
"Planes in Nursing Practice:\n" +
"• CT Scan: Most commonly uses the Axial (transverse) plane to produce 'slices' of the body\n" +
"• MRI Brain: Uses all three planes (Sagittal for midline structures, Coronal for temporal lobes, Axial for most pathology)\n" +
"• Understanding planes helps nurses read imaging reports and assist in patient positioning for procedures"
));
content.push(...spacer(1));
// ── SECTION 3: MOVEMENTS ──────────────────────────────────────────────────
content.push(sectionTitle("3. Anatomical Movements"));
content.push(bodyPara(
"Body movements occur at joints and are described using specific anatomical terms. These terms help healthcare professionals document and assess patient mobility, joint range, and neurological function."
));
content.push(...spacer(1));
content.push(subTitle("3.1 Primary Movements"));
content.push(makeTable(
["Movement", "Definition", "Example"],
[
["Flexion", "Decreasing the angle between two bones (bending)", "Bending the elbow, bending the knee"],
["Extension", "Increasing the angle between two bones (straightening)", "Straightening the elbow or knee"],
["Abduction", "Moving a body part AWAY from the midline", "Raising the arm sideways away from body"],
["Adduction", "Moving a body part TOWARDS the midline", "Bringing the arm back to the side of body"],
["Medial (Internal) Rotation", "Rotating a body part TOWARD the midline", "Turning the arm inward (palm faces back)"],
["Lateral (External) Rotation", "Rotating a body part AWAY from the midline", "Turning the arm outward (palm faces forward)"],
["Circumduction", "Circular movement combining flexion, extension, abduction, adduction", "Swinging the arm in a full circle"],
]
));
content.push(...spacer(1));
content.push(subTitle("3.2 Special Movements"));
content.push(makeTable(
["Movement", "Definition", "Location / Example"],
[
["Inversion", "Turning the sole of the foot INWARD (medially)", "Ankle joint — rolling ankle inward"],
["Eversion", "Turning the sole of the foot OUTWARD (laterally)", "Ankle joint — rolling ankle outward"],
["Supination", "Rotating the forearm so palm faces UPWARD (anteriorly)", "Forearm — holding a bowl of soup"],
["Pronation", "Rotating the forearm so palm faces DOWNWARD (posteriorly)", "Forearm — typing on keyboard"],
["Dorsiflexion", "Bending the foot UPWARD toward the shin", "Ankle — pulling toes up toward knee"],
["Plantar Flexion", "Bending the foot DOWNWARD (pointing toes)", "Ankle — standing on tiptoe"],
]
));
content.push(...spacer(1));
content.push(clinicalNoteBox(
"Movement Assessment in Nursing:\n" +
"• Range of Motion (ROM) exercises use all these movements to prevent contractures in bedridden patients\n" +
"• Inversion injuries = most common ankle sprain — lateral ligament torn\n" +
"• Dorsiflexion test (Homan's sign): Pain on dorsiflexion may indicate DVT (Deep Vein Thrombosis)\n" +
"• Supination of forearm is tested in radial nerve palsy assessment\n" +
"• Nurses document joint movements as: Full ROM, Limited ROM, or No ROM"
));
content.push(...spacer(1));
// ── SECTION 4: CELL STRUCTURE & DIVISION ──────────────────────────────────
content.push(new Paragraph({ children: [new PageBreak()] }));
content.push(sectionTitle("4. Cell Structure and Cell Division"));
content.push(definitionBox(
"Cell",
"The cell is the basic structural and functional unit of all living organisms. The human body contains approximately 37.2 trillion cells. All cells share certain common features but differ in structure and function according to their specialization. (Ross & Wilson, 2018)"
));
content.push(...spacer(1));
content.push(subTitle("4.1 Structure of a Typical Human Cell"));
content.push(bodyPara("A typical cell has three main components:"));
content.push(bullet("Cell Membrane (Plasma Membrane)", 0));
content.push(bullet("Cytoplasm (with organelles)", 0));
content.push(bullet("Nucleus", 0));
content.push(...spacer(1));
content.push(makeTable(
["Organelle", "Structure", "Function"],
[
["Cell Membrane", "Phospholipid bilayer with embedded proteins (fluid mosaic model)", "Controls what enters and leaves the cell; cell communication; receptor sites"],
["Nucleus", "Enclosed by nuclear envelope; contains chromatin and nucleolus", "Control centre of cell; contains DNA; directs protein synthesis and cell division"],
["Nucleolus", "Dense area inside nucleus", "Produces ribosomal RNA (rRNA); assembles ribosomes"],
["Mitochondria", "Double membrane; inner membrane has cristae; contains own DNA", "Site of cellular respiration (ATP production); 'Powerhouse of the cell'"],
["Ribosomes", "Small granules of RNA and protein; free or on RER", "Site of protein synthesis (translation)"],
["Rough ER (RER)", "Membrane network studded with ribosomes", "Synthesizes and transports proteins (especially secretory proteins)"],
["Smooth ER (SER)", "Membrane network without ribosomes", "Lipid and steroid hormone synthesis; detoxification; Ca2+ storage"],
["Golgi Apparatus", "Stacked flattened membranous sacs (cisternae)", "Packages and distributes proteins and lipids; forms lysosomes and secretory vesicles"],
["Lysosomes", "Membrane-bound vesicles containing hydrolytic enzymes", "Intracellular digestion; destroys worn-out organelles and foreign substances"],
["Centrosome", "Two centrioles (cylindrical structures)", "Organizes spindle fibres during cell division"],
["Cytoskeleton", "Microfilaments, intermediate filaments, microtubules", "Provides structural support; facilitates cell movement and organelle transport"],
["Cilia / Flagella", "Hair-like projections from cell surface", "Cilia: moves substances over cell surface. Flagella: cell movement (sperm)"],
["Vacuoles", "Membrane-bound sacs in cytoplasm", "Storage of water, nutrients, waste products"],
]
));
content.push(...spacer(1));
content.push(rememberBox(
"MEMORY AID — Cell Organelles:\n" +
"My New Ribs Give Surgeons Lots of Good Cells Vividly\n" +
"M = Mitochondria | N = Nucleus | R = Ribosomes | G = Golgi | S = SER/RER\n" +
"L = Lysosomes | G = Golgi | C = Centrioles | V = Vacuoles"
));
content.push(...spacer(1));
content.push(subTitle("4.2 Cell Division"));
content.push(bodyPara(
"Cell division is the process by which a parent cell divides into two or more daughter cells. There are two main types of cell division in the human body:"
));
content.push(...spacer(1));
content.push(makeTable(
["Feature", "Mitosis", "Meiosis"],
[
["Purpose", "Growth, repair, replacement of somatic (body) cells", "Production of gametes (sperm and eggs) for sexual reproduction"],
["Occurs in", "All somatic (body) cells", "Gonads (testes and ovaries) only"],
["Number of divisions", "1 division", "2 divisions (Meiosis I and II)"],
["Daughter cells produced", "2 daughter cells", "4 daughter cells (gametes)"],
["Chromosome number", "Diploid (2n = 46) — same as parent", "Haploid (n = 23) — half of parent"],
["Genetic variation", "None (identical copies)", "Yes (crossing over and random assortment)"],
["Stages", "Prophase, Metaphase, Anaphase, Telophase", "Prophase I, Metaphase I, Anaphase I, Telophase I, then II"],
]
));
content.push(...spacer(1));
content.push(subSubTitle("Phases of Mitosis (PMAT)"));
content.push(bullet("Prophase: Chromatin condenses into chromosomes; nuclear envelope disappears; spindle fibres form"));
content.push(bullet("Metaphase: Chromosomes align at cell equator (metaphase plate); spindle fibres attach to centromeres"));
content.push(bullet("Anaphase: Sister chromatids separate and are pulled to opposite poles of the cell"));
content.push(bullet("Telophase: Nuclear envelopes reform around each set of chromosomes; chromosomes uncoil; cytokinesis begins"));
content.push(bullet("Cytokinesis: Division of the cytoplasm producing two complete daughter cells"));
content.push(...spacer(1));
content.push(clinicalNoteBox(
"Clinical Relevance of Cell Division:\n" +
"• Cancer = uncontrolled, abnormal cell mitosis\n" +
"• Chemotherapy targets rapidly dividing cells (cancer cells use mitosis excessively)\n" +
"• Down Syndrome = non-disjunction during meiosis → trisomy 21 (47 chromosomes)\n" +
"• Stem cells (undifferentiated) undergo controlled mitosis for tissue repair\n" +
"• Nurses must understand cell biology to explain disease processes to patients"
));
content.push(...spacer(1));
// ── SECTION 5: TISSUES ────────────────────────────────────────────────────
content.push(new Paragraph({ children: [new PageBreak()] }));
content.push(sectionTitle("5. Tissues — Types, Characteristics, Classification and Location"));
content.push(definitionBox(
"Tissue",
"A tissue is a group of cells that are similar in structure, origin, and function, held together by intercellular matrix or cement substance. Histology is the study of tissues. The four primary types of tissues are: Epithelial, Connective, Muscle, and Nervous tissue. (Ross & Wilson, 2018)"
));
content.push(...spacer(1));
content.push(subTitle("5.1 Epithelial Tissue"));
content.push(bodyPara("Epithelial tissue covers body surfaces, lines body cavities, and forms glands."));
content.push(makeTable(
["Type", "Characteristics", "Location", "Function"],
[
["Simple Squamous", "Single layer of flat, scale-like cells; nucleus centrally placed", "Alveoli of lungs, blood vessel walls (endothelium), Bowman's capsule", "Diffusion, filtration, osmosis"],
["Simple Cuboidal", "Single layer of cube-shaped cells", "Kidney tubules, thyroid follicles, small glands", "Secretion, absorption"],
["Simple Columnar", "Single layer of tall, column-shaped cells; may have microvilli or cilia", "Lining of stomach, small intestine, large intestine, uterine tube", "Absorption, secretion, movement of substances"],
["Pseudostratified Columnar", "Appears layered but all cells touch basement membrane; often ciliated", "Trachea, bronchi, nasal cavity, male urethra", "Secretion and movement of mucus (respiratory tract)"],
["Stratified Squamous", "Multiple layers; surface cells flat; protective", "Skin (keratinized), mouth, oesophagus, vagina (non-keratinized)", "Protection against abrasion and drying"],
["Stratified Cuboidal", "2+ layers of cuboidal cells (rare)", "Sweat glands, salivary glands, mammary glands", "Protection, secretion"],
["Transitional (Urothelium)", "Multiple layers; surface cells dome-shaped; can stretch", "Urinary bladder, ureters, renal pelvis", "Allows distension when bladder fills"],
]
));
content.push(...spacer(1));
content.push(subTitle("5.2 Connective Tissue"));
content.push(bodyPara(
"Connective tissue is the most abundant and widely distributed tissue. It consists of cells, protein fibres (collagen, elastic, reticular), and ground substance (amorphous intercellular matrix)."
));
content.push(makeTable(
["Type", "Characteristics", "Location", "Function"],
[
["Loose (Areolar)", "Loosely arranged collagen and elastic fibres; fibroblasts, macrophages, mast cells", "Under skin (subcutaneous), around blood vessels, organs", "Supports and binds organs; allows movement; site of immune response"],
["Dense Regular", "Tightly packed parallel collagen fibres; few fibroblasts", "Tendons, ligaments, aponeuroses", "Withstands strong unidirectional forces"],
["Dense Irregular", "Tightly packed collagen fibres in random directions", "Dermis of skin, joint capsules, periosteum", "Resists forces from multiple directions"],
["Adipose", "Fat cells (adipocytes) predominate; very little matrix", "Under skin, around kidneys, orbits, in bone marrow", "Energy storage, insulation, organ protection, cushioning"],
["Reticular", "Fine network of reticular fibres (type III collagen)", "Lymph nodes, spleen, liver, bone marrow, thymus", "Forms supporting framework for lymphoid and haemopoietic tissue"],
["Cartilage", "Chondrocytes in lacunae; surrounded by matrix", "See Section 7 below", "Support, reduces friction at joints"],
["Bone (Osseous)", "Osteocytes in lacunae; hard calcified matrix", "Skeleton", "Support, protection, movement, blood cell production, mineral storage"],
["Blood", "Erythrocytes, leucocytes, platelets; plasma matrix", "Blood vessels, heart", "Transport of O2, CO2, nutrients, hormones, waste; immunity; clotting"],
]
));
content.push(...spacer(1));
content.push(subTitle("5.3 Muscle Tissue"));
content.push(makeTable(
["Feature", "Skeletal Muscle", "Smooth Muscle", "Cardiac Muscle"],
[
["Location", "Attached to bones; tongue, diaphragm", "Walls of hollow organs: stomach, intestines, blood vessels, bladder, uterus", "Heart wall (myocardium) only"],
["Cell Shape", "Long cylindrical fibres", "Spindle-shaped (fusiform); tapered ends", "Branched, cylindrical fibres"],
["Striations", "Yes (striated)", "No (non-striated)", "Yes (striated)"],
["Nuclei per cell", "Many (multinucleate) — peripheral nuclei", "Single, centrally placed nucleus", "1-2 centrally placed nuclei"],
["Control", "Voluntary (conscious control)", "Involuntary (autonomic nervous system)", "Involuntary (autorhythmic)"],
["Intercalated Discs", "Absent", "Absent", "Present — allow electrical coupling"],
["Speed of contraction", "Fast", "Slow", "Moderate, rhythmic"],
["Fatigue", "Fatigues easily", "Does not fatigue easily", "Never fatigues (normally)"],
["Regeneration", "Limited (via satellite cells)", "Good capacity for regeneration", "Very limited regeneration"],
["Function", "Body movement, posture, heat production", "Controls flow through hollow organs; peristalsis; vasoconstriction", "Pumps blood through the circulatory system"],
]
));
content.push(...spacer(1));
content.push(subTitle("5.4 Nervous Tissue"));
content.push(bodyPara("Nervous tissue consists of two main cell types:"));
content.push(bullet("Neurons (Nerve Cells): Excitable cells that generate and conduct electrical impulses (action potentials). Each neuron has a cell body (soma), dendrites (receive signals), and an axon (transmits signals to next neuron or effector)."));
content.push(bullet("Neuroglia (Glial Cells): Support cells that nourish, protect, and maintain neurons. Examples: Astrocytes, Oligodendrocytes (CNS), Schwann cells (PNS), Microglia, Ependymal cells."));
content.push(...spacer(1));
content.push(clinicalNoteBox(
"Tissue Damage & Nursing Care:\n" +
"• Pressure ulcers: Prolonged pressure destroys epithelial and connective tissue — 2-hourly repositioning prevents this\n" +
"• Burns: Destroy epithelial tissue — wound care, skin grafting needed\n" +
"• Muscle wasting (atrophy): Occurs in immobile patients — physiotherapy and early mobilization essential\n" +
"• Scar tissue: Dense irregular connective tissue formed during wound healing\n" +
"• Transitional epithelium in bladder: Important for catheterization understanding"
));
content.push(...spacer(1));
// ── SECTION 6: MEMBRANES ──────────────────────────────────────────────────
content.push(new Paragraph({ children: [new PageBreak()] }));
content.push(sectionTitle("6. Membranes — Classification and Structure"));
content.push(definitionBox(
"Body Membranes",
"Membranes are thin, pliable sheets of tissue that cover the body surface, line body cavities, and surround organs. They are classified into Epithelial Membranes and Connective Tissue Membranes."
));
content.push(...spacer(1));
content.push(makeTable(
["Membrane", "Structure", "Location", "Function / Clinical Relevance"],
[
["Mucous Membrane (Mucosa)", "Epithelial tissue + areolar connective tissue; goblet cells secrete mucus", "Lines body cavities open to exterior: respiratory, digestive, urinary, reproductive tracts", "Protection; secretes mucus to lubricate and trap particles; absorbs nutrients (GI tract)"],
["Serous Membrane (Serosa)", "Mesothelium (simple squamous) + thin layer of areolar tissue; secretes watery fluid", "Lines closed body cavities: Pleura (lungs), Pericardium (heart), Peritoneum (abdominal organs)", "Reduces friction between organs; pleuritis = inflamed pleural membrane causing pleuritic chest pain"],
["Cutaneous Membrane", "Stratified squamous keratinized epithelium + thick dermis (connective tissue)", "Covers entire outer surface of body (SKIN)", "Protection against physical, chemical, microbial injury; waterproof barrier"],
["Synovial Membrane", "Connective tissue only (NO epithelium); fibroblast-like synoviocytes", "Lines joint capsules, tendon sheaths, bursae", "Secretes synovial fluid to lubricate and nourish articular cartilage; rheumatoid arthritis = autoimmune destruction of synovial membrane"],
]
));
content.push(...spacer(1));
content.push(clinicalNoteBox(
"Membrane-Related Nursing Care:\n" +
"• Pleurisy: Inflammation of pleural membrane → painful breathing — encourage semi-Fowler's position\n" +
"• Peritonitis: Inflammation of peritoneum → severe abdominal pain, rigidity — emergency condition, surgical intervention often needed\n" +
"• Pericarditis: Inflammation of pericardium → pericardial friction rub, chest pain\n" +
"• Mucous membrane care: Oral hygiene, nasal hygiene, eye care in unconscious patients\n" +
"• Synovial fluid aspiration (arthrocentesis): Nurse assists in joint aspiration for arthritis diagnosis/treatment"
));
content.push(...spacer(1));
// ── SECTION 7: GLANDS ─────────────────────────────────────────────────────
content.push(sectionTitle("7. Glands — Classification and Structure"));
content.push(definitionBox(
"Gland",
"A gland is one or more cells that make and secrete (release) a particular product. Glands are derived from epithelial tissue. They are classified as Exocrine glands (secrete into ducts onto body surfaces) and Endocrine glands (secrete hormones directly into bloodstream)."
));
content.push(...spacer(1));
content.push(subTitle("7.1 Exocrine Glands"));
content.push(makeTable(
["Classification", "Type", "Description", "Example"],
[
["By Structure", "Unicellular", "Single secretory cell", "Goblet cells in intestine/respiratory tract"],
["By Structure", "Multicellular — Simple", "Single unbranched duct", "Sweat glands (simple tubular)"],
["By Structure", "Multicellular — Compound", "Branched duct system", "Liver, pancreas, salivary glands"],
["By Secretion Method", "Merocrine (Eccrine)", "Secretion by exocytosis; cell remains intact", "Salivary glands, most sweat glands, pancreas"],
["By Secretion Method", "Apocrine", "Part of apical cell membrane is shed with secretion", "Mammary glands, axillary sweat glands"],
["By Secretion Method", "Holocrine", "Entire cell disintegrates to release secretion", "Sebaceous (oil) glands of skin"],
["By Product", "Serous", "Watery, enzyme-rich secretion", "Parotid gland"],
["By Product", "Mucous", "Thick, viscous mucus secretion", "Sublingual gland"],
["By Product", "Mixed", "Both serous and mucous", "Submandibular gland"],
]
));
content.push(...spacer(1));
content.push(subTitle("7.2 Endocrine Glands"));
content.push(bodyPara("Endocrine glands are ductless glands that secrete hormones directly into the blood or lymph. They are richly vascularised."));
content.push(bullet("Examples: Pituitary gland, Thyroid gland, Parathyroid glands, Adrenal glands, Pancreatic islets (islets of Langerhans), Gonads (testes and ovaries), Thymus, Pineal gland"));
content.push(bullet("Hormones act on target organs to regulate body functions like growth, metabolism, reproduction, and stress response"));
content.push(...spacer(1));
content.push(clinicalNoteBox(
"Gland-Related Clinical Notes:\n" +
"• Sebaceous gland blockage → Acne vulgaris (common in adolescence — sebaceous glands respond to androgens)\n" +
"• Parotid gland inflammation → Mumps (viral infection)\n" +
"• Pancreatic exocrine insufficiency → Malabsorption, steatorrhoea (fatty stools)\n" +
"• Endocrine gland tumours (e.g., pheochromocytoma of adrenal gland) → Hypertensive crises\n" +
"• Nurses administer hormone replacements: Thyroxine (hypothyroidism), Insulin (diabetes mellitus)"
));
content.push(...spacer(1));
// ── SECTION 8: CARTILAGE ──────────────────────────────────────────────────
content.push(new Paragraph({ children: [new PageBreak()] }));
content.push(sectionTitle("8. Cartilage — Hyaline, Fibrocartilage, and Elastic Cartilage"));
content.push(definitionBox(
"Cartilage",
"Cartilage is a specialized form of connective tissue characterized by a firm but flexible matrix (chondrin) composed mainly of collagen and proteoglycans (chondroitin sulfate). Cells are called chondrocytes and are housed in spaces called lacunae. Cartilage is avascular (no blood vessels) and aneural (no nerves), so it heals very slowly. (Gray's Anatomy for Students)"
));
content.push(...spacer(1));
content.push(makeTable(
["Feature", "Hyaline Cartilage", "Fibrocartilage", "Elastic Cartilage"],
[
["Matrix", "Homogeneous, glassy/bluish appearance; type II collagen (not visible)", "Prominent bundles of type I collagen fibres (visible in H&E stain)", "Type II collagen + dense network of elastic fibres; yellowish"],
["Flexibility", "Moderately flexible", "Least flexible (very tough, rigid)", "Most flexible and elastic of all cartilage types"],
["Perichondrium", "Present", "Absent", "Present"],
["Blood Supply", "Avascular (nutrients by diffusion)", "Avascular", "Avascular"],
["Chondrocytes", "Small, in lacunae; organized in groups (isogenous groups)", "In rows between collagen bundles", "In lacunae throughout elastic fibre network"],
["Location", "Most abundant type:\n• Articular surfaces of synovial joints\n• Costal cartilages (ribs to sternum)\n• Larynx, trachea, bronchi\n• Nasal septum and external nose\n• Epiphyseal (growth) plate in growing bones", "• Intervertebral discs (nucleus pulposus surrounding)\n• Pubic symphysis\n• Menisci of knee joint\n• Temporomandibular joint (TMJ)\n• Attachment of tendons to bone", "• External ear (auricle/pinna)\n• Epiglottis\n• Auditory tube (Eustachian tube)\n• Cuneiform cartilages of larynx"],
["Function", "Reduces friction at joints; forms model for bone development (endochondral ossification); supports flexible yet firm structures", "Withstands compression and tension; acts as shock absorber in intervertebral discs and knee menisci", "Maintains shape while allowing significant flexibility and return to original shape"],
["Healing", "Poor (avascular); tends to calcify with age", "Poor", "Poor but slightly better due to matrix resilience"],
]
));
content.push(...spacer(1));
content.push(clinicalNoteBox(
"Cartilage in Clinical Practice:\n" +
"• Osteoarthritis: Degeneration of hyaline articular cartilage → joint pain, stiffness, reduced mobility\n" +
"• Slipped disc (Prolapsed Intervertebral Disc/PID): Nucleus pulposus herniates through fibrocartilage annulus fibrosus → nerve compression → back/leg pain (sciatica)\n" +
"• Costochondritis (Tietze's syndrome): Inflammation of hyaline costal cartilage → chest pain mimicking cardiac pain\n" +
"• Laryngomalacia: Softening of epiglottic elastic cartilage → inspiratory stridor in infants\n" +
"• Fractures in cartilage: Heal very slowly because cartilage is avascular — nursing care requires prolonged immobilization"
));
content.push(...spacer(1));
// ── SECTION 9: BODY SURFACE AND BONY LANDMARKS ───────────────────────────
content.push(sectionTitle("9. Major Surface and Bony Landmarks in Each Body Region"));
content.push(bodyPara(
"Bony landmarks (also called bony prominences or anatomical landmarks) are palpable projections, depressions, or distinctive features of bones that are used to identify anatomical locations, guide clinical procedures, and assess body structures."
));
content.push(...spacer(1));
content.push(makeTable(
["Body Region", "Key Bony Landmarks", "Clinical Relevance"],
[
["Head & Skull", "Mastoid process (behind ear), External occipital protuberance, Zygomatic arch, Orbit, Mandible (angle, symphysis)", "Mastoid tenderness → Mastoiditis; Mandible: injection sites for dental anaesthesia"],
["Neck", "Thyroid cartilage (Adam's apple), Cricoid cartilage, C7 vertebra (Vertebra prominens)", "Cricothyrotomy site: between thyroid and cricoid cartilage for emergency airway; C7 used as surface landmark"],
["Thorax (Chest)", "Sternum (manubrium, body, xiphoid process), Clavicle, Ribs 1–12, Costal angle, Sternal angle (Louis angle at T4–T5)", "CPR: Heel of hand on lower sternum; Sternal angle = reference for rib counting (2nd rib at sternal angle)"],
["Abdomen", "Iliac crest, Anterior superior iliac spine (ASIS), Umbilicus (T10 level), Pubic symphysis", "ASIS: Landmark for IV injection into vastus lateralis; iliac crest: Bone marrow biopsy site, spinal anaesthesia reference"],
["Upper Limb", "Acromion (shoulder), Medial epicondyle (ulnar nerve), Olecranon (elbow), Styloid processes (wrist), Metacarpal heads", "Radial pulse: Wrist above radius; Cubital fossa: venipuncture site; Olecranon bursitis: housemaid's elbow"],
["Lower Limb", "Greater trochanter (hip), Patella, Tibial tuberosity, Medial/Lateral malleolus (ankle), Calcaneum (heel)", "Greater trochanter: landmark for hip injection (vastus lateralis, dorsogluteal site); Medial malleolus: posterior tibial pulse; Tibial tuberosity: intraosseous access site"],
["Back / Spine", "Spinous processes (C7, T1, L4 — interiliac line), Sacral hiatus, Posterior superior iliac spine (PSIS)", "L4–L5 or L3–L4 space: Lumbar puncture (LP) site; L4 spinous process = interiliac line landmark; PSIS = 'Dimples of Venus'"],
]
));
content.push(...spacer(1));
content.push(clinicalNoteBox(
"Bony Landmarks in Nursing Procedures:\n" +
"• IM Injection Sites: Deltoid (2-3 finger breadths below acromion), Vastus lateralis (greater trochanter to lateral condyle of femur), Dorsogluteal (above and outside line joining PSIS and greater trochanter)\n" +
"• IV Cannulation: Median cubital vein (between medial and lateral epicondyle), cephalic vein, basilic vein\n" +
"• ECG electrode placement uses rib and sternal angle landmarks (e.g., V1 = 4th intercostal space, right of sternum)\n" +
"• Intraosseous (IO) access in emergency: Tibial tuberosity — 2 cm below and medially"
));
content.push(...spacer(1));
// ── SECTION 10: ORGANIZATION OF HUMAN BODY ────────────────────────────────
content.push(new Paragraph({ children: [new PageBreak()] }));
content.push(sectionTitle("10. Organization of the Human Body"));
content.push(bodyPara(
"The human body is organized into levels of increasing structural complexity:"
));
content.push(...spacer(1));
// Tree/flow structure
content.push(new Table({
width: { size: 100, type: WidthType.PERCENTAGE },
rows: [
new TableRow({
children: [
new TableCell({
shading: { fill: DARK_BLUE, type: ShadingType.CLEAR },
children: [
new Paragraph({
alignment: AlignmentType.CENTER,
children: [new TextRun({ text: "LEVELS OF BODY ORGANIZATION (Lowest → Highest)", bold: true, size: 24, color: WHITE, font: "Calibri" })]
})
],
borders: { top: { style: BorderStyle.NONE }, bottom: { style: BorderStyle.NONE }, left: { style: BorderStyle.NONE }, right: { style: BorderStyle.NONE } }
})
]
}),
...([
["1. Chemical / Atomic Level", "Atoms (C, H, O, N, P) → Molecules (water, glucose, proteins, DNA)", LIGHT_BLUE],
["2. Cellular Level", "Molecules combine to form cells — the basic unit of life", BOX_GRAY],
["3. Tissue Level", "Similar cells grouped together form tissues (Epithelial, Connective, Muscle, Nervous)", LIGHT_BLUE],
["4. Organ Level", "Two or more tissue types combine to form an organ with specific function (e.g., heart, liver, kidney)", BOX_GRAY],
["5. Organ System Level", "Related organs cooperate to perform major body functions (e.g., Cardiovascular System, Digestive System)", LIGHT_BLUE],
["6. Organism Level", "All organ systems together = one living individual — the complete human being", BOX_GRAY],
].map(([level, desc, fill]) =>
new TableRow({
children: [
new TableCell({
shading: { fill, type: ShadingType.CLEAR },
children: [
new Paragraph({
spacing: { before: 80, after: 80 },
children: [
new TextRun({ text: level + " — ", bold: true, size: 22, font: "Calibri", color: DARK_BLUE }),
new TextRun({ text: desc, size: 22, font: "Calibri", color: DARK_TEXT }),
]
})
],
borders: { top: { style: BorderStyle.SINGLE, size: 4, color: GRAY_BORDER }, bottom: { style: BorderStyle.SINGLE, size: 4, color: GRAY_BORDER }, left: { style: BorderStyle.NONE }, right: { style: BorderStyle.NONE } }
})
]
})
)),
],
}));
content.push(...spacer(1));
content.push(subTitle("10.1 Body Cavities"));
content.push(makeTable(
["Body Cavity", "Location", "Contents"],
[
["Cranial Cavity", "Inside the skull", "Brain"],
["Spinal / Vertebral Canal", "Inside the vertebral column", "Spinal cord"],
["Thoracic Cavity", "Chest region (inside rib cage)", "Heart (in mediastinum), Lungs (in pleural cavities), Oesophagus, Trachea"],
["Abdominal Cavity", "Between diaphragm and pelvis (upper)", "Stomach, Small intestine, Large intestine, Liver, Gallbladder, Pancreas, Spleen, Kidneys (retroperitoneal)"],
["Pelvic Cavity", "Within the bony pelvis (lower)", "Urinary bladder, Rectum, Internal reproductive organs"],
["Abdomino-pelvic Cavity", "Combined abdominal + pelvic", "All organs of abdomen and pelvis"],
]
));
content.push(...spacer(1));
content.push(subTitle("10.2 Body Systems and Their Functions"));
content.push(makeTable(
["System", "Major Organs", "Main Function"],
[
["Integumentary", "Skin, hair, nails, sweat glands, sebaceous glands", "Protection, temperature regulation, sensation, vitamin D synthesis"],
["Skeletal", "Bones (206), cartilage, joints, ligaments", "Support, protection, movement, blood cell production, mineral storage"],
["Muscular", "Skeletal, smooth, cardiac muscles", "Movement, posture, heat production"],
["Nervous", "Brain, spinal cord, peripheral nerves", "Communication, regulation, coordination, sensation, consciousness"],
["Endocrine", "Hypothalamus, pituitary, thyroid, adrenal glands, pancreas, gonads", "Hormone secretion; regulates metabolism, growth, reproduction"],
["Cardiovascular", "Heart, blood vessels (arteries, veins, capillaries)", "Transports blood, O2, nutrients, hormones, waste throughout body"],
["Lymphatic/Immune", "Lymph nodes, spleen, thymus, lymphatic vessels, tonsils", "Returns tissue fluid to blood; immune defence; fat absorption"],
["Respiratory", "Nose, pharynx, larynx, trachea, bronchi, lungs, alveoli", "Gaseous exchange (O2 in, CO2 out); acid-base balance"],
["Digestive", "Mouth to anus + liver, pancreas, gallbladder", "Breaks down food; absorbs nutrients; eliminates solid waste"],
["Urinary (Renal)", "Kidneys, ureters, bladder, urethra", "Filters blood; produces urine; regulates fluid, electrolyte, acid-base balance"],
["Reproductive (Male)", "Testes, ducts, penis, prostate", "Produces sperm and male sex hormones"],
["Reproductive (Female)", "Ovaries, uterus, fallopian tubes, vagina, mammary glands", "Produces eggs; site of fertilization, pregnancy, lactation"],
]
));
content.push(...spacer(1));
content.push(clinicalNoteBox(
"Body Organization — Nursing Application:\n" +
"• Systems approach helps nurses plan holistic (whole-body) care\n" +
"• A problem at one level affects all higher levels: e.g., DNA mutation (chemical) → cancer cell (cellular) → tumour (organ) → organ failure (system) → death (organism)\n" +
"• Homeostasis: The ability of the body to maintain a stable internal environment despite external changes — critical for survival\n" +
"• Nursing assessments follow a systems-based approach (head-to-toe assessment)"
));
content.push(...spacer(1));
// ── SECTION 11: APPLICATION IN NURSING ────────────────────────────────────
content.push(new Paragraph({ children: [new PageBreak()] }));
content.push(sectionTitle("11. Application and Implication in Nursing"));
content.push(bodyPara(
"A sound knowledge of Unit I concepts is directly applied in everyday nursing practice. Below are key areas:"
));
content.push(...spacer(1));
content.push(makeTable(
["Anatomical Concept", "Nursing Application"],
[
["Anatomical Position & Terms", "Accurately documenting wound locations, describing pain sites, reporting findings to physicians (e.g., 'medial aspect of left lower limb')"],
["Anatomical Planes", "Interpreting X-rays, CT scans, MRI reports; understanding surgical incision descriptions"],
["Directional Terms (Proximal/Distal)", "Documenting fractures, vascular injuries, catheter tip positions, wound descriptions"],
["Movements (Flexion/Extension etc.)", "Range of Motion (ROM) exercises, physiotherapy assistance, fall risk assessment, neurological assessment"],
["Cell Structure", "Understanding how drugs work at cellular level (e.g., chemotherapy, antibiotics targeting cell wall)"],
["Cell Division", "Understanding cancer pathology, explaining chemotherapy side effects (hair loss = rapidly dividing cells destroyed), fertility preservation"],
["Epithelial Tissue", "Wound healing, pressure ulcer prevention and staging, catheterization (transitional epithelium of bladder)"],
["Connective Tissue", "Injection technique through different tissue layers; understanding inflammation and healing"],
["Muscle Types", "IM injection sites (skeletal muscle), understanding peristalsis (smooth muscle), ECG interpretation (cardiac muscle)"],
["Body Membranes", "Paracentesis (peritoneal), thoracocentesis (pleural), pericardiocentesis (pericardial) — nurse assists/monitors"],
["Glands", "Skin care (sebaceous, sweat glands), administering insulin (pancreatic endocrine function), hormonal drug therapy"],
["Cartilage", "Patient education in osteoarthritis, post-disc surgery care, prolonged healing in cartilage injuries"],
["Bony Landmarks", "IM injection sites, IV cannulation, bone marrow biopsy, lumbar puncture, spinal anaesthesia, ECG lead placement"],
["Body Organization", "Holistic nursing assessment; understanding systemic effects of disease; patient education"],
]
));
content.push(...spacer(1));
// ── SECTION 12: SUMMARY POINTS ────────────────────────────────────────────
content.push(sectionTitle("12. Summary — Quick Revision Points"));
content.push(new Table({
width: { size: 100, type: WidthType.PERCENTAGE },
rows: [
new TableRow({
children: [
new TableCell({
shading: { fill: LIGHT_BLUE, type: ShadingType.CLEAR },
borders: {
top: { style: BorderStyle.SINGLE, size: 8, color: MID_BLUE },
bottom: { style: BorderStyle.SINGLE, size: 8, color: MID_BLUE },
left: { style: BorderStyle.THICK, size: 24, color: DARK_BLUE },
right: { style: BorderStyle.SINGLE, size: 4, color: MID_BLUE },
},
children: [
...[
"Anatomy = Study of body structure; Applied Anatomy = anatomy with clinical application",
"Anatomical Position: Standing erect, face forward, palms facing anteriorly — standard reference for ALL anatomical descriptions",
"Directional terms: Anterior/Posterior, Superior/Inferior, Medial/Lateral, Proximal/Distal, Superficial/Deep, Prone/Supine, Palmar/Plantar",
"3 main planes: Sagittal (L/R), Coronal (Front/Back), Axial/Transverse (Top/Bottom)",
"Movements: Flexion/Extension, Abduction/Adduction, Rotation, Circumduction, Inversion/Eversion, Supination/Pronation, Dorsiflexion/Plantar Flexion",
"Cell = basic unit of life; 37.2 trillion cells in human body; organelles perform specific functions",
"Mitosis = 2 identical diploid cells (somatic growth); Meiosis = 4 haploid gametes (reproduction)",
"4 tissue types: Epithelial, Connective, Muscle, Nervous",
"3 muscle types: Skeletal (voluntary, striated), Smooth (involuntary, non-striated), Cardiac (involuntary, striated, intercalated discs)",
"4 membrane types: Mucous, Serous, Cutaneous, Synovial",
"Glands: Exocrine (with ducts) vs Endocrine (ductless, hormones into blood)",
"3 cartilage types: Hyaline (most common, joints), Fibrocartilage (shock absorber, intervertebral discs), Elastic (flexible, ear/epiglottis)",
"Cartilage is avascular — heals slowly; chondrocytes live in lacunae",
"6 levels of body organization: Chemical → Cellular → Tissue → Organ → Organ System → Organism",
"Body cavities: Cranial, Spinal, Thoracic, Abdominal, Pelvic",
].map((point, i) =>
new Paragraph({
bullet: { level: 0 },
spacing: { before: 60, after: 60 },
children: [new TextRun({ text: point, size: 21, font: "Calibri", color: DARK_TEXT })],
})
),
],
}),
],
}),
],
}));
content.push(...spacer(2));
// ── SECTION 13: QUESTIONS ─────────────────────────────────────────────────
content.push(new Paragraph({ children: [new PageBreak()] }));
content.push(sectionTitle("13. Important Questions for Examination"));
content.push(subTitle("A. Very Short Answer Questions (2 Marks)"));
const veryShort = [
"Define Anatomy. What is Applied Anatomy?",
"What is the anatomical position?",
"Define Anterior and Posterior.",
"What is a sagittal plane?",
"Define flexion and extension.",
"What is the difference between supination and pronation?",
"Define inversion and eversion.",
"What is a cell? Name any three organelles.",
"What are the functions of mitochondria?",
"Define tissue. Name the four types of tissues.",
"What is a goblet cell?",
"Define cartilage. Why does it heal slowly?",
"What is hyaline cartilage? Give two locations.",
"What is a serous membrane? Give two examples.",
"Differentiate between exocrine and endocrine glands.",
"What is the anatomical term for 'lying face down'?",
"Define proximal and distal with examples.",
"What is the plantar surface of the foot?",
];
veryShort.forEach((q, i) => content.push(bullet(`${i + 1}. ${q}`)));
content.push(...spacer(1));
content.push(subTitle("B. Short Answer Questions (5 Marks)"));
const short = [
"Describe the anatomical planes and their clinical significance.",
"List and explain the directional terms used in anatomy with examples.",
"Explain any six anatomical movements with examples.",
"Describe the structure of a typical animal cell with functions of each organelle.",
"Differentiate between mitosis and meiosis in a tabular form.",
"Classify epithelial tissue with location and function.",
"Compare and contrast the three types of muscle tissue.",
"Classify membranes of the body and describe serous membranes.",
"Classify glands with examples. What is the difference between merocrine and holocrine secretion?",
"Describe the three types of cartilage with their locations and clinical importance.",
"List the major bony landmarks of the lower limb and their nursing relevance.",
"Describe the organization of the human body from chemical to organism level.",
"Write a note on body cavities.",
"What are the nursing implications of knowledge of anatomical terms?",
];
short.forEach((q, i) => content.push(bullet(`${i + 1}. ${q}`)));
content.push(...spacer(1));
content.push(subTitle("C. Long Answer Questions (10 Marks)"));
const longQ = [
"Describe in detail the structure of a typical human cell. Add a labelled diagram. Describe the process of mitosis with its phases and clinical significance.",
"Classify tissues of the human body. Describe in detail the epithelial and connective tissues with their types, locations, functions, and clinical relevance in nursing.",
"Write in detail about: (a) Anatomical planes, (b) Directional terms, (c) Anatomical movements — with clinical and nursing applications.",
"Describe the three types of cartilage (Hyaline, Fibrocartilage, Elastic). Compare them in a table. Add clinical notes on cartilage-related diseases seen in nursing practice.",
"Describe the organization of the human body. List all body systems with their organs and functions. Discuss how a knowledge of body organization helps a nurse deliver holistic care.",
"Classify and describe body membranes and glands. Discuss the nursing implications of inflamed body membranes (pleurisy, peritonitis, pericarditis).",
];
longQ.forEach((q, i) => content.push(bullet(`${i + 1}. ${q}`)));
content.push(...spacer(1));
content.push(subTitle("D. Viva Voce Questions"));
const viva = [
"What position is a patient in when lying face up? (Answer: Supine)",
"Which plane divides the body into left and right halves? (Answer: Sagittal/Median plane)",
"What is the difference between pronation and supination of the forearm?",
"Where is hyaline cartilage found in the chest wall? (Answer: Costal cartilages)",
"Name the type of muscle found in the heart. (Answer: Cardiac muscle)",
"What is the difference between mitosis and meiosis?",
"What type of epithelium lines the urinary bladder? (Answer: Transitional epithelium / Urothelium)",
"Name the organelle that produces energy in the cell. (Answer: Mitochondria)",
"What is the Golgi apparatus? What is its function?",
"Which membrane lines joint cavities? (Answer: Synovial membrane)",
"What type of gland is the sebaceous gland? (Answer: Exocrine, Holocrine)",
"At which vertebral level does the spinal cord end? (Answer: L1–L2 in adults)",
"Name the bony landmark used for lumbar puncture. (Answer: L4 spinous process / Interiliac line)",
"What is the anatomical term for the sole of the foot? (Answer: Plantar surface)",
"What is the sternal angle and at what vertebral level is it? (Answer: Angle of Louis at T4–T5)",
"Differentiate between a mucous and serous membrane.",
"What are intercalated discs and in which muscle are they found? (Answer: Cardiac muscle)",
"What is the significance of the anatomical position in clinical practice?",
];
viva.forEach((q, i) => content.push(bullet(`${i + 1}. ${q}`)));
content.push(...spacer(2));
// ── REFERENCES ─────────────────────────────────────────────────────────────
content.push(sectionTitle("References / Textbooks Used"));
content.push(makeTable(
["S.No.", "Textbook", "Authors", "Edition"],
[
["1", "Ross & Wilson — Anatomy and Physiology in Health and Illness", "Anne Waugh, Allison Grant", "13th Edition"],
["2", "Gray's Anatomy for Students", "Drake, Vogl, Mitchell", "4th Edition"],
["3", "Principles of Anatomy and Physiology", "Tortora & Derrickson", "15th Edition"],
["4", "Essentials of Medical Physiology", "K. Sembulingam", "8th Edition"],
["5", "Human Anatomy and Physiology", "Elaine N. Marieb, Katja Hoehn", "10th Edition"],
["6", "Textbook of Anatomy", "Vishram Singh", "3rd Edition"],
["7", "Color Atlas of Human Anatomy", "Thieme Atlas (Platzer)", "7th Edition"],
["8", "RGUHS Applied Anatomy Syllabus", "B.Sc Nursing 1st Semester", "2024–2026"],
]
));
content.push(...spacer(2));
content.push(new Table({
width: { size: 100, type: WidthType.PERCENTAGE },
rows: [
new TableRow({
children: [
new TableCell({
shading: { fill: DARK_BLUE, type: ShadingType.CLEAR },
children: [
new Paragraph({
alignment: AlignmentType.CENTER,
spacing: { before: 120, after: 120 },
children: [
new TextRun({
text: '"Seek knowledge from the cradle to the grave." — Prophet Muhammad (PBUH)',
italics: true,
size: 22,
color: "D6E8F7",
font: "Calibri",
}),
],
}),
new Paragraph({
alignment: AlignmentType.CENTER,
spacing: { before: 60, after: 120 },
children: [
new TextRun({
text: "End of Unit I — Shall I continue with Unit II (The Respiratory System)?",
bold: true,
size: 24,
color: WHITE,
font: "Calibri",
}),
],
}),
],
borders: { top: { style: BorderStyle.NONE }, bottom: { style: BorderStyle.NONE }, left: { style: BorderStyle.NONE }, right: { style: BorderStyle.NONE } }
}),
],
}),
],
}));
return content;
}
// ─── ASSEMBLE DOCUMENT ───────────────────────────────────────────────────────
const doc = new Document({
creator: "Mr. Umar Shaikh, M.Sc Nursing (CHN)",
title: "Applied Anatomy Unit I — Introduction to Anatomical Terms and Organization of the Human Body",
description: "B.Sc Nursing 1st Semester | RGUHS | Study Notes",
styles: {
paragraphStyles: [
{
id: "Normal",
name: "Normal",
run: { font: "Calibri", size: 22 },
},
],
},
numbering: {
config: [
{
reference: "bullet-list",
levels: [
{
level: 0,
format: LevelFormat.BULLET,
text: "\u2022",
alignment: AlignmentType.LEFT,
style: {
paragraph: { indent: { left: convertInchesToTwip(0.25), hanging: convertInchesToTwip(0.25) } },
},
},
{
level: 1,
format: LevelFormat.BULLET,
text: "\u25E6",
alignment: AlignmentType.LEFT,
style: {
paragraph: { indent: { left: convertInchesToTwip(0.5), hanging: convertInchesToTwip(0.25) } },
},
},
],
},
],
},
sections: [
// Cover page section (no header/footer)
{
properties: {
page: {
margin: { top: 0, bottom: 0, left: convertInchesToTwip(0.75), right: convertInchesToTwip(0.75) },
},
},
children: buildCoverPage(),
},
// Main content section (with header/footer)
{
headers: { default: makeHeader() },
footers: { default: makeFooter() },
properties: {
page: {
margin: {
top: convertInchesToTwip(1.1),
bottom: convertInchesToTwip(1.0),
left: convertInchesToTwip(1.0),
right: convertInchesToTwip(0.9),
},
pageNumbers: { start: 1, formatType: NumberFormat.DECIMAL },
},
},
children: buildContent(),
},
],
});
Packer.toBuffer(doc).then(buffer => {
fs.writeFileSync('/home/daytona/workspace/applied-anatomy-unit1/Applied_Anatomy_Unit_I_Study_Notes.docx', buffer);
console.log('SUCCESS: Document written.');
}).catch(err => {
console.error('ERROR:', err.message);
process.exit(1);
});
cd /home/daytona/workspace/applied-anatomy-unit1 && node generate_unit1.js 2>&1
python3 /home/daytona/skills/docx/scripts/office/validate.py /home/daytona/workspace/applied-anatomy-unit1/Applied_Anatomy_Unit_I_Study_Notes.docx 2>&1 && ls -lh /home/daytona/workspace/applied-anatomy-unit1/Applied_Anatomy_Unit_I_Study_Notes.docx
ls -lh /home/daytona/workspace/applied-anatomy-unit1/Applied_Anatomy_Unit_I_Study_Notes.docx && python3 -c " import zipfile, os f = '/home/daytona/workspace/applied-anatomy-unit1/Applied_Anatomy_Unit_I_Study_Notes.docx' print('File size:', os.path.getsize(f), 'bytes') with zipfile.ZipFile(f) as z: names = z.namelist() print('DOCX contents:', names[:8]) print('Total parts:', len(names)) "
Applied Anatomy Unit I Study Notes
Word Document · DOCX
| Section | Content |
|---|---|
| Cover Page | Dark blue professional design, Islamic quote (Al-Fatiha), Year 2026, Subject, Unit name, Prepared By: Mr. Umar Shaikh, disclaimer text |
| Header | B.Sc Nursing | Applied Anatomy | Unit I | 2026 on every page |
| Footer | Smart Nursing Notes tagline + Page X of Y (right-aligned) on every page |
| Section 1 | Anatomical terms — all 14 terms (Anterior, Posterior, Superior, Inferior, Medial, Lateral, Proximal, Distal, Superficial, Deep, Prone, Supine, Palmar, Plantar) in a full table |
| Section 2 | Anatomical planes — Sagittal, Coronal, Axial, Oblique with clinical uses |
| Section 3 | All movements — Flexion, Extension, Abduction, Adduction, Rotation, Circumduction, Inversion, Eversion, Supination, Pronation, Dorsiflexion, Plantar flexion |
| Section 4 | Cell structure (13-organelle table) + Mitosis vs Meiosis comparison table + PMAT phases |
| Section 5 | All 4 tissue types — Epithelial (7 types), Connective (8 types), Muscle (3-type comparison table), Nervous tissue |
| Section 6 | 4 body membranes — Mucous, Serous, Cutaneous, Synovial |
| Section 7 | Glands — Exocrine (by structure/secretion/product) + Endocrine |
| Section 8 | 3 cartilage types — 8-row comparison table with Hyaline, Fibrocartilage, Elastic |
| Section 9 | Bony landmarks — 7 body regions with clinical nursing use |
| Section 10 | Body organization (6-level flow table) + Body cavities + 12 body systems |
| Section 11 | Nursing applications — 14-row application table |
| Section 12 | Quick Revision Summary — 15 bullet points in a blue box |
| Section 13 | 18 Very Short Qs + 14 Short Qs + 6 Long Qs + 18 Viva Qs |
| References | Ross & Wilson, Gray's Anatomy, Tortora, Marieb, Vishram Singh, Sembulingam, Thieme |