PHYSIOLOGY PORTIONS FOR Periodic Assessment CVS : β€’Overview of Cardiovascular system β€’Properties of Cardiac Muscle β€’Cardiac Cycle (Including Pressure curves) β€’Heart sounds β€’Cardiac Murmur β€’Electrocardiogram _______ RS : β€’Overview of Respiratory system β€’Pulmonary Circulation β€’Mechanics of Respiration _______ ENDOCRINOLOGY : β€’Overview of Endocrine System β€’Hormones β€’Pituitary Gland β€’Thyroid Gland _______ NERVOUS SYSTEM : β€’Overview β€’Neuron β€’Nerve Injuries β€’Receptors β€’Synapse β€’Neuroglia β€’Neurotransmitters +modulator (wasn't specified but study) β€’Reflex Activity β€’Spinal cord (Grey matter, White matter, Tracts) from NCH they given CBDC syllabus for Physiology, i need must know questions for my Periodic assessment portion that will help me to study well.

Reading File
Reading File
Reading File
Finding Sources
Finding Sources
Finding Sources
Finding Sources
Reading File
Reading File
Finding Sources
Finding Sources
Reading File
Finding Sources
Finding Sources
Reading File
Reading File
I now have comprehensive content from the textbooks. Let me compile the complete must-know question bank for the periodic assessment.

πŸ“š MUST-KNOW QUESTIONS - Physiology Periodic Assessment (BHMS 1st Year)

Based on CBDC syllabus, sourced from Guyton & Hall, Costanzo, and Ganong's Review of Medical Physiology

πŸ«€ CARDIOVASCULAR SYSTEM

Overview of CVS

  1. What are the basic components and functions of the cardiovascular system?
    • Describe the role of the heart as a pump, blood as a transport medium, and blood vessels as the distribution network.
  2. Describe the systemic and pulmonary circuits of circulation. What is the significance of the pulmonary circuit operating at lower pressure?
  3. What is cardiac output? Write the formula and normal value. (CO = HR Γ— SV; normal ~5 L/min at rest)
  4. Define stroke volume, heart rate, and ejection fraction. What is the normal ejection fraction?

Properties of Cardiac Muscle

  1. Enumerate the special properties of cardiac muscle: automaticity, rhythmicity, conductivity, contractility, and excitability. Briefly explain each.
  2. What is automaticity (autorhythmicity)? Which part of the heart acts as the natural pacemaker and why? (SA node - intrinsic rate 60-100/min; due to slow diastolic depolarization via "funny current" If)
  3. Describe the cardiac action potential. Label all phases (0-4) and name the dominant ion for each phase:
    • Phase 0: rapid depolarization - Na+ influx
    • Phase 1: brief repolarization - K+ efflux / Na+ channel inactivation
    • Phase 2: plateau - Ca2+ influx (L-type) balances K+ efflux - unique to cardiac muscle
    • Phase 3: repolarization - K+ efflux
    • Phase 4: resting membrane potential (-90 mV)
  4. How does the pacemaker action potential differ from the ventricular action potential? (No fast Na+ phase; driven by If - funny current, T-type and L-type Ca2+ channels; no true resting potential)
  5. What is the significance of the long refractory period in cardiac muscle? (Prevents tetanus; ensures complete relaxation before next contraction)
  6. What is the "all-or-none" law as applied to cardiac muscle? How does the Frank-Starling law relate to this?
  7. Describe the conduction system of the heart in order: SA node β†’ AV node β†’ Bundle of His β†’ Right & Left Bundle Branches β†’ Purkinje fibers. Give conduction velocities:
    • SA node: 0.05 m/s
    • AV node: 0.01-0.05 m/s (slowest - causes AV delay of ~100 ms)
    • Purkinje fibers: 2-4 m/s (fastest)
  8. What is AV delay? What is its physiological significance? (Allows ventricles to fill from atria before contracting)

Cardiac Cycle

  1. Define the cardiac cycle. What is its duration at heart rate of 75/min? (~0.8 seconds; systole ~0.3 s, diastole ~0.5 s)
  2. Describe all 7 phases of the cardiac cycle (as per Costanzo/Guyton):
PhaseEventECGValvesHeart Sound
A - Atrial SystoleAtria contract; final ventricular fillingP waveMitral openS4 (if heard)
B - Isovolumetric Ventricular ContractionPressure rises; volume constantQRSMitral closesS1 (lub)
C - Rapid Ventricular EjectionMax pressure; volume decreasesST segmentAortic valve opens-
D - Reduced Ventricular EjectionSlower ejection; min volumeT wave--
E - Isovolumetric Ventricular RelaxationPressure falls; volume constant-Aortic closesS2 (dub)
F - Rapid Ventricular FillingPassive filling; volume rises-Mitral opensS3 (if heard)
G - Reduced Ventricular Filling (diastasis)Slow filling---
  1. Draw and label the Wiggers diagram (pressure-volume events of cardiac cycle). Include: LV pressure, aortic pressure, LA pressure, LV volume, venous pulse waves (a, c, x, v, y), and heart sounds.
  2. What are End-Diastolic Volume (EDV) and End-Systolic Volume (ESV)? Normal values? (EDV ~120 mL; ESV ~50 mL; SV = EDV - ESV = ~70 mL)
  3. Describe the pressure-volume loop of the left ventricle. Identify all four phases on the loop.
  4. What is the venous pulse (JVP)? Describe the waves: a wave (atrial contraction), c wave (tricuspid bulging), x descent, v wave (venous filling), y descent.

Heart Sounds

  1. Describe S1 and S2. What causes each, where are they best heard?
  • S1 ("lub"): Closure of mitral + tricuspid valves at start of systole; best heard at apex
  • S2 ("dub"): Closure of aortic + pulmonary valves at end of systole; best heard at base
  • Duration: S1 ~0.14 sec; S2 ~0.11 sec
  1. What are S3 and S4? When are they normal vs. pathological?
  • S3 (ventricular gallop): Rapid ventricular filling; normal in children/young adults; pathological in heart failure
  • S4 (atrial gallop): Atrial contraction against a stiff ventricle; always abnormal (hypertension, hypertrophic cardiomyopathy)
  1. What is a "gallop rhythm"? Name clinical conditions where you hear S3 and S4.
  2. What is physiological splitting of S2? When does it occur and why? (Inspiration causes A2-P2 split; P2 delayed due to increased RV filling)

Cardiac Murmurs

  1. Define cardiac murmur. How are murmurs classified (systolic vs. diastolic)?
  2. What are the causes of cardiac murmurs? (Turbulent blood flow due to: stenosis, regurgitation, septal defects, increased flow rate)
  3. Describe the murmur of mitral stenosis vs. mitral regurgitation. When in the cycle is each heard?
  • Mitral stenosis: mid-diastolic rumble (opening snap + diastolic murmur)
  • Mitral regurgitation: pansystolic/holosystolic murmur at apex
  1. What is the "machinery murmur"? (Patent ductus arteriosus - continuous systolic + diastolic murmur)
  2. Grade cardiac murmurs (Levine scale I-VI).
  3. Differentiate innocent murmurs from pathological murmurs.

Electrocardiogram (ECG)

  1. What is an ECG? What does it record? (Summed electrical activity of all cardiac muscle fibers recorded from the body surface)
  2. Label all waves of a normal ECG and state what each represents:
  • P wave: Atrial depolarization
  • PR interval: AV conduction time (normal 0.12-0.20 s)
  • QRS complex: Ventricular depolarization (normal <0.12 s)
  • ST segment: Ventricular repolarization plateau (should be isoelectric)
  • T wave: Ventricular repolarization
  • QT interval: Total ventricular electrical systole (normal 0.35-0.43 s)
  1. What is the normal heart rate as calculated from ECG? (300 / number of large squares between R-R intervals)
  2. What do the 12 ECG leads represent? Distinguish limb leads from precordial leads.
  3. What ECG changes indicate myocardial infarction? (ST elevation, pathological Q waves, T wave inversion)
  4. What is meant by axis deviation on ECG? What are the normal, left, and right axis deviation ranges?

🫁 RESPIRATORY SYSTEM

Overview

  1. List the organs of the respiratory system and their functions in sequence from nose to alveoli.
  2. What is the functional significance of conducting airways vs. respiratory airways?
  3. Define dead space (anatomical vs. physiological). Normal values? (Anatomical ~150 mL; Physiological = Anatomical + Alveolar dead space)

Pulmonary Circulation

  1. How does pulmonary circulation differ from systemic circulation? (Low pressure - 25/10 mmHg vs 120/80 mmHg; low resistance; large capacity; receives entire cardiac output)
  2. What is hypoxic pulmonary vasoconstriction (HPV)? Why is it unique? (Hypoxia causes vasoconstriction in lungs - opposite to systemic; diverts blood from poorly ventilated to well-ventilated areas)
  3. Define pulmonary hypertension. What conditions cause it?
  4. What is ventilation-perfusion (V/Q) ratio? Normal value? What happens when V/Q = 0 (shunt) and V/Q = infinity (dead space)?
  5. What is the effect of gravity on pulmonary blood flow? (West zones: Zone 1 - apex (low flow); Zone 3 - base (high flow))

Mechanics of Respiration

  1. Describe the muscles of inspiration and expiration. (Primary: diaphragm; Accessory: scalenes, sternocleidomastoid, intercostals; Expiration at rest is passive)
  2. What is intrapulmonary vs. intrapleural pressure? Explain how negative intrapleural pressure keeps lungs expanded.
  3. Define compliance of lungs. Formula? What factors affect it? (C = Ξ”V/Ξ”P; reduced in fibrosis; increased in emphysema)
  4. What is surface tension? What is surfactant? What does it do? (Produced by Type II pneumocytes; reduces surface tension; prevents alveolar collapse; follows La Place's law: P = 2T/r)
  5. Describe the respiratory cycle - events during inspiration and expiration using Boyle's law (pressure-volume changes).
  6. What are pulmonary volumes and capacities? Give normal values:
  • TV (Tidal Volume): 500 mL
  • IRV (Inspiratory Reserve Volume): 3000 mL
  • ERV (Expiratory Reserve Volume): 1100 mL
  • RV (Residual Volume): 1200 mL
  • TLC (Total Lung Capacity): 5800 mL
  • VC (Vital Capacity): 4600 mL
  • FRC (Functional Residual Capacity): 2300 mL
  1. What is FEV1/FVC ratio? What is its significance in obstructive vs. restrictive lung disease? (Normal >80%; reduced in obstructive; normal/increased in restrictive)

🧬 ENDOCRINOLOGY

Overview & Hormones

  1. Define a hormone. Classify hormones based on chemical nature with examples:
  • Proteins/Peptides: Insulin, GH, PTH
  • Steroids: Cortisol, Aldosterone, Sex hormones
  • Amines: Thyroid hormones (T3/T4), Catecholamines (Epinephrine)
  1. What are the different mechanisms of hormone action? (Membrane receptors - GPCR, tyrosine kinase; Nuclear receptors for steroids/thyroid hormones)
  2. Define: negative feedback, positive feedback, trophic hormone, tropic hormone. Give examples of each type of feedback.
  3. What is the hypothalamo-pituitary-target organ axis? Draw a simple diagram showing the axis with negative feedback.

Pituitary Gland

  1. What are the two parts of the pituitary gland? Embryological origin of each?
  • Anterior (adenohypophysis): Rathke's pouch (oral ectoderm)
  • Posterior (neurohypophysis): Downgrowth of diencephalon (neural tissue)
  1. List all hormones of the anterior pituitary and their target organs:
  • GH (Growth Hormone) - liver/all cells
  • TSH (Thyroid Stimulating Hormone) - thyroid
  • ACTH (Adrenocorticotropic Hormone) - adrenal cortex
  • FSH (Follicle Stimulating Hormone) - gonads
  • LH (Luteinizing Hormone) - gonads
  • Prolactin - mammary glands
  • MSH (Melanocyte Stimulating Hormone) - melanocytes
  1. What are the hormones of the posterior pituitary? Where are they synthesized?
  • ADH (Vasopressin): synthesized in supraoptic nucleus; controls water reabsorption in kidneys
  • Oxytocin: synthesized in paraventricular nucleus; milk ejection, uterine contraction
  1. What is the role of hypothalamic releasing and inhibiting hormones? Give 3 examples (GHRH, TRH, CRH, GnRH, Dopamine as PIH).
  2. What is acromegaly? What is gigantism? (GH excess after epiphyseal fusion vs. before)
  3. What is diabetes insipidus? Distinguish central vs. nephrogenic.

Thyroid Gland

  1. Describe the synthesis and secretion of thyroid hormones (T3 and T4). Steps: iodide trapping β†’ oxidation β†’ organification β†’ coupling β†’ storage as thyroglobulin β†’ release.
  2. What are the physiological actions of thyroid hormones?
  • Calorigenic effect (increases BMR)
  • Protein synthesis
  • Growth and development (critical for brain development)
  • Increases heart rate and cardiac output
  • Carbohydrate metabolism
  1. What is TSH? How does it regulate thyroid function? (Anterior pituitary; stimulated by TRH from hypothalamus; negative feedback by T3/T4)
  2. Differentiate hypothyroidism from hyperthyroidism clinically (clinical features + lab findings).
  3. What is the significance of T3 vs. T4? (T3 is more potent, shorter half-life; T4 is prohormone, converted to T3 in periphery)
  4. What is cretinism? What is myxedema? (Hypothyroidism in children vs. adults)
  5. What is goitre? Name causes of simple vs. toxic goitre.

🧠 NERVOUS SYSTEM

Overview & Neuron

  1. What is the functional and structural classification of neurons? (Structural: unipolar, bipolar, multipolar; Functional: sensory/afferent, motor/efferent, interneuron)
  2. Describe the structure of a typical neuron. Label: cell body (soma/perikaryon), dendrites, axon hillock, axon, myelin sheath, nodes of Ranvier, axon terminals (synaptic boutons).
  3. What is the resting membrane potential? How is it maintained? (-70 mV; maintained by Na+/K+ ATPase pump and selective membrane permeability; 3 Na+ out, 2 K+ in)
  4. Describe the nerve action potential - all phases with ions involved. (Depolarization: Na+ influx; Repolarization: K+ efflux; After-hyperpolarization; Refractory periods)
  5. What is saltatory conduction? What is its advantage? (In myelinated fibers - action potential jumps between nodes of Ranvier; faster + energy-efficient)

Nerve Injuries

  1. Classify nerve injuries (Seddon's classification):
  • Neuropraxia: conduction block; no structural damage; fully reversible
  • Axonotmesis: axon disrupted; myelin intact; Wallerian degeneration; good recovery
  • Neurotmesis: complete nerve trunk division; poorest prognosis
  1. What is Sunderland's classification of nerve injuries? (Grade I-V)
  2. What is Wallerian degeneration? (Anterograde/orthograde degeneration of axon distal to injury; begins within 24-48 hours; Schwann cells form bands of BΓΌngner to guide regeneration)
  3. What is the rate of nerve regeneration? (~1-4 mm/day or 1 inch/month)
  4. Differentiate upper motor neuron (UMN) vs. lower motor neuron (LMN) lesions. (UMN: spasticity, hyperreflexia, Babinski positive; LMN: flaccid paralysis, wasting, areflexia)

Receptors

  1. Classify sensory receptors by:
  • Modality: Mechanoreceptors, Thermoreceptors, Nociceptors, Photoreceptors, Chemoreceptors
  • Location: Exteroceptors, Interoceptors, Proprioceptors
  • Structure: Free nerve endings, Encapsulated (Meissner's, Pacinian, Ruffini, Krause)
  1. What is the adequate stimulus of a receptor? (The specific type of energy a receptor is most sensitive to)
  2. What is receptor adaptation? Distinguish rapidly-adapting from slowly-adapting receptors. (Phasic vs. tonic receptors; Pacinian = rapid; Ruffini = slow)
  3. What is the generator (receptor) potential? How does it differ from an action potential?

Synapse

  1. Define a synapse. Classify synapses (electrical vs. chemical; excitatory vs. inhibitory; axodendritic, axosomatic, axoaxonic).
  2. Describe the mechanism of chemical synaptic transmission step by step:
    • AP reaches terminal β†’ Ca2+ influx β†’ vesicle fusion β†’ NT release into cleft β†’ binding to postsynaptic receptor β†’ EPSP or IPSP β†’ AP or inhibition
  3. What are EPSP and IPSP? (Excitatory postsynaptic potential; Inhibitory postsynaptic potential - usually via Cl- or K+ channels)
  4. What is temporal summation vs. spatial summation?
  5. Name the properties of synaptic transmission (Unidirectional, fatigue, convergence, divergence, facilitation, inhibition, delay)

Neuroglia

  1. Classify neuroglia in CNS and PNS:
  • CNS: Astrocytes, Oligodendrocytes, Microglia, Ependymal cells
  • PNS: Schwann cells, Satellite cells
  1. What is the function of each type of glial cell?
  • Astrocytes: structural support, blood-brain barrier, repair
  • Oligodendrocytes: myelin formation in CNS
  • Schwann cells: myelin in PNS + nerve regeneration
  • Microglia: CNS macrophages (immune function)
  • Ependymal cells: line ventricles, produce CSF
  1. What is the significance of Schwann cells vs. oligodendrocytes in myelination and regeneration? (Schwann cells myelinate 1 axon segment; oligodendrocytes myelinate up to 40 axon segments; Schwann cells guide regeneration, oligodendrocytes do not)

Neurotransmitters

  1. Classify neurotransmitters:
  • Amines: Acetylcholine, Dopamine, Norepinephrine, Serotonin, Histamine
  • Amino acids: GABA (inhibitory), Glutamate (excitatory), Glycine
  • Peptides: Substance P, Enkephalins, Endorphins, Oxytocin
  • Gases: NO, CO
  1. What are the criteria for a substance to be classified as a neurotransmitter?
  2. Describe the synthesis, release, and inactivation of acetylcholine. (Choline + Acetyl CoA β†’ ACh by ChAT; released at cholinergic synapses; inactivated by acetylcholinesterase)
  3. What is the role of dopamine pathways in the brain? (Mesolimbic - reward; Mesocortical - cognition; Nigrostriatal - movement; Tuberoinfundibular - prolactin control)
  4. What are neuromodulators? How do they differ from neurotransmitters?

Reflex Activity

  1. Define a reflex. What are the components of a reflex arc? (Receptor β†’ Afferent neuron β†’ Nerve center (integration) β†’ Efferent neuron β†’ Effector organ)
  2. Classify reflexes:
  • Somatic vs. Autonomic
  • Monosynaptic vs. Polysynaptic
  • Acquired vs. Unconditioned (inborn)
  • Ipsilateral vs. Contralateral (crossed)
  1. Describe the knee jerk reflex (patellar reflex) as an example of monosynaptic reflex. (Stretch of quadriceps β†’ Ia afferent β†’ spinal cord β†’ alpha motor neuron β†’ quadriceps contraction; simultaneous inhibition of hamstring via Ia inhibitory interneuron)
  2. What is the Babinski sign? What does it indicate? (Extension of big toe with fanning of others on plantar stimulation; positive = UMN lesion)
  3. Describe the withdrawal reflex (flexor reflex). How does it illustrate crossed extensor reflex?

Spinal Cord

  1. Describe the grey matter of the spinal cord. Label the dorsal horn, ventral horn, and lateral horn (T1-L2). What neurons are in each?
  • Dorsal horn: sensory interneurons (Rexed laminae I-VI)
  • Ventral horn: alpha and gamma motor neurons (laminae VII-IX)
  • Lateral horn: preganglionic autonomic neurons
  1. Name the important ascending (sensory) tracts of the spinal cord and what they carry:
  • Spinothalamic tract (anterolateral): pain, temperature, crude touch - crosses at spinal cord level
  • Dorsal columns (Fasciculus gracilis + cuneatus): fine touch, proprioception, vibration - crosses at medulla
  1. Name the important descending (motor) tracts and their functions:
  • Corticospinal tract (pyramidal): voluntary movement (lateral = limb muscles; anterior = trunk)
  • Rubrospinal tract: movement coordination
  • Vestibulospinal tract: balance and posture
  • Reticulospinal tract: autonomic + postural control
  1. What is Brown-SΓ©quard syndrome (hemisection of spinal cord)? (Ipsilateral UMN paralysis + dorsal column loss; Contralateral spinothalamic loss)
  2. What is syringomyelia? What tracts are affected first? (Cavity in central spinal cord; first affects crossing spinothalamic fibers β†’ bilateral loss of pain and temperature)

πŸ“ SHORT NOTE / ESSAY FORMAT QUESTIONS (High-Yield)

Write short notes on:
  1. Cardiac action potential (phases + ions)
  2. Wiggers diagram (cardiac cycle events)
  3. ECG waves and intervals
  4. S1 and S2 heart sounds
  5. Cardiac murmurs - classification and examples
  6. Surfactant and its significance
  7. Pulmonary volumes and capacities
  8. Hypoxic pulmonary vasoconstriction
  9. Thyroid hormone synthesis
  10. ADH and its mechanism
  11. Structure and functions of synapse
  12. Types of neuroglia and their functions
  13. Wallerian degeneration and nerve regeneration
  14. Reflex arc - components and classification
  15. Brown-SΓ©quard syndrome

πŸ”‘ ONE-LINERS / RAPID-FIRE FACTS

FactAnswer
Pacemaker of heartSA node (60-100/min)
Slowest conduction in heartAV node
Fastest conduction in heartPurkinje fibers (2-4 m/s)
Phase 2 plateau caused byCa2+ influx (L-type channels)
S1 caused byClosure of AV valves (mitral + tricuspid)
S2 caused byClosure of semilunar valves (aortic + pulmonary)
AV delay duration~100 ms
Normal PR interval0.12-0.20 sec
Normal QRS duration<0.12 sec
Normal tidal volume500 mL
Surfactant produced byType II pneumocytes
HPV - hypoxia causesVasoconstriction (opposite of systemic)
Most potent thyroid hormoneT3
T4 to T3 conversion sitePeripheral tissues (liver, kidney)
ADH synthesized inSupraoptic nucleus of hypothalamus
Myelin in CNS byOligodendrocytes
Myelin in PNS bySchwann cells
Wallerian degeneration directionAnterograde (distal to injury)
GABA isInhibitory neurotransmitter
Glutamate isExcitatory neurotransmitter
Monosynaptic reflex exampleKnee jerk (patellar reflex)
Positive Babinski =UMN lesion
Dorsal columns carryFine touch, proprioception, vibration
Spinothalamic tract carriesPain, temperature, crude touch
Spinothalamic tract crosses atSpinal cord level (same level or 1-2 segments above)
Dorsal columns cross atMedulla (nucleus gracilis/cuneatus)

Sources: Guyton & Hall Textbook of Medical Physiology; Costanzo Physiology 7th Ed; Ganong's Review of Medical Physiology 26th Ed; Histology: A Text and Atlas (for Neuroglia); Neuroscience: Exploring the Brain 5th Ed

give MK questions from the pdf which i already uploaded

Reading File
Running Command

python3 -c " import pdfplumber with pdfplumber.open('/home/daytona/workspace/attachments/b5aa1e59-28d3-43a9-b71e-9a0bd83968e6/BHMS 1st Year Human Physiology and Biochemistry CBDC.pdf') as pdf: print(f'Total pages: {len(pdf.pages)}') for i, page in enumerate(pdf.pages[:5]): text = page.extract_text() if text: print(f'--- PAGE {i+1} ---') print(text[:2000]) "

Running Command

python3 -c " import pdfplumber with pdfplumber.open('/home/daytona/workspace/attachments/b5aa1e59-28d3-43a9-b71e-9a0bd83968e6/BHMS 1st Year Human Physiology and Biochemistry CBDC.pdf') as pdf: # Extract pages 6-20 which likely have the course content/competencies for i, page in enumerate(pdf.pages[5:25]): text = page.extract_text() if text: print(f'--- PAGE {i+6} ---') print(text) print() "

Running Command

python3 -c " import pdfplumber with pdfplumber.open('/home/daytona/workspace/attachments/b5aa1e59-28d3-43a9-b71e-9a0bd83968e6/BHMS 1st Year Human Physiology and Biochemistry CBDC.pdf') as pdf: for i, page in enumerate(pdf.pages[25:55]): text = page.extract_text() if text: print(f'--- PAGE {i+26} ---') print(text) print() " 2>&1 | head -500

Running Command

python3 -c " import pdfplumber with pdfplumber.open('/home/daytona/workspace/attachments/b5aa1e59-28d3-43a9-b71e-9a0bd83968e6/BHMS 1st Year Human Physiology and Biochemistry CBDC.pdf') as pdf: for i, page in enumerate(pdf.pages[39:70]): text = page.extract_text() if text: print(f'--- PAGE {i+40} ---') print(text) print() " 2>&1 | head -600

Running Command

python3 -c " import pdfplumber with pdfplumber.open('/home/daytona/workspace/attachments/b5aa1e59-28d3-43a9-b71e-9a0bd83968e6/BHMS 1st Year Human Physiology and Biochemistry CBDC.pdf') as pdf: for i, page in enumerate(pdf.pages[56:75]): text = page.extract_text() if text: print(f'--- PAGE {i+57} ---') print(text) print() " 2>&1

I now have all the content I need from the PDF. Let me compile the must-know questions directly from the CBDC competency tables.

πŸ“‹ MUST-KNOW QUESTIONS from NCH CBDC PDF

BHMS 1st Year - Human Physiology & Biochemistry

Only items marked "Must Know" in the official competency table

πŸ«€ CVS (Topic 6 - Semester 2)

Learning Outcomes from PDF:
  • Describe functional anatomy of heart (chambers, valves, conducting system, coronary supply)
  • Describe properties of cardiac muscle (morphology, electrical, mechanical, metabolic)
  • Discuss events of cardiac cycle
  • Illustrate haemodynamics of circulatory system
  • Explain regulation of cardiac output
  • Describe normal mode of conduction of cardiac impulse
  • Record pulse, BP, and ECG

πŸ”΄ MUST KNOW - CVS

Competency 6.1
Describe the chambers of heart.
Competency 6.2
Discuss the valves and walls of heart.
Competency 6.4
Describe the conducting system of the heart. (SA node β†’ AV node β†’ Bundle of His β†’ Bundle branches β†’ Purkinje fibers)
Competency 6.8
Define Cardiac Cycle.
Competency 6.9
Discuss the events of cardiac cycle.
Competency 6.10
Explain the pressure changes during cardiac cycle. (Wiggers diagram - LV pressure, Aortic pressure, Atrial pressure, Ventricular volume)
Competency 6.11
Explain the ECG changes during each cardiac cycle phase.
Competency 6.12
Define Heart Sound.
Competency 6.13
Explain different heart sounds with their measurement technique.
Competency 6.14
Discuss the clinical importance of Murmurs and Triple heart sound.
Competency 6.15
Discuss normal ECG with its waves and intervals.
Competency 6.16
Explain electrocardiography with unipolar and bipolar recording.
Competency 6.17
Classify arrhythmias.
Competency 6.23
Identify the factors affecting heart rate and how it affects circulation.
Competency 6.25
Define cardiac output.
Competency 6.27
Discuss the factors affecting cardiac output.
Competency 6.28
Discuss in detail the control mechanism of cardiac output.
Competency 6.29
Discuss the importance of blood pressure.
Competency 6.30
State the factors affecting arterial blood pressure.
Competency 6.31
Discuss the determinants of arterial blood pressure.
Competency 6.32
Describe regulation of arterial blood pressure.
Competency 6.38
Explain mechanism responsible for shock and syncope.
Competency 6.39
Discuss the mechanism of hypertension.

🫁 RESPIRATORY SYSTEM (Topic 7 - Semester 2)

Learning Outcomes from PDF:
  • Describe functional anatomy of respiratory tract
  • Describe mechanics of normal respiration
  • Describe pressure changes during ventilation
  • Describe lung volumes and capacities
  • Describe transport of respiratory gases
  • Describe regulation of respiration

πŸ”΄ MUST KNOW - RS

Competency 7.1
Identify the different parts of upper respiratory tract.
Competency 7.2
Describe the importance of different parts of lower respiratory tract.
Competency 7.3
Identify the different parts of tracheo-bronchial tree, respiratory membrane and pleura.
Competency 7.5
Discuss non-respiratory functions of respiratory system.
Competency 7.6
Discuss the mechanism of Inspiration.
Competency 7.7
Discuss the mechanism of Expiration.
Competency 7.13
Discuss the significance of lung surfactant. (Type II pneumocytes; reduces surface tension; prevents alveolar collapse)
Competency 7.14
Describe the Oxygen transportation.
Competency 7.15
Explain the carbon dioxide transportation.
Competency 7.16
Discuss the nervous regulation of respiration.
Competency 7.17
Discuss the chemical regulation of respiration.
Competency 7.18
Discuss the physio-clinical aspect of Apnea.
Competency 7.19
Discuss the physio-clinical aspect of Dyspnoea, Asphyxia, Oxygen toxicity.
Competency 7.20
Define Hypoxia.
Competency 7.21
Classify hypoxia. Define Cyanosis.
Competency 7.23
Discuss the methods of artificial respiration.

🧬 ENDOCRINOLOGY (Topic 9 - Semester 2)

Learning Outcomes from PDF:
  • Explain mechanism of action of steroid, protein and amine hormones
  • Describe regulation of secretion of hormones by hypothalamus
  • Discuss synthesis, secretion, transport, physiological action, regulation, and effect of altered secretion of: Pituitary, Thyroid, Parathyroid, Adrenal, Pancreatic glands

πŸ”΄ MUST KNOW - Endocrinology

Competency 9.4
Discuss the regulation of hormone from the hypothalamus.
Competency 9.5
Discuss the homoeostatic mechanism of secretion of hormone through hypothalamus.
Competency 9.8
Explain the secretion of growth hormone.
Competency 9.9
Describe the functions of growth hormone.
Competency 9.11
Discuss the effects of altered secretion of growth hormone. (Gigantism before epiphyseal closure; Acromegaly after closure; GH deficiency = dwarfism)
Competency 9.12
Explain the actions and control of secretion of prolactin.
Competency 9.14
Explain the functions of ADH. (Vasopressin - water reabsorption in collecting duct; deficiency = Diabetes Insipidus)
Competency 9.15
Discuss the functions of Oxytocin. (Milk ejection reflex; uterine contraction during parturition)
Competency 9.16
Describe pituitary insufficiency.
Competency 9.18
Describe the formation and secretion of thyroid hormone.
Competency 9.20
Discuss the regulation and action of thyroid hormone.
Competency 9.21
Explain the effect of altered secretion of Thyroid hormone. (Hypothyroidism: myxedema in adults, cretinism in children; Hyperthyroidism: Graves' disease, goitre)
Competency 9.25
Discuss the role of Calcitonin in the maintenance of calcium homeostasis in the body.
Competency 9.26
Discuss the effect of altered secretion of parathyroid hormone.
Competency 9.28
Describe the formation, secretion, and functions of Glucocorticoid hormone.
Competency 9.29
Describe the formation, secretion, and functions of Mineralocorticoid hormone.
Competency 9.35
Discuss the action and regulation of Insulin.
Competency 9.36
Describe the effects of altered secretion of Pancreatic Hormone. (Diabetes Mellitus - Type 1 and Type 2)
Competency 9.37
Describe the functions of hormone of thymus gland.
Competency 9.38
Discuss the functions of hormone of pineal gland (Melatonin).

🧠 NERVOUS SYSTEM (Topic 8 - Semester 2)

Learning Outcomes from PDF:
  • Map the organization of nervous system
  • State functions and properties of synapse
  • Explain functions and properties of receptors
  • Describe functions and properties of reflex
  • Discuss mechanism of chemical transmission
  • Describe somatic sensations and sensory tracts
  • Describe and discuss motor tracts and mechanism of maintenance of muscle tone
  • Explain functions, lesion and sensory disturbance of Spinal cord
  • Describe functions of cerebral cortex, basal ganglia, thalamus, hypothalamus, cerebellum, limbic system

πŸ”΄ MUST KNOW - Nervous System

Competency 8.1
Identify the parts of central nervous system - brain and spinal cord with its function.
Competency 8.3
Classify nervous system. (CNS vs PNS; Somatic vs Autonomic; Sensory vs Motor)
Competency 8.4
Illustrate the physiological anatomy of synapse.
Competency 8.5
Discuss the electrical events occurring at synapses. (EPSP, IPSP, summation, synaptic delay)
Competency 8.6
Discuss the properties of synapse. (Unidirectional conduction, fatigue, convergence, divergence, facilitation)
Competency 8.10
Explain the properties of receptors. (Adequate stimulus, adaptation, generator potential, receptor potential)
Competency 8.11
Discuss reflex arc.
Competency 8.12
Classify reflexes. (Monosynaptic vs polysynaptic; somatic vs autonomic; acquired vs inborn; ipsilateral vs contralateral)
Competency 8.13
Discuss the properties of reflex.
Competency 8.14
Classify neurotransmitters.
Competency 8.16
Define sensory system.
Competency 8.17
Discuss different sensory tracts of spinal cord.
Competency 8.18
Describe the sensory tracts of spinal cord. (Dorsal columns - fine touch, vibration, proprioception; Spinothalamic tract - pain, temperature, crude touch)
Competency 8.20
Describe somatic sensation - touch, pressure, pain, temperature, proprioception.
Competency 8.21
Discuss motor areas.
Competency 8.22
Discuss different motor tracts of spinal cord.
Competency 8.23
Discuss the motor tracts of spinal cord. (Corticospinal/Pyramidal tract; Extrapyramidal tracts)
Competency 8.24
Discuss the clinical significance of Motor tracts of spinal cord. (UMN vs LMN lesion features)
Competency 8.25
Discuss the physiological anatomy of vestibular apparatus.
Competency 8.26
Explain the functions of vestibular apparatus.
Competency 8.27
Discuss the common vestibular dysfunctions.
Competency 8.29
Describe the divisions of Autonomic nervous system.
Competency 8.31
List the functions of Spinal cord.
Competency 8.32
Illustrate the transection of spinal cord. (Brown-SΓ©quard syndrome: ipsilateral UMN + dorsal column loss; contralateral spinothalamic loss)
Competency 8.33
Describe the sensory disturbances of spinal cord.
Competency 8.34
Discuss the connections and functions of cerebral cortex.
Competency 8.37
Explain the connections and functions of Hypothalamus.
Competency 8.38
Discuss the connections and functions of Limbic system.
Competency 8.39
Explain the connections and functions of Cerebellum.
Competency 8.40
Explain the cerebellar lesions.

πŸ“ QUICK SUMMARY TABLE - What to Focus For Your PA

SystemTop Must-Know TopicsFormat likely tested
CVSCardiac cycle + pressure changes, Heart sounds (S1/S2), ECG waves & intervals, Cardiac output factors, BP regulationLAQ, SAQ, MCQ
RSMechanism of inspiration/expiration, Surfactant significance, O2 and CO2 transport, Regulation of respiration (neural + chemical), Hypoxia classificationLAQ, SAQ, MCQ
EndocrinologyGH functions + altered secretion, ADH functions, Thyroid hormone synthesis + regulation + altered secretion, Insulin action, Calcium homeostasis (Calcitonin)LAQ, SAQ
NSSynapse - anatomy + electrical events + properties, Reflex arc + classification, Sensory tracts (Dorsal column vs Spinothalamic), Motor tracts + clinical significance, Spinal cord transectionLAQ, SAQ, MCQ

Source: Directly extracted from your uploaded BHMS 1st Year Human Physiology & Biochemistry CBDC PDF (NCH, Ministry of AYUSH) - only items explicitly tagged "Must Know" in the Guilbert's level column of the competency table.

Create a Word document with these must-know questions

Reading File
Running Command

ls /home/daytona/workspace/ && ls /home/daytona/skills/docx/

Running Command

mkdir -p /home/daytona/workspace/physiology-mk-questions && node -e "const docx = require('docx'); console.log('docx available:', Object.keys(docx).slice(0,5));"

Writing File

~/physiology-mk-questions/generate.js

const {
  Document, Packer, Paragraph, TextRun, Table, TableRow, TableCell,
  AlignmentType, HeadingLevel, BorderStyle, WidthType, ShadingType,
  VerticalAlign, PageNumber, PageBreak, UnderlineType, TableOfContents,
  LevelFormat, NumberFormat
} = require('docx');
const fs = require('fs');

// ─── Color palette ───────────────────────────────────────────────────────────
const COLORS = {
  cvs:     { bg: 'FFE0E0', accent: 'C0392B', text: '7B0000' },
  rs:      { bg: 'E0F0FF', accent: '1A6BAB', text: '0A3D6B' },
  endo:    { bg: 'E8F5E9', accent: '2E7D32', text: '1B5E20' },
  ns:      { bg: 'FFF8E1', accent: 'F57F17', text: '7F4C00' },
  header:  { bg: '1B2A4A', text: 'FFFFFF' },
  mustknow:{ bg: 'FFF3CD', accent: 'E65100' },
  table_h: { bg: '2C3E50', text: 'FFFFFF' },
  table_r1:{ bg: 'F2F3F4' },
  table_r2:{ bg: 'FFFFFF' },
};

// ─── Helper: blank paragraph ─────────────────────────────────────────────────
function spacer(pts = 4) {
  return new Paragraph({ spacing: { before: pts * 20, after: pts * 20 }, children: [] });
}

// ─── Helper: section heading ─────────────────────────────────────────────────
function sectionHeading(text, emoji, bgColor, textColor) {
  return new Paragraph({
    heading: HeadingLevel.HEADING_1,
    shading: { type: ShadingType.CLEAR, fill: bgColor },
    spacing: { before: 320, after: 120 },
    children: [
      new TextRun({
        text: `  ${emoji}  ${text}`,
        bold: true,
        size: 32,
        color: textColor,
        font: 'Calibri',
      }),
    ],
  });
}

// ─── Helper: sub-heading ─────────────────────────────────────────────────────
function subHeading(text, color) {
  return new Paragraph({
    heading: HeadingLevel.HEADING_2,
    spacing: { before: 240, after: 80 },
    children: [
      new TextRun({
        text,
        bold: true,
        size: 26,
        color: color || '2C3E50',
        font: 'Calibri',
      }),
    ],
  });
}

// ─── Helper: question item ────────────────────────────────────────────────────
function questionItem(num, competency, questionText, hint) {
  const runs = [
    new TextRun({ text: `Q${num}. `, bold: true, size: 24, color: 'C0392B', font: 'Calibri' }),
    new TextRun({ text: `[${competency}]  `, bold: true, size: 20, color: '7F8C8D', font: 'Calibri' }),
    new TextRun({ text: questionText, bold: false, size: 24, color: '1A252F', font: 'Calibri' }),
  ];
  const paragraphs = [
    new Paragraph({
      spacing: { before: 120, after: 40 },
      indent: { left: 360 },
      children: runs,
    }),
  ];
  if (hint) {
    paragraphs.push(
      new Paragraph({
        spacing: { before: 0, after: 100 },
        indent: { left: 720 },
        children: [
          new TextRun({
            text: `πŸ’‘ ${hint}`,
            italics: true,
            size: 20,
            color: '5D6D7E',
            font: 'Calibri',
          }),
        ],
      })
    );
  }
  return paragraphs;
}

// ─── Helper: divider ─────────────────────────────────────────────────────────
function divider(color) {
  return new Paragraph({
    spacing: { before: 60, after: 60 },
    border: { bottom: { color: color || 'BDC3C7', size: 6, style: BorderStyle.SINGLE } },
    children: [],
  });
}

// ─── Summary table ────────────────────────────────────────────────────────────
function makeSummaryTable() {
  const headers = ['System', 'Top Must-Know Topics', 'Exam Format'];
  const rows = [
    ['CVS', 'Cardiac cycle & pressure changes, Heart sounds (S1/S2), ECG waves & intervals, Cardiac output, BP regulation, Murmurs', 'LAQ, SAQ, MCQ'],
    ['Respiratory', 'Mechanism of inspiration/expiration, Surfactant, O2 & CO2 transport, Regulation of respiration, Hypoxia & Cyanosis', 'LAQ, SAQ, MCQ'],
    ['Endocrinology', 'GH functions & disorders, ADH & Oxytocin functions, Thyroid hormone synthesis & altered secretion, Insulin action, Calcium homeostasis', 'LAQ, SAQ'],
    ['Nervous System', 'Synapse anatomy & properties, Reflex arc & classification, Sensory/Motor tracts, Spinal cord transection, Motor tract clinical significance', 'LAQ, SAQ, MCQ'],
  ];

  const headerRow = new TableRow({
    tableHeader: true,
    children: headers.map(h =>
      new TableCell({
        shading: { type: ShadingType.CLEAR, fill: COLORS.table_h.bg },
        verticalAlign: VerticalAlign.CENTER,
        children: [new Paragraph({
          alignment: AlignmentType.CENTER,
          children: [new TextRun({ text: h, bold: true, color: COLORS.table_h.text, size: 22, font: 'Calibri' })],
        })],
        width: { size: 3333, type: WidthType.PERCENTAGE },
      })
    ),
  });

  const dataRows = rows.map((row, i) =>
    new TableRow({
      children: row.map((cell, j) =>
        new TableCell({
          shading: { type: ShadingType.CLEAR, fill: i % 2 === 0 ? COLORS.table_r1.bg : COLORS.table_r2.bg },
          verticalAlign: VerticalAlign.CENTER,
          children: [new Paragraph({
            children: [new TextRun({
              text: cell,
              bold: j === 0,
              size: 20,
              color: j === 0 ? 'C0392B' : '1A252F',
              font: 'Calibri',
            })],
          })],
        })
      ),
    })
  );

  return new Table({
    width: { size: 100, type: WidthType.PERCENTAGE },
    rows: [headerRow, ...dataRows],
  });
}

// ─── Must-Know badge paragraph ───────────────────────────────────────────────
function mustKnowBadge(text) {
  return new Paragraph({
    spacing: { before: 80, after: 80 },
    indent: { left: 360 },
    shading: { type: ShadingType.CLEAR, fill: COLORS.mustknow.bg },
    children: [
      new TextRun({ text: 'β˜… MUST KNOW  ', bold: true, size: 20, color: COLORS.mustknow.accent, font: 'Calibri' }),
      new TextRun({ text, size: 20, color: '4A235A', italics: true, font: 'Calibri' }),
    ],
  });
}

// ═══════════════════════════════════════════════════════════════════
//  BUILD DOCUMENT
// ═══════════════════════════════════════════════════════════════════
const children = [];

// ── TITLE PAGE ───────────────────────────────────────────────────────────────
children.push(
  new Paragraph({
    alignment: AlignmentType.CENTER,
    shading: { type: ShadingType.CLEAR, fill: COLORS.header.bg },
    spacing: { before: 0, after: 0 },
    children: [new TextRun({ text: '', size: 20 })],
  }),
  new Paragraph({
    alignment: AlignmentType.CENTER,
    shading: { type: ShadingType.CLEAR, fill: COLORS.header.bg },
    spacing: { before: 200, after: 100 },
    children: [
      new TextRun({
        text: 'BHMS 1st Year β€” Human Physiology',
        bold: true, size: 44, color: 'FFFFFF', font: 'Calibri',
      }),
    ],
  }),
  new Paragraph({
    alignment: AlignmentType.CENTER,
    shading: { type: ShadingType.CLEAR, fill: COLORS.header.bg },
    spacing: { before: 60, after: 160 },
    children: [
      new TextRun({
        text: 'PERIODIC ASSESSMENT β€” MUST KNOW QUESTIONS',
        bold: true, size: 32, color: 'F0C040', font: 'Calibri',
      }),
    ],
  }),
  new Paragraph({
    alignment: AlignmentType.CENTER,
    shading: { type: ShadingType.CLEAR, fill: COLORS.header.bg },
    spacing: { before: 0, after: 200 },
    children: [
      new TextRun({
        text: 'NCH CBDC Syllabus  β€’  CVS  β€’  Respiratory  β€’  Endocrinology  β€’  Nervous System',
        size: 22, color: 'B0BEC5', font: 'Calibri', italics: true,
      }),
    ],
  }),
  spacer(8),
);

// ── INTRO NOTE ────────────────────────────────────────────────────────────────
children.push(
  new Paragraph({
    spacing: { before: 120, after: 120 },
    shading: { type: ShadingType.CLEAR, fill: 'EAF2FF' },
    children: [
      new TextRun({ text: 'πŸ“Œ  About this document:  ', bold: true, size: 22, color: '1A6BAB', font: 'Calibri' }),
      new TextRun({
        text: 'All questions below are extracted directly from the NCH CBDC competency table for BHMS 1st Year Human Physiology & Biochemistry. Only items tagged "Must Know" (Guilbert\'s level) are included. Competency codes (e.g., 6.9) match the official PDF.',
        size: 20, color: '2C3E50', font: 'Calibri',
      }),
    ],
  }),
  spacer(6),
);

// ── SUMMARY TABLE ─────────────────────────────────────────────────────────────
children.push(
  subHeading('Quick Overview by System', '2C3E50'),
  spacer(4),
  makeSummaryTable(),
  spacer(10),
);

// ════════════════════════════════════════════════════════════════════
// SECTION 1 β€” CVS
// ════════════════════════════════════════════════════════════════════
children.push(
  sectionHeading('CARDIOVASCULAR SYSTEM', 'πŸ«€', COLORS.cvs.bg, COLORS.cvs.text),
  divider(COLORS.cvs.accent),
  spacer(4),
);

const cvsQuestions = [
  ['6.1',  'Describe the chambers of the heart.', 'Four chambers: RA, RV, LA, LV β€” structure, walls, valves at each inlet/outlet'],
  ['6.2',  'Discuss the valves and walls of the heart.', 'AV valves (mitral, tricuspid) + Semilunar valves (aortic, pulmonary); wall layers (epicardium, myocardium, endocardium)'],
  ['6.4',  'Describe the conducting system of the heart.', 'SA node β†’ AV node β†’ Bundle of His β†’ R&L bundle branches β†’ Purkinje fibers; conduction velocities'],
  ['6.8',  'Define Cardiac Cycle.', 'Sequence of electrical and mechanical events from one heartbeat to the next (~0.8 sec at 75 bpm)'],
  ['6.9',  'Discuss the events of the cardiac cycle.', '7 phases: Atrial systole, Isovolumetric contraction, Rapid ejection, Reduced ejection, Isovolumetric relaxation, Rapid filling, Diastasis'],
  ['6.10', 'Explain the pressure changes during cardiac cycle.', 'Wiggers diagram β€” LV pressure, Aortic pressure, LA pressure, LV volume changes in each phase'],
  ['6.11', 'Explain the ECG changes during each cardiac cycle phase.', 'P wave = atrial depol; QRS = ventricular depol; T wave = ventricular repol β€” correlate with Wiggers diagram'],
  ['6.12', 'Define Heart Sound.', 'Vibratory sounds produced by valve closure and blood turbulence; heard with stethoscope'],
  ['6.13', 'Explain different heart sounds with their measurement technique.', 'S1 (lub) = AV valve closure; S2 (dub) = semilunar closure; S3 = rapid filling; S4 = atrial contraction against stiff ventricle'],
  ['6.14', 'Discuss the clinical importance of Murmurs and Triple heart sound.', 'Murmurs = turbulent flow; classify as systolic/diastolic; causes: stenosis, regurgitation, septal defect, PDA (machinery murmur)'],
  ['6.15', 'Discuss normal ECG with its waves and intervals.', 'P wave, PR interval (0.12-0.20 s), QRS (<0.12 s), ST segment, T wave, QT interval β€” normal values'],
  ['6.16', 'Explain electrocardiography with unipolar and bipolar recording.', 'Bipolar: Leads I, II, III; Unipolar limb: aVR, aVL, aVF; Precordial: V1-V6'],
  ['6.17', 'Classify arrhythmias.', 'Bradycardia, tachycardia, heart blocks (1st, 2nd, 3rd degree), AF, VF β€” basics'],
  ['6.23', 'Identify the factors affecting heart rate and how it affects circulation.', 'Autonomic NS, hormones (adrenaline), temperature, age, exercise, Bainbridge reflex'],
  ['6.25', 'Define cardiac output.', 'CO = HR Γ— SV; normal ~5 L/min; factors: preload (Frank-Starling), afterload, contractility, HR'],
  ['6.27', 'Discuss the factors affecting cardiac output.', 'Preload, afterload, heart rate, contractility (inotropy) β€” Frank-Starling law'],
  ['6.28', 'Discuss in detail the control mechanism of cardiac output.', 'Intrinsic (Frank-Starling) + Extrinsic (sympathetic/parasympathetic, hormonal, metabolic)'],
  ['6.29', 'Discuss the importance of blood pressure.', 'Drives perfusion of all organs; normal 120/80 mmHg; MAP = DBP + 1/3 pulse pressure'],
  ['6.30', 'State the factors affecting arterial blood pressure.', 'CO Γ— TPR; heart rate, stroke volume, blood volume, vessel tone, blood viscosity'],
  ['6.31', 'Discuss the determinants of arterial blood pressure.', 'BP = CO Γ— TPR; systolic (cardiac output), diastolic (peripheral resistance), pulse pressure'],
  ['6.32', 'Describe regulation of arterial blood pressure.', 'Short-term: baroreceptor reflex; Medium: RAAS, ADH; Long-term: renal fluid regulation'],
  ['6.38', 'Explain mechanism responsible for shock and syncope.', 'Shock: inadequate tissue perfusion; Syncope: transient loss of consciousness due to cerebral hypoperfusion'],
  ['6.39', 'Discuss the mechanism of hypertension.', 'Primary (essential) vs Secondary; increased CO or TPR; renin-angiotensin axis, sympathetic overactivity'],
];

let qNum = 1;
cvsQuestions.forEach(([code, q, hint]) => {
  questionItem(qNum++, `Hom UG-PB ${code}`, q, hint).forEach(p => children.push(p));
});
children.push(spacer(8));

// ════════════════════════════════════════════════════════════════════
// SECTION 2 β€” RESPIRATORY SYSTEM
// ════════════════════════════════════════════════════════════════════
children.push(
  sectionHeading('RESPIRATORY SYSTEM', '🫁', COLORS.rs.bg, COLORS.rs.text),
  divider(COLORS.rs.accent),
  spacer(4),
);

const rsQuestions = [
  ['7.1',  'Identify the different parts of upper respiratory tract.', 'Nose, pharynx, larynx β€” functions of each (filtration, warming, humidification)'],
  ['7.2',  'Describe the importance of different parts of lower respiratory tract.', 'Trachea, bronchi, bronchioles, alveoli β€” conducting vs respiratory zones'],
  ['7.3',  'Identify the different parts of tracheo-bronchial tree, respiratory membrane and pleura.', 'Bronchial tree branching; respiratory membrane (6 layers); visceral vs parietal pleura'],
  ['7.5',  'Discuss non-respiratory functions of respiratory system.', 'Speech, olfaction, acid-base balance, filtering emboli, metabolism of vasoactive substances'],
  ['7.6',  'Discuss the mechanism of Inspiration.', 'Active process: diaphragm + external intercostals contract β†’ chest expands β†’ intrapulmonary pressure drops β†’ air in'],
  ['7.7',  'Discuss the mechanism of Expiration.', 'Passive at rest (elastic recoil); active in forced expiration: internal intercostals + abdominals'],
  ['7.13', 'Discuss the significance of lung surfactant.', 'Produced by Type II pneumocytes; dipalmitoyl phosphatidylcholine (DPPC); reduces surface tension; prevents alveolar collapse; La Place law P=2T/r'],
  ['7.14', 'Describe the oxygen transportation.', 'Dissolved (1.5%) + Bound to Hb as oxyhaemoglobin (98.5%); O2-Hb dissociation curve; P50 = 26 mmHg'],
  ['7.15', 'Explain the carbon dioxide transportation.', 'Dissolved (7%) + Bicarbonate (70%) + Carbamino compounds (23%); chloride shift; carbonic anhydrase'],
  ['7.16', 'Discuss the nervous regulation of respiration.', 'Respiratory centres: DRG (inspiration) + VRG (expiration) in medulla; pneumotaxic & apneustic centres in pons'],
  ['7.17', 'Discuss the chemical regulation of respiration.', 'Central chemoreceptors (medulla) β€” CO2/H+; Peripheral chemoreceptors (carotid & aortic bodies) β€” O2, CO2, pH'],
  ['7.18', 'Discuss the physio-clinical aspect of Apnea.', 'Cessation of breathing; types: central (no respiratory effort), obstructive (airway blocked); sleep apnea'],
  ['7.19', 'Discuss the physio-clinical aspect of Dyspnoea, Asphyxia, and Oxygen toxicity.', 'Dyspnoea = difficult breathing; Asphyxia = O2 deprivation + CO2 accumulation; O2 toxicity = pulmonary and CNS effects'],
  ['7.20', 'Define Hypoxia.', 'Deficiency of O2 at tissue level; types: hypoxic, anaemic, stagnant, histotoxic'],
  ['7.21', 'Classify hypoxia. Define Cyanosis.', 'Hypoxic (↓PaO2), Anaemic (↓Hb), Stagnant (↓blood flow), Histotoxic (↓O2 utilisation); Cyanosis = bluish discolouration when deoxyHb >5 g/dL'],
  ['7.23', 'Discuss the methods of artificial respiration.', 'Mouth-to-mouth, Sylvester method, mechanical ventilation; indications and procedure'],
];

rsQuestions.forEach(([code, q, hint]) => {
  questionItem(qNum++, `Hom UG-PB ${code}`, q, hint).forEach(p => children.push(p));
});
children.push(spacer(8));

// ════════════════════════════════════════════════════════════════════
// SECTION 3 β€” ENDOCRINOLOGY
// ════════════════════════════════════════════════════════════════════
children.push(
  sectionHeading('ENDOCRINOLOGY', '🧬', COLORS.endo.bg, COLORS.endo.text),
  divider(COLORS.endo.accent),
  spacer(4),
);

const endoQuestions = [
  ['9.4',  'Discuss the regulation of hormone secretion from the hypothalamus.', 'Hypothalamo-hypophyseal portal system; releasing hormones (GHRH, TRH, CRH, GnRH) and inhibiting hormones (Dopamine = PIH, somatostatin)'],
  ['9.5',  'Discuss the homeostatic mechanism of secretion of hormone through hypothalamus.', 'Negative feedback: target gland hormone β†’ inhibits anterior pituitary & hypothalamus; positive feedback example: LH surge'],
  ['9.8',  'Explain the secretion of growth hormone.', 'Anterior pituitary; GHRH stimulates, somatostatin inhibits; pulsatile secretion; peaks during sleep (stage III-IV)'],
  ['9.9',  'Describe the functions of growth hormone.', 'Linear growth (via IGF-1/somatomedin), protein anabolism, lipolysis, anti-insulin effect (diabetogenic), organ growth'],
  ['9.11', 'Discuss the effects of altered secretion of growth hormone.', 'Excess before closure = Gigantism; Excess after = Acromegaly (enlarged hands, jaw, organs); Deficiency = Dwarfism (pituitary dwarfism)'],
  ['9.12', 'Explain the actions and control of secretion of prolactin.', 'Lactogenesis (milk production); inhibited by dopamine (PIH); stimulated by suckling, TRH, oestrogen; prolactinoma β†’ galactorrhoea'],
  ['9.14', 'Explain the functions of ADH (Vasopressin).', 'Synthesized in supraoptic nucleus; water reabsorption in collecting duct (V2 receptor); vasoconstriction (V1); deficiency = Diabetes Insipidus'],
  ['9.15', 'Discuss the functions of Oxytocin.', 'Synthesized in paraventricular nucleus; milk ejection reflex (let-down); uterine contraction during parturition; Ferguson reflex'],
  ['9.16', 'Describe pituitary insufficiency.', 'Panhypopituitarism: Sheehan syndrome (post-partum infarction); features depend on which hormone is lost first (GH, then LH/FSH, then TSH, then ACTH)'],
  ['9.18', 'Describe the formation and secretion of thyroid hormone.', 'Iodide trapping β†’ oxidation (TPO) β†’ organification β†’ coupling β†’ storage as thyroglobulin β†’ T3 (20%) + T4 (80%) released'],
  ['9.20', 'Discuss the regulation and action of thyroid hormone.', 'TRH (hypothalamus) β†’ TSH (anterior pituitary) β†’ T3/T4; negative feedback; T4 converted to T3 (active) peripherally'],
  ['9.21', 'Explain the effect of altered secretion of thyroid hormone.', 'Hypothyroidism: Cretinism (children β€” mental retardation, stunted growth), Myxedema (adults); Hyperthyroidism: Graves disease, exophthalmos, goitre, tachycardia'],
  ['9.25', 'Discuss the role of Calcitonin in maintenance of calcium homeostasis.', 'Secreted by parafollicular C cells; lowers blood Ca2+ by inhibiting osteoclasts; opposes PTH; important in pregnancy/lactation'],
  ['9.26', 'Discuss the effect of altered secretion of parathyroid hormone.', 'Hyperparathyroidism: hypercalcaemia, bone resorption, renal stones (bones, moans, stones, groans); Hypoparathyroidism: hypocalcaemia β†’ tetany, Chvostek sign'],
  ['9.28', 'Describe the formation, secretion, and functions of Glucocorticoid hormone.', 'Cortisol from zona fasciculata; stimulated by ACTH; anti-inflammatory, gluconeogenesis, immunosuppression, stress response; Cushing syndrome (excess)'],
  ['9.29', 'Describe the formation, secretion, and functions of Mineralocorticoid hormone.', 'Aldosterone from zona glomerulosa; regulated by RAAS; Na+ retention + K+ excretion in collecting duct; BP regulation; Conn syndrome (excess)'],
  ['9.35', 'Discuss the action and regulation of Insulin.', 'Beta cells of islets of Langerhans; glucose uptake (GLUT-4), glycogenesis, lipogenesis, protein synthesis; secreted in response to ↑blood glucose; Diabetes Mellitus if deficient/resistant'],
  ['9.36', 'Describe the effects of altered secretion of Pancreatic Hormone.', 'Insulin deficiency = Diabetes Mellitus (Type 1: absolute; Type 2: relative); Glucagon excess = hyperglycemia; insulinoma = hypoglycemia'],
  ['9.37', 'Describe the functions of hormone of thymus gland.', 'Thymosin, thymopoietin, thymulin; T-lymphocyte maturation and differentiation; peaks in childhood, involutes after puberty'],
  ['9.38', 'Discuss the functions of hormone of pineal gland.', 'Melatonin (from serotonin); regulates circadian rhythm; seasonality; antioxidant; inhibited by light (retinohypothalamic tract)'],
];

endoQuestions.forEach(([code, q, hint]) => {
  questionItem(qNum++, `Hom UG-PB ${code}`, q, hint).forEach(p => children.push(p));
});
children.push(spacer(8));

// ════════════════════════════════════════════════════════════════════
// SECTION 4 β€” NERVOUS SYSTEM
// ════════════════════════════════════════════════════════════════════
children.push(
  sectionHeading('NERVOUS SYSTEM', '🧠', COLORS.ns.bg, COLORS.ns.text),
  divider(COLORS.ns.accent),
  spacer(4),
);

const nsQuestions = [
  ['8.1',  'Identify the parts of central nervous system β€” brain and spinal cord β€” with functions.', 'Brain: cerebrum, cerebellum, brainstem; Spinal cord: 31 segments; functions: integration, reflex, conduction'],
  ['8.3',  'Classify the nervous system.', 'CNS vs PNS; Somatic (voluntary) vs Autonomic (involuntary); Sympathetic vs Parasympathetic; Afferent vs Efferent'],
  ['8.4',  'Illustrate the physiological anatomy of synapse.', 'Presynaptic terminal (vesicles, mitochondria), synaptic cleft (20-40 nm), postsynaptic membrane (receptors); types: axodendritic, axosomatic, axoaxonic'],
  ['8.5',  'Discuss the electrical events occurring at synapses.', 'EPSP (depolarization β€” Na+/Ca2+ influx), IPSP (hyperpolarization β€” Cl- influx/K+ efflux); summation β†’ action potential if threshold reached'],
  ['8.6',  'Discuss the properties of synapse.', 'Unidirectionality, synaptic delay (0.5 ms), fatigue, summation (temporal + spatial), facilitation, inhibition, convergence, divergence'],
  ['8.10', 'Explain the properties of receptors.', 'Adequate stimulus, sensory transduction, generator potential, adaptation (phasic vs tonic), receptor specificity'],
  ['8.11', 'Discuss reflex arc.', '5 components: Receptor β†’ Afferent neuron β†’ Nerve centre (spinal cord) β†’ Efferent neuron β†’ Effector organ'],
  ['8.12', 'Classify reflexes.', 'Monosynaptic (knee jerk) vs Polysynaptic; Somatic vs Autonomic; Inborn (unconditioned) vs Acquired (conditioned); Ipsilateral vs Crossed extensor'],
  ['8.13', 'Discuss the properties of reflex.', 'Adequate stimulus required, receptor specificity, irreversibility, inhibition, facilitation, after-discharge, rebound'],
  ['8.14', 'Classify neurotransmitters.', 'Amines (ACh, dopamine, NE, serotonin), Amino acids (GABA-inhibitory, Glutamate-excitatory, Glycine), Peptides (Substance P, endorphins), Gases (NO)'],
  ['8.16', 'Define sensory system.', 'Afferent pathways conveying sensory information from receptors to cerebral cortex; somatosensory, special senses'],
  ['8.17', 'Discuss different sensory tracts of spinal cord.', 'Dorsal columns (Fasciculus gracilis + cuneatus) vs Spinothalamic tracts (anterior + lateral)'],
  ['8.18', 'Describe the sensory tracts of spinal cord.', 'Dorsal columns: fine touch, vibration, proprioception β€” ipsilateral; decussate at medulla; Spinothalamic: pain, temp, crude touch β€” decussate at cord level'],
  ['8.20', 'Describe somatic sensation: touch, pressure, pain, temperature, proprioception.', 'Receptors for each; pathways; cortical representation in primary somatosensory cortex (S1) β€” homunculus'],
  ['8.21', 'Discuss motor areas.', 'Primary motor cortex (M1) area 4; premotor cortex area 6; supplementary motor area; corticospinal tract origin'],
  ['8.22', 'Discuss different motor tracts of spinal cord.', 'Pyramidal: Lateral corticospinal (limbs) + Anterior corticospinal (trunk); Extrapyramidal: rubrospinal, vestibulospinal, reticulospinal'],
  ['8.23', 'Discuss the motor tracts of spinal cord.', 'Lateral corticospinal: contralateral limb voluntary movement; decussates at medullary pyramids; controls fine hand movements'],
  ['8.24', 'Discuss the clinical significance of motor tracts of spinal cord.', 'UMN lesion: spasticity, hyper-reflexia, Babinski +ve, no wasting; LMN lesion: flaccid paralysis, wasting, fasciculations, areflexia'],
  ['8.25', 'Discuss the physiological anatomy of vestibular apparatus.', 'Utricle, saccule (linear acceleration), 3 semicircular canals (angular acceleration); hair cells, stereocilia, kinocilium; endolymph'],
  ['8.26', 'Explain the functions of vestibular apparatus.', 'Static equilibrium, dynamic balance, eye stabilisation (VOR β€” vestibuloocular reflex), postural reflexes'],
  ['8.27', 'Discuss the common vestibular dysfunctions.', 'Vertigo (BPPV, Meniere disease), nystagmus, unsteady gait; distinguishing central vs peripheral vertigo'],
  ['8.29', 'Describe the divisions of Autonomic nervous system.', 'Sympathetic (thoracolumbar T1-L2, "fight or flight") vs Parasympathetic (craniosacral, "rest and digest"); neurotransmitters: ACh (pre-ganglionic both; post-ganglionic Para), NE (post-ganglionic Symp)'],
  ['8.31', 'List the functions of spinal cord.', 'Conduction (ascending/descending tracts), reflex activity (spinal reflexes), segmental innervation'],
  ['8.32', 'Illustrate the transection of spinal cord.', 'Complete transection: spinal shock then return of reflexes; Brown-SΓ©quard (hemisection): ipsilateral UMN + dorsal column loss; contralateral spinothalamic loss'],
  ['8.33', 'Describe the sensory disturbances of spinal cord.', 'Posterior cord syndrome (dorsal columns), anterior cord syndrome (spinothalamic + motor), central cord (hands > legs), cauda equina (LMN + saddle anaesthesia)'],
  ['8.34', 'Discuss the connections and functions of cerebral cortex.', 'Lobes and functions: frontal (motor, executive), parietal (sensory, spatial), temporal (hearing, memory, language), occipital (vision); association areas'],
  ['8.37', 'Explain the connections and functions of hypothalamus.', '4 Fs: Feeding, Fighting, Fleeing, mating (sex); temperature regulation, water balance (ADH, thirst), circadian rhythm, emotional responses; links nervous + endocrine systems'],
  ['8.38', 'Discuss the connections and functions of limbic system.', 'Hippocampus (memory formation), amygdala (emotion, fear), cingulate gyrus; Papez circuit; involved in emotion, memory, motivation'],
  ['8.39', 'Explain the connections and functions of cerebellum.', '3 functional divisions: Vestibulocerebellum (balance), Spinocerebellum (muscle tone), Cerebrocerebellum (skilled voluntary movements); inputs: mossy + climbing fibers'],
  ['8.40', 'Explain the cerebellar lesions.', 'Ipsilateral signs; DANISH: Dysdiadochokinesia, Ataxia, Nystagmus, Intention tremor, Scanning speech, Hypotonia; falling to side of lesion'],
];

nsQuestions.forEach(([code, q, hint]) => {
  questionItem(qNum++, `Hom UG-PB ${code}`, q, hint).forEach(p => children.push(p));
});

// ── RAPID FIRE TABLE ─────────────────────────────────────────────────────────
children.push(
  spacer(10),
  subHeading('⚑  Rapid-Fire One-Liners (High Yield)', '2C3E50'),
  spacer(4),
);

const rfData = [
  ['Pacemaker of heart', 'SA node (60-100 bpm; spontaneous depolarization via If "funny current")'],
  ['Slowest conduction in heart', 'AV node (0.01-0.05 m/s) β€” AV delay ~100 ms'],
  ['Fastest conduction in heart', 'Purkinje fibers (2-4 m/s)'],
  ['Plateau phase (Phase 2) caused by', 'L-type Ca2+ channel influx β€” unique to cardiac AP'],
  ['S1 heart sound caused by', 'Closure of AV valves (mitral + tricuspid) β€” start of systole'],
  ['S2 heart sound caused by', 'Closure of semilunar valves (aortic + pulmonary) β€” end of systole'],
  ['Normal PR interval', '0.12-0.20 seconds'],
  ['Normal QRS duration', '< 0.12 seconds'],
  ['Normal tidal volume', '500 mL'],
  ['Surfactant produced by', 'Type II pneumocytes (alveolar cells)'],
  ['Most potent thyroid hormone', 'T3 (triiodothyronine)'],
  ['T4 to T3 conversion site', 'Peripheral tissues β€” liver, kidney, muscle'],
  ['ADH synthesized in', 'Supraoptic nucleus of hypothalamus'],
  ['Oxytocin synthesized in', 'Paraventricular nucleus of hypothalamus'],
  ['Myelin in CNS formed by', 'Oligodendrocytes (one cell = up to 40 axon segments)'],
  ['Myelin in PNS formed by', 'Schwann cells (one cell = one axon segment)'],
  ['Wallerian degeneration direction', 'Anterograde (distal to injury site)'],
  ['GABA is', 'Inhibitory neurotransmitter (Cl- influx β†’ hyperpolarization)'],
  ['Glutamate is', 'Excitatory neurotransmitter (NMDA, AMPA receptors)'],
  ['Monosynaptic reflex example', 'Knee jerk / patellar reflex (Ia afferent β†’ alpha motor neuron)'],
  ['Positive Babinski sign indicates', 'UMN lesion (extension of big toe + fanning)'],
  ['Dorsal columns carry', 'Fine touch, vibration, proprioception (cross at medulla)'],
  ['Spinothalamic tract carries', 'Pain, temperature, crude touch (cross at cord level)'],
  ['Brown-SΓ©quard syndrome', 'Ipsilateral: UMN + dorsal column loss; Contralateral: spinothalamic loss'],
];

const rfHeaderRow = new TableRow({
  tableHeader: true,
  children: ['Fact', 'Answer'].map(h =>
    new TableCell({
      shading: { type: ShadingType.CLEAR, fill: COLORS.table_h.bg },
      children: [new Paragraph({
        alignment: AlignmentType.CENTER,
        children: [new TextRun({ text: h, bold: true, color: 'FFFFFF', size: 22, font: 'Calibri' })],
      })],
      width: { size: 50, type: WidthType.PERCENTAGE },
    })
  ),
});

const rfRows = rfData.map((row, i) =>
  new TableRow({
    children: row.map((cell, j) =>
      new TableCell({
        shading: { type: ShadingType.CLEAR, fill: i % 2 === 0 ? 'F2F3F4' : 'FFFFFF' },
        children: [new Paragraph({
          children: [new TextRun({
            text: cell,
            bold: j === 0,
            size: 20,
            color: j === 0 ? '1A6BAB' : '2C3E50',
            font: 'Calibri',
          })],
        })],
        width: { size: 50, type: WidthType.PERCENTAGE },
      })
    ),
  })
);

children.push(
  new Table({
    width: { size: 100, type: WidthType.PERCENTAGE },
    rows: [rfHeaderRow, ...rfRows],
  }),
  spacer(8),
);

// ── FOOTER NOTE ───────────────────────────────────────────────────────────────
children.push(
  divider('BDC3C7'),
  spacer(4),
  new Paragraph({
    alignment: AlignmentType.CENTER,
    children: [
      new TextRun({
        text: 'Source: NCH CBDC β€” BHMS 1st Year Human Physiology & Biochemistry  β€’  Only "Must Know" competencies included  β€’  Competency codes match official PDF',
        italics: true, size: 18, color: '7F8C8D', font: 'Calibri',
      }),
    ],
  }),
);

// ════════════════════════════════════════════════════════════════════
// EXPORT
// ════════════════════════════════════════════════════════════════════
const doc = new Document({
  creator: 'Orris AI',
  title: 'BHMS Physiology Must-Know Questions',
  description: 'PA Must-Know Questions from NCH CBDC',
  styles: {
    default: {
      document: {
        run: { font: 'Calibri', size: 22, color: '1A252F' },
      },
    },
  },
  sections: [{
    properties: {
      page: {
        margin: { top: 720, right: 720, bottom: 720, left: 720 },
      },
    },
    children,
  }],
});

Packer.toBuffer(doc).then(buffer => {
  fs.writeFileSync('/home/daytona/workspace/physiology-mk-questions/Physiology_MustKnow_PA.docx', buffer);
  console.log('βœ… Document created successfully!');
  console.log('Total questions:', qNum - 1);
}).catch(err => {
  console.error('Error:', err.message);
  process.exit(1);
});
Running Command

cd /home/daytona/workspace/physiology-mk-questions && node generate.js

Running Command

python3 /home/daytona/skills/docx/scripts/office/validate.py /home/daytona/workspace/physiology-mk-questions/Physiology_MustKnow_PA.docx

Running Command

# Quick structural validation β€” check it's a valid zip/docx and has expected XML parts python3 -c " import zipfile, os path = '/home/daytona/workspace/physiology-mk-questions/Physiology_MustKnow_PA.docx' print('File size:', os.path.getsize(path), 'bytes') with zipfile.ZipFile(path) as z: names = z.namelist() print('Parts found:', [n for n in names if n.endswith('.xml')][:8]) # Check document.xml is non-empty doc_xml = z.read('word/document.xml') print('document.xml size:', len(doc_xml), 'bytes') print('Valid OOXML structure:', 'w:document' in doc_xml.decode('utf-8', errors='ignore')) "

The document is valid. Here it is:

Physiology MustKnow PA

Word Document Β· DOCX


What's inside the document:
  • 89 Must-Know questions across all 4 systems - pulled directly from the NCH CBDC PDF
  • Every question is tagged with its official competency code (e.g., Hom UG-PB 6.9) so you can cross-reference the PDF
  • Each question has a πŸ’‘ hint with the key answer points to guide your revision
  • Color-coded sections - CVS in red, RS in blue, Endocrinology in green, Nervous System in amber
  • Quick Overview table at the start showing top topics and exam format (LAQ/SAQ/MCQ) per system
  • Rapid-Fire One-Liners table at the end with 24 high-yield facts for last-minute review
SystemQuestions
CVS23
Respiratory16
Endocrinology20
Nervous System30
Total89

Create a study schedule for these topics before PA exam this date is 15th july and exam starts on 27th july onwards

Writing File

~/physiology-mk-questions/schedule.js

const {
  Document, Packer, Paragraph, TextRun, Table, TableRow, TableCell,
  AlignmentType, HeadingLevel, BorderStyle, WidthType, ShadingType,
  VerticalAlign, UnderlineType, PageBreak
} = require('docx');
const fs = require('fs');

// ─── Colors ───────────────────────────────────────────────────────────────────
const C = {
  darkBg:    '1B2A4A',
  gold:      'F0C040',
  cvs:       'C0392B',  cvsBg:  'FDECEA',
  rs:        '1565C0',  rsBg:   'E3F2FD',
  endo:      '2E7D32',  endoBg: 'E8F5E9',
  ns:        'E65100',  nsBg:   'FFF8E1',
  rev:       '6A1B9A',  revBg:  'F3E5F5',
  exam:      'B71C1C',  examBg: 'FFEBEE',
  rest:      '00695C',  restBg: 'E0F2F1',
  white:     'FFFFFF',
  dark:      '1A252F',
  grey:      '7F8C8D',
  lightGrey: 'F2F3F4',
  mid:       '2C3E50',
};

function sp(before = 60, after = 60) {
  return { before, after };
}

function txt(text, opts = {}) {
  return new TextRun({ text, font: 'Calibri', size: opts.size || 22,
    bold: opts.bold, italics: opts.italic, color: opts.color || C.dark,
    underline: opts.underline ? { type: UnderlineType.SINGLE } : undefined });
}

function para(runs, opts = {}) {
  return new Paragraph({
    alignment: opts.align || AlignmentType.LEFT,
    spacing: sp(opts.before || 60, opts.after || 60),
    shading: opts.fill ? { type: ShadingType.CLEAR, fill: opts.fill } : undefined,
    indent: opts.indent ? { left: opts.indent } : undefined,
    border: opts.border || undefined,
    children: Array.isArray(runs) ? runs : [runs],
  });
}

function spacer(pts = 6) {
  return new Paragraph({ spacing: sp(pts * 20, pts * 20), children: [] });
}

function divider(color = 'BDC3C7', size = 6) {
  return new Paragraph({
    spacing: sp(40, 40),
    border: { bottom: { color, size, style: BorderStyle.SINGLE } },
    children: [],
  });
}

function heading1(text, fill, textColor) {
  return new Paragraph({
    heading: HeadingLevel.HEADING_1,
    shading: { type: ShadingType.CLEAR, fill },
    spacing: sp(300, 120),
    children: [txt(text, { bold: true, size: 34, color: textColor || C.white })],
  });
}

function heading2(text, color) {
  return new Paragraph({
    heading: HeadingLevel.HEADING_2,
    spacing: sp(200, 80),
    children: [txt(text, { bold: true, size: 26, color: color || C.mid })],
  });
}

// ─── Day card table (full-width) ─────────────────────────────────────────────
function dayCard(dayNum, date, dayName, sessions, tagColor, tagFill, isExamDay = false, isRestDay = false) {
  const labelText = isExamDay ? 'πŸ“ EXAM' : isRestDay ? 'πŸ”„ REVISION + REST' : `DAY ${dayNum}`;
  const labelColor = isExamDay ? C.exam : isRestDay ? C.rest : tagColor;
  const labelFill  = isExamDay ? C.examBg : isRestDay ? C.restBg : tagFill;

  // Header row
  const headerRow = new TableRow({
    children: [
      // Day label
      new TableCell({
        width: { size: 18, type: WidthType.PERCENTAGE },
        shading: { type: ShadingType.CLEAR, fill: labelColor },
        verticalAlign: VerticalAlign.CENTER,
        children: [
          para(txt(labelText, { bold: true, size: 22, color: C.white }), { align: AlignmentType.CENTER }),
          para(txt(date, { size: 18, color: 'FFE082' }), { align: AlignmentType.CENTER }),
          para(txt(dayName, { size: 18, color: 'FFE082', italic: true }), { align: AlignmentType.CENTER }),
        ],
      }),
      // Sessions
      new TableCell({
        width: { size: 82, type: WidthType.PERCENTAGE },
        shading: { type: ShadingType.CLEAR, fill: labelFill },
        children: sessions.flatMap(s => {
          const parts = [];
          parts.push(para([
            txt(s.time + '  ', { bold: true, size: 20, color: labelColor }),
            txt(s.title, { bold: true, size: 22, color: C.dark }),
          ], { indent: 200 }));
          if (s.topics && s.topics.length) {
            s.topics.forEach(t => parts.push(
              para(txt('   β€’ ' + t, { size: 20, color: C.mid }), { indent: 400 })
            ));
          }
          if (s.goal) {
            parts.push(para(
              txt('   βœ… Goal: ' + s.goal, { size: 19, color: C.grey, italic: true }),
              { indent: 400 }
            ));
          }
          return parts;
        }),
      }),
    ],
  });

  return new Table({
    width: { size: 100, type: WidthType.PERCENTAGE },
    rows: [headerRow],
    borders: {
      top:    { style: BorderStyle.SINGLE, size: 4, color: labelColor },
      bottom: { style: BorderStyle.SINGLE, size: 4, color: labelColor },
      left:   { style: BorderStyle.SINGLE, size: 4, color: labelColor },
      right:  { style: BorderStyle.SINGLE, size: 4, color: labelColor },
      insideH:{ style: BorderStyle.NONE },
      insideV:{ style: BorderStyle.NONE },
    },
  });
}

// ─── Mini legend row ─────────────────────────────────────────────────────────
function legendTable() {
  const items = [
    { label: 'πŸ«€ CVS', fill: C.cvsBg, color: C.cvs },
    { label: '🫁 RS', fill: C.rsBg, color: C.rs },
    { label: '🧬 Endo', fill: C.endoBg, color: C.endo },
    { label: '🧠 NS', fill: C.nsBg, color: C.ns },
    { label: 'πŸ”„ Revision', fill: C.revBg, color: C.rev },
    { label: 'πŸ“ Exam', fill: C.examBg, color: C.exam },
  ];
  return new Table({
    width: { size: 100, type: WidthType.PERCENTAGE },
    rows: [new TableRow({
      children: items.map(it => new TableCell({
        shading: { type: ShadingType.CLEAR, fill: it.fill },
        verticalAlign: VerticalAlign.CENTER,
        children: [para(txt(it.label, { bold: true, size: 20, color: it.color }), { align: AlignmentType.CENTER })],
        width: { size: Math.floor(100 / items.length), type: WidthType.PERCENTAGE },
      })),
    })],
  });
}

// ─── Progress tracker table ────────────────────────────────────────────────────
function progressTable() {
  const checks = [
    ['CVS Overview + Cardiac Muscle', ''],
    ['Cardiac Cycle (Wiggers Diagram)', ''],
    ['Heart Sounds + Murmurs', ''],
    ['ECG Waves, Intervals, Leads', ''],
    ['Cardiac Output + BP Regulation', ''],
    ['RS Overview + Mechanics of Respiration', ''],
    ['Pulmonary Circulation + Surfactant', ''],
    ['O2 & CO2 Transport + Hypoxia', ''],
    ['Regulation of Respiration', ''],
    ['Endocrine Overview + Pituitary', ''],
    ['Thyroid Gland + Altered Secretion', ''],
    ['Hormones: ADH, Oxytocin, Insulin', ''],
    ['NS Overview + Neuron + Nerve Injury', ''],
    ['Receptors + Synapse + Neuroglia + NT', ''],
    ['Reflex Activity + Spinal Cord Tracts', ''],
    ['Full Revision β€” All 4 Systems', ''],
    ['Mock Q&A / Past Questions Practice', ''],
  ];
  const headerRow = new TableRow({
    tableHeader: true,
    children: ['#', 'Topic', 'Done? βœ“'].map((h, i) =>
      new TableCell({
        shading: { type: ShadingType.CLEAR, fill: C.darkBg },
        children: [para(txt(h, { bold: true, color: C.white, size: 20 }), { align: AlignmentType.CENTER })],
        width: { size: i === 0 ? 8 : i === 1 ? 72 : 20, type: WidthType.PERCENTAGE },
      })
    ),
  });
  const rows = checks.map(([topic, done], i) =>
    new TableRow({
      children: [
        new TableCell({
          shading: { type: ShadingType.CLEAR, fill: i % 2 === 0 ? C.lightGrey : C.white },
          children: [para(txt(String(i + 1), { bold: true, color: C.grey, size: 20 }), { align: AlignmentType.CENTER })],
        }),
        new TableCell({
          shading: { type: ShadingType.CLEAR, fill: i % 2 === 0 ? C.lightGrey : C.white },
          children: [para(txt(topic, { size: 20 }))],
        }),
        new TableCell({
          shading: { type: ShadingType.CLEAR, fill: i % 2 === 0 ? C.lightGrey : C.white },
          children: [para(txt('☐', { size: 24, color: C.grey }), { align: AlignmentType.CENTER })],
        }),
      ],
    })
  );
  return new Table({
    width: { size: 100, type: WidthType.PERCENTAGE },
    rows: [headerRow, ...rows],
  });
}

// ═══════════════════════════════════════════════════════════════════
//  SCHEDULE DATA
// ═══════════════════════════════════════════════════════════════════
// 12 study days: July 15-26  (exam starts July 27)
// Strategy:
//   Days 1-3  β†’ CVS  (most complex, most questions)
//   Days 4-5  β†’ RS
//   Days 6-7  β†’ Endocrinology
//   Days 8-10 β†’ Nervous System (most questions: 30)
//   Days 11-12 β†’ Full Revision + Mock Practice

const days = [
  // DAY 1
  { dayNum: 1, date: '15 July', dayName: 'Tuesday',
    sessions: [
      { time: '6:00 – 8:00 AM',  title: 'πŸ«€ CVS β€” Overview & Cardiac Muscle',
        topics: ['Chambers, valves, walls of heart (Comp. 6.1, 6.2)',
                 'Conducting system: SA→AV→Bundle of His→Purkinje (Comp. 6.4)',
                 'Properties of cardiac muscle: automaticity, rhythmicity, conductivity',
                 'Cardiac action potential β€” Phases 0-4 with ions',
                 'Pacemaker potential vs ventricular AP'],
        goal: 'Draw conducting system + label conduction velocities from memory' },
      { time: '9:00 – 11:00 AM', title: 'πŸ«€ CVS β€” Cardiac Cycle Part 1',
        topics: ['Define cardiac cycle, duration at 75 bpm',
                 'Phases A-G: events, valve movements, pressures (Comp. 6.8, 6.9)',
                 'Wiggers Diagram β€” LV pressure, aortic pressure, LA pressure, LV volume'],
        goal: 'Draw and label Wiggers diagram without looking' },
      { time: '3:00 – 5:00 PM',  title: 'πŸ«€ CVS β€” Cardiac Cycle Part 2 + Heart Sounds',
        topics: ['Pressure changes during each phase (Comp. 6.10)',
                 'ECG correlation with cardiac cycle phases (Comp. 6.11)',
                 'Heart sounds: S1 (lub), S2 (dub) β€” causes, location (Comp. 6.12, 6.13)',
                 'S3 and S4 β€” when normal vs pathological'],
        goal: 'Write a short note on S1 and S2' },
      { time: '8:00 – 9:00 PM',  title: 'πŸ“– Evening Review',
        topics: ['Re-read notes from today', 'Answer: What happens in Isovolumetric contraction? List all events.'],
        goal: '' },
    ], color: C.cvs, fill: C.cvsBg },

  // DAY 2
  { dayNum: 2, date: '16 July', dayName: 'Wednesday',
    sessions: [
      { time: '6:00 – 8:00 AM',  title: 'πŸ«€ CVS β€” ECG + Murmurs',
        topics: ['Normal ECG: P, PR interval, QRS, ST, T, QT β€” values (Comp. 6.15)',
                 'Bipolar leads (I, II, III) vs Unipolar leads (aVR, aVL, aVF, V1-V6) (Comp. 6.16)',
                 'Classify arrhythmias: bradycardia, tachycardia, heart blocks (Comp. 6.17)',
                 'Cardiac murmurs: causes, systolic vs diastolic (Comp. 6.14)',
                 'Machinery murmur = PDA'],
        goal: 'Draw a normal ECG strip and label all waves with normal duration values' },
      { time: '9:00 – 11:00 AM', title: 'πŸ«€ CVS β€” Cardiac Output + Heart Rate',
        topics: ['Define CO; CO = HR Γ— SV; normal 5 L/min (Comp. 6.25)',
                 'Factors affecting HR (Comp. 6.23)',
                 'Factors affecting CO: preload, afterload, contractility, HR (Comp. 6.27)',
                 'Frank-Starling law',
                 'Control mechanism of CO: intrinsic + extrinsic (Comp. 6.28)'],
        goal: 'List all factors affecting cardiac output with one-line explanation each' },
      { time: '3:00 – 5:00 PM',  title: 'πŸ«€ CVS β€” Blood Pressure Regulation',
        topics: ['BP = CO Γ— TPR; normal 120/80 mmHg (Comp. 6.29, 6.30, 6.31)',
                 'Short-term regulation: baroreceptor reflex (carotid sinus, aortic arch)',
                 'Long-term: RAAS, ADH, renal mechanism (Comp. 6.32)',
                 'Shock & syncope mechanisms (Comp. 6.38)',
                 'Mechanism of hypertension β€” primary vs secondary (Comp. 6.39)'],
        goal: 'Write: How does baroreceptor reflex regulate BP? (5 lines)' },
      { time: '8:00 – 9:00 PM',  title: 'πŸ“– CVS Full Revision',
        topics: ['Go through MK questions list for CVS (all 23 Qs)',
                 'Attempt 5 MCQs from CVS mentally'],
        goal: '' },
    ], color: C.cvs, fill: C.cvsBg },

  // DAY 3
  { dayNum: 3, date: '17 July', dayName: 'Thursday',
    sessions: [
      { time: '6:00 – 8:00 AM',  title: 'πŸ«€ CVS β€” Full Consolidation',
        topics: ['Revise Day 1 + Day 2 notes quickly (1 hr)',
                 'Write answers to 3 LAQ-type questions from CVS MK list without looking'],
        goal: 'Practice writing Wiggers diagram + ECG + Cardiac Cycle from memory' },
      { time: '9:00 – 10:00 AM', title: 'πŸ«€ CVS β€” Rapid Fire',
        topics: ['Read the Rapid-Fire one-liners for CVS from document',
                 'Attempt to recite all CVS facts without notes'],
        goal: 'All CVS topics sealed βœ…' },
      { time: '11:00 AM – 1:00 PM', title: '🫁 RS β€” Overview + Anatomy',
        topics: ['Parts of upper respiratory tract (Comp. 7.1)',
                 'Lower respiratory tract: trachea, bronchi, bronchioles, alveoli (Comp. 7.2, 7.3)',
                 'Respiratory membrane (6 layers)',
                 'Non-respiratory functions of respiratory system (Comp. 7.5)'],
        goal: 'Draw tracheo-bronchial tree + label parts' },
      { time: '3:00 – 5:00 PM',  title: '🫁 RS β€” Mechanics of Respiration',
        topics: ['Mechanism of inspiration: muscles, pressure changes (Comp. 7.6)',
                 'Mechanism of expiration: passive vs forced (Comp. 7.7)',
                 'Intrapulmonary pressure vs intrapleural pressure',
                 'Surfactant: source, composition, function, La Place law (Comp. 7.13)'],
        goal: 'Explain in 5 steps: how inspiration happens from "diaphragm contracts" to "air enters"' },
    ], color: C.rs, fill: C.rsBg },

  // DAY 4
  { dayNum: 4, date: '18 July', dayName: 'Friday',
    sessions: [
      { time: '6:00 – 8:00 AM',  title: '🫁 RS β€” Gas Transport',
        topics: ['O2 transport: dissolved (1.5%) + oxyhaemoglobin (98.5%) (Comp. 7.14)',
                 'O2-Hb dissociation curve β€” Bohr effect, P50 = 26 mmHg',
                 'CO2 transport: dissolved, bicarbonate (70%), carbamino (Comp. 7.15)',
                 'Chloride shift (Hamburger phenomenon); carbonic anhydrase role'],
        goal: 'Draw and explain O2-Hb dissociation curve with factors shifting it left/right' },
      { time: '9:00 – 11:00 AM', title: '🫁 RS β€” Regulation of Respiration',
        topics: ['Respiratory centres: DRG, VRG in medulla; pneumotaxic & apneustic in pons (Comp. 7.16)',
                 'Chemical regulation: central chemoreceptors (CO2/H+), peripheral (O2) (Comp. 7.17)',
                 'Apnea, Dyspnoea, Asphyxia, O2 toxicity (Comp. 7.18, 7.19)',
                 'Hypoxia: definition + 4 types (Comp. 7.20, 7.21)',
                 'Cyanosis: definition, when it appears (deoxyHb > 5 g/dL)'],
        goal: 'Classify hypoxia with one example each type' },
      { time: '3:00 – 5:00 PM',  title: '🫁 RS β€” Pulmonary Circulation + Methods',
        topics: ['Pulmonary circulation: low pressure (25/10 mmHg), hypoxic vasoconstriction',
                 'V/Q ratio concept; West zones',
                 'Methods of artificial respiration (Comp. 7.23)',
                 'Lung volumes and capacities β€” TV, IRV, ERV, RV, TLC, VC, FRC (normal values)'],
        goal: 'Write all lung volumes with normal values from memory' },
      { time: '8:00 – 9:00 PM',  title: 'πŸ“– RS Full Revision',
        topics: ['Go through all 16 RS MK questions',
                 'Quick check: can you name the 4 types of hypoxia + define cyanosis?'],
        goal: '' },
    ], color: C.rs, fill: C.rsBg },

  // DAY 5
  { dayNum: 5, date: '19 July', dayName: 'Saturday',
    sessions: [
      { time: '6:00 – 8:00 AM',  title: '🫁 RS β€” Consolidation',
        topics: ['Re-read RS notes (45 min)',
                 'Write 2 short answers: (1) Explain surfactant (2) Mechanism of CO2 transport'],
        goal: 'All RS topics sealed βœ…' },
      { time: '9:00 AM – 1:00 PM', title: '🧬 Endo β€” Overview + Pituitary',
        topics: ['Classification of hormones by chemistry (Comp. 9.1-9.3)',
                 'Hypothalamo-hypophyseal axis + negative feedback (Comp. 9.4, 9.5)',
                 'Anterior pituitary hormones: GH, TSH, ACTH, FSH, LH, Prolactin, MSH',
                 'GH secretion, functions, altered secretion β€” gigantism, acromegaly, dwarfism (Comp. 9.8, 9.9, 9.11)',
                 'Prolactin β€” actions + dopamine inhibition (Comp. 9.12)',
                 'Posterior pituitary: ADH (Comp. 9.14) + Oxytocin (Comp. 9.15) β€” synthesis site + functions',
                 'Pituitary insufficiency β€” Sheehan syndrome (Comp. 9.16)'],
        goal: 'List all anterior pituitary hormones + their target organs + one function each' },
      { time: '3:00 – 5:00 PM',  title: '🧬 Endo β€” Review Pituitary + Start Thyroid',
        topics: ['Revise pituitary notes',
                 'Introduction to thyroid: anatomical notes + physiological anatomy (Comp. 9.17)',
                 'Thyroid hormone synthesis steps: iodide trapping β†’ organification β†’ coupling β†’ storage β†’ release (Comp. 9.18)'],
        goal: 'Write the steps of thyroid hormone synthesis in sequence' },
    ], color: C.endo, fill: C.endoBg },

  // DAY 6
  { dayNum: 6, date: '20 July', dayName: 'Sunday',
    sessions: [
      { time: '6:00 – 8:00 AM',  title: '🧬 Endo β€” Thyroid + Parathyroid',
        topics: ['T3 vs T4: potency, half-life, peripheral conversion',
                 'Regulation of thyroid: TRH β†’ TSH β†’ T3/T4 negative feedback (Comp. 9.20)',
                 'Physiological actions of T3/T4: calorigenic, BMR, growth, cardiac, protein synthesis',
                 'Altered secretion (Comp. 9.21): Hypothyroidism (cretinism in kids, myxedema in adults); Hyperthyroidism (Graves, exophthalmos)',
                 'Calcitonin β€” source (C cells), action, role in Ca2+ homeostasis (Comp. 9.25)',
                 'PTH altered secretion β€” hyper vs hypo parathyroidism (Comp. 9.26)'],
        goal: 'Compare hypothyroidism vs hyperthyroidism in a table (causes, features, lab)' },
      { time: '9:00 – 11:00 AM', title: '🧬 Endo β€” Adrenal + Pancreas',
        topics: ['Glucocorticoids (cortisol): synthesis, functions, Cushing syndrome (Comp. 9.28)',
                 'Mineralocorticoids (aldosterone): RAAS regulation, Na+/K+ balance, Conn syndrome (Comp. 9.29)',
                 'Insulin: beta cells, actions, regulation, Diabetes Mellitus (Comp. 9.35, 9.36)',
                 'Glucagon: alpha cells, counter-regulatory actions (Comp. 9.34)'],
        goal: 'Write all actions of insulin in 6 points' },
      { time: '3:00 – 5:00 PM',  title: '🧬 Endo β€” Thymus, Pineal + Full Revision',
        topics: ['Thymus: Thymosin functions, T-cell maturation (Comp. 9.37)',
                 'Pineal gland: Melatonin β€” synthesis, circadian rhythm (Comp. 9.38)',
                 'Full revision of all 20 Endocrinology MK questions',
                 'Rapid-fire: test yourself on all Endo one-liners'],
        goal: 'All Endocrinology topics sealed βœ…' },
    ], color: C.endo, fill: C.endoBg },

  // DAY 7
  { dayNum: 7, date: '21 July', dayName: 'Monday',
    sessions: [
      { time: '6:00 – 8:00 AM',  title: '🧠 NS β€” Overview + Neuron',
        topics: ['Classify nervous system: CNS/PNS; Somatic/Autonomic (Comp. 8.3)',
                 'Parts of brain + spinal cord + functions (Comp. 8.1)',
                 'Neuron structure: soma, dendrites, axon, myelin, nodes of Ranvier',
                 'Resting membrane potential (-70 mV) β€” Na+/K+ ATPase pump',
                 'Nerve action potential: phases + ions; saltatory conduction in myelinated fibers'],
        goal: 'Draw a labelled neuron from memory' },
      { time: '9:00 – 11:00 AM', title: '🧠 NS β€” Neuroglia',
        topics: ['CNS glia: Astrocytes, Oligodendrocytes, Microglia, Ependymal cells (Comp. 4.2 + 8)',
                 'PNS glia: Schwann cells, Satellite cells',
                 'Functions of each type (especially oligodendrocytes vs Schwann cells)',
                 'Schwann cells vs oligodendrocytes in regeneration β€” key difference'],
        goal: 'Table: Name of glial cell | Location | Function | Key Fact' },
      { time: '3:00 – 5:00 PM',  title: '🧠 NS β€” Nerve Injuries',
        topics: ['Seddon classification: Neuropraxia, Axonotmesis, Neurotmesis (Comp. 4.5)',
                 'Wallerian degeneration: direction, timing, Bands of BΓΌngner',
                 'Nerve regeneration rate: 1-4 mm/day',
                 'UMN vs LMN lesion differences β€” key clinical signs (Comp. 8.24)'],
        goal: 'Compare UMN vs LMN lesion in a two-column table' },
      { time: '8:00 – 9:00 PM',  title: 'πŸ“– Evening Review',
        topics: ['Revise neuron + neuroglia + nerve injury notes'],
        goal: '' },
    ], color: C.ns, fill: C.nsBg },

  // DAY 8
  { dayNum: 8, date: '22 July', dayName: 'Tuesday',
    sessions: [
      { time: '6:00 – 8:00 AM',  title: '🧠 NS β€” Receptors + Synapse',
        topics: ['Receptor classification by modality and location (Comp. 8.7, 8.8, 8.9)',
                 'Properties of receptors: adequate stimulus, adaptation, generator potential (Comp. 8.10)',
                 'Synapse anatomy: pre-synaptic, cleft, post-synaptic (Comp. 8.4)',
                 'Electrical events: EPSP, IPSP, summation (Comp. 8.5)',
                 'Properties of synapse: unidirectionality, delay, fatigue, convergence, divergence (Comp. 8.6)'],
        goal: 'Draw a synapse with labelled parts + describe EPSP vs IPSP' },
      { time: '9:00 – 11:00 AM', title: '🧠 NS β€” Neurotransmitters + Reflex',
        topics: ['Classify neurotransmitters: amines, amino acids, peptides, gases (Comp. 8.14)',
                 'ACh synthesis, release, inactivation by AChE',
                 'Dopamine pathways (mesolimbic, mesocortical, nigrostriatal, tuberoinfundibular)',
                 'Reflex arc: 5 components (Comp. 8.11)',
                 'Classify reflexes (Comp. 8.12): monosynaptic vs polysynaptic; knee jerk example',
                 'Properties of reflex (Comp. 8.13)'],
        goal: 'Describe the knee jerk reflex step by step including Ia inhibitory interneuron' },
      { time: '3:00 – 5:00 PM',  title: '🧠 NS β€” Sensory Tracts',
        topics: ['Somatic sensations: touch, pressure, pain, temperature, proprioception (Comp. 8.20)',
                 'Dorsal columns: fine touch, vibration, proprioception β€” cross at medulla (Comp. 8.17, 8.18)',
                 'Spinothalamic tract: pain, temperature, crude touch β€” cross at spinal cord',
                 'Sensory system definition + somatosensory cortex (Comp. 8.16, 8.19)'],
        goal: 'Draw spinal cord cross-section showing dorsal columns + spinothalamic tract positions' },
    ], color: C.ns, fill: C.nsBg },

  // DAY 9
  { dayNum: 9, date: '23 July', dayName: 'Wednesday',
    sessions: [
      { time: '6:00 – 8:00 AM',  title: '🧠 NS β€” Motor Tracts + Spinal Cord',
        topics: ['Motor areas: M1 (area 4), premotor (area 6) (Comp. 8.21)',
                 'Pyramidal tract: lateral corticospinal + anterior corticospinal (Comp. 8.22, 8.23)',
                 'Extrapyramidal: rubrospinal, vestibulospinal, reticulospinal',
                 'Clinical significance: UMN vs LMN (Comp. 8.24)',
                 'Functions of spinal cord (Comp. 8.31)',
                 'Spinal cord grey matter (dorsal, ventral, lateral horns) + white matter (columns)'],
        goal: 'Name all descending tracts with their function in a table' },
      { time: '9:00 – 11:00 AM', title: '🧠 NS β€” Spinal Cord Syndromes + ANS',
        topics: ['Transection of spinal cord (Comp. 8.32): complete transection, Brown-SΓ©quard syndrome',
                 'Brown-SΓ©quard: ipsilateral UMN + dorsal column loss; contralateral spinothalamic loss',
                 'Sensory disturbances of spinal cord (Comp. 8.33): posterior, anterior, central cord syndromes',
                 'Divisions of ANS: sympathetic (T1-L2) vs parasympathetic (Comp. 8.29)',
                 'NT at ganglia: ACh; post-ganglionic sympathetic: NE; parasympathetic: ACh'],
        goal: 'Describe Brown-SΓ©quard syndrome β€” both ipsilateral and contralateral findings' },
      { time: '3:00 – 5:00 PM',  title: '🧠 NS β€” Higher Brain Centres',
        topics: ['Cerebral cortex connections and functions (Comp. 8.34)',
                 'Hypothalamus: 4 Fs, thermoregulation, water balance, circadian (Comp. 8.37)',
                 'Limbic system: hippocampus (memory), amygdala (emotion) (Comp. 8.38)',
                 'Cerebellum: 3 divisions, functions, DANISH lesion features (Comp. 8.39, 8.40)',
                 'Vestibular apparatus: anatomy, functions, common dysfunctions (Comp. 8.25-8.27)'],
        goal: 'Write: What is DANISH? (cerebellar signs)' },
    ], color: C.ns, fill: C.nsBg },

  // DAY 10
  { dayNum: 10, date: '24 July', dayName: 'Thursday',
    sessions: [
      { time: '6:00 – 8:00 AM',  title: '🧠 NS β€” Full Consolidation',
        topics: ['Re-read all NS notes (60 min rapid revision)',
                 'Go through all 30 NS MK questions from the document'],
        goal: 'All Nervous System topics sealed βœ…' },
      { time: '9:00 – 11:00 AM', title: 'πŸ”„ REVISION β€” CVS (Full Recap)',
        topics: ['Re-read CVS must-know questions 1-23',
                 'Write Wiggers diagram + ECG from memory (timed: 10 min each)',
                 'Revise: BP regulation pathway in full'],
        goal: 'CVS revision complete' },
      { time: '3:00 – 5:00 PM',  title: 'πŸ”„ REVISION β€” RS (Full Recap)',
        topics: ['Re-read RS must-know questions 24-39',
                 'Explain O2 transport + CO2 transport to yourself out loud',
                 'Hypoxia classification + cyanosis definition from memory'],
        goal: 'RS revision complete' },
      { time: '8:00 – 9:00 PM',  title: 'πŸ“– Evening Review',
        topics: ['Read through Rapid-Fire One-Liners table from the Word document'],
        goal: '' },
    ], color: C.rev, fill: C.revBg },

  // DAY 11
  { dayNum: 11, date: '25 July', dayName: 'Friday',
    sessions: [
      { time: '6:00 – 8:00 AM',  title: 'πŸ”„ REVISION β€” Endocrinology (Full Recap)',
        topics: ['Re-read Endo MK questions 40-59',
                 'Thyroid hormone synthesis steps from memory',
                 'Compare: GH excess before vs after epiphyseal closure',
                 'Insulin actions β€” list all 6'],
        goal: 'Endo revision complete' },
      { time: '9:00 – 11:00 AM', title: 'πŸ”„ REVISION β€” Nervous System (Full Recap)',
        topics: ['Re-read NS MK questions 60-89',
                 'Synapse anatomy + EPSP/IPSP from memory',
                 'Brown-SΓ©quard β€” draw the lesion and expected deficits'],
        goal: 'NS revision complete' },
      { time: '12:00 – 2:00 PM', title: 'πŸ“ Mock Practice β€” LAQ Answers',
        topics: ['Write full answers (10 min each) for these 4 LAQs:',
                 '1. Describe the cardiac cycle with pressure changes',
                 '2. Explain the regulation of respiration',
                 '3. Describe the synthesis and functions of thyroid hormone',
                 '4. Describe sensory tracts of spinal cord with clinical significance'],
        goal: 'Practice writing under time conditions' },
      { time: '4:00 – 6:00 PM',  title: 'πŸ“ Mock Practice β€” SAQ + MCQ',
        topics: ['Write 8 SAQ answers (5 min each): heart sounds, surfactant, hypoxia, synapse, ADH, reflex arc, cerebellar lesions, UMN vs LMN',
                 'Test yourself on all 24 rapid-fire one-liners'],
        goal: 'Identify weak areas and mark them for Day 12 revision' },
    ], color: C.rev, fill: C.revBg },

  // DAY 12
  { dayNum: 12, date: '26 July', dayName: 'Saturday',
    sessions: [
      { time: '6:00 – 8:00 AM',  title: 'πŸ”„ Final Targeted Revision',
        topics: ['Revise only the weak areas marked on Day 11',
                 'Re-read any topics that felt unclear'],
        goal: 'No new topics β€” only strengthening weak spots' },
      { time: '9:00 – 10:30 AM', title: 'πŸ”„ Speed Revision β€” All 4 Systems',
        topics: ['CVS: Wiggers diagram + ECG + Heart sounds + CO (15 min)',
                 'RS: Mechanics + Gas transport + Hypoxia (15 min)',
                 'Endo: Pituitary + Thyroid + Insulin (15 min)',
                 'NS: Synapse + Tracts + Reflexes + Brown-SΓ©quard (15 min)'],
        goal: 'Full 360Β° overview of all 4 systems done' },
      { time: '11:00 AM – 12:00 PM', title: 'πŸ“– Read Through MK Questions Document',
        topics: ['Skim all 89 questions + hints one final time',
                 'Read all 24 one-liners aloud'],
        goal: '' },
      { time: '2:00 – 4:00 PM',  title: '🧘 Relax + Prepare',
        topics: ['Light reading only β€” no heavy studying',
                 'Prepare stationery, check exam schedule',
                 'Sleep by 10 PM tonight'],
        goal: 'βœ… You are ready!' },
    ], color: C.rev, fill: C.revBg },
];

// ═══════════════════════════════════════════════════════════════════
//  BUILD DOCUMENT
// ═══════════════════════════════════════════════════════════════════
const children = [];

// Title
children.push(
  para(txt(''), { fill: C.darkBg }),
  para([
    txt('PHYSIOLOGY STUDY SCHEDULE', { bold: true, size: 46, color: C.white }),
  ], { fill: C.darkBg, align: AlignmentType.CENTER, before: 160, after: 80 }),
  para([
    txt('BHMS 1st Year  β€’  Periodic Assessment Preparation', { size: 26, color: C.gold, italic: true }),
  ], { fill: C.darkBg, align: AlignmentType.CENTER, before: 0, after: 80 }),
  para([
    txt('Study Period: July 15 – 26, 2026  β€’  Exam Starts: July 27, 2026', { size: 22, color: 'B0BEC5', italic: true }),
  ], { fill: C.darkBg, align: AlignmentType.CENTER, before: 0, after: 160 }),
  spacer(6),
);

// Legend
children.push(
  heading2('Colour Legend', C.mid),
  spacer(2),
  legendTable(),
  spacer(6),
);

// Daily time plan
children.push(
  heading2('Daily Time Plan (Suggested)', C.mid),
  spacer(2),
);

const dailyPlan = [
  ['6:00 – 8:00 AM', 'Session 1 β€” Fresh morning study (most difficult topics)'],
  ['8:00 – 9:00 AM', 'Breakfast + break'],
  ['9:00 – 11:00 AM', 'Session 2 β€” Continue topic / new sub-topic'],
  ['11:00 AM – 3:00 PM', 'College / classes / lunch + rest'],
  ['3:00 – 5:00 PM', 'Session 3 β€” Practice / revision / new topic'],
  ['5:00 – 8:00 PM', 'Break / exercise / dinner'],
  ['8:00 – 9:00 PM', 'Evening Review β€” read notes, attempt MCQs'],
  ['9:00 PM onwards', 'Rest β€” aim for 7-8 hours of sleep'],
];

const planHeaderRow = new TableRow({
  tableHeader: true,
  children: ['Time Slot', 'Activity'].map(h =>
    new TableCell({
      shading: { type: ShadingType.CLEAR, fill: C.darkBg },
      children: [para(txt(h, { bold: true, color: C.white, size: 22 }))],
      width: { size: 30, type: WidthType.PERCENTAGE },
    })
  ),
});
const planRows = dailyPlan.map(([t, a], i) =>
  new TableRow({ children: [
    new TableCell({ shading: { type: ShadingType.CLEAR, fill: i % 2 === 0 ? 'E8EAF6' : C.white },
      children: [para(txt(t, { bold: true, size: 20, color: '283593' }))],
      width: { size: 30, type: WidthType.PERCENTAGE } }),
    new TableCell({ shading: { type: ShadingType.CLEAR, fill: i % 2 === 0 ? 'E8EAF6' : C.white },
      children: [para(txt(a, { size: 20 }))],
      width: { size: 70, type: WidthType.PERCENTAGE } }),
  ]})
);
children.push(
  new Table({ width: { size: 100, type: WidthType.PERCENTAGE }, rows: [planHeaderRow, ...planRows] }),
  spacer(8),
);

// Phase overview
children.push(
  heading2('12-Day Phase Overview', C.mid),
  spacer(2),
);
const phases = [
  { days: 'Days 1-3  (Jul 15-17)', system: 'πŸ«€ CVS', color: C.cvs, fill: C.cvsBg,
    note: 'Cardiac cycle, Heart sounds, ECG, Cardiac output, BP regulation β€” 23 MK questions' },
  { days: 'Days 4-5  (Jul 18-19)', system: '🫁 Respiratory', color: C.rs, fill: C.rsBg,
    note: 'Mechanics, Surfactant, Gas transport, Regulation, Hypoxia β€” 16 MK questions' },
  { days: 'Days 6-7  (Jul 20-21)', system: '🧬 Endocrinology', color: C.endo, fill: C.endoBg,
    note: 'Pituitary, Thyroid, Adrenal, Pancreas, Pineal β€” 20 MK questions' },
  { days: 'Days 8-10 (Jul 22-24)', system: '🧠 Nervous System', color: C.ns, fill: C.nsBg,
    note: 'Synapse, Receptors, Reflexes, Tracts, Higher centres β€” 30 MK questions' },
  { days: 'Days 11-12 (Jul 25-26)', system: 'πŸ”„ Full Revision + Mock', color: C.rev, fill: C.revBg,
    note: 'All 4 systems, LAQ/SAQ writing practice, rapid-fire one-liners, targeted weak-area revision' },
];
const phaseHeader = new TableRow({ tableHeader: true, children:
  ['Period', 'System', 'Focus'].map(h => new TableCell({
    shading: { type: ShadingType.CLEAR, fill: C.darkBg },
    children: [para(txt(h, { bold: true, color: C.white, size: 22 }))],
    width: { size: h === 'Period' ? 28 : h === 'System' ? 22 : 50, type: WidthType.PERCENTAGE },
  }))
});
const phaseRows = phases.map((ph, i) => new TableRow({ children: [
  new TableCell({ shading: { type: ShadingType.CLEAR, fill: ph.fill },
    children: [para(txt(ph.days, { bold: true, size: 20, color: ph.color }))],
    width: { size: 28, type: WidthType.PERCENTAGE } }),
  new TableCell({ shading: { type: ShadingType.CLEAR, fill: ph.fill },
    children: [para(txt(ph.system, { bold: true, size: 20, color: ph.color }))],
    width: { size: 22, type: WidthType.PERCENTAGE } }),
  new TableCell({ shading: { type: ShadingType.CLEAR, fill: ph.fill },
    children: [para(txt(ph.note, { size: 20, color: C.mid }))],
    width: { size: 50, type: WidthType.PERCENTAGE } }),
]}));
children.push(
  new Table({ width: { size: 100, type: WidthType.PERCENTAGE }, rows: [phaseHeader, ...phaseRows] }),
  spacer(10),
  divider(),
);

// DAY-BY-DAY SCHEDULE
children.push(
  heading1('  DAY-BY-DAY DETAILED SCHEDULE', C.darkBg, C.white),
  spacer(6),
);

days.forEach((day, i) => {
  children.push(
    dayCard(day.dayNum, day.date, day.dayName, day.sessions, day.color, day.fill),
    spacer(8),
  );
  if (i < days.length - 1) children.push(divider('D5D8DC'));
  children.push(spacer(4));
});

// EXAM DAY note
children.push(
  divider(C.exam),
  spacer(4),
  para([
    txt('πŸ“  EXAM STARTS: 27 JULY 2026  ', { bold: true, size: 28, color: C.exam }),
    txt('β€” You are fully prepared. Trust your preparation!', { size: 22, color: C.mid, italic: true }),
  ], { fill: C.examBg, align: AlignmentType.CENTER }),
  spacer(8),
);

// PROGRESS CHECKLIST
children.push(
  heading1('  TOPIC COMPLETION CHECKLIST', C.darkBg, C.white),
  spacer(4),
  para(txt('Tick off each topic as you complete it during your study sessions.', { size: 20, color: C.grey, italic: true })),
  spacer(4),
  progressTable(),
  spacer(8),
);

// TIPS BOX
children.push(
  heading2('πŸ“Œ  Study Tips for PA', C.rev),
  spacer(2),
);
const tips = [
  '🧠  Prioritise DRAWING β€” Wiggers diagram, ECG, synapse, spinal cord cross-section. Diagrams are high-scoring in BHMS exams.',
  '✍️   Practice writing LAQ answers timed (10 min) β€” do not just read; write it out.',
  'πŸ”  Use spaced repetition β€” revisit Day 1 topics briefly on Day 4 and Day 10.',
  'πŸ“Š  Tables work best for comparisons β€” UMN vs LMN, hypothyroidism vs hyperthyroidism, dorsal column vs spinothalamic.',
  '🎯  Each session should end with a "Goal" β€” check it before moving on.',
  '😴  Sleep 7-8 hours every night. Memory consolidation happens during sleep β€” do not sacrifice it.',
  'πŸ’§  Stay hydrated. Short breaks every 50 min improve retention.',
  'πŸ“‹  Carry the Rapid-Fire One-Liners table with you and read during free time (canteen, commute).',
];
tips.forEach(t => children.push(
  para(txt(t, { size: 20, color: C.mid }), { indent: 360, before: 60, after: 60 })
));

children.push(
  spacer(6),
  divider('BDC3C7'),
  spacer(4),
  para(
    txt('Prepared for BHMS 1st Year Periodic Assessment  β€’  NCH CBDC Syllabus  β€’  Study period: July 15-26, 2026  β€’  Exam: from July 27, 2026',
      { size: 17, color: C.grey, italic: true }),
    { align: AlignmentType.CENTER }
  ),
);

// ── EXPORT ───────────────────────────────────────────────────────────────────
const doc = new Document({
  creator: 'Orris AI',
  title: 'Physiology PA Study Schedule',
  description: '12-day study plan for BHMS Physiology PA',
  styles: {
    default: {
      document: { run: { font: 'Calibri', size: 22, color: C.dark } },
    },
  },
  sections: [{
    properties: {
      page: { margin: { top: 720, right: 720, bottom: 720, left: 720 } },
    },
    children,
  }],
});

Packer.toBuffer(doc).then(buffer => {
  fs.writeFileSync('/home/daytona/workspace/physiology-mk-questions/Physiology_Study_Schedule.docx', buffer);
  console.log('βœ… Study schedule created!');
}).catch(err => {
  console.error('Error:', err.message);
  process.exit(1);
});
!

Failed to create session: unauthorized: authentication failed: Bearer token is invalid

We encountered an error while processing your request. Please try again or reach out to us for help.

βœ‰οΈhi@orris.care

Create a study schedule for these topics before PA exam this date is 15th july and exam starts on 27th july onwards

Running Command

ls /home/daytona/workspace/physiology-mk-questions/

Writing File

~/physiology-mk-questions/schedule.js

const {
  Document, Packer, Paragraph, TextRun, Table, TableRow, TableCell,
  AlignmentType, HeadingLevel, BorderStyle, WidthType, ShadingType,
  VerticalAlign, UnderlineType
} = require('docx');
const fs = require('fs');

const C = {
  dark:    '1B2A4A', gold: 'F0C040', white: 'FFFFFF',
  mid:     '2C3E50', grey: '7F8C8D', light: 'F2F3F4',
  cvs:     'C0392B', cvsBg:  'FDECEA',
  rs:      '1565C0', rsBg:   'E3F2FD',
  endo:    '2E7D32', endoBg: 'E8F5E9',
  ns:      'E65100', nsBg:   'FFF8E1',
  rev:     '6A1B9A', revBg:  'F3E5F5',
  exam:    'B71C1C', examBg: 'FFEBEE',
  rest:    '00695C', restBg: 'E0F2F1',
};

const t = (text, o = {}) => new TextRun({
  text, font: 'Calibri', size: o.size || 22,
  bold: o.bold, italics: o.italic, color: o.color || C.mid,
});

const p = (runs, o = {}) => new Paragraph({
  alignment: o.align || AlignmentType.LEFT,
  spacing: { before: (o.before || 3) * 20, after: (o.after || 3) * 20 },
  shading: o.fill ? { type: ShadingType.CLEAR, fill: o.fill } : undefined,
  indent: o.indent ? { left: o.indent } : undefined,
  children: Array.isArray(runs) ? runs : [runs],
});

const gap = (n = 4) => new Paragraph({ spacing: { before: n*20, after: n*20 }, children: [] });

const hr = (col = 'BDC3C7') => new Paragraph({
  spacing: { before: 40, after: 40 },
  border: { bottom: { color: col, size: 6, style: BorderStyle.SINGLE } },
  children: [],
});

function cell(content, fill, w, color, bold, size) {
  const paragraphs = Array.isArray(content)
    ? content.map(c => p(t(c, { size: size||20, color: color||C.mid, bold })))
    : [p(t(content, { size: size||20, color: color||C.mid, bold }))];
  return new TableCell({
    shading: { type: ShadingType.CLEAR, fill: fill || C.white },
    verticalAlign: VerticalAlign.TOP,
    children: paragraphs,
    width: w ? { size: w, type: WidthType.PERCENTAGE } : undefined,
  });
}

function hCell(text, fill, w) {
  return new TableCell({
    shading: { type: ShadingType.CLEAR, fill: fill || C.dark },
    verticalAlign: VerticalAlign.CENTER,
    children: [p(t(text, { bold: true, color: C.white, size: 20 }), { align: AlignmentType.CENTER })],
    width: w ? { size: w, type: WidthType.PERCENTAGE } : undefined,
  });
}

// ─── DAY CARD ─────────────────────────────────────────────────────────────────
function dayCard(config) {
  const { num, date, day, color, fill, morning, midday, afternoon, evening, goal } = config;
  const rows = [];

  // Header row
  rows.push(new TableRow({ children: [
    new TableCell({
      columnSpan: 2,
      shading: { type: ShadingType.CLEAR, fill: color },
      children: [
        p([t(`  DAY ${num}  `, { bold: true, size: 28, color: C.white }),
           t(date, { bold: true, size: 28, color: 'FFE082' }),
           t(`  (${day})`, { size: 22, color: 'FFE082', italic: true })]),
      ],
    }),
  ]}));

  // Sessions
  const sessions = [
    morning   && { label: '6–8 AM',    bg: fill,    data: morning },
    midday    && { label: '9–11 AM',   bg: fill,    data: midday },
    afternoon && { label: '3–5 PM',    bg: fill,    data: afternoon },
    evening   && { label: '8–9 PM πŸ“–', bg: 'FAFAFA', data: evening },
  ].filter(Boolean);

  sessions.forEach(({ label, bg, data }) => {
    rows.push(new TableRow({ children: [
      new TableCell({
        width: { size: 18, type: WidthType.PERCENTAGE },
        shading: { type: ShadingType.CLEAR, fill: color },
        verticalAlign: VerticalAlign.CENTER,
        children: [p(t(label, { bold: true, size: 19, color: C.white }), { align: AlignmentType.CENTER })],
      }),
      new TableCell({
        width: { size: 82, type: WidthType.PERCENTAGE },
        shading: { type: ShadingType.CLEAR, fill: bg },
        children: [
          p(t(data.title, { bold: true, size: 22, color })),
          ...data.topics.map(tp => p(t('  β€’ ' + tp, { size: 20, color: C.mid }), { indent: 200 })),
          data.goal ? p(t('  βœ… ' + data.goal, { size: 19, color: C.grey, italic: true }), { indent: 200 }) : gap(1),
        ],
      }),
    ]}));
  });

  // Goal row
  if (goal) {
    rows.push(new TableRow({ children: [
      new TableCell({
        columnSpan: 2,
        shading: { type: ShadingType.CLEAR, fill: 'FFFDE7' },
        children: [p([
          t('🎯  Day Goal: ', { bold: true, size: 20, color: 'E65100' }),
          t(goal, { size: 20, color: C.mid, italic: true }),
        ])],
      }),
    ]}));
  }

  return new Table({
    width: { size: 100, type: WidthType.PERCENTAGE },
    rows,
    borders: {
      top:    { style: BorderStyle.SINGLE, size: 6, color },
      bottom: { style: BorderStyle.SINGLE, size: 6, color },
      left:   { style: BorderStyle.SINGLE, size: 6, color },
      right:  { style: BorderStyle.SINGLE, size: 6, color },
      insideH:{ style: BorderStyle.SINGLE, size: 2, color: 'DDDDDD' },
      insideV:{ style: BorderStyle.NONE },
    },
  });
}

// ═══════════════════════════════════════════════════════════════════
// BUILD
// ═══════════════════════════════════════════════════════════════════
const ch = [];

// ── TITLE ─────────────────────────────────────────────────────────
ch.push(
  p(t(''), { fill: C.dark }),
  p(t('PHYSIOLOGY STUDY SCHEDULE', { bold:true, size:48, color:C.white }), { fill:C.dark, align:AlignmentType.CENTER, before:10, after:5 }),
  p(t('BHMS 1st Year  β€’  Periodic Assessment Preparation', { size:26, color:C.gold, italic:true }), { fill:C.dark, align:AlignmentType.CENTER, before:3, after:5 }),
  p(t('Study Period: 15 July – 26 July 2026  β€’  Exam from: 27 July 2026', { size:21, color:'B0BEC5', italic:true }), { fill:C.dark, align:AlignmentType.CENTER, before:3, after:10 }),
  gap(6),
);

// ── PHASE OVERVIEW TABLE ──────────────────────────────────────────
ch.push(
  p(t('12-Day Study Plan at a Glance', { bold:true, size:28, color:C.dark }), { before:6, after:4 }),
  gap(2),
  new Table({
    width: { size:100, type:WidthType.PERCENTAGE },
    rows: [
      new TableRow({ tableHeader:true, children:[
        hCell('Phase', C.dark, 22), hCell('Dates', C.dark, 18),
        hCell('System', C.dark, 20), hCell('MK Qs', C.dark, 10), hCell('Focus', C.dark, 30),
      ]}),
      ...[
        ['Phase 1','Jul 15-17','πŸ«€ CVS','23 Qs','Cardiac cycle, ECG, Heart sounds, BP regulation',C.cvs,C.cvsBg],
        ['Phase 2','Jul 18-19','🫁 Respiratory','16 Qs','Mechanics, Gas transport, Hypoxia, Regulation',C.rs,C.rsBg],
        ['Phase 3','Jul 20-21','🧬 Endocrinology','20 Qs','Pituitary, Thyroid, Adrenal, Pancreas, Pineal',C.endo,C.endoBg],
        ['Phase 4','Jul 22-24','🧠 Nervous System','30 Qs','Synapse, Reflex, Tracts, Spinal cord syndromes',C.ns,C.nsBg],
        ['Phase 5','Jul 25-26','πŸ”„ Full Revision','All 89','Mock LAQ/SAQ writing + targeted weak-area revision',C.rev,C.revBg],
      ].map(([ph,dt,sys,qs,foc,col,bg],i) =>
        new TableRow({ children:[
          cell(ph,  bg, 22, col, true,  20),
          cell(dt,  bg, 18, C.mid,false,20),
          cell(sys, bg, 20, col, true,  20),
          cell(qs,  bg, 10, col, true,  20),
          cell(foc, bg, 30, C.mid,false,20),
        ]})
      ),
    ],
  }),
  gap(6),
);

// ── DAILY TIME PLAN ───────────────────────────────────────────────
ch.push(
  p(t('Suggested Daily Time Plan', { bold:true, size:26, color:C.dark }), { before:6, after:4 }),
  gap(2),
  new Table({
    width: { size:100, type:WidthType.PERCENTAGE },
    rows: [
      new TableRow({ tableHeader:true, children:[hCell('Time',C.dark,28),hCell('Activity',C.dark,72)]}),
      ...[
        ['6:00 – 8:00 AM',  'Session 1 β€” Morning study (hardest topics first)'],
        ['8:00 – 9:00 AM',  'Breakfast + break'],
        ['9:00 – 11:00 AM', 'Session 2 β€” Continue topic or new sub-topic'],
        ['11:00 AM – 3:00 PM','College / classes / lunch + rest'],
        ['3:00 – 5:00 PM',  'Session 3 β€” Practice / revision / new sub-topic'],
        ['5:00 – 8:00 PM',  'Break / exercise / dinner'],
        ['8:00 – 9:00 PM',  'Evening Review β€” re-read notes, rapid-fire Q&A'],
        ['9:00 PM +',        'Rest β€” 7-8 hours sleep (memory consolidation!)'],
      ].map(([time,act],i) =>
        new TableRow({ children:[
          cell(time, i%2===0?'E8EAF6':C.white, 28, '283593', true, 20),
          cell(act,  i%2===0?'E8EAF6':C.white, 72, C.mid,   false,20),
        ]})
      ),
    ],
  }),
  gap(8), hr(),
);

// ── DAY BY DAY ────────────────────────────────────────────────────
ch.push(
  p(t('  DAY-BY-DAY DETAILED SCHEDULE', { bold:true, size:34, color:C.white }), { fill:C.dark, before:6, after:6 }),
  gap(4),
);

// ─ DAY 1 ─
ch.push(dayCard({
  num:1, date:'15 July 2026', day:'Tuesday', color:C.cvs, fill:C.cvsBg,
  morning: {
    title: 'πŸ«€ CVS β€” Overview + Cardiac Muscle',
    topics: [
      'Chambers, valves, walls of heart (Comp. 6.1, 6.2)',
      'Conducting system: SA node β†’ AV node β†’ Bundle of His β†’ Purkinje fibres (Comp. 6.4)',
      'Properties of cardiac muscle: automaticity, rhythmicity, conductivity, contractility',
      'Cardiac action potential β€” Phases 0-4 with ions (Phase 2 plateau = L-type Ca2+)',
      'Pacemaker potential vs ventricular AP; funny current (If)',
    ],
    goal: 'Draw conducting system + label conduction velocities from memory',
  },
  midday: {
    title: 'πŸ«€ CVS β€” Cardiac Cycle Events',
    topics: [
      'Define cardiac cycle; duration = 0.8 sec at 75 bpm (Comp. 6.8)',
      'All 7 phases A-G: events, valve movements (Comp. 6.9)',
      'Wiggers Diagram: LV pressure, Aortic pressure, LA pressure, LV volume',
      'Pressure changes in each phase (Comp. 6.10)',
      'ECG correlation with each phase (Comp. 6.11)',
    ],
    goal: 'Draw and label the full Wiggers diagram without looking',
  },
  afternoon: {
    title: 'πŸ«€ CVS β€” Heart Sounds',
    topics: [
      'S1 (lub): closure of AV valves (mitral + tricuspid) at start of systole (Comp. 6.12, 6.13)',
      'S2 (dub): closure of semilunar valves at end of systole',
      'S3: rapid ventricular filling β€” normal in children, pathological in HF',
      'S4: atrial contraction against stiff ventricle β€” always pathological',
      'Physiological splitting of S2; auscultation areas for each sound',
    ],
    goal: 'Write a short note on heart sounds with clinical importance',
  },
  evening: {
    title: 'Review + Test Yourself',
    topics: ['Re-read all Day 1 notes', 'Q: List all events of isovolumetric contraction phase'],
    goal: '',
  },
  goal: 'Completing the foundation of CVS β€” Cardiac Muscle + Cardiac Cycle + Heart Sounds',
}), gap(6), hr('D5D8DC'), gap(4));

// ─ DAY 2 ─
ch.push(dayCard({
  num:2, date:'16 July 2026', day:'Wednesday', color:C.cvs, fill:C.cvsBg,
  morning: {
    title: 'πŸ«€ CVS β€” ECG',
    topics: [
      'Normal ECG waves: P, PR interval (0.12-0.20 s), QRS (<0.12 s), ST, T, QT (Comp. 6.15)',
      'Bipolar leads: I, II, III; Unipolar limb: aVR, aVL, aVF; Precordial: V1-V6 (Comp. 6.16)',
      'Calculating HR from ECG: 300 Γ· large squares between RR intervals',
      'Classify arrhythmias: bradycardia, tachycardia, heart blocks 1st/2nd/3rd degree (Comp. 6.17)',
    ],
    goal: 'Draw a normal ECG strip and label all waves with normal duration values',
  },
  midday: {
    title: 'πŸ«€ CVS β€” Murmurs + Cardiac Output',
    topics: [
      'Cardiac murmurs: turbulent flow; systolic vs diastolic (Comp. 6.14)',
      'Machinery murmur = PDA; mid-diastolic rumble = mitral stenosis; pansystolic = mitral regurgitation',
      'Define CO = HR Γ— SV; normal = 5 L/min (Comp. 6.25)',
      'Frank-Starling law; factors affecting CO: preload, afterload, contractility (Comp. 6.27)',
      'Control mechanism of CO: intrinsic + extrinsic (Comp. 6.28)',
    ],
    goal: 'List all factors affecting cardiac output with one-line explanations',
  },
  afternoon: {
    title: 'πŸ«€ CVS β€” Blood Pressure Regulation',
    topics: [
      'BP = CO Γ— TPR; determinants of systolic and diastolic BP (Comp. 6.29-6.31)',
      'Short-term: baroreceptor reflex (carotid sinus + aortic arch)',
      'Long-term: RAAS, ADH, renal fluid mechanism (Comp. 6.32)',
      'Shock & syncope mechanisms (Comp. 6.38)',
      'Hypertension mechanism: primary vs secondary (Comp. 6.39)',
    ],
    goal: 'Describe the baroreceptor reflex pathway in 6 steps',
  },
  evening: {
    title: 'CVS Full Rapid Review',
    topics: ['Go through all 23 CVS MK questions', 'Attempt 5 CVS MCQs mentally'],
    goal: '',
  },
  goal: 'ECG + Murmurs + Cardiac Output + BP β€” CVS almost done',
}), gap(6), hr('D5D8DC'), gap(4));

// ─ DAY 3 ─
ch.push(dayCard({
  num:3, date:'17 July 2026', day:'Thursday', color:C.cvs, fill:C.cvsBg,
  morning: {
    title: 'πŸ«€ CVS β€” Consolidation + Self-Test',
    topics: [
      'Revise Day 1 + Day 2 notes quickly (45 min)',
      'Write Wiggers diagram + ECG from memory (timed: 10 min each)',
      'Write answer to: "Describe the cardiac cycle with pressure changes" (15 min)',
    ],
    goal: 'All 23 CVS must-know questions comfortable βœ…',
  },
  midday: {
    title: '🫁 RS β€” Overview + Anatomy of Respiratory Tract',
    topics: [
      'Parts of upper respiratory tract: nose, pharynx, larynx β€” functions (Comp. 7.1)',
      'Lower respiratory tract: trachea, bronchi, bronchioles, alveoli (Comp. 7.2, 7.3)',
      'Tracheo-bronchial tree; respiratory membrane (6 layers); visceral vs parietal pleura',
      'Non-respiratory functions of RS: acid-base, speech, filtering emboli (Comp. 7.5)',
    ],
    goal: 'Draw tracheo-bronchial tree and label all parts',
  },
  afternoon: {
    title: '🫁 RS β€” Mechanics of Respiration',
    topics: [
      'Inspiration: diaphragm + external intercostals; intrapulmonary pressure drops below atm (Comp. 7.6)',
      'Expiration: passive at rest (elastic recoil); forced uses internal intercostals + abdomen (Comp. 7.7)',
      'Intrapulmonary pressure vs intrapleural pressure (always negative)',
      'Surfactant: Type II pneumocytes; DPPC; reduces surface tension; La Place law P = 2T/r (Comp. 7.13)',
    ],
    goal: 'Explain in 5 steps how inspiration happens from diaphragm contraction to air entry',
  },
  evening: {
    title: 'Review + Notes',
    topics: ['Re-read RS anatomy + mechanics notes', 'Q: Why does surfactant prevent alveolar collapse in small alveoli?'],
    goal: '',
  },
  goal: 'CVS fully sealed. RS anatomy and mechanics started strong.',
}), gap(6), hr('D5D8DC'), gap(4));

// ─ DAY 4 ─
ch.push(dayCard({
  num:4, date:'18 July 2026', day:'Friday', color:C.rs, fill:C.rsBg,
  morning: {
    title: '🫁 RS β€” Gas Transport',
    topics: [
      'O2 transport: dissolved (1.5%) + oxyhaemoglobin (98.5%) (Comp. 7.14)',
      'O2-Hb dissociation curve: Bohr effect; P50 = 26 mmHg; factors shifting left/right',
      'CO2 transport: dissolved (7%), bicarbonate (70%), carbamino (23%) (Comp. 7.15)',
      'Chloride shift (Hamburger phenomenon); carbonic anhydrase in RBCs',
    ],
    goal: 'Draw and label O2-Hb dissociation curve with 3 factors that shift it right',
  },
  midday: {
    title: '🫁 RS β€” Regulation of Respiration',
    topics: [
      'Respiratory centres: DRG (inspiration) + VRG (expiration) in medulla (Comp. 7.16)',
      'Pons: Pneumotaxic (limits inspiration) + Apneustic centres',
      'Chemical regulation: Central chemoreceptors (CO2/H+); Peripheral β€” carotid + aortic bodies (O2) (Comp. 7.17)',
      'Apnea types: central vs obstructive (Comp. 7.18)',
      'Dyspnoea, Asphyxia, O2 toxicity β€” definitions + mechanisms (Comp. 7.19)',
    ],
    goal: 'Describe chemical regulation of respiration in a flow chart',
  },
  afternoon: {
    title: '🫁 RS β€” Hypoxia + Pulmonary Circulation',
    topics: [
      'Hypoxia definition (Comp. 7.20); 4 types: hypoxic, anaemic, stagnant, histotoxic (Comp. 7.21)',
      'Cyanosis: definition; appears when deoxyHb > 5 g/dL',
      'Pulmonary circulation: low pressure 25/10 mmHg; hypoxic vasoconstriction (unique β€” opposite to systemic)',
      'Lung volumes: TV 500 mL, IRV 3000, ERV 1100, RV 1200, TLC 5800, VC 4600, FRC 2300 mL',
      'Methods of artificial respiration (Comp. 7.23)',
    ],
    goal: 'Classify hypoxia with one example for each type',
  },
  evening: {
    title: 'RS Rapid Review',
    topics: ['Go through all 16 RS MK questions', 'Recite lung volumes from memory'],
    goal: '',
  },
  goal: 'Gas transport + Regulation + Hypoxia β€” core RS done',
}), gap(6), hr('D5D8DC'), gap(4));

// ─ DAY 5 ─
ch.push(dayCard({
  num:5, date:'19 July 2026', day:'Saturday', color:C.rs, fill:C.rsBg,
  morning: {
    title: '🫁 RS β€” Consolidation + Self-Test',
    topics: [
      'Re-read all RS notes (45 min)',
      'Write short note: "Significance of surfactant" (5 min)',
      'Write short note: "CO2 transport in blood" (8 min)',
      'All 16 RS must-know questions: go through mentally',
    ],
    goal: 'All RS topics sealed βœ…',
  },
  midday: {
    title: '🧬 Endocrinology β€” Overview + Hypothalamo-Pituitary Axis',
    topics: [
      'Classify hormones by chemistry: proteins, steroids, amines (Comp. 9.1-9.3)',
      'Hypothalamus releasing hormones: GHRH, TRH, CRH, GnRH, Dopamine (PIH) (Comp. 9.4)',
      'Negative feedback mechanism through hypothalamo-pituitary-target axis (Comp. 9.5)',
      'Anterior pituitary: GH, TSH, ACTH, FSH, LH, Prolactin, MSH β€” targets and functions',
    ],
    goal: 'Draw the hypothalamo-pituitary axis with negative feedback arrows',
  },
  afternoon: {
    title: '🧬 Endocrinology β€” GH, Prolactin, Posterior Pituitary',
    topics: [
      'GH secretion (Comp. 9.8): GHRH stimulates; somatostatin inhibits; peaks during sleep',
      'GH functions (Comp. 9.9): linear growth via IGF-1, protein anabolism, lipolysis, anti-insulin',
      'Altered GH (Comp. 9.11): Gigantism (excess before closure), Acromegaly (after closure), Dwarfism (deficiency)',
      'Prolactin actions + dopamine inhibition (Comp. 9.12)',
      'ADH: synthesis in supraoptic nucleus; water reabsorption; Diabetes Insipidus if absent (Comp. 9.14)',
      'Oxytocin: paraventricular nucleus; milk ejection + uterine contraction (Comp. 9.15)',
      'Pituitary insufficiency: Sheehan syndrome (Comp. 9.16)',
    ],
    goal: 'Write all anterior pituitary hormones + target organ + one function each in a table',
  },
  goal: 'RS sealed. Pituitary gland fully covered.',
}), gap(6), hr('D5D8DC'), gap(4));

// ─ DAY 6 ─
ch.push(dayCard({
  num:6, date:'20 July 2026', day:'Sunday', color:C.endo, fill:C.endoBg,
  morning: {
    title: '🧬 Endocrinology β€” Thyroid Gland',
    topics: [
      'Thyroid hormone synthesis steps (Comp. 9.18): iodide trapping β†’ oxidation (TPO) β†’ organification β†’ coupling β†’ storage as thyroglobulin β†’ T3 (20%) + T4 (80%) released',
      'T3 vs T4: T3 more potent; T4 is prohormone, converted to T3 peripherally',
      'Regulation: TRH β†’ TSH β†’ T3/T4 (negative feedback) (Comp. 9.20)',
      'Actions: calorigenic (↑BMR), growth, protein synthesis, cardiac, brain development',
      'Altered secretion (Comp. 9.21): Hypothyroidism: cretinism (children), myxedema (adults); Hyperthyroidism: Graves disease, exophthalmos, goitre',
    ],
    goal: 'Compare hypothyroidism vs hyperthyroidism in a two-column table',
  },
  midday: {
    title: '🧬 Endocrinology β€” Parathyroid + Adrenal',
    topics: [
      'Calcitonin: C cells of thyroid; lowers Ca2+ by inhibiting osteoclasts (Comp. 9.25)',
      'PTH altered secretion (Comp. 9.26): Hyperparathyroidism (bones, moans, stones, groans); Hypoparathyroidism (tetany, Chvostek sign)',
      'Glucocorticoids (cortisol): zona fasciculata; functions + Cushing syndrome (Comp. 9.28)',
      'Mineralocorticoids (aldosterone): zona glomerulosa; RAAS; Na+/K+ balance + Conn syndrome (Comp. 9.29)',
    ],
    goal: 'Write 5 functions of cortisol from memory',
  },
  afternoon: {
    title: '🧬 Endocrinology β€” Pancreas + Pineal + Thymus',
    topics: [
      'Insulin (Comp. 9.35): beta cells; actions β€” glucose uptake (GLUT-4), glycogenesis, lipogenesis, protein synthesis; secreted with ↑blood glucose',
      'Diabetes Mellitus (Comp. 9.36): Type 1 (absolute deficiency) vs Type 2 (relative/resistance)',
      'Glucagon: alpha cells; raises blood glucose; counter-regulatory',
      'Thymus: Thymosin β†’ T-cell maturation (Comp. 9.37)',
      'Pineal gland: Melatonin β†’ circadian rhythm regulation; inhibited by light (Comp. 9.38)',
    ],
    goal: 'List 6 actions of insulin + what happens in their absence',
  },
  evening: {
    title: 'Endocrinology Full Review',
    topics: ['All 20 Endocrinology MK questions', 'Rapid-fire: GH disorders, thyroid synthesis steps, ADH vs Oxytocin'],
    goal: '',
  },
  goal: 'All Endocrinology topics sealed βœ…',
}), gap(6), hr('D5D8DC'), gap(4));

// ─ DAY 7 ─
ch.push(dayCard({
  num:7, date:'21 July 2026', day:'Monday', color:C.ns, fill:C.nsBg,
  morning: {
    title: '🧠 NS β€” Overview + Neuron Structure',
    topics: [
      'Classify nervous system: CNS vs PNS; Somatic vs Autonomic; Afferent vs Efferent (Comp. 8.3)',
      'Brain parts + spinal cord overview + functions (Comp. 8.1)',
      'Neuron structure: soma, dendrites, axon hillock, axon, myelin sheath, nodes of Ranvier, boutons',
      'Resting membrane potential = -70 mV; Na+/K+ ATPase pump (3 Na+ out, 2 K+ in)',
      'Nerve action potential: depolarization (Na+ in), repolarization (K+ out), after-hyperpolarization',
      'Saltatory conduction in myelinated fibres: faster + energy-efficient',
    ],
    goal: 'Draw a labelled neuron from memory',
  },
  midday: {
    title: '🧠 NS β€” Neuroglia',
    topics: [
      'CNS: Astrocytes (support, BBB, repair), Oligodendrocytes (myelin β€” up to 40 axon segments), Microglia (CNS macrophages), Ependymal cells (CSF lining) (Comp. 4.2)',
      'PNS: Schwann cells (myelin β€” 1 segment; guide regeneration), Satellite cells',
      'Key difference: oligodendrocytes cannot guide regeneration; Schwann cells can',
    ],
    goal: 'Table: Glial cell name | Location | Function | Key fact',
  },
  afternoon: {
    title: '🧠 NS β€” Nerve Injuries + Degeneration',
    topics: [
      'Seddon classification: Neuropraxia (conduction block; fully reversible), Axonotmesis (axon cut; Wallerian degeneration; good recovery), Neurotmesis (complete nerve division; worst prognosis)',
      'Wallerian degeneration: anterograde; distal to injury; Schwann cells form bands of BΓΌngner',
      'Nerve regeneration rate: 1-4 mm/day',
      'UMN vs LMN lesion features (Comp. 8.24): UMN = spasticity, hyper-reflexia, Babinski +; LMN = flaccidity, wasting, areflexia',
    ],
    goal: 'Two-column table: UMN vs LMN lesion with 6 differentiating features',
  },
  evening: {
    title: 'Review',
    topics: ['Neuron + Neuroglia + Nerve injury notes', 'Q: What is Wallerian degeneration? Which direction?'],
    goal: '',
  },
  goal: 'Neuron, Neuroglia, Nerve injury β€” NS foundation built',
}), gap(6), hr('D5D8DC'), gap(4));

// ─ DAY 8 ─
ch.push(dayCard({
  num:8, date:'22 July 2026', day:'Tuesday', color:C.ns, fill:C.nsBg,
  morning: {
    title: '🧠 NS β€” Receptors + Synapse',
    topics: [
      'Receptor classification: by modality (mechano, thermo, noci, photo, chemo); by location (extero, intero, proprio) (Comp. 8.7, 8.8)',
      'Properties of receptors: adequate stimulus, adaptation, generator potential, specificity (Comp. 8.10)',
      'Synapse anatomy: presynaptic terminal (vesicles, mitochondria), synaptic cleft (20-40 nm), postsynaptic membrane (receptors) (Comp. 8.4)',
      'Electrical events: EPSP (Na+/Ca2+ in β†’ depolarization), IPSP (Cl- in or K+ out β†’ hyperpolarization) (Comp. 8.5)',
      'Properties of synapse: unidirectionality, delay (0.5 ms), fatigue, temporal + spatial summation (Comp. 8.6)',
    ],
    goal: 'Draw a labelled synapse and describe EPSP vs IPSP generation',
  },
  midday: {
    title: '🧠 NS β€” Neurotransmitters + Reflex Activity',
    topics: [
      'Classify NTs (Comp. 8.14): Amines (ACh, dopamine, NE, serotonin), Amino acids (GABA-inhibitory, Glutamate-excitatory, Glycine), Peptides, Gases (NO)',
      'ACh: synthesis by ChAT, released at cholinergic synapses, inactivated by AChE',
      'Dopamine pathways: mesolimbic (reward), mesocortical (cognition), nigrostriatal (movement), tuberoinfundibular (prolactin control)',
      'Reflex arc: 5 components β€” receptor, afferent, nerve centre, efferent, effector (Comp. 8.11)',
      'Classify reflexes (Comp. 8.12): monosynaptic (knee jerk) vs polysynaptic; somatic vs autonomic; inborn vs acquired',
      'Properties of reflex (Comp. 8.13); crossed extensor reflex',
    ],
    goal: 'Describe the knee jerk reflex step by step including Ia inhibitory interneuron to hamstring',
  },
  afternoon: {
    title: '🧠 NS β€” Sensory Tracts',
    topics: [
      'Somatic sensations: touch, pressure, pain, temperature, proprioception (Comp. 8.20)',
      'Dorsal columns (Fasciculus gracilis + cuneatus): fine touch, vibration, proprioception β€” cross at medulla (Comp. 8.17, 8.18)',
      'Spinothalamic tract (lateral + anterior): pain, temperature, crude touch β€” cross at spinal cord level',
      'Primary somatosensory cortex (S1): sensory homunculus',
    ],
    goal: 'Draw spinal cord cross-section showing positions of dorsal columns and spinothalamic tracts',
  },
  evening: {
    title: 'Review',
    topics: ['Synapse + Reflex + Sensory tracts notes', 'Q: What does the dorsal column carry vs spinothalamic? Where do they cross?'],
    goal: '',
  },
  goal: 'Receptors, Synapse, NTs, Reflexes, Sensory tracts done',
}), gap(6), hr('D5D8DC'), gap(4));

// ─ DAY 9 ─
ch.push(dayCard({
  num:9, date:'23 July 2026', day:'Wednesday', color:C.ns, fill:C.nsBg,
  morning: {
    title: '🧠 NS β€” Motor Tracts + Spinal Cord',
    topics: [
      'Motor areas: M1 (area 4), premotor cortex (area 6), supplementary motor area (Comp. 8.21)',
      'Pyramidal: Lateral corticospinal (contralateral limbs) + Anterior corticospinal (trunk) β€” cross at medullary pyramids (Comp. 8.22, 8.23)',
      'Extrapyramidal: rubrospinal, vestibulospinal, reticulospinal β€” functions',
      'Clinical significance of motor tracts (Comp. 8.24): UMN vs LMN signs',
      'Spinal cord functions (Comp. 8.31): conduction, reflex activity',
      'Grey matter: dorsal horn (sensory), ventral horn (alpha+gamma motor neurons), lateral horn (T1-L2: autonomic)',
    ],
    goal: 'Table: Tract name | Origin | Function | Crosses where',
  },
  midday: {
    title: '🧠 NS β€” Spinal Cord Syndromes + ANS',
    topics: [
      'Complete transection: spinal shock then reflex return',
      'Brown-SΓ©quard (Comp. 8.32): Ipsilateral β€” UMN paralysis + dorsal column loss; Contralateral β€” spinothalamic loss (pain + temperature)',
      'Other syndromes (Comp. 8.33): posterior cord, anterior cord, central cord (hands>legs), cauda equina',
      'ANS divisions (Comp. 8.29): Sympathetic T1-L2 (NE post-ganglionic) vs Parasympathetic craniosacral (ACh post-ganglionic)',
    ],
    goal: 'Describe Brown-SΓ©quard β€” draw the lesion and list ipsilateral + contralateral deficits',
  },
  afternoon: {
    title: '🧠 NS β€” Higher Brain Centres',
    topics: [
      'Cerebral cortex lobes + functions (Comp. 8.34): frontal (motor, executive), parietal (sensory), temporal (hearing, memory), occipital (vision)',
      'Hypothalamus: 4 Fs (feeding, fighting, fleeing, sex); thermoregulation; ADH/oxytocin (Comp. 8.37)',
      'Limbic system: hippocampus (memory), amygdala (emotion, fear), Papez circuit (Comp. 8.38)',
      'Cerebellum: 3 divisions; DANISH lesion signs (Comp. 8.39, 8.40)',
      'Vestibular apparatus: utricle/saccule (linear), semicircular canals (angular); VOR; BPPV, Meniere disease (Comp. 8.25-8.27)',
    ],
    goal: 'Write out DANISH β€” all 6 cerebellar lesion signs with meaning',
  },
  evening: {
    title: 'NS Full Review',
    topics: ['All 30 NS MK questions from the document', 'Q: Brown-SΓ©quard syndrome β€” what is ipsilateral and what is contralateral?'],
    goal: '',
  },
  goal: 'All Nervous System topics sealed βœ…',
}), gap(6), hr('D5D8DC'), gap(4));

// ─ DAY 10 ─
ch.push(dayCard({
  num:10, date:'24 July 2026', day:'Thursday', color:C.rev, fill:C.revBg,
  morning: {
    title: 'πŸ”„ NS β€” Final Consolidation',
    topics: [
      'Re-read all NS notes (60 min rapid review)',
      'All 30 NS MK questions β€” answer them mentally one by one',
    ],
    goal: 'NS 100% sealed βœ…',
  },
  midday: {
    title: 'πŸ”„ CVS Full Revision',
    topics: [
      'Draw Wiggers diagram from memory (8 min)',
      'Draw ECG strip and label all waves + intervals (8 min)',
      'Recite: Cardiac cycle 7 phases in order with valve movements',
      'Revise: BP regulation pathway (baroreceptor β†’ medulla β†’ sympathetic/parasympathetic)',
    ],
    goal: 'CVS revision complete',
  },
  afternoon: {
    title: 'πŸ”„ RS Full Revision',
    topics: [
      'Recite all lung volumes with normal values from memory',
      'Explain O2 transport + CO2 transport out loud to yourself',
      'Hypoxia: classify + give one clinical example each type',
      'Regulation of respiration: nervous + chemical mechanisms',
    ],
    goal: 'RS revision complete',
  },
  evening: {
    title: 'Read Rapid-Fire One-Liners',
    topics: ['Read all 24 rapid-fire facts from the MK Questions document'],
    goal: '',
  },
  goal: 'Two systems fully revised in one day β€” good momentum',
}), gap(6), hr('D5D8DC'), gap(4));

// ─ DAY 11 ─
ch.push(dayCard({
  num:11, date:'25 July 2026', day:'Friday', color:C.rev, fill:C.revBg,
  morning: {
    title: 'πŸ”„ Endocrinology + NS Quick Revision',
    topics: [
      'All 20 Endo MK questions β€” go through quickly',
      'Thyroid synthesis steps from memory (write it out)',
      'Compare: GH excess before vs after epiphyseal closure (Gigantism vs Acromegaly)',
      'All 30 NS MK questions β€” skim through',
      'Brown-SΓ©quard: describe both sides without notes',
    ],
    goal: 'All 4 systems revision complete',
  },
  midday: {
    title: 'πŸ“ Mock Practice β€” LAQ Writing (Timed)',
    topics: [
      'LAQ 1 (10 min): Describe the cardiac cycle with pressure changes and ECG correlation',
      'LAQ 2 (10 min): Explain the regulation of respiration (nervous + chemical)',
      'LAQ 3 (10 min): Describe the synthesis, regulation and functions of thyroid hormone',
      'LAQ 4 (10 min): Describe the sensory tracts of spinal cord with clinical significance',
    ],
    goal: 'Practice writing under timed conditions β€” important for exam technique',
  },
  afternoon: {
    title: 'πŸ“ Mock Practice β€” SAQ + MCQ',
    topics: [
      'SAQ 1: Heart sounds (S1, S2, S3, S4)',
      'SAQ 2: Surfactant β€” source, function, clinical importance',
      'SAQ 3: Classify hypoxia with examples',
      'SAQ 4: Synapse β€” anatomy and properties',
      'SAQ 5: ADH β€” synthesis site, functions, deficiency',
      'SAQ 6: Reflex arc β€” components and classification',
      'SAQ 7: Cerebellar lesion signs (DANISH)',
      'SAQ 8: UMN vs LMN lesion β€” 6 differences',
      'Test all 24 Rapid-Fire One-Liners',
    ],
    goal: 'Mark any answers you struggled with β€” revise those first on Day 12',
  },
  goal: 'Mock test done β€” identify weak areas for targeted Day 12 revision',
}), gap(6), hr('D5D8DC'), gap(4));

// ─ DAY 12 ─
ch.push(dayCard({
  num:12, date:'26 July 2026', day:'Saturday', color:C.rev, fill:C.revBg,
  morning: {
    title: 'πŸ”„ Targeted Weak-Area Revision',
    topics: [
      'Revise ONLY topics you marked as weak on Day 11',
      'Re-read those specific sections from the MK Questions document',
      'No new topics today β€” only strengthen existing knowledge',
    ],
    goal: 'All weak spots addressed',
  },
  midday: {
    title: 'πŸ”„ Final Speed Revision β€” All 4 Systems (60 min)',
    topics: [
      'πŸ«€ CVS (15 min): Wiggers + ECG + Heart sounds + CO + BP',
      '🫁 RS (15 min): Mechanics + Gas transport + Hypoxia + Regulation',
      '🧬 Endo (15 min): Pituitary + Thyroid + Insulin + Melatonin',
      '🧠 NS (15 min): Synapse + Reflex + Tracts + Brown-Séquard + Cerebellum',
    ],
    goal: 'Complete 360Β° overview of all 4 systems in 60 minutes',
  },
  afternoon: {
    title: 'πŸ“– Final Read-Through + Preparation',
    topics: [
      'Read all 89 MK questions + hints one final time (skim, do not deep-read)',
      'Read all 24 rapid-fire one-liners aloud',
      'Prepare stationery, confirm exam venue and time',
      'Light healthy meal; rest by 9 PM',
    ],
    goal: '',
  },
  goal: 'βœ… You are fully prepared. Sleep well tonight!',
}), gap(6));

// ─ EXAM DAY NOTICE ───────────────────────────────────────────────
ch.push(
  new Paragraph({
    alignment: AlignmentType.CENTER,
    spacing: { before: 120, after: 120 },
    shading: { type: ShadingType.CLEAR, fill: C.examBg },
    children: [
      t('πŸ“  EXAM STARTS: 27 JULY 2026', { bold:true, size:32, color:C.exam }),
    ],
  }),
  p(t('You have put in the work. Trust your preparation. Read each question carefully, attempt diagrams first for LAQs, and write structured answers.',
    { size:21, color:C.mid, italic:true }), { align:AlignmentType.CENTER, fill:C.examBg }),
  gap(8),
);

// ─ CHECKLIST ────────────────────────────────────────────────────
ch.push(
  p(t('  TOPIC COMPLETION CHECKLIST', { bold:true, size:30, color:C.white }), { fill:C.dark, before:6, after:6 }),
  gap(4),
  p(t('Tick off each topic as you complete it during your revision sessions.', { size:20, color:C.grey, italic:true })),
  gap(4),
);

const checks = [
  ['πŸ«€ CVS','Chambers, valves, conducting system'],
  ['πŸ«€ CVS','Cardiac action potential (phases 0-4 + ions)'],
  ['πŸ«€ CVS','Cardiac cycle β€” all 7 phases + Wiggers diagram'],
  ['πŸ«€ CVS','Heart sounds S1, S2, S3, S4'],
  ['πŸ«€ CVS','ECG waves, intervals, leads'],
  ['πŸ«€ CVS','Cardiac murmurs + arrhythmia classification'],
  ['πŸ«€ CVS','Cardiac output + Frank-Starling law'],
  ['πŸ«€ CVS','BP regulation β€” baroreceptor + RAAS + ADH'],
  ['🫁 RS','Anatomy: upper + lower respiratory tract'],
  ['🫁 RS','Mechanism of inspiration + expiration'],
  ['🫁 RS','Surfactant β€” source, function, La Place law'],
  ['🫁 RS','O2 transport + O2-Hb dissociation curve'],
  ['🫁 RS','CO2 transport β€” all 3 forms + chloride shift'],
  ['🫁 RS','Regulation of respiration (nervous + chemical)'],
  ['🫁 RS','Hypoxia (4 types) + Cyanosis definition'],
  ['🧬 Endo','Hypothalamus hormones + feedback axis'],
  ['🧬 Endo','GH functions + Gigantism vs Acromegaly vs Dwarfism'],
  ['🧬 Endo','ADH functions + Diabetes Insipidus'],
  ['🧬 Endo','Oxytocin functions'],
  ['🧬 Endo','Thyroid hormone synthesis steps'],
  ['🧬 Endo','Thyroid regulation + actions'],
  ['🧬 Endo','Hypothyroidism (cretinism + myxedema) vs Hyperthyroidism'],
  ['🧬 Endo','Calcitonin + PTH altered secretion'],
  ['🧬 Endo','Cortisol + Aldosterone functions'],
  ['🧬 Endo','Insulin actions + Diabetes Mellitus'],
  ['🧠 NS','Neuron structure + resting membrane potential'],
  ['🧠 NS','Neuroglia types + functions (CNS + PNS)'],
  ['🧠 NS','Nerve injury classification (Seddon) + Wallerian degeneration'],
  ['🧠 NS','Receptors β€” classification + properties'],
  ['🧠 NS','Synapse anatomy + EPSP + IPSP'],
  ['🧠 NS','Properties of synapse'],
  ['🧠 NS','Neurotransmitter classification'],
  ['🧠 NS','Reflex arc components + classification'],
  ['🧠 NS','Sensory tracts β€” dorsal columns vs spinothalamic'],
  ['🧠 NS','Motor tracts β€” pyramidal + extrapyramidal'],
  ['🧠 NS','UMN vs LMN lesion β€” 6 differences'],
  ['🧠 NS','Spinal cord transection β€” Brown-SΓ©quard syndrome'],
  ['🧠 NS','Hypothalamus, Limbic system, Cerebellum, Vestibular apparatus'],
  ['πŸ”„ REV','Full revision of all 4 systems'],
  ['πŸ”„ REV','Mock LAQ + SAQ practice'],
];

const checkHeader = new TableRow({ tableHeader:true, children:[
  hCell('#','2C3E50',8), hCell('System','2C3E50',15), hCell('Topic','2C3E50',62), hCell('Done βœ“','2C3E50',15),
]});
const checkRows = checks.map(([sys,topic],i) => new TableRow({ children:[
  cell(String(i+1), i%2===0?C.light:C.white, 8, C.grey, true, 19),
  cell(sys,         i%2===0?C.light:C.white, 15, C.mid,  true, 18),
  cell(topic,       i%2===0?C.light:C.white, 62, C.mid, false, 20),
  cell('☐',         i%2===0?C.light:C.white, 15, C.grey, false,24),
]}));

ch.push(
  new Table({ width:{size:100,type:WidthType.PERCENTAGE}, rows:[checkHeader,...checkRows] }),
  gap(8),
);

// ─ TIPS ──────────────────────────────────────────────────────────
ch.push(
  p(t('πŸ“Œ  Study Tips for Exam Success', { bold:true, size:26, color:C.rev }), { before:6, after:4 }),
  gap(2),
);
[
  'πŸ–ŠοΈ   Draw diagrams first for LAQ answers β€” Wiggers diagram, ECG, synapse, spinal cord cross-section earn high marks.',
  '✍️   Practice writing timed answers β€” do not just read notes; write them out.',
  'πŸ”  Spaced repetition β€” briefly revisit Day 1 topics on Day 4, and again on Day 10.',
  'πŸ“Š  Use comparison tables β€” UMN vs LMN, hypothyroid vs hyperthyroid, dorsal column vs spinothalamic.',
  '😴  Sleep 7-8 hours every night β€” memory consolidation happens during sleep.',
  'πŸ’§  Drink water; take a 5-10 min break every 50 min of studying.',
  'πŸ“‹  Carry the Rapid-Fire One-Liners table and read during free time (canteen, travel).',
  '🎯  In the exam: attempt the question you know best first to build confidence.',
].forEach(tip => ch.push(p(t(tip, { size:20, color:C.mid }), { indent:360, before:4, after:4 })));

ch.push(
  gap(6), hr(),
  p(t('Prepared for BHMS 1st Year Periodic Assessment  β€’  NCH CBDC Syllabus  β€’  July 15-26 Study Period  β€’  Exam: from July 27, 2026',
    { size:17, color:C.grey, italic:true }), { align:AlignmentType.CENTER }),
);

// ─ EXPORT ────────────────────────────────────────────────────────
const doc = new Document({
  creator: 'Orris AI',
  title: 'Physiology PA Study Schedule',
  styles: { default: { document: { run: { font:'Calibri', size:22, color:C.mid } } } },
  sections: [{ properties: { page: { margin: { top:720,right:720,bottom:720,left:720 } } }, children: ch }],
});

Packer.toBuffer(doc).then(buf => {
  fs.writeFileSync('/home/daytona/workspace/physiology-mk-questions/Physiology_Study_Schedule.docx', buf);
  console.log('βœ… Done! Schedule created.');
}).catch(e => { console.error(e.message); process.exit(1); });
Running Command

cd /home/daytona/workspace/physiology-mk-questions && node schedule.js

Running Command

python3 -c " import zipfile, os path = '/home/daytona/workspace/physiology-mk-questions/Physiology_Study_Schedule.docx' print('File size:', os.path.getsize(path), 'bytes') with zipfile.ZipFile(path) as z: doc = z.read('word/document.xml').decode('utf-8', errors='ignore') print('document.xml size:', len(doc), 'bytes') print('Valid:', 'w:document' in doc) "

Your study schedule is ready!

Physiology Study Schedule

Word Document Β· DOCX


Here's the full plan at a glance:
PhaseDaysSystemWhat's covered
Phase 1Jul 15-17πŸ«€ CVSCardiac cycle, ECG, Heart sounds, Murmurs, CO, BP regulation
Phase 2Jul 18-19🫁 RespiratoryMechanics, Surfactant, Gas transport, Hypoxia, Regulation
Phase 3Jul 20-21🧬 EndocrinologyPituitary, Thyroid, Adrenal, Pancreas, Pineal, Thymus
Phase 4Jul 22-24🧠 Nervous SystemNeuron, Neuroglia, Synapse, Reflexes, Tracts, Brown-Séquard, Higher centres
Phase 5Jul 25-26πŸ”„ Full RevisionAll 4 systems + Timed LAQ/SAQ mock practice
ExamJul 27 πŸ“β€”β€”
Each day has 3-4 timed sessions (6-8 AM, 9-11 AM, 3-5 PM, 8-9 PM) with:
  • Specific topics tied to CBDC competency codes
  • A daily goal to hit before moving forward
  • Self-test prompts to check retention
Also included in the document:
  • 40-item topic completion checklist with tickboxes (☐)
  • 8 exam study tips
  • Suggested daily timetable
CVS gets 3 days because it has the most interconnected topics (23 MK questions). Nervous System gets 3 days because it has the most questions (30). You have the flexibility to adjust sessions around your college schedule since the 3-5 PM and 8-9 PM slots are light buffer times.
This is a shared conversation. Sign in to Orris to start your own chat.