Give me detailed notes for semester preparation every single information is important and also explain the pages which show diagrammatic presentation don't leave any information cover page by page give detailed notes which covers all the information

Reading File
Running Command

cd /home/daytona/workspace/attachments/8e3d32ea-7dc5-4fba-a16b-db9a336f08b5 && python3 -c " import pdfplumber pdf_path = 'pathophysiology 5.pdf' with pdfplumber.open(pdf_path) as pdf: print(f'Total pages: {len(pdf.pages)}') for i, page in enumerate(pdf.pages[:5]): print(f'\n========== PAGE {i+1} ==========') text = page.extract_text() if text: print(text) else: print('[No text extracted - may be image/scan]') tables = page.extract_tables() if tables: print(f'[TABLES FOUND: {len(tables)}]') for t in tables: print(t) "

Running Command

cd /home/daytona/workspace/attachments/8e3d32ea-7dc5-4fba-a16b-db9a336f08b5 && python3 -c " import pdfplumber pdf_path = 'pathophysiology 5.pdf' with pdfplumber.open(pdf_path) as pdf: for i, page in enumerate(pdf.pages[5:25]): pg = i + 6 print(f'\n========== PAGE {pg} ==========') text = page.extract_text() if text: print(text) else: print('[No text extracted - may be image/scan]') " 2>/dev/null

Running Command

cd /home/daytona/workspace/attachments/8e3d32ea-7dc5-4fba-a16b-db9a336f08b5 && python3 -c " import pdfplumber pdf_path = 'pathophysiology 5.pdf' with pdfplumber.open(pdf_path) as pdf: for i, page in enumerate(pdf.pages[25:55]): pg = i + 26 print(f'\n========== PAGE {pg} ==========') text = page.extract_text() if text: print(text) else: print('[IMAGE/SCAN PAGE]') " 2>/dev/null

Running Command

cd /home/daytona/workspace/attachments/8e3d32ea-7dc5-4fba-a16b-db9a336f08b5 && python3 -c " import pdfplumber pdf_path = 'pathophysiology 5.pdf' with pdfplumber.open(pdf_path) as pdf: for i, page in enumerate(pdf.pages[55:]): pg = i + 56 print(f'\n========== PAGE {pg} ==========') text = page.extract_text() if text: print(text) else: print('[IMAGE/SCAN PAGE]') " 2>/dev/null

Running Command

cd /home/daytona/workspace && mkdir -p patho_images && python3 -c " from pdf2image import convert_from_path import os pdf_path = '/home/daytona/workspace/attachments/8e3d32ea-7dc5-4fba-a16b-db9a336f08b5/pathophysiology 5.pdf' # Convert all pages to images pages = convert_from_path(pdf_path, dpi=150) print(f'Total pages converted: {len(pages)}') for i, page in enumerate(pages): page.save(f'/home/daytona/workspace/patho_images/page_{i+1:03d}.jpg', 'JPEG', quality=85) print(f'Saved page {i+1}') " 2>/dev/null

Running Command

cd /home/daytona/workspace && python3 -c " from pdf2image import convert_from_path import os pdf_path = '/home/daytona/workspace/attachments/8e3d32ea-7dc5-4fba-a16b-db9a336f08b5/pathophysiology 5.pdf' # Convert in batches - first 20 pages at lower dpi pages = convert_from_path(pdf_path, dpi=100, first_page=1, last_page=20) print(f'Batch 1 converted: {len(pages)} pages') for i, page in enumerate(pages): page.save(f'/home/daytona/workspace/patho_images/page_{i+1:03d}.jpg', 'JPEG', quality=75) print('Batch 1 done') " 2>/dev/null

Running Command

ls /home/daytona/workspace/patho_images/ | head -25

Running Command

mkdir -p /home/daytona/workspace/patho_images && python3 << 'EOF' from pdf2image import convert_from_path pdf_path = '/home/daytona/workspace/attachments/8e3d32ea-7dc5-4fba-a16b-db9a336f08b5/pathophysiology 5.pdf' pages = convert_from_path(pdf_path, dpi=100, first_page=1, last_page=20) print(f'Converted {len(pages)} pages') for i, page in enumerate(pages): fname = f'/home/daytona/workspace/patho_images/page_{i+1:03d}.jpg' page.save(fname, 'JPEG', quality=75) print('Done saving batch 1') EOF

Running Command

python3 << 'EOF' from pdf2image import convert_from_path pdf_path = '/home/daytona/workspace/attachments/8e3d32ea-7dc5-4fba-a16b-db9a336f08b5/pathophysiology 5.pdf' pages = convert_from_path(pdf_path, dpi=100, first_page=21, last_page=50) print(f'Converted {len(pages)} pages') for i, page in enumerate(pages): fname = f'/home/daytona/workspace/patho_images/page_{i+21:03d}.jpg' page.save(fname, 'JPEG', quality=75) print('Done saving batch 2') EOF

Running Command

python3 << 'EOF' from pdf2image import convert_from_path pdf_path = '/home/daytona/workspace/attachments/8e3d32ea-7dc5-4fba-a16b-db9a336f08b5/pathophysiology 5.pdf' pages = convert_from_path(pdf_path, dpi=100, first_page=51, last_page=79) print(f'Converted {len(pages)} pages') for i, page in enumerate(pages): fname = f'/home/daytona/workspace/patho_images/page_{i+51:03d}.jpg' page.save(fname, 'JPEG', quality=75) print('Done saving batch 3') EOF

Running Command

python3 << 'EOF' from PIL import Image import os # Create composite images grouping pages for analysis # Group 1: Pages 4, 8, 11, 12, 13 (mechanisms, diagrams) # Group 2: Pages 14, 15, 17, 18, 19 (sodium/water balance) # Group 3: Pages 20-30 (dehydration, edema) # Group 4: Pages 31-50 (potassium, calcium) # Group 5: Pages 51-77 (acid-base balance) def create_composite(page_nums, output_name, max_width=900): images = [] for p in page_nums: path = f'/home/daytona/workspace/patho_images/page_{p:03d}.jpg' if os.path.exists(path): img = Image.open(path) images.append(img) if not images: return # Resize all to same width resized = [] for img in images: w, h = img.size new_h = int(h * max_width / w) resized.append(img.resize((max_width, new_h), Image.LANCZOS)) total_h = sum(img.height for img in resized) composite = Image.new('RGB', (max_width, total_h), 'white') y = 0 for img in resized: composite.paste(img, (0, y)) y += img.height composite.save(f'/home/daytona/workspace/patho_images/{output_name}', 'JPEG', quality=80) print(f'Saved {output_name}, total height: {total_h}px') # Group 1: Body fluid compartments diagrams (pages 4, 8, 11, 12, 13) create_composite([4, 8, 11, 12, 13], 'group1_compartments.jpg', max_width=800) # Group 2: Sodium/water balance (pages 14, 15, 17, 18, 19, 20) create_composite([14, 15, 17, 18, 19, 20], 'group2_sodium_water.jpg', max_width=800) # Group 3: Dehydration, edema, hypo/hypernatremia (pages 21-35) create_composite(list(range(21, 36)), 'group3_dehydration_edema.jpg', max_width=800) # Group 4: Potassium + calcium/magnesium balance (pages 36-55) create_composite(list(range(36, 56)), 'group4_potassium_calcium.jpg', max_width=800) # Group 5: Acid-base balance (pages 56-77) create_composite(list(range(56, 78)), 'group5_acidbase.jpg', max_width=800) print('All composites created') EOF

analyse_media
analyse_media
analyse_media
analyse_media
analyse_media

Where is the content

Running Command

python3 << 'EOF' import pdfplumber pdf_path = '/home/daytona/workspace/attachments/8e3d32ea-7dc5-4fba-a16b-db9a336f08b5/pathophysiology 5.pdf' with pdfplumber.open(pdf_path) as pdf: all_text = {} for i, page in enumerate(pdf.pages): text = page.extract_text() if text and text.strip(): all_text[i+1] = text.strip() for pg, txt in all_text.items(): print(f"\n{'='*60}") print(f"PAGE {pg}") print('='*60) print(txt) EOF

Reading File
Finding Sources
Finding Sources
Finding Sources
Reading File
Finding Sources
Finding Sources
Finding Sources
Finding Sources
Writing File

~/Pathophysiology_5_Notes.md

# PATHOPHYSIOLOGY - ALTERATIONS IN FLUIDS, ELECTROLYTES, AND ACID-BASE BALANCE
## Complete Semester Preparation Notes

---

## LEARNING OBJECTIVES

1. Understand the etiology and pathogenesis of **dehydration** in conditions such as diarrhea and vomiting.
2. Explain the causes and mechanisms of **edema** and apply this knowledge to clinical pathological cases.
3. Identify the causes and mechanisms of common **electrolyte imbalances**, including Sodium (Na+), Potassium (K+), and Calcium (Ca2+).
4. Describe the causes and mechanisms of **respiratory and metabolic acid-base balance disturbances**.

---

# PART 1: COMPOSITION AND COMPARTMENTAL DISTRIBUTION OF BODY FLUIDS

---

## 1.1 Role of Body Fluids

Body fluids serve three essential functions:
- **Transport** gases (O2, CO2), nutrients, and metabolic wastes throughout the body
- **Generate electrical activity** that powers nerve impulses and muscle contractions
- **Participate in energy metabolism** - transforming food into usable cellular energy

---

## 1.2 Total Body Water (TBW)

- In a healthy adult, TBW = approximately **60% of body weight**
- Example: a 70 kg adult has ~42 liters of total body water
- **Homeostasis**: Fluid volume and composition remain relatively constant despite changes in intake
- Disease or environmental stress can disrupt these regulatory mechanisms

> **Note on variation**: TBW varies with age, sex, and body composition. Infants have higher TBW (~75%). Women and obese individuals have lower TBW proportionally (fat tissue has low water content).

---

## 1.3 Fluid Compartments - Overview (Diagram Explanation)

The body fluids are divided into two major compartments separated by cell membranes:

```
TOTAL BODY WATER (60% of body weight)
         |
    _____|_____
    |         |
   ICF        ECF
  (40%)      (20%)
 2/3 TBW    1/3 TBW
```

### Intracellular Fluid (ICF) Compartment
- Contains fluid **within all cells** in the body
- The **larger** compartment
- = **2/3 of TBW** = approximately **40% of body weight**
- ~28 liters in a 70 kg person
- Rich in: **K+, Mg2+, phosphate, proteins**

### Extracellular Fluid (ECF) Compartment
- Contains all fluids **outside the cells**
- Includes fluid in interstitial spaces and blood vessels
- = **1/3 of TBW** = approximately **20% of body weight**
- ~14 liters in a 70 kg person
- Rich in: **Na+, Cl-, bicarbonate (HCO3-)**

---

## 1.4 Subdivisions of ECF

The ECF is further divided into three sub-compartments:

| Sub-compartment | % of Body Weight | Volume (70 kg) | Description |
|---|---|---|---|
| **Plasma (Vascular)** | ~4-5% | ~3.5 L | Fluid within blood vessels |
| **Interstitial Fluid** | ~14-15% | ~10.5 L | Fluid between cells; transport vehicle and reservoir for vascular volume |
| **Transcellular** | ~1% of ECF | ~1 L | Specialized fluids: CSF, synovial fluid, peritoneal fluid, pleural fluid, pericardial fluid |

> **Clinical point**: Plasma and interstitial fluid are in dynamic exchange. The interstitial compartment acts as a **buffer reservoir** for the vascular space.

---

## 1.5 Electrolyte Composition of Fluid Compartments

### ECF Electrolytes:
- **Large amounts**: Na+ (sodium) and Cl- (chloride)
- **Moderate amounts**: HCO3- (bicarbonate)
- **Small amounts**: K+ (potassium)
- Na+ is the **primary extracellular cation** - dominates ECF osmolality

### ICF Electrolytes:
- **Large amounts**: K+ (potassium)
- **Small amounts**: Na+, Cl-, HCO3-
- K+ is the **dominant intracellular cation**

### Diagram: ECF vs ICF Ion Distribution
```
ECF (outside cell):     Na+ ↑↑↑   Cl- ↑↑↑   HCO3- moderate   K+ low
ICF (inside cell):      K+ ↑↑↑    Mg2+ ↑     Phosphate ↑       Na+ low
```

### Why Does This Gradient Matter?
- This **Na+/K+ gradient** is strictly maintained by the **Na+/K+/ATPase pump**
- The pump actively transports: **3 Na+ OUT** of the cell, **2 K+ IN** per cycle (uses ATP)
- This electrochemical gradient is essential for:
  - Nerve impulse conduction
  - Muscle contraction
  - Cardiac rhythm
  - Cell volume regulation

### Clinical Correlation:
- Electrolyte levels measured in clinical labs (blood/serum) reflect **ECF levels**
- Serum Na+ normal = 135-145 mEq/L
- Serum K+ normal = 3.5-5.0 mEq/L

---

## 1.6 Mechanisms of Fluid Movement

### 1.6.1 Osmotic Pressure (KEY CONCEPT)
- **Definition**: The pressure needed to **oppose the movement of water** across a semipermeable membrane
- Water moves from **low solute concentration** (hypotonic) to **high solute concentration** (hypertonic)
- The more solutes dissolved in a fluid, the higher its osmotic pressure
- **Osmolality** = concentration of solutes per kilogram of water (mOsm/kg)
- Normal serum osmolality = **280-295 mOsm/kg**

### 1.6.2 Tonicity (Effective Osmolality)
- **Tonicity** = osmolality that affects cell size (only from solutes that cannot cross cell membranes)
- Na+ is the primary determinant of ECF tonicity
- **Key concept**: Effective osmolality (tonicity) dictates cell volume:
  - **Hypotonic environment** → water moves INTO cells → **cellular swelling**
  - **Hypertonic environment** → water moves OUT of cells → **cellular dehydration/shrinkage**
  - **Isotonic environment** → no net water movement → cell size unchanged

### 1.6.3 Hydrostatic Pressure
- Pressure exerted by fluid pushing against vessel walls
- In capillaries: pushes fluid OUT into interstitium (filtration)

### 1.6.4 Colloid Osmotic Pressure (Oncotic Pressure)
- Pressure created by plasma proteins (mainly albumin) that pulls fluid INTO capillaries
- Opposes hydrostatic pressure
- Normal plasma oncotic pressure ≈ 25-28 mmHg

### 1.6.5 Starling Forces (Capillary Fluid Exchange Diagram)
```
CAPILLARY LUMEN
  |-- Hydrostatic pressure (Pc) → pushes fluid OUT
  |-- Oncotic pressure (πc)    → pulls fluid IN

INTERSTITIUM
  |-- Hydrostatic pressure (Pi) → pushes fluid IN
  |-- Oncotic pressure (πi)    → pulls fluid OUT

Net filtration = (Pc - Pi) - (πc - πi)

Arterial end: Net filtration (+) → fluid moves OUT to interstitium
Venous end: Net reabsorption (-) → fluid moves back IN
Excess returned via lymphatics
```

---

# PART 2: SODIUM AND WATER BALANCE

---

## 2.1 Sodium (Na+) - The Key ECF Cation

- **Normal serum Na+**: 135-145 mEq/L
- Na+ is the primary determinant of **ECF volume and osmolality**
- Regulation: kidneys control Na+ balance through:
  - **Aldosterone**: promotes Na+ reabsorption in distal tubule (retains Na+, excretes K+)
  - **ANP/BNP** (Atrial/Brain Natriuretic Peptides): promote Na+ excretion
  - **Renin-Angiotensin-Aldosterone System (RAAS)**: major Na+ and volume regulator

### RAAS Activation Pathway (Diagram):
```
Low blood pressure / Low Na+ delivery / Sympathetic stimulation
           ↓
   Renin released from juxtaglomerular cells
           ↓
   Angiotensinogen → Angiotensin I (by renin)
           ↓
   Angiotensin I → Angiotensin II (by ACE in lungs)
           ↓
   Angiotensin II:
   → Stimulates Aldosterone secretion (adrenal cortex)
   → Vasoconstriction
   → ADH release
   → Thirst
           ↓
   Aldosterone → reabsorbs Na+ + H2O in distal tubule
   → Increases blood volume and pressure
```

### ADH (Anti-Diuretic Hormone / Vasopressin):
- Released from posterior pituitary when:
  - Serum osmolality rises (>290 mOsm/kg)
  - Blood volume decreases
  - Blood pressure drops
- Action: increases water reabsorption in collecting duct (aquaporin channels)
- Net effect: dilutes the blood (lowers osmolality), restores volume

---

## 2.2 Dehydration

### Definition
A deficit of total body water resulting in **decreased fluid volume** in one or more compartments.

### Types of Dehydration (Based on Tonicity):

| Type | Serum Na+ | Mechanism | Example |
|---|---|---|---|
| **Isotonic** (isonatremic) | Normal (135-145) | Equal loss of Na+ and water | Diarrhea, vomiting, hemorrhage |
| **Hypertonic** (hypernatremic) | High (>145) | More water lost than Na+ | Fever, diabetes insipidus, inadequate water intake |
| **Hypotonic** (hyponatremic) | Low (<135) | More Na+ lost than water | Excessive sweating + water replacement, diuretics |

### Etiology: Diarrhea
- Causes **isotonic or hypotonic ECF volume depletion**
- Massive loss of Na+, K+, HCO3-, and water from GI tract
- Can lead to: metabolic acidosis (loss of HCO3-), hypokalemia
- RAAS activation → aldosterone release → Na+/water retention
- In severe cases: circulatory shock

### Etiology: Vomiting
- Loss of gastric HCl (H+ and Cl-)
- Results in: **metabolic alkalosis** (loss of acid = net base gain)
- Also causes volume depletion → RAAS activation
- Hypokalemia occurs (aldosterone promotes K+ excretion)

### Pathogenesis of Dehydration - Flow Diagram:
```
Fluid Loss (diarrhea/vomiting/sweating)
          ↓
  Decreased ECF volume
          ↓
  Decreased blood pressure
          ↓
  Baroreceptor activation + RAAS activation
          ↓
  ADH release + Aldosterone release + Thirst
          ↓
  Na+/H2O retention in kidneys + Increased water intake
          ↓
  Compensatory restoration of volume
          ↓
If compensation inadequate → Hypovolemic shock
```

### Clinical Signs of Dehydration:
- Dry mucous membranes
- Decreased skin turgor
- Sunken eyes
- Tachycardia, hypotension
- Oliguria (decreased urine output)
- Concentrated urine (high specific gravity, high osmolality)
- In infants: sunken fontanelle

### Severity:
| Degree | % TBW Loss | Signs |
|---|---|---|
| Mild | <5% | Thirst, slightly dry mouth |
| Moderate | 5-10% | Tachycardia, oliguria, dry mucous membranes |
| Severe | >10% | Hypotension, shock, confusion, anuria |

---

## 2.3 Edema

### Definition
**Abnormal accumulation of fluid in the interstitial space**, causing visible swelling of tissues.

### Mechanisms of Edema Formation (4 Major Causes):

#### 1. Increased Capillary Hydrostatic Pressure
- Pushes MORE fluid out of capillary into interstitium
- Causes: Right heart failure, venous obstruction (DVT), portal hypertension, pregnancy
- Example: Dependent edema in congestive heart failure (CHF)

#### 2. Decreased Colloidal Osmotic (Oncotic) Pressure
- Less albumin in plasma → less "pulling force" to retain fluid in vessels
- Causes:
  - **Liver disease** (cirrhosis) → decreased albumin synthesis
  - **Nephrotic syndrome** → massive proteinuria → albumin loss in urine
  - **Malnutrition/kwashiorkor** → inadequate protein intake
- Result: fluid leaks into interstitium → edema

#### 3. Increased Capillary Permeability
- Damaged capillary walls allow protein and fluid to escape into interstitium
- Causes: inflammation, allergy, burns, sepsis, anaphylaxis, acute respiratory distress syndrome (ARDS)
- Protein in interstitium further draws water out

#### 4. Lymphatic Obstruction
- Lymphatics normally drain excess interstitial fluid back to circulation
- If blocked: fluid accumulates → lymphedema
- Causes: tumor compression, surgical removal of lymph nodes (e.g., post-mastectomy), parasitic infection (filariasis - elephantiasis)

### Diagram: Mechanism Summary
```
Normal:                   Edema-causing:
Pc → fluid OUT            ↑Pc → MORE fluid out      (CHF, venous HTN)
πc → fluid IN             ↓πc → LESS fluid in        (cirrhosis, nephrotic)
Lymphatics drain excess   ↑permeability → leaky wall (inflammation)
                          Lymphatic obstruction      (lymphedema)
```

### Types of Edema by Location:
- **Pitting edema**: finger pressure leaves a pit; seen in heart failure, renal disease
- **Non-pitting edema**: lymphedema, myxedema (hypothyroidism)
- **Pulmonary edema**: fluid in lung alveoli → impaired gas exchange (most dangerous)
- **Cerebral edema**: fluid in brain tissue → increased intracranial pressure
- **Ascites**: fluid in peritoneal cavity (liver cirrhosis)
- **Anasarca**: generalized massive edema throughout body

---

## 2.4 Hyponatremia (Low Na+)

- **Definition**: Serum Na+ < 135 mEq/L
- Reflects excess water relative to Na+ in ECF

### Causes:
| Category | Examples |
|---|---|
| Dilutional | Excessive water intake (psychogenic polydipsia), SIADH |
| Na+ loss > water loss | Diuretics (thiazides), adrenal insufficiency, diarrhea |
| SIADH | Lung cancer, CNS disorders, drugs (SSRIs, carbamazepine) |
| Edematous states | CHF, cirrhosis, nephrotic syndrome |

### SIADH (Syndrome of Inappropriate ADH Secretion):
- ADH secreted despite low serum osmolality → excess water retention → dilutional hyponatremia
- Urine is inappropriately concentrated
- Euvolemic hyponatremia

### Symptoms of Hyponatremia:
- Brain cells swell due to osmotic water shift INTO cells
- Mild: nausea, headache, malaise
- Moderate: confusion, lethargy
- Severe: seizures, coma, herniation (life-threatening)

### Treatment:
- Mild/chronic: fluid restriction
- Severe: hypertonic saline (3% NaCl) - cautiously
- **Warning**: Correct slowly! Rapid correction → **Central Pontine Myelinolysis (Osmotic Demyelination Syndrome)** - irreversible brain damage

---

## 2.5 Hypernatremia (High Na+)

- **Definition**: Serum Na+ > 145 mEq/L
- Reflects water deficit relative to Na+, OR Na+ excess
- Always causes **hypertonicity** → cells SHRINK (water leaves cells)

### Causes:
| Category | Examples |
|---|---|
| Water loss > Na+ loss | Diabetes insipidus, fever, mechanical ventilation, profuse sweating |
| Inadequate water intake | Elderly, altered consciousness, infants |
| Na+ gain | Hypertonic saline/NaHCO3 administration, primary hyperaldosteronism |

### Diabetes Insipidus (DI):
- **Central DI**: ADH not produced (pituitary/hypothalamic damage) → excessive dilute urine
- **Nephrogenic DI**: Kidneys don't respond to ADH (collecting duct insensitive) → excessive dilute urine

### Symptoms:
- Brain cells SHRINK → tearing of bridging cerebral veins → intracranial hemorrhage
- Intense thirst, restlessness
- Seizures, coma (if severe)

---

# PART 3: POTASSIUM BALANCE

---

## 3.1 Potassium (K+) Overview

- **Normal serum K+**: 3.5-5.0 mEq/L
- **98% of K+ is intracellular** (ICF)
- K+ is the dominant intracellular cation
- Even small changes in serum K+ have significant effects

### Why K+ is Critical:
- **Determines the resting membrane potential (RMP)** of cells
- RMP = inside of cell negative relative to outside (~-90 mV in cardiac cells)
- RMP depends on ratio of intracellular to extracellular K+
- Disturbances → alter cardiac and neuromuscular excitability → potentially **lethal dysrhythmias**

### K+ Regulation:
- **Aldosterone**: main regulator - promotes K+ secretion in distal nephron
- **Insulin**: drives K+ into cells
- **Catecholamines (epinephrine)**: drive K+ into cells via beta-2 receptors
- **Acid-base status**: acidosis → K+ moves OUT of cells (in exchange for H+) → hyperkalemia

---

## 3.2 Hypokalemia (Low K+)

- **Definition**: Serum K+ < 3.5 mEq/L

### Causes:
| Category | Example |
|---|---|
| GI losses | Vomiting, diarrhea, laxative abuse, fistulas |
| Renal losses | Diuretics (loop + thiazide), hyperaldosteronism, Cushing's, Bartter syndrome |
| Shift into cells | Insulin therapy, alkalosis, beta-agonists (salbutamol), refeeding syndrome |
| Inadequate intake | Malnutrition, eating disorders |

### Pathophysiology:
- Low extracellular K+ → **hyperpolarization** of cell membranes (RMP becomes MORE negative)
- Cells less excitable → slower repolarization
- **Cardiac effects**: EKG changes (U waves, flat T waves, prolonged QT), ventricular fibrillation risk
- **Skeletal muscle**: weakness, cramps, paralysis, rhabdomyolysis
- **Smooth muscle**: ileus (intestinal paralysis)
- **Renal effects**: polyuria, metabolic alkalosis (K+ depletion promotes H+ secretion)

### EKG in Hypokalemia:
```
Changes seen: Flattened T waves → Prominent U waves → ST depression → Wide QRS → Ventricular fibrillation
```

---

## 3.3 Hyperkalemia (High K+)

- **Definition**: Serum K+ > 5.0 mEq/L

### Causes:
| Category | Example |
|---|---|
| Decreased renal excretion | Renal failure (most common), hypoaldosteronism, ACE inhibitors, K+-sparing diuretics (spironolactone, amiloride) |
| Shift out of cells | Acidosis, tissue necrosis, rhabdomyolysis, hemolysis, insulin deficiency (diabetic ketoacidosis) |
| Excessive intake | K+ supplements, transfusion of old blood |
| Pseudohyperkalemia | Hemolysis of blood sample in lab |

### Pathophysiology:
- High extracellular K+ → **partial depolarization** of cell membranes (RMP becomes LESS negative)
- Cells initially MORE excitable, then become INEXCITABLE (channels inactivate)
- **Cardiac effects** (most dangerous):
  - EKG: peaked T waves → widened QRS → sine wave pattern → cardiac arrest (asystole or VF)
- **Neuromuscular**: paresthesias, weakness, flaccid paralysis

### EKG in Hyperkalemia:
```
K+ 5-6: Peaked (tall, narrow) T waves
K+ 6-7: Prolonged PR interval, widened QRS
K+ 7-8: Loss of P wave, widened QRS merges with T wave (sine wave pattern)
K+ >8: Cardiac arrest (VF or asystole)
```

### Treatment of Hyperkalemia:
1. **Stabilize cardiac membrane**: IV Calcium gluconate (immediate)
2. **Shift K+ into cells**: Insulin + dextrose, sodium bicarbonate, beta-agonists
3. **Remove K+ from body**: Kayexalate (exchange resin), furosemide, dialysis

---

# PART 4: CALCIUM AND MAGNESIUM BALANCE

---

## 4.1 Calcium (Ca2+) Overview

- **Normal serum Ca2+**: 8.5-10.5 mg/dL (total); ionized Ca2+ = 4.5-5.3 mg/dL
- ~99% of body calcium stored in **bones and teeth**
- Only ~1% in extracellular fluid
- **Ionized (free) Ca2+** is the physiologically active form

### Forms of Calcium in Blood:
| Form | % of Total |
|---|---|
| Bound to albumin | ~40% |
| Bound to anions (citrate, phosphate) | ~10% |
| Ionized (free, active) | ~50% |

> **Clinical point**: In hypoalbuminemia, total serum Ca2+ is low but ionized Ca2+ may be normal. Always correct calcium for albumin level: Corrected Ca = measured Ca + 0.8 x (4 - albumin g/dL)

### Functions of Calcium:
- Neuromuscular excitability and transmission
- Muscle contraction (cardiac and skeletal)
- Blood coagulation (cofactor for multiple clotting factors)
- Enzyme activation
- Bone and tooth mineralization
- Intracellular second messenger

### Calcium Regulation - 3 Key Hormones:

#### 1. Parathyroid Hormone (PTH) - The PRIMARY Regulator
- Released when serum Ca2+ falls
- Actions:
  - **Bone**: mobilizes Ca2+ and phosphate (resorption via osteoclasts)
  - **Kidneys**: increases Ca2+ reabsorption; decreases phosphate reabsorption; activates Vitamin D
  - **Net effect**: raises serum Ca2+, lowers serum phosphate

#### 2. Vitamin D (1,25-dihydroxycholecalciferol / Calcitriol)
- Activated by PTH in kidneys (1-alpha hydroxylase)
- Actions:
  - **Gut**: increases Ca2+ and phosphate absorption from intestine
  - **Bone**: promotes Ca2+ mobilization
  - **Kidneys**: promotes Ca2+ reabsorption
- **Net effect**: raises both Ca2+ and phosphate

#### 3. Calcitonin
- Released from **thyroid** (C cells) when Ca2+ is HIGH
- Actions: **opposes PTH**
  - Inhibits osteoclast activity → less bone resorption
  - Increases urinary Ca2+ excretion
- Net effect: lowers serum Ca2+
- Less important physiologically than PTH

### Calcium-Phosphate Reciprocal Relationship:
```
PTH ↑ → Ca2+ ↑ + Phosphate ↓   (reciprocal regulation)
PTH ↓ → Ca2+ ↓ + Phosphate ↑
```
- Ca2+ and phosphate are **reciprocally regulated** to prevent soft tissue calcification
- If both are high simultaneously → Ca x Phosphate product > 70 → precipitation in soft tissues

---

## 4.2 Hypocalcemia (Low Ca2+)

- **Definition**: Serum Ca2+ < 8.5 mg/dL (or ionized < 4.5 mg/dL)

### Causes:
| Cause | Mechanism |
|---|---|
| Hypoparathyroidism | After thyroid/parathyroid surgery, autoimmune |
| Vitamin D deficiency | Malnutrition, lack of sun, malabsorption, renal failure |
| Hypomagnesemia | Mg required for PTH secretion and action |
| Pancreatitis | Fat necrosis sequesters calcium ("saponification") |
| Hyperphosphatemia | Reciprocally lowers Ca2+ (renal failure) |
| Hypoalbuminemia | Decreased protein binding (but ionized Ca often normal) |
| Alkalosis | Increases albumin binding of Ca2+ → less free Ca2+ |

### Clinical Features - "CATS":
- **C** - Convulsions/seizures
- **A** - Arrhythmias (prolonged QT on EKG)
- **T** - Tetany
- **S** - Spasms (muscle)

### Tetany Signs:
- **Chvostek's sign**: Tapping facial nerve (in front of ear) → twitching of facial muscles
- **Trousseau's sign**: Blood pressure cuff inflated above systolic for 3 min → carpal spasm (hand flexes)
- Perioral tingling (paresthesias around mouth)
- Positive Chvostek and Trousseau signs = hypocalcemia until proven otherwise

### Pathophysiology:
- Low Ca2+ → **increased neuronal excitability** → spontaneous depolarization
- Muscle spasm, laryngospasm (can be fatal), tetany
- Prolonged QT → risk of Torsades de Pointes

---

## 4.3 Hypercalcemia (High Ca2+)

- **Definition**: Serum Ca2+ > 10.5 mg/dL

### Common Causes - "CHIMPANZEES":
Primary causes:
- **Hyperparathyroidism** (most common outpatient cause - usually benign adenoma)
- **Malignancy** (most common inpatient cause):
  - PTHrP (PTH-related protein) from tumors (lung, breast, kidney, squamous cell carcinoma)
  - Bone metastases
  - Lymphoma (excess Vitamin D production)
- Vitamin D toxicity
- Sarcoidosis / granulomatous diseases (excess Vitamin D activation)
- Thiazide diuretics
- Immobilization (increased bone resorption)
- Milk-alkali syndrome

### Clinical Features - "Bones, Stones, Groans, Psychic Moans":
- **Bones**: bone pain, fractures, osteitis fibrosa cystica (in hyperparathyroidism)
- **Stones**: nephrolithiasis (calcium oxalate/phosphate kidney stones), nephrocalcinosis
- **Groans**: GI symptoms - constipation, nausea, vomiting, anorexia, peptic ulcer
- **Psychic Moans**: depression, confusion, lethargy, coma, cognitive impairment
- **Cardiac**: shortened QT interval, bradycardia, cardiac arrest

### Pathophysiology:
- High Ca2+ → **decreased neuronal and muscle excitability** (opposite of hypocalcemia)
- Inhibits ADH action → nephrogenic diabetes insipidus → polyuria, dehydration

---

## 4.4 Magnesium (Mg2+) Balance

- **Normal serum Mg2+**: 1.5-2.5 mEq/L
- Second most abundant intracellular cation after K+
- ~60% in bone; ~39% intracellular; ~1% ECF

### Functions:
- Cofactor for >300 enzymatic reactions
- ATP synthesis (Mg-ATP complex)
- Required for **PTH secretion** and PTH action
- Stabilizes cell membranes and neuromuscular function
- DNA/RNA synthesis

### Hypomagnesemia:
- Serum Mg < 1.5 mEq/L
- Causes: Chronic alcoholism (most common), malabsorption, diuretics, diarrhea, poor intake
- Effects:
  - **Hypokalemia** (Mg required for K+ reabsorption in kidney - can't fix hypokalemia without fixing Mg first)
  - **Hypocalcemia** (impairs PTH secretion)
  - Cardiac arrhythmias (especially Torsades de Pointes)
  - Neuromuscular irritability, tremors, seizures
- Treatment: IV/oral magnesium sulfate

### Hypermagnesemia:
- Serum Mg > 2.5 mEq/L
- Causes: Renal failure, excessive Mg intake (Mg-containing antacids/laxatives, eclampsia treatment)
- Effects:
  - Loss of deep tendon reflexes (first sign)
  - Respiratory depression
  - Cardiac arrest
- Treatment: IV calcium gluconate (antagonizes Mg at membrane), dialysis

---

# PART 5: ACID-BASE BALANCE

---

## 5.1 Fundamentals of Acid-Base Chemistry

### pH and the Henderson-Hasselbalch Equation:

- **pH** = -log[H+]
- Normal blood pH = **7.35-7.45** (slightly alkaline)
- pH < 7.35 = **Acidosis** (acidemia)
- pH > 7.45 = **Alkalosis** (alkalemia)
- Even small changes in pH profoundly affect enzyme function and protein structure

### Henderson-Hasselbalch Equation:
```
pH = pKa + log [HCO3-] / [H2CO3]

Where: pKa of carbonic acid system = 6.1
       H2CO3 = CO2 x 0.0225 (dissolved CO2)
       [CO2] determined by pCO2 (respiratory control)
       [HCO3-] determined by kidneys (metabolic control)

Simplified:
pH = 6.1 + log [HCO3-] / (0.03 x pCO2)

Normal values:
pH = 7.40
HCO3- = 24 mEq/L
pCO2 = 40 mmHg
Ratio = 24 / (0.03 x 40) = 24/1.2 = 20:1
```

### The 20:1 Bicarbonate Ratio (KEY CONCEPT):
- Normal physiological pH (7.35-7.45) is maintained as long as the **HCO3-/H2CO3 ratio = 20:1**
- It does NOT matter if absolute values change - what matters is the RATIO
- This is how compensation works: if one component changes, the other adjusts to restore the 20:1 ratio

---

## 5.2 Buffer Systems

The body uses three main buffer systems:

### 1. Bicarbonate-Carbonic Acid System (most important extracellular buffer):
```
CO2 + H2O ⇌ H2CO3 ⇌ H+ + HCO3-
```
- When H+ added → HCO3- consumes it (moves left)
- When H+ lost → H2CO3 releases H+ (moves right)
- Regulated by: **Lungs** (CO2 elimination) + **Kidneys** (HCO3- retention/excretion)

### 2. Protein Buffer System (most important intracellular buffer):
- Plasma proteins and hemoglobin act as buffers
- Hemoglobin is especially important in RBCs

### 3. Phosphate Buffer System:
- HPO4 2- / H2PO4-
- Important in ICF and urine

---

## 5.3 Respiratory Regulation (Lungs)

- **Rapid** response (minutes)
- Lungs control PaCO2 by adjusting breathing rate and depth
- CO2 = "volatile acid" - excreted as gas
```
↑ CO2 (acidosis) → ↑ breathing (hyperventilation) → blows off CO2 → pH rises
↓ CO2 (alkalosis) → ↓ breathing (hypoventilation) → CO2 retained → pH falls
```
- **Respiratory Compensation** is fast but not definitive

---

## 5.4 Renal Regulation (Kidneys)

- **Slow** response (hours to days)
- Kidneys offer **definitive metabolic regulation**
- Mechanisms:
  1. **Reabsorb HCO3-** from filtrate (prevent loss of base)
  2. **Generate new HCO3-** via H+ secretion
  3. **Excrete H+** as titratable acid (H2PO4-) and ammonium (NH4+)
- In acidosis: kidneys excrete more H+, retain HCO3-
- In alkalosis: kidneys excrete HCO3- (bicarbonaturia), retain H+

---

## 5.5 The Four Primary Acid-Base Disorders

### Overview Table:

| Disorder | Primary Change | Compensation | pH | PaCO2 | HCO3- |
|---|---|---|---|---|---|
| Metabolic Acidosis | ↓ HCO3- | ↓ PaCO2 (hyperventilate) | ↓ | ↓ | ↓ |
| Metabolic Alkalosis | ↑ HCO3- | ↑ PaCO2 (hypoventilate) | ↑ | ↑ | ↑ |
| Respiratory Acidosis | ↑ PaCO2 | ↑ HCO3- (kidneys retain) | ↓ | ↑ | ↑ |
| Respiratory Alkalosis | ↓ PaCO2 | ↓ HCO3- (kidneys excrete) | ↑ | ↓ | ↓ |

---

## 5.6 Metabolic Acidosis

- **pH < 7.35, HCO3- < 22 mEq/L**
- Primary problem: loss of base (HCO3-) OR gain of acid

### Causes - Use the ANION GAP:
**Anion Gap (AG) = Na+ - (Cl- + HCO3-)**
Normal AG = 8-12 mEq/L (due to unmeasured anions: albumin, phosphate, sulfate)

#### High Anion Gap Metabolic Acidosis (HAGMA) - "MUDPILES":
- **M** - Methanol
- **U** - Uremia (renal failure)
- **D** - Diabetic ketoacidosis (DKA)
- **P** - Propylene glycol / Paraldehyde
- **I** - Isoniazid / Iron poisoning
- **L** - Lactic acidosis (shock, sepsis, tissue hypoxia)
- **E** - Ethylene glycol (antifreeze)
- **S** - Salicylates (aspirin overdose)

#### Normal Anion Gap Metabolic Acidosis (NAGMA) - "HARDUPS":
- **H** - Hyperalimentation
- **A** - Addison's disease (adrenal insufficiency)
- **R** - Renal tubular acidosis (RTA)
- **D** - Diarrhea (loss of HCO3- in stool)
- **U** - Ureteroenteric fistula
- **P** - Pancreatic fistula
- **S** - Saline infusion

### Respiratory Compensation for Metabolic Acidosis:
- **Kussmaul breathing**: deep, rapid breathing to blow off CO2
- Expected pCO2 = 1.5 x [HCO3-] + 8 ± 2 (Winter's formula)

### Clinical Effects of Acidosis:
- **CNS**: depresses central nervous system → headache, confusion, stupor, coma
- **Cardiovascular**: decreased cardiac contractility, vasodilation, risk of arrhythmias
- **Respiratory**: Kussmaul breathing (compensatory)
- **Metabolic**: hyperkalemia (K+ shifts out of cells as H+ shifts in)
- **General rule**: **Acidosis depresses the CNS and membrane excitability**

---

## 5.7 Metabolic Alkalosis

- **pH > 7.45, HCO3- > 26 mEq/L**
- Primary problem: gain of base OR loss of acid

### Causes:
| Category | Examples |
|---|---|
| Loss of acid (most common) | Vomiting (loss of HCl), NG suction, diuretics (loop, thiazide) |
| Gain of base | Excessive bicarbonate/antacid ingestion, milk-alkali syndrome |
| Contraction alkalosis | ECF volume depletion → HCO3- concentrated (diuretics, dehydration) |
| Hyperaldosteronism | Excess H+ and K+ secretion → HCO3- rises |
| Hypokalemia | K+ depletion → H+ shifts into cells → paradoxical aciduria |

### Clinical Effects of Alkalosis:
- **CNS**: irritability, confusion, hyperexcitability
- **Neuromuscular**: **tetany**, muscle cramps, paresthesias (alkalosis lowers ionized Ca2+)
- **Cardiac**: arrhythmias
- **General rule**: **Alkalosis induces hyperexcitability and tetany**

### Respiratory Compensation:
- Hypoventilation → retain CO2 → raises pCO2 → lowers pH toward normal
- Limited because hypoxia drives ventilation despite alkalosis
- Expected pCO2 = 0.7 x [HCO3-] + 21 ± 2

---

## 5.8 Respiratory Acidosis

- **pH < 7.35, PaCO2 > 45 mmHg**
- Primary problem: **inadequate ventilation** → CO2 accumulates → H2CO3 increases → H+ increases

### Causes (Hypoventilation):
| Category | Examples |
|---|---|
| CNS depression | Opioids, sedatives, anesthesia, stroke, head injury |
| Neuromuscular disease | Guillain-Barre syndrome, myasthenia gravis, muscular dystrophy, ALS |
| Airway obstruction | COPD, asthma (severe), foreign body, laryngospasm |
| Chest wall/lung disease | Severe pneumonia, pulmonary fibrosis, pneumothorax, flail chest |
| Mechanical failure | Inadequate mechanical ventilation |

### Compensation:
- **Acute** (first 24 hrs): ICF buffering (HCO3- rises by 1 for every 10 ↑ pCO2)
- **Chronic** (2-3 days): Kidneys retain HCO3- (HCO3- rises by 3.5 for every 10 ↑ pCO2)

### Clinical Features:
- Headache (CO2 causes cerebral vasodilation)
- Confusion, asterixis (CO2 narcosis at very high levels)
- Peripheral vasodilation, flushing
- Cyanosis if oxygenation impaired

---

## 5.9 Respiratory Alkalosis

- **pH > 7.45, PaCO2 < 35 mmHg**
- Primary problem: **excessive ventilation** → CO2 blown off → H2CO3 decreases → H+ decreases

### Causes (Hyperventilation):
| Category | Examples |
|---|---|
| Hypoxia-driven | High altitude, pulmonary embolism, pneumonia, early ARDS |
| CNS stimulation | Anxiety/panic attack, pain, fever, salicylate poisoning, liver failure |
| Mechanical | Iatrogenic over-ventilation |
| Pregnancy | Progesterone stimulates respiratory center |

### Compensation:
- **Acute**: ICF buffering (HCO3- falls by 2 for every 10 ↓ pCO2)
- **Chronic**: Kidneys excrete HCO3- (HCO3- falls by 5 for every 10 ↓ pCO2)

### Clinical Features:
- Light-headedness, dizziness
- **Perioral tingling** and **carpopedal spasm** (tetany - due to decreased ionized Ca2+ from alkalosis)
- Palpitations
- Anxiety
- Syncope

---

## 5.10 Step-by-Step Approach to ABG Interpretation

### Step 1: Look at the pH
- < 7.35 = Acidosis
- > 7.45 = Alkalosis
- 7.35-7.45 = Normal (but may have compensated disorder)

### Step 2: Identify the primary disorder
- pH ↓ + pCO2 ↑ = Respiratory Acidosis
- pH ↓ + HCO3- ↓ = Metabolic Acidosis
- pH ↑ + pCO2 ↓ = Respiratory Alkalosis
- pH ↑ + HCO3- ↑ = Metabolic Alkalosis

### Step 3: Is there compensation?
- Check if the other parameter has changed in the expected direction
- Compensation never fully corrects pH to normal (unless mixed disorder)

### Step 4: Calculate Anion Gap (if metabolic acidosis)
- AG = Na+ - (Cl- + HCO3-)
- High AG (>12) → MUDPILES
- Normal AG → HARDUPS/NAGMA

### Step 5: If high AG, check for delta-delta ratio
- Identifies mixed disorders

### Normal ABG Values:
| Parameter | Normal Value |
|---|---|
| pH | 7.35-7.45 |
| PaCO2 | 35-45 mmHg |
| PaO2 | 80-100 mmHg |
| HCO3- | 22-26 mEq/L |
| Base excess | -2 to +2 |
| O2 saturation | 95-100% |

---

## 5.11 Acid-Base Clinical Effects Summary

| Condition | CNS Effect | Neuromuscular Effect | Cardiac |
|---|---|---|---|
| **Acidosis** | Depresses CNS (confusion → coma) | Depresses membrane excitability | Decreased contractility, arrhythmias |
| **Alkalosis** | Hyperexcitability, anxiety | **Tetany**, cramps, seizures | Arrhythmias |

**Memory Aid**:
- "**Acid depresses** everything" - CNS depression, membrane hypoexcitability
- "**Alkali excites** everything" - CNS excitation, neuromuscular irritability, tetany

---

# TAKE-HOME MESSAGES (From Slides - Pages 78-79)

1. **Total body water = ~60% of body weight**: ~40% ICF, ~20% ECF

2. **Sodium is the primary ECF cation; Potassium is the dominant ICF cation**. This gradient is strictly maintained by the **Na+/K+/ATPase pump**

3. **Edema** results from expansion of interstitial fluid volume caused by:
   - Increased capillary filtration pressure
   - Decreased colloidal osmotic pressure
   - Increased permeability
   - Lymphatic obstruction

4. **Effective osmolality (tonicity) dictates cell volume**:
   - Hypotonic environments → cellular swelling
   - Hypertonic environments → cellular dehydration

5. **Potassium levels determine the resting membrane potential**; both hypokalemia and hyperkalemia significantly alter cardiac and neuromuscular excitability → potentially lethal dysrhythmias

6. **Calcium and phosphate are reciprocally regulated** to prevent soft tissue calcification; PTH is the primary regulator - mobilizes calcium from bone and conserves it in the kidneys

7. **The 20:1 Bicarbonate Ratio**: Physiological pH (7.35-7.45) is maintained by this ratio:
   - Lungs provide **rapid respiratory compensation**
   - Kidneys offer **definitive metabolic regulation**

8. **Acidosis depresses the CNS** and membrane excitability; **alkalosis induces hyperexcitability and tetany**

---

# QUICK REFERENCE TABLES

## Normal Lab Values
| Electrolyte/Parameter | Normal Range |
|---|---|
| Serum Na+ | 135-145 mEq/L |
| Serum K+ | 3.5-5.0 mEq/L |
| Serum Ca2+ (total) | 8.5-10.5 mg/dL |
| Serum Mg2+ | 1.5-2.5 mEq/L |
| Serum HCO3- | 22-26 mEq/L |
| Blood pH | 7.35-7.45 |
| PaCO2 | 35-45 mmHg |
| Serum osmolality | 280-295 mOsm/kg |
| Anion Gap | 8-12 mEq/L |

## Compensation Formulas
| Disorder | Compensation Formula |
|---|---|
| Metabolic Acidosis | Expected pCO2 = 1.5 x [HCO3-] + 8 ± 2 (Winter's) |
| Metabolic Alkalosis | Expected pCO2 = 0.7 x [HCO3-] + 21 ± 2 |
| Respiratory Acidosis (acute) | HCO3- rises 1 per 10 ↑ pCO2 |
| Respiratory Acidosis (chronic) | HCO3- rises 3.5 per 10 ↑ pCO2 |
| Respiratory Alkalosis (acute) | HCO3- falls 2 per 10 ↓ pCO2 |
| Respiratory Alkalosis (chronic) | HCO3- falls 5 per 10 ↓ pCO2 |

---

*Notes compiled from: Pathophysiology 5 lecture slides (79 pages) + Harrison's Principles of Internal Medicine 22E + Brenner and Rector's The Kidney + Goldman-Cecil Medicine*
Running Command

cd /home/daytona/workspace && python3 << 'EOF' from reportlab.lib.pagesizes import A4 from reportlab.lib.styles import getSampleStyleSheet, ParagraphStyle from reportlab.lib.units import cm from reportlab.lib.colors import HexColor, black, white from reportlab.platypus import SimpleDocTemplate, Paragraph, Spacer, Table, TableStyle, HRFlowable, PageBreak from reportlab.lib.enums import TA_LEFT, TA_CENTER, TA_JUSTIFY from reportlab.platypus import KeepTogether doc = SimpleDocTemplate( "/home/daytona/workspace/Pathophysiology_5_Notes.pdf", pagesize=A4, rightMargin=2*cm, leftMargin=2*cm, topMargin=2*cm, bottomMargin=2*cm ) styles = getSampleStyleSheet() # Custom styles title_style = ParagraphStyle('CustomTitle', parent=styles['Title'], fontSize=22, textColor=HexColor('#1a237e'), spaceAfter=8, spaceBefore=4, alignment=TA_CENTER) subtitle_style = ParagraphStyle('SubTitle', parent=styles['Normal'], fontSize=13, textColor=HexColor('#283593'), spaceAfter=12, alignment=TA_CENTER) part_style = ParagraphStyle('Part', parent=styles['Heading1'], fontSize=16, textColor=white, backColor=HexColor('#1a237e'), spaceBefore=16, spaceAfter=8, leftIndent=-10, rightIndent=-10, leading=22, borderPad=6) h2_style = ParagraphStyle('H2', parent=styles['Heading2'], fontSize=13, textColor=HexColor('#1565c0'), spaceBefore=12, spaceAfter=4, borderPad=3) h3_style = ParagraphStyle('H3', parent=styles['Heading3'], fontSize=11, textColor=HexColor('#0d47a1'), spaceBefore=8, spaceAfter=3) h4_style = ParagraphStyle('H4', parent=styles['Heading4'], fontSize=10.5, textColor=HexColor('#1976d2'), spaceBefore=6, spaceAfter=2, fontName='Helvetica-Bold') body_style = ParagraphStyle('Body', parent=styles['Normal'], fontSize=9.5, leading=14, spaceAfter=4, alignment=TA_JUSTIFY) bullet_style = ParagraphStyle('Bullet', parent=styles['Normal'], fontSize=9.5, leading=13, leftIndent=14, firstLineIndent=-10, spaceAfter=2, bulletText='•') subbullet_style = ParagraphStyle('SubBullet', parent=styles['Normal'], fontSize=9, leading=13, leftIndent=28, firstLineIndent=-10, spaceAfter=1, bulletText='-') code_style = ParagraphStyle('Code', parent=styles['Code'], fontSize=8.5, leading=12, backColor=HexColor('#f5f5f5'), leftIndent=12, rightIndent=12, spaceBefore=4, spaceAfter=4, fontName='Courier') note_style = ParagraphStyle('Note', parent=styles['Normal'], fontSize=9, leading=13, backColor=HexColor('#e3f2fd'), leftIndent=8, rightIndent=8, spaceBefore=2, spaceAfter=4, textColor=HexColor('#0d47a1')) takehome_style = ParagraphStyle('TakeHome', parent=styles['Normal'], fontSize=9.5, leading=14, backColor=HexColor('#fff9c4'), leftIndent=8, rightIndent=8, spaceBefore=2, spaceAfter=4) story = [] def heading_part(text): return [Paragraph(f'<b>{text}</b>', part_style), Spacer(1, 6)] def h2(text): return [HRFlowable(color=HexColor('#1565c0'), thickness=0.5, width='100%'), Paragraph(text, h2_style)] def h3(text): return [Paragraph(text, h3_style)] def h4(text): return [Paragraph(text, h4_style)] def body(text): return [Paragraph(text, body_style)] def bullet(text): return [Paragraph(text, bullet_style)] def subbullet(text): return [Paragraph(text, subbullet_style)] def note(text): return [Paragraph(f'<i>{text}</i>', note_style), Spacer(1,2)] def takehome(text): return [Paragraph(text, takehome_style)] def code(text): lines = text.strip().split('\n') result = [] for line in lines: result.append(Paragraph(line.replace(' ', '&nbsp;'), code_style)) return result def spacer(n=6): return [Spacer(1, n)] def make_table(headers, rows, col_widths=None): data = [headers] + rows if not col_widths: col_widths = [doc.width / len(headers)] * len(headers) t = Table(data, colWidths=col_widths) t.setStyle(TableStyle([ ('BACKGROUND', (0,0), (-1,0), HexColor('#1a237e')), ('TEXTCOLOR', (0,0), (-1,0), white), ('FONTNAME', (0,0), (-1,0), 'Helvetica-Bold'), ('FONTSIZE', (0,0), (-1,-1), 9), ('ROWBACKGROUNDS', (0,1), (-1,-1), [HexColor('#f8f9fa'), HexColor('#e8eaf6')]), ('GRID', (0,0), (-1,-1), 0.3, HexColor('#90a4ae')), ('VALIGN', (0,0), (-1,-1), 'MIDDLE'), ('LEFTPADDING', (0,0), (-1,-1), 6), ('RIGHTPADDING', (0,0), (-1,-1), 6), ('TOPPADDING', (0,0), (-1,-1), 4), ('BOTTOMPADDING', (0,0), (-1,-1), 4), ('WORDWRAP', (0,0), (-1,-1), True), ])) return [t, Spacer(1, 6)] # ============================================================ # TITLE PAGE # ============================================================ story += [Spacer(1, 2*cm)] story += [Paragraph('PATHOPHYSIOLOGY', title_style)] story += [Paragraph('Alterations in Fluids, Electrolytes, and Acid-Base Balance', subtitle_style)] story += [HRFlowable(color=HexColor('#1a237e'), thickness=2, width='100%')] story += [Spacer(1, 0.3*cm)] story += [Paragraph('Complete Semester Preparation Notes', ParagraphStyle('st2', parent=styles['Normal'], fontSize=11, textColor=HexColor('#455a64'), alignment=TA_CENTER))] story += [Spacer(1, 0.5*cm)] # Learning Objectives story += heading_part('LEARNING OBJECTIVES') story += bullet('<b>LO1:</b> Understand the etiology and pathogenesis of <b>dehydration</b> in conditions such as diarrhea and vomiting.') story += bullet('<b>LO2:</b> Explain the causes and mechanisms of <b>edema</b> and apply this knowledge to clinical pathological cases.') story += bullet('<b>LO3:</b> Identify the causes and mechanisms of common <b>electrolyte imbalances</b>, including Sodium (Na+), Potassium (K+), and Calcium (Ca2+).') story += bullet('<b>LO4:</b> Describe the causes and mechanisms of <b>respiratory and metabolic acid-base balance disturbances</b>.') story += [PageBreak()] # ============================================================ # PART 1 # ============================================================ story += heading_part('PART 1: COMPOSITION AND COMPARTMENTAL DISTRIBUTION OF BODY FLUIDS') story += h2('1.1 Role of Body Fluids') story += body('Body fluids serve three essential functions:') story += bullet('Transport gases (O2, CO2), nutrients, and metabolic wastes throughout the body') story += bullet('Generate electrical activity that powers nerve impulses and muscle contractions') story += bullet('Participate in energy metabolism - transforming food into usable cellular energy') story += spacer() story += h2('1.2 Total Body Water (TBW)') story += bullet('In a healthy adult, TBW = approximately <b>60% of body weight</b>') story += bullet('Example: a 70 kg adult has ~42 liters of total body water') story += bullet('<b>Homeostasis</b>: Fluid volume and composition remain relatively constant despite changes in intake') story += bullet('Disease or environmental stress can disrupt these regulatory mechanisms') story += note('TBW varies: Infants ~75%; Women and obese individuals have lower TBW proportionally (fat tissue has low water content)') story += spacer() story += h2('1.3 Fluid Compartments (Diagram Explained)') story += body('The body fluids are divided into two major compartments separated by cell membranes:') story += spacer(4) story += make_table( ['Compartment', '% of Body Weight', 'Fraction of TBW', 'Volume (70 kg)', 'Key Ions'], [ ['Intracellular Fluid (ICF)', '40%', '2/3', '~28 L', 'K+, Mg2+, Phosphate, Proteins'], ['Extracellular Fluid (ECF)', '20%', '1/3', '~14 L', 'Na+, Cl-, HCO3-'], ] ) story += h3('Subdivisions of ECF:') story += make_table( ['Sub-compartment', '% Body Weight', 'Volume (70 kg)', 'Description'], [ ['Plasma (Vascular)', '4-5%', '~3.5 L', 'Fluid within blood vessels'], ['Interstitial Fluid', '14-15%', '~10.5 L', 'Between cells; transport vehicle and reservoir for vascular volume'], ['Transcellular', '~1% of ECF', '~1 L', 'CSF, synovial, peritoneal, pleural, pericardial fluids'], ], col_widths=[3.5*cm, 2.5*cm, 3*cm, 7.5*cm] ) story += note('Clinical point: Plasma and interstitial fluid are in dynamic exchange. The interstitial compartment acts as a buffer reservoir for the vascular space.') story += spacer() story += h2('1.4 Electrolyte Composition of Fluid Compartments') story += h3('ECF Electrolytes:') story += bullet('<b>Large amounts</b>: Na+ (sodium) and Cl- (chloride) - Na+ is the PRIMARY extracellular cation') story += bullet('<b>Moderate amounts</b>: HCO3- (bicarbonate)') story += bullet('<b>Small amounts</b>: K+ (potassium)') story += h3('ICF Electrolytes:') story += bullet('<b>Large amounts</b>: K+ (potassium) - K+ is the DOMINANT intracellular cation') story += bullet('<b>Large amounts also</b>: Mg2+, phosphate, proteins') story += bullet('<b>Small amounts</b>: Na+, Cl-, HCO3-') story += spacer() story += h3('The Na+/K+/ATPase Pump - Why the Gradient Matters:') story += body('The Na+/K+ gradient is strictly maintained by the Na+/K+/ATPase pump, which actively transports:') story += bullet('<b>3 Na+ OUT</b> of the cell per cycle') story += bullet('<b>2 K+ IN</b> per cycle (uses ATP energy)') story += body('This electrochemical gradient is essential for: nerve impulse conduction, muscle contraction, cardiac rhythm, and cell volume regulation.') story += spacer() story += h2('1.5 Mechanisms of Fluid Movement') story += h3('1.5.1 Osmotic Pressure') story += bullet('<b>Definition</b>: The pressure needed to oppose the movement of water across a semipermeable membrane') story += bullet('Water moves from <b>low solute concentration (hypotonic)</b> to <b>high solute concentration (hypertonic)</b>') story += bullet('<b>Osmolality</b> = concentration of solutes per kg of water (mOsm/kg); Normal = 280-295 mOsm/kg') story += h3('1.5.2 Tonicity (Effective Osmolality) - KEY CONCEPT') story += bullet('Tonicity = osmolality that <b>actually affects cell size</b> (only solutes that cannot cross cell membranes)') story += bullet('<b>Hypotonic environment</b> → water moves INTO cells → <b>cellular swelling</b>') story += bullet('<b>Hypertonic environment</b> → water moves OUT of cells → <b>cellular dehydration/shrinkage</b>') story += bullet('<b>Isotonic environment</b> → no net water movement → cell size unchanged') story += h3('1.5.3 Starling Forces - Capillary Fluid Exchange (Diagram)') story += body('Four forces determine net fluid movement across capillaries:') story += make_table( ['Force', 'Direction', 'Normal Value'], [ ['Capillary hydrostatic pressure (Pc)', 'Pushes fluid OUT to interstitium', '~35 mmHg (arterial end)'], ['Plasma oncotic pressure (πc)', 'Pulls fluid INTO capillary', '~25-28 mmHg'], ['Interstitial hydrostatic pressure (Pi)', 'Pushes fluid INTO capillary', '~0-2 mmHg'], ['Interstitial oncotic pressure (πi)', 'Pulls fluid OUT to interstitium', '~8 mmHg'], ], col_widths=[5.5*cm, 5.5*cm, 5.5*cm] ) story += body('Net filtration = (Pc - Pi) - (πc - πi). At the arterial end, net filtration is positive (fluid moves out). At the venous end, net reabsorption occurs. Excess returned via lymphatics.') story += spacer() story += [PageBreak()] # ============================================================ # PART 2 # ============================================================ story += heading_part('PART 2: SODIUM AND WATER BALANCE') story += h2('2.1 Sodium Regulation - RAAS and ADH') story += bullet('<b>Normal serum Na+</b>: 135-145 mEq/L') story += bullet('Na+ is the primary determinant of <b>ECF volume and osmolality</b>') story += spacer() story += h3('RAAS Activation Pathway (Flowchart):') story += code( 'Low BP / Low Na+ / Sympathetic stimulation\n' ' ↓\n' 'Renin released from juxtaglomerular cells\n' ' ↓\n' 'Angiotensinogen → Angiotensin I (by Renin)\n' ' ↓\n' 'Angiotensin I → Angiotensin II (by ACE in lungs)\n' ' ↓\n' 'Angiotensin II:\n' ' → Aldosterone secretion (adrenal cortex) → Na+/H2O reabsorption\n' ' → Vasoconstriction → ↑ Blood pressure\n' ' → ADH release → Water retention\n' ' → Thirst → ↑ Water intake\n' ' ↓\n' ' Restores blood volume and pressure' ) story += h3('ADH (Antidiuretic Hormone / Vasopressin):') story += bullet('Released from <b>posterior pituitary</b> when serum osmolality >290 mOsm/kg, or blood volume/pressure drops') story += bullet('Action: increases water reabsorption in collecting duct via <b>aquaporin channels</b>') story += bullet('Net effect: dilutes the blood (lowers osmolality), restores volume') story += spacer() story += h2('2.2 Dehydration') story += body('<b>Definition</b>: A deficit of total body water resulting in decreased fluid volume in one or more compartments.') story += spacer() story += h3('Types of Dehydration:') story += make_table( ['Type', 'Serum Na+', 'Mechanism', 'Examples'], [ ['Isotonic (isonatremic)', 'Normal 135-145', 'Equal loss of Na+ and water', 'Diarrhea, vomiting, hemorrhage'], ['Hypertonic (hypernatremic)', 'High >145', 'More water lost than Na+', 'Fever, diabetes insipidus, inadequate water intake'], ['Hypotonic (hyponatremic)', 'Low <135', 'More Na+ lost than water', 'Excessive sweating + water replacement, diuretics'], ], col_widths=[3.5*cm, 3*cm, 5*cm, 5*cm] ) story += h3('Diarrhea - Pathophysiology:') story += bullet('Causes isotonic or hypotonic ECF volume depletion') story += bullet('Massive loss of Na+, K+, HCO3-, and water from GI tract') story += bullet('Can lead to: <b>metabolic acidosis</b> (loss of HCO3-), <b>hypokalemia</b>') story += bullet('RAAS activation → aldosterone release → Na+/water retention (compensatory)') story += bullet('Severe: circulatory shock') story += h3('Vomiting - Pathophysiology:') story += bullet('Loss of gastric HCl (H+ and Cl-)') story += bullet('Results in: <b>metabolic alkalosis</b> (loss of acid = net base gain)') story += bullet('Volume depletion → RAAS activation') story += bullet('<b>Hypokalemia</b> occurs (aldosterone promotes K+ excretion)') story += spacer() story += h3('Dehydration Pathogenesis Flowchart:') story += code( 'Fluid Loss (diarrhea/vomiting/sweating/fever)\n' ' ↓\n' ' Decreased ECF volume\n' ' ↓\n' ' Decreased blood pressure + Increased osmolality\n' ' ↓\n' ' Baroreceptors activated + RAAS activated + Osmoreceptors activated\n' ' ↓\n' ' ADH release + Aldosterone release + Thirst stimulated\n' ' ↓\n' ' Na+/H2O retention in kidneys + Increased water intake\n' ' ↓\n' 'If COMPENSATION ADEQUATE → Fluid balance restored\n' 'If COMPENSATION INADEQUATE → Hypovolemic shock → Organ failure' ) story += h3('Severity of Dehydration:') story += make_table( ['Degree', '% TBW Loss', 'Clinical Signs'], [ ['Mild', '<5%', 'Thirst, slightly dry mouth'], ['Moderate', '5-10%', 'Tachycardia, oliguria, dry mucous membranes, decreased skin turgor'], ['Severe', '>10%', 'Hypotension, shock, confusion, anuria, sunken eyes/fontanelle'], ] ) story += h2('2.3 Edema') story += body('<b>Definition</b>: Abnormal accumulation of fluid in the interstitial space, causing visible swelling of tissues.') story += h3('4 Mechanisms of Edema (Critical for Exams):') story += h4('1. Increased Capillary Hydrostatic Pressure') story += bullet('Pushes MORE fluid out of capillary into interstitium than normal') story += bullet('Causes: Right heart failure (CHF), venous obstruction/DVT, portal hypertension, pregnancy') story += bullet('Example: <b>Dependent pitting edema</b> in congestive heart failure') story += h4('2. Decreased Colloidal Osmotic (Oncotic) Pressure') story += bullet('Less albumin in plasma → less "pulling force" to retain fluid in vessels') story += bullet('<b>Liver disease (cirrhosis)</b> → decreased albumin synthesis') story += bullet('<b>Nephrotic syndrome</b> → massive proteinuria → albumin loss in urine') story += bullet('<b>Malnutrition / Kwashiorkor</b> → inadequate protein intake') story += h4('3. Increased Capillary Permeability') story += bullet('Damaged capillary walls allow protein AND fluid to escape into interstitium') story += bullet('Causes: inflammation, allergy, burns, sepsis, anaphylaxis, ARDS') story += bullet('Protein in interstitium further draws water out (raises interstitial oncotic pressure)') story += h4('4. Lymphatic Obstruction') story += bullet('Lymphatics normally drain excess interstitial fluid back to circulation') story += bullet('If blocked → fluid accumulates → <b>lymphedema</b>') story += bullet('Causes: tumor compression, post-mastectomy lymph node removal, filariasis (elephantiasis)') story += spacer() story += h3('Types of Edema by Location:') story += make_table( ['Type', 'Location', 'Common Causes'], [ ['Pitting edema', 'Dependent (ankles, legs)', 'Heart failure, renal disease, venous obstruction'], ['Non-pitting edema', 'Any location', 'Lymphedema, myxedema (hypothyroidism)'], ['Pulmonary edema', 'Lung alveoli', 'Left heart failure, ARDS - most dangerous'], ['Cerebral edema', 'Brain tissue', 'Trauma, hyponatremia, hypertension - ↑ICP'], ['Ascites', 'Peritoneal cavity', 'Liver cirrhosis, portal hypertension'], ['Anasarca', 'Generalized', 'Severe heart failure, nephrotic syndrome, severe malnutrition'], ] ) story += h2('2.4 Hyponatremia (Serum Na+ < 135 mEq/L)') story += body('Reflects excess water relative to Na+ in ECF. Brain cells SWELL due to osmotic water entry.') story += make_table( ['Category', 'Examples'], [ ['Dilutional (water excess)', 'Excessive water intake (psychogenic polydipsia), SIADH'], ['Na+ loss > water loss', 'Diuretics (thiazides), adrenal insufficiency, diarrhea'], ['Edematous states', 'CHF, cirrhosis, nephrotic syndrome'], ['SIADH', 'Lung cancer, CNS disorders, SSRIs, carbamazepine'], ] ) story += bullet('<b>Symptoms</b>: Mild - nausea, headache; Moderate - confusion, lethargy; Severe - seizures, coma') story += note('WARNING: Correct hyponatremia SLOWLY. Rapid correction causes Central Pontine Myelinolysis (Osmotic Demyelination Syndrome) - irreversible brain damage!') story += h2('2.5 Hypernatremia (Serum Na+ > 145 mEq/L)') story += body('Reflects water deficit relative to Na+. Always causes hypertonicity. Brain cells SHRINK.') story += make_table( ['Category', 'Examples'], [ ['Water loss > Na+ loss', 'Diabetes insipidus, fever, mechanical ventilation, profuse sweating'], ['Inadequate water intake', 'Elderly, altered consciousness, infants'], ['Na+ gain', 'Hypertonic saline, primary hyperaldosteronism'], ] ) story += h3('Diabetes Insipidus:') story += bullet('<b>Central DI</b>: ADH not produced (pituitary/hypothalamic damage) → massive dilute urine output') story += bullet('<b>Nephrogenic DI</b>: Kidneys do not respond to ADH → massive dilute urine') story += bullet('<b>Symptoms of hypernatremia</b>: Intense thirst, restlessness, brain shrinkage → tearing of bridging veins → intracranial hemorrhage, seizures, coma') story += spacer() story += [PageBreak()] # ============================================================ # PART 3 - POTASSIUM # ============================================================ story += heading_part('PART 3: POTASSIUM BALANCE') story += h2('3.1 Potassium (K+) Overview') story += bullet('<b>Normal serum K+</b>: 3.5-5.0 mEq/L') story += bullet('<b>98% of K+ is intracellular</b> - dominant intracellular cation') story += bullet('Even small changes in serum K+ have <b>significant effects on cardiac rhythm and neuromuscular function</b>') story += spacer() story += h3('K+ Regulation:') story += bullet('<b>Aldosterone</b>: promotes K+ secretion in distal nephron - main regulator') story += bullet('<b>Insulin</b>: drives K+ into cells') story += bullet('<b>Catecholamines (epinephrine)</b>: drive K+ into cells via beta-2 receptors') story += bullet('<b>Acid-base status</b>: Acidosis → K+ moves OUT of cells (in exchange for H+) → hyperkalemia; Alkalosis → K+ moves INTO cells → hypokalemia') story += spacer() story += h3('Why K+ Determines Resting Membrane Potential (RMP):') story += body('The RMP (~-90 mV in cardiac cells) depends on the ratio of intracellular to extracellular K+. Disturbances in this ratio directly alter cardiac and neuromuscular excitability and can cause <b>lethal dysrhythmias</b>.') story += spacer() story += h2('3.2 Hypokalemia (K+ < 3.5 mEq/L)') story += make_table( ['Category', 'Examples'], [ ['GI losses', 'Vomiting, diarrhea, laxative abuse, intestinal fistulas'], ['Renal losses', 'Diuretics (loop + thiazide), hyperaldosteronism, Cushing syndrome, Bartter syndrome'], ['Shift into cells (redistribution)', 'Insulin therapy, alkalosis, beta-agonists (salbutamol), refeeding syndrome'], ['Inadequate intake', 'Malnutrition, eating disorders, alcoholism'], ] ) story += h3('Pathophysiology:') story += bullet('Low extracellular K+ → <b>hyperpolarization</b> of cell membranes (RMP becomes more negative)') story += bullet('Cells are <b>less excitable</b> → slower repolarization') story += h3('Clinical Effects:') story += bullet('<b>Cardiac</b>: EKG changes - flat/inverted T waves, prominent U waves, prolonged QT → risk of <b>ventricular fibrillation/Torsades de Pointes</b>') story += bullet('<b>Skeletal muscle</b>: weakness, cramps, paralysis, rhabdomyolysis') story += bullet('<b>Smooth muscle</b>: ileus (intestinal paralysis), constipation') story += bullet('<b>Renal</b>: polyuria, metabolic alkalosis (K+ depletion promotes H+ secretion)') story += spacer() story += h3('EKG Changes in Hypokalemia:') story += code('Normal → Flat T waves → Prominent U waves → ST depression → Wide QRS → VF/Torsades') story += h2('3.3 Hyperkalemia (K+ > 5.0 mEq/L)') story += make_table( ['Category', 'Examples'], [ ['Decreased renal excretion', 'Renal failure (most common), hypoaldosteronism, ACE inhibitors, K+-sparing diuretics'], ['Shift out of cells', 'Acidosis, tissue necrosis, rhabdomyolysis, hemolysis, DKA (insulin deficiency)'], ['Excessive intake', 'K+ supplements, transfusion of stored blood'], ['Pseudohyperkalemia', 'Hemolysis of blood sample in lab (falsely elevated)'], ] ) story += h3('Pathophysiology:') story += bullet('High extracellular K+ → <b>partial depolarization</b> of cell membranes (RMP becomes less negative)') story += bullet('Initially more excitable, then channels INACTIVATE → <b>inexcitable</b>') story += h3('EKG Changes in Hyperkalemia (Progression - Very Important):') story += code( 'K+ 5-6 mEq/L: Peaked (tall, narrow) T waves\n' 'K+ 6-7 mEq/L: Prolonged PR interval, widened QRS\n' 'K+ 7-8 mEq/L: Loss of P wave, further QRS widening\n' 'K+ >8 mEq/L: Sine wave pattern → CARDIAC ARREST (VF or asystole)' ) story += h3('Treatment of Hyperkalemia (in order of urgency):') story += bullet('<b>1. Stabilize cardiac membrane</b>: IV Calcium gluconate (immediate - does NOT lower K+, just protects heart)') story += bullet('<b>2. Shift K+ into cells</b>: Insulin + dextrose, sodium bicarbonate, beta-agonists') story += bullet('<b>3. Remove K+ from body</b>: Kayexalate (exchange resin), furosemide, dialysis (definitive)') story += spacer() story += [PageBreak()] # ============================================================ # PART 4 - CALCIUM AND MAGNESIUM # ============================================================ story += heading_part('PART 4: CALCIUM AND MAGNESIUM BALANCE') story += h2('4.1 Calcium (Ca2+) Overview') story += bullet('<b>Normal serum Ca2+</b>: 8.5-10.5 mg/dL total; Ionized Ca2+ = 4.5-5.3 mg/dL') story += bullet('~99% stored in <b>bones and teeth</b>; only ~1% in ECF') story += bullet('<b>Ionized (free) Ca2+</b> is the physiologically active form') story += spacer() story += h3('Forms of Calcium in Blood:') story += make_table( ['Form', '% of Total Serum Ca2+'], [ ['Bound to albumin', '~40%'], ['Bound to anions (citrate, phosphate)', '~10%'], ['Ionized / Free (physiologically active)', '~50%'], ] ) story += note('In hypoalbuminemia, total Ca2+ is low but ionized Ca2+ may be NORMAL. Corrected Ca = Measured Ca + 0.8 x (4 - albumin g/dL). Always check ionized Ca2+ clinically.') story += h3('Functions of Calcium:') story += bullet('Neuromuscular excitability and synaptic transmission') story += bullet('Muscle contraction (cardiac and skeletal) - troponin binding') story += bullet('Blood coagulation (cofactor for clotting factors II, VII, IX, X)') story += bullet('Enzyme activation, intracellular second messenger (via calmodulin)') story += bullet('Bone and tooth mineralization') story += spacer() story += h2('4.2 Calcium Regulation - 3 Key Hormones (Diagram)') story += h3('1. Parathyroid Hormone (PTH) - THE PRIMARY REGULATOR') story += bullet('Released from <b>parathyroid glands</b> when serum Ca2+ falls (low Ca2+ → PTH ↑)') story += h4('PTH Actions:') story += bullet('<b>Bone</b>: mobilizes Ca2+ and phosphate via osteoclast activation (bone resorption)') story += bullet('<b>Kidneys</b>: increases Ca2+ reabsorption; DECREASES phosphate reabsorption; activates Vitamin D (1-alpha hydroxylase)') story += bullet('<b>Net effect</b>: raises serum Ca2+, LOWERS serum phosphate') story += spacer() story += h3('2. Vitamin D (Calcitriol / 1,25-dihydroxycholecalciferol)') story += bullet('Activated by PTH in kidneys (via 1-alpha hydroxylase)') story += h4('Vitamin D Actions:') story += bullet('<b>Gut (intestine)</b>: increases Ca2+ AND phosphate absorption (most important action)') story += bullet('<b>Bone</b>: promotes Ca2+ mobilization') story += bullet('<b>Kidneys</b>: promotes Ca2+ reabsorption') story += bullet('<b>Net effect</b>: raises BOTH Ca2+ and phosphate') story += spacer() story += h3('3. Calcitonin') story += bullet('Released from <b>thyroid C-cells</b> when Ca2+ is HIGH') story += bullet('Opposes PTH: inhibits osteoclasts → less bone resorption; increases urinary Ca2+ excretion') story += bullet('<b>Net effect</b>: lowers serum Ca2+') story += bullet('Less physiologically important than PTH; used therapeutically in hypercalcemia') story += spacer() story += h3('Calcium-Phosphate Reciprocal Relationship (Key Diagram Concept):') story += code( 'PTH ↑ → Ca2+ ↑ + Phosphate ↓ (reciprocal)\n' 'PTH ↓ → Ca2+ ↓ + Phosphate ↑\n\n' 'Ca2+ and phosphate are RECIPROCALLY regulated to\n' 'prevent soft tissue calcification.\n' 'If Ca x Phosphate product > 70 → precipitation in soft tissues' ) story += h2('4.3 Hypocalcemia (Ca2+ < 8.5 mg/dL)') story += make_table( ['Cause', 'Mechanism'], [ ['Hypoparathyroidism', 'After thyroid/parathyroid surgery, autoimmune - no PTH'], ['Vitamin D deficiency', 'Malnutrition, lack of sunlight, malabsorption, chronic renal failure'], ['Hypomagnesemia', 'Mg required for PTH secretion and action'], ['Acute pancreatitis', 'Fat necrosis sequesters calcium ("saponification")'], ['Hyperphosphatemia', 'Reciprocally lowers Ca2+ (e.g., in renal failure)'], ['Alkalosis', 'Increases albumin binding of Ca2+ → less free/ionized Ca2+'], ] ) story += h3('Clinical Features - "CATS":') story += bullet('<b>C</b> - Convulsions / Seizures') story += bullet('<b>A</b> - Arrhythmias (prolonged QT on EKG → risk of Torsades de Pointes)') story += bullet('<b>T</b> - Tetany (sustained muscle spasm)') story += bullet('<b>S</b> - Spasms (muscle), laryngospasm (life-threatening)') story += spacer() story += h3('Physical Signs of Hypocalcemia (Tetany):') story += bullet('<b>Chvostek sign</b>: Tap facial nerve anterior to ear → ipsilateral facial muscle twitching') story += bullet('<b>Trousseau sign</b>: Inflate BP cuff above systolic for 3 min → carpal spasm (hand contracts)') story += bullet('Perioral tingling/paresthesias (early sign)') story += spacer() story += h3('Pathophysiology:') story += bullet('Low Ca2+ → <b>increased neuronal excitability</b> → spontaneous depolarization') story += bullet('Muscle spasm, laryngospasm, tetany, seizures') story += h2('4.4 Hypercalcemia (Ca2+ > 10.5 mg/dL)') story += h3('Common Causes - "Bones, Stones, Groans, Psychic Moans" Memory Aid:') story += make_table( ['Cause', 'Mechanism'], [ ['Hyperparathyroidism (most common outpatient)', 'PTH adenoma → excess bone resorption + renal Ca2+ retention'], ['Malignancy (most common inpatient)', 'PTHrP from tumors (lung, breast, kidney, SCC); bone metastases; lymphoma (excess Vit D)'], ['Vitamin D toxicity/Sarcoidosis', 'Excess active Vitamin D → excess Ca2+ absorption from gut'], ['Thiazide diuretics', 'Reduce renal Ca2+ excretion'], ['Immobilization', 'Increased bone resorption without formation'], ] ) story += h3('Clinical Features:') story += bullet('<b>Bones</b>: bone pain, pathological fractures, osteitis fibrosa cystica') story += bullet('<b>Stones</b>: nephrolithiasis (calcium kidney stones), nephrocalcinosis, polyuria') story += bullet('<b>Groans</b>: constipation, nausea, vomiting, anorexia, peptic ulcer disease') story += bullet('<b>Psychic Moans</b>: depression, confusion, lethargy, memory loss, coma') story += bullet('<b>Cardiac</b>: shortened QT interval, bradycardia, cardiac arrest') story += note('Pathophysiology: High Ca2+ DECREASES neuronal/muscle excitability (opposite of hypocalcemia). Also inhibits ADH action → nephrogenic DI → polyuria + dehydration.') story += h2('4.5 Magnesium (Mg2+) Balance') story += h3('Overview:') story += bullet('<b>Normal serum Mg2+</b>: 1.5-2.5 mEq/L') story += bullet('Second most abundant intracellular cation after K+') story += bullet('Distribution: ~60% in bone; ~39% intracellular; ~1% ECF') story += h3('Functions:') story += bullet('Cofactor for >300 enzymatic reactions including ATP synthesis (Mg-ATP complex)') story += bullet('Required for <b>PTH secretion and PTH action</b> on target tissues') story += bullet('Stabilizes cell membranes and neuromuscular function') story += bullet('DNA/RNA synthesis, protein synthesis') story += spacer() story += h3('Hypomagnesemia (Mg < 1.5 mEq/L):') story += bullet('<b>Causes</b>: Chronic alcoholism (most common), malabsorption, diuretics (loop), prolonged diarrhea, poor intake') story += bullet('<b>Effects</b>: Refractory hypokalemia (must fix Mg first), hypocalcemia (impairs PTH), Torsades de Pointes, tremors, seizures') story += note('KEY CLINICAL POINT: You CANNOT correct hypokalemia if hypomagnesemia is present. Magnesium is required for K+ reabsorption in the kidney. Always check and replace Mg2+ when treating hypokalemia.') story += h3('Hypermagnesemia (Mg > 2.5 mEq/L):') story += bullet('<b>Causes</b>: Renal failure (most common), Mg-containing antacids/laxatives, eclampsia treatment (MgSO4)') story += bullet('<b>Effects</b> (in order of severity): Loss of deep tendon reflexes (FIRST sign) → respiratory depression → cardiac arrest') story += bullet('<b>Treatment</b>: IV calcium gluconate (antagonizes Mg at membrane), dialysis in severe cases') story += spacer() story += [PageBreak()] # ============================================================ # PART 5 - ACID-BASE # ============================================================ story += heading_part('PART 5: ACID-BASE BALANCE') story += h2('5.1 Fundamentals - pH and Henderson-Hasselbalch') story += bullet('<b>pH</b> = -log[H+]. Normal blood pH = <b>7.35-7.45</b>') story += bullet('pH < 7.35 = <b>Acidosis</b>; pH > 7.45 = <b>Alkalosis</b>') story += spacer() story += h3('Henderson-Hasselbalch Equation:') story += code( 'pH = pKa + log [HCO3-] / [H2CO3]\n\n' 'Simplified: pH = 6.1 + log [HCO3-] / (0.03 x pCO2)\n\n' 'Normal values:\n' ' pH = 7.40\n' ' HCO3- = 24 mEq/L (metabolic component - kidney controlled)\n' ' pCO2 = 40 mmHg (respiratory component - lung controlled)\n' ' Ratio = 24 / (0.03 x 40) = 24 / 1.2 = 20:1' ) story += h3('The 20:1 Bicarbonate Ratio - KEY CONCEPT:') story += bullet('Normal physiological pH (7.35-7.45) is maintained as long as <b>HCO3-/H2CO3 ratio = 20:1</b>') story += bullet('Absolute values CAN change - what matters is MAINTAINING THE RATIO') story += bullet('<b>Lungs</b> provide <b>rapid respiratory compensation</b> (minutes)') story += bullet('<b>Kidneys</b> offer <b>definitive metabolic regulation</b> (hours to days)') story += spacer() story += h2('5.2 Buffer Systems') story += h3('1. Bicarbonate-Carbonic Acid System (most important ECF buffer):') story += code('CO2 + H2O ⇌ H2CO3 ⇌ H+ + HCO3-\n\n' 'Add H+ → HCO3- consumes it (reaction shifts left) → pH maintained\n' 'Lose H+ → H2CO3 releases H+ (reaction shifts right) → pH maintained') story += h3('2. Protein Buffer System (most important intracellular buffer):') story += bullet('Plasma proteins and hemoglobin act as buffers') story += bullet('Hemoglobin especially important in RBCs - buffers CO2 during gas transport') story += h3('3. Phosphate Buffer System:') story += bullet('HPO4 2- / H2PO4- system') story += bullet('Important in ICF and urine acidification') story += spacer() story += h2('5.3 Overview of the 4 Primary Acid-Base Disorders') story += make_table( ['Disorder', 'Primary Change', 'pH', 'pCO2', 'HCO3-', 'Compensation'], [ ['Metabolic Acidosis', '↓ HCO3-', '↓', '↓ (lungs blow off CO2)', '↓ PRIMARY', 'Hyperventilation (Kussmaul)'], ['Metabolic Alkalosis', '↑ HCO3-', '↑', '↑ (lungs retain CO2)', '↑ PRIMARY', 'Hypoventilation'], ['Respiratory Acidosis', '↑ pCO2', '↓', '↑ PRIMARY', '↑ (kidneys retain HCO3-)', 'Renal HCO3- retention'], ['Respiratory Alkalosis', '↓ pCO2', '↑', '↓ PRIMARY', '↓ (kidneys excrete HCO3-)', 'Renal HCO3- excretion'], ], col_widths=[3.2*cm, 3*cm, 1.2*cm, 3*cm, 3*cm, 3.1*cm] ) story += h2('5.4 Metabolic Acidosis (pH < 7.35, HCO3- < 22)') story += body('Primary problem: loss of base (HCO3-) OR gain of acid.') story += h3('Anion Gap = Na+ - (Cl- + HCO3-) [Normal = 8-12 mEq/L]') story += h4('High Anion Gap Metabolic Acidosis (HAGMA) - Mnemonic "MUDPILES":') story += code('M - Methanol\nU - Uremia (renal failure)\nD - Diabetic Ketoacidosis (DKA)\nP - Propylene glycol / Paraldehyde\nI - Isoniazid / Iron poisoning\nL - Lactic acidosis (shock, sepsis, tissue hypoxia)\nE - Ethylene glycol (antifreeze)\nS - Salicylates (aspirin overdose)') story += h4('Normal Anion Gap Metabolic Acidosis (NAGMA) - Mnemonic "HARDUPS":') story += code('H - Hyperalimentation (TPN)\nA - Addison disease (adrenal insufficiency)\nR - Renal Tubular Acidosis (RTA)\nD - Diarrhea (loss of HCO3- in stool)\nU - Ureteroenteric fistula\nP - Pancreatic fistula\nS - Saline infusion (hyperchloremic acidosis)') story += h3("Kussmaul Breathing - Respiratory Compensation:") story += bullet('Deep, rapid breathing to blow off CO2 (seen in DKA)') story += bullet("Winter's formula: Expected pCO2 = 1.5 x [HCO3-] + 8 ± 2") story += spacer() story += h3('Clinical Effects of Acidosis:') story += bullet('<b>CNS</b>: DEPRESSES the CNS → headache, confusion, stupor, coma') story += bullet('<b>Cardiovascular</b>: decreased cardiac contractility, vasodilation, arrhythmias') story += bullet('<b>Metabolic</b>: hyperkalemia (K+ shifts out of cells as H+ shifts in; for every 0.1 ↓ pH, K+ rises ~0.5 mEq/L)') story += bullet('<b>General rule: ACIDOSIS DEPRESSES the CNS and membrane excitability</b>') story += h2('5.5 Metabolic Alkalosis (pH > 7.45, HCO3- > 26)') story += body('Primary problem: gain of base OR loss of acid.') story += make_table( ['Category', 'Examples'], [ ['Loss of gastric acid (most common)', 'Vomiting, nasogastric suction'], ['Diuretics', 'Loop and thiazide diuretics → K+ and H+ loss'], ['Contraction alkalosis', 'ECF volume depletion concentrates HCO3-'], ['Hyperaldosteronism', 'Excess H+ and K+ secretion → HCO3- rises'], ['Excessive base intake', 'Excessive bicarbonate/antacids, milk-alkali syndrome'], ['Hypokalemia', 'K+ shifts out of cells, H+ shifts in → paradoxical aciduria'], ] ) story += h3('Clinical Effects of Alkalosis:') story += bullet('<b>CNS</b>: irritability, hyperexcitability, confusion') story += bullet('<b>Neuromuscular</b>: <b>TETANY</b>, muscle cramps, paresthesias (alkalosis decreases ionized Ca2+)') story += bullet('<b>Cardiac</b>: arrhythmias, hypokalemia-related effects') story += bullet('<b>General rule: ALKALOSIS INDUCES HYPEREXCITABILITY and TETANY</b>') story += bullet('Compensation: hypoventilation → retain CO2. Expected pCO2 = 0.7 x [HCO3-] + 21 ± 2') story += h2('5.6 Respiratory Acidosis (pH < 7.35, pCO2 > 45 mmHg)') story += body('Primary problem: <b>inadequate ventilation (hypoventilation)</b> → CO2 accumulates.') story += make_table( ['Category', 'Examples'], [ ['CNS depression', 'Opioids, sedatives, anesthesia, stroke, traumatic brain injury'], ['Neuromuscular disease', 'Guillain-Barre syndrome, myasthenia gravis, ALS, muscular dystrophy'], ['Airway obstruction', 'COPD, severe asthma, foreign body, laryngospasm, obstructive sleep apnea'], ['Chest/lung disease', 'Severe pneumonia, pulmonary fibrosis, pneumothorax, flail chest'], ] ) story += h3('Compensation:') story += bullet('<b>Acute</b> (mins to hours): ICF protein buffering → HCO3- rises by 1 for every 10 mmHg ↑ pCO2') story += bullet('<b>Chronic</b> (2-3 days): Kidneys retain HCO3- → HCO3- rises by 3.5 for every 10 mmHg ↑ pCO2') story += h3('Clinical Features:') story += bullet('Headache, flushed warm skin (CO2 causes cerebral and peripheral vasodilation)') story += bullet('Confusion, asterixis, coma (CO2 narcosis at high levels)') story += bullet('Cyanosis if oxygenation is impaired') story += h2('5.7 Respiratory Alkalosis (pH > 7.45, pCO2 < 35 mmHg)') story += body('Primary problem: <b>hyperventilation</b> → excessive CO2 blown off.') story += make_table( ['Category', 'Examples'], [ ['Hypoxia-driven hyperventilation', 'High altitude, pulmonary embolism, pneumonia, early ARDS'], ['CNS stimulation', 'Anxiety/panic attack, pain, fever, meningitis, salicylate toxicity'], ['Liver failure', 'Direct CNS stimulation by ammonia/toxins'], ['Iatrogenic', 'Over-ventilation on mechanical ventilator'], ['Pregnancy', 'Progesterone stimulates respiratory center → physiological hyperventilation'], ] ) story += h3('Compensation:') story += bullet('<b>Acute</b>: ICF buffering → HCO3- falls by 2 per 10 mmHg ↓ pCO2') story += bullet('<b>Chronic</b>: Kidneys excrete HCO3- → falls by 5 per 10 mmHg ↓ pCO2') story += h3('Clinical Features:') story += bullet('Light-headedness, dizziness, syncope (cerebral vasoconstriction from low CO2)') story += bullet('<b>Perioral tingling</b> and <b>carpopedal spasm/tetany</b> (alkalosis lowers ionized Ca2+)') story += bullet('Palpitations, anxiety, breathlessness') story += spacer() story += h2('5.8 Step-by-Step ABG Interpretation') story += code( 'Step 1: Look at pH\n' ' pH < 7.35 = Acidosis\n' ' pH > 7.45 = Alkalosis\n\n' 'Step 2: Identify the PRIMARY disorder (what matches the pH change?)\n' ' pH ↓ + pCO2 ↑ = Respiratory Acidosis\n' ' pH ↓ + HCO3- ↓ = Metabolic Acidosis\n' ' pH ↑ + pCO2 ↓ = Respiratory Alkalosis\n' ' pH ↑ + HCO3- ↑ = Metabolic Alkalosis\n\n' 'Step 3: Check for COMPENSATION (has the other component changed?)\n' ' Compensation does NOT fully normalize pH\n\n' 'Step 4: If metabolic acidosis → Calculate Anion Gap\n' ' AG = Na+ - (Cl- + HCO3-) [Normal = 8-12]\n' ' High AG → MUDPILES; Normal AG → HARDUPS\n\n' 'Normal ABG Values:\n' ' pH = 7.35-7.45\n' ' PaCO2 = 35-45 mmHg\n' ' PaO2 = 80-100 mmHg\n' ' HCO3- = 22-26 mEq/L\n' ' BE = -2 to +2 mEq/L' ) story += spacer() story += [PageBreak()] # ============================================================ # TAKE HOME MESSAGES # ============================================================ story += heading_part('TAKE-HOME MESSAGES (From Slides)') msgs = [ '1. <b>Total body water = ~60% of body weight</b>: ~40% ICF (2/3), ~20% ECF (1/3)', '2. <b>Sodium = primary ECF cation; Potassium = dominant ICF cation</b>. This gradient is strictly maintained by the Na+/K+/ATPase pump.', '3. <b>Edema</b> results from: increased capillary filtration pressure, decreased colloidal osmotic pressure, increased permeability, OR lymphatic obstruction.', '4. <b>Tonicity dictates cell volume</b>: Hypotonic → cellular swelling; Hypertonic → cellular dehydration.', '5. <b>Potassium levels determine the resting membrane potential</b>; hypo- and hyperkalemia alter cardiac/neuromuscular excitability → lethal dysrhythmias.', '6. <b>Ca2+ and phosphate are reciprocally regulated</b> to prevent soft tissue calcification. PTH = primary regulator: mobilizes Ca2+ from bone, conserves it in kidneys.', '7. <b>The 20:1 Bicarbonate Ratio</b> maintains physiological pH (7.35-7.45). Lungs = rapid compensation; Kidneys = definitive regulation.', '8. <b>Acidosis DEPRESSES the CNS and membrane excitability</b>; <b>Alkalosis induces HYPEREXCITABILITY and TETANY</b>.', ] for m in msgs: story += takehome(m) story += spacer(4) story += spacer() # ============================================================ # QUICK REFERENCE # ============================================================ story += h2('QUICK REFERENCE: Normal Lab Values') story += make_table( ['Electrolyte / Parameter', 'Normal Range'], [ ['Serum Na+', '135-145 mEq/L'], ['Serum K+', '3.5-5.0 mEq/L'], ['Serum Ca2+ (total)', '8.5-10.5 mg/dL'], ['Serum Ca2+ (ionized)', '4.5-5.3 mg/dL'], ['Serum Mg2+', '1.5-2.5 mEq/L'], ['Serum HCO3-', '22-26 mEq/L'], ['Blood pH', '7.35-7.45'], ['PaCO2', '35-45 mmHg'], ['PaO2', '80-100 mmHg'], ['Serum osmolality', '280-295 mOsm/kg'], ['Anion Gap', '8-12 mEq/L'], ] ) story += h2('QUICK REFERENCE: Compensation Formulas') story += make_table( ['Disorder', 'Expected Compensation'], [ ['Metabolic Acidosis', "Expected pCO2 = 1.5 x [HCO3-] + 8 ± 2 (Winter's formula)"], ['Metabolic Alkalosis', 'Expected pCO2 = 0.7 x [HCO3-] + 21 ± 2'], ['Respiratory Acidosis (acute)', 'HCO3- rises by 1 mEq/L per 10 mmHg ↑ pCO2'], ['Respiratory Acidosis (chronic)', 'HCO3- rises by 3.5 mEq/L per 10 mmHg ↑ pCO2'], ['Respiratory Alkalosis (acute)', 'HCO3- falls by 2 mEq/L per 10 mmHg ↓ pCO2'], ['Respiratory Alkalosis (chronic)', 'HCO3- falls by 5 mEq/L per 10 mmHg ↓ pCO2'], ] ) story += spacer(12) story += [Paragraph('<i>Notes compiled from: Pathophysiology 5 lecture slides (79 pages) | Harrison\'s Principles of Internal Medicine 22E | Brenner and Rector\'s The Kidney | Goldman-Cecil Medicine</i>', ParagraphStyle('footer', parent=styles['Normal'], fontSize=8, textColor=HexColor('#90a4ae'), alignment=TA_CENTER))] doc.build(story) print("PDF created successfully!") EOF

Here are your complete notes. Download the PDF here:

Pathophysiology 5 Notes

PDF Document · PDF


Here is the full content below:

PATHOPHYSIOLOGY - ALTERATIONS IN FLUIDS, ELECTROLYTES, AND ACID-BASE BALANCE


LEARNING OBJECTIVES

  1. Etiology and pathogenesis of dehydration (diarrhea, vomiting)
  2. Causes and mechanisms of edema + clinical application
  3. Common electrolyte imbalances: Na+, K+, Ca2+
  4. Mechanisms of respiratory and metabolic acid-base disturbances

PART 1: COMPOSITION AND COMPARTMENTAL DISTRIBUTION OF BODY FLUIDS

Role of Body Fluids

  • Transport gases (O2, CO2), nutrients, metabolic wastes
  • Generate electrical activity powering nerve impulses and muscle contractions
  • Participate in energy metabolism (food → usable energy)

Total Body Water (TBW)

  • Healthy adult = ~60% of body weight (~42 L in a 70 kg person)
  • Homeostasis: volume and composition remain relatively constant - but disease and environmental stress disrupt regulatory mechanisms
  • TBW varies: Infants ~75%; fat tissue is low in water, so obese and female individuals have lower TBW %

Fluid Compartments

Compartment% Body WeightFraction of TBWVolume (70 kg)Key Ions
ICF (Intracellular)40%2/3~28 LK+, Mg2+, Phosphate, Proteins
ECF (Extracellular)20%1/3~14 LNa+, Cl-, HCO3-

ECF Subdivisions:

Sub-compartment% Body WeightDescription
Plasma (Vascular)4-5%Fluid within blood vessels
Interstitial Fluid14-15%Between cells; transport vehicle + vascular reservoir
Transcellular~1% of ECFCSF, synovial, peritoneal, pleural, pericardial fluid

Electrolyte Composition

  • ECF: Large Na+, Cl-; moderate HCO3-; small K+
  • ICF: Large K+; small Na+, Cl-, HCO3-
  • Clinically measured electrolytes (serum/blood) reflect ECF levels
  • The Na+/K+/ATPase pump maintains this gradient: pumps 3 Na+ OUT, 2 K+ IN per cycle using ATP

Mechanisms of Fluid Movement

Osmotic Pressure

  • Pressure needed to oppose water movement across a semipermeable membrane
  • Water moves from low → high solute concentration
  • Normal serum osmolality = 280-295 mOsm/kg

Tonicity (Effective Osmolality) - KEY

  • Hypotonic environment → water enters cells → cellular swelling
  • Hypertonic environment → water leaves cells → cellular dehydration/shrinkage
  • Isotonic environment → no net water movement

Starling Forces (Capillary Exchange Diagram):

ForceDirectionEffect
Capillary hydrostatic pressure (Pc)Pushes fluid OUTFiltration
Plasma oncotic pressure (πc)Pulls fluid INReabsorption
Interstitial hydrostatic pressure (Pi)Pushes fluid INReabsorption
Interstitial oncotic pressure (πi)Pulls fluid OUTFiltration
  • Net filtration = (Pc - Pi) - (πc - πi)
  • Arterial end: net filtration (fluid out); Venous end: net reabsorption; Excess via lymphatics

PART 2: SODIUM AND WATER BALANCE

Sodium Regulation (RAAS + ADH)

  • Normal serum Na+ = 135-145 mEq/L
  • Na+ = primary determinant of ECF volume and osmolality

RAAS Flowchart:

Low BP / Low Na+ / Sympathetic activation
→ Renin (from juxtaglomerular cells)
→ Angiotensinogen → Angiotensin I
→ Angiotensin II (via ACE in lungs)
→ Aldosterone (adrenal cortex) → Na+/H2O reabsorption
→ Vasoconstriction, ADH release, Thirst
→ Restored blood volume + pressure

ADH:

  • Released from posterior pituitary when osmolality >290 mOsm/kg or volume drops
  • Action: increases water reabsorption in collecting duct (aquaporins)

Dehydration

Definition: Deficit of total body water
TypeSerum Na+MechanismExample
IsotonicNormal (135-145)Equal Na+ and water lossDiarrhea, vomiting, hemorrhage
HypertonicHigh (>145)More water lost than Na+Fever, diabetes insipidus
HypotonicLow (<135)More Na+ lost than waterSweating + water replacement, diuretics

Diarrhea: Isotonic/hypotonic ECF depletion, loss of HCO3- → metabolic acidosis, loss of K+ → hypokalemia

Vomiting: Loss of HCl → metabolic alkalosis, volume depletion → RAAS activation → hypokalemia

Dehydration Pathogenesis Flowchart:

Fluid loss → ↓ ECF volume → ↓ BP + ↑ osmolality
→ Baroreceptors + RAAS + Osmoreceptors activated
→ ADH + Aldosterone + Thirst
→ Na+/H2O retention + Water intake
→ If adequate: restored; If inadequate: hypovolemic SHOCK

Severity:

Degree% TBW LossSigns
Mild<5%Thirst, dry mouth
Moderate5-10%Tachycardia, oliguria, dry mucous membranes
Severe>10%Hypotension, shock, confusion, anuria

Edema

Definition: Abnormal accumulation of fluid in the interstitial space

4 Mechanisms:

  1. ↑ Capillary Hydrostatic Pressure - CHF, venous obstruction, portal hypertension → pushes more fluid out
  2. ↓ Oncotic Pressure - Cirrhosis (↓ albumin synthesis), Nephrotic syndrome (urinary albumin loss), Malnutrition/kwashiorkor → less pulling force
  3. ↑ Capillary Permeability - Inflammation, burns, sepsis, anaphylaxis, ARDS → leaky walls
  4. Lymphatic Obstruction - Tumor, post-mastectomy, filariasis → fluid not drained

Types:

  • Pitting edema - CHF, renal disease
  • Non-pitting edema - Lymphedema, myxedema
  • Pulmonary edema - Left heart failure, ARDS (most dangerous)
  • Cerebral edema - Trauma, hyponatremia → ↑ICP
  • Ascites - Liver cirrhosis
  • Anasarca - Generalized (CHF, nephrotic, malnutrition)

Hyponatremia (Na+ < 135 mEq/L)

  • Brain cells swell (water shifts in)
  • Causes: SIADH, dilution (excess water), Na+ loss (diuretics, diarrhea), edematous states (CHF, cirrhosis, nephrotic)
  • Symptoms: nausea → confusion → seizures, coma
  • Warning: Correct SLOWLY - rapid correction → Central Pontine Myelinolysis (irreversible brain damage)

Hypernatremia (Na+ > 145 mEq/L)

  • Brain cells shrink → tearing of bridging veins → intracranial hemorrhage
  • Causes: Diabetes insipidus, fever/sweating, inadequate water intake
  • Central DI: no ADH produced; Nephrogenic DI: kidneys don't respond to ADH

PART 3: POTASSIUM BALANCE

K+ Overview

  • Normal serum K+ = 3.5-5.0 mEq/L
  • 98% intracellular - dominant intracellular cation
  • K+ determines the resting membrane potential (RMP) of cells
  • Small changes = major effects on cardiac rhythm and neuromuscular function → lethal dysrhythmias

Hypokalemia (K+ < 3.5 mEq/L)

CategoryExamples
GI lossesVomiting, diarrhea, laxative abuse
Renal lossesDiuretics (loop/thiazide), hyperaldosteronism, Cushing
Cellular shiftInsulin, alkalosis, beta-agonists, refeeding
Poor intakeMalnutrition, alcoholism
  • Pathophysiology: hyperpolarization → cells less excitable → slower repolarization
  • EKG: Flat T waves → U waves → prolonged QT → Ventricular Fibrillation / Torsades de Pointes
  • Also: muscle weakness, cramps, paralysis, ileus, polyuria, metabolic alkalosis

Hyperkalemia (K+ > 5.0 mEq/L)

CategoryExamples
Decreased renal excretionRenal failure, ACE inhibitors, K+-sparing diuretics
Cellular shift outAcidosis, rhabdomyolysis, hemolysis, DKA
Excess intakeK+ supplements, old blood transfusion
PseudohyperkalemiaLab hemolysis of sample
  • Pathophysiology: partial depolarization → initially excitable → then INEXCITABLE
  • EKG Progression: Peaked T waves → prolonged PR → wide QRS → loss of P wave → sine wave → cardiac arrest
  • Treatment: 1) Ca gluconate (membrane stabilization) → 2) Insulin + dextrose (shift K+ in) → 3) Dialysis (remove K+)

PART 4: CALCIUM AND MAGNESIUM BALANCE

Calcium Overview

  • Normal total Ca2+ = 8.5-10.5 mg/dL; Ionized Ca2+ = 4.5-5.3 mg/dL
  • 99% in bone and teeth; ~1% ECF
  • Ionized (free) Ca2+ = physiologically active form
  • In blood: 40% albumin-bound, 10% anion-bound, 50% ionized
Functions: neuromuscular excitability, muscle contraction, clotting, enzyme activation, bone mineralization

3 Regulatory Hormones (Diagram):

PTH (PRIMARY Regulator):

  • Released when Ca2+ ↓
  • Bone: osteoclast activation → Ca2+ and PO4 released from bone
  • Kidney: ↑ Ca2+ reabsorption, ↓ PO4 reabsorption, activates Vitamin D
  • Net: ↑ Ca2+, ↓ Phosphate

Vitamin D (Calcitriol):

  • Activated by PTH in kidney (1-alpha hydroxylase)
  • Gut: ↑ Ca2+ and PO4 absorption (primary action)
  • Net: ↑ both Ca2+ and Phosphate

Calcitonin:

  • Released from thyroid C-cells when Ca2+ ↑
  • Opposes PTH: inhibits osteoclasts, ↑ urinary Ca2+ excretion
  • Net: ↓ Ca2+

Calcium-Phosphate Reciprocal Rule:

PTH ↑ → Ca2+ ↑ + Phosphate ↓ (they are RECIPROCALLY regulated to prevent soft tissue calcification)

Hypocalcemia (Ca2+ < 8.5)

Causes: Hypoparathyroidism (post-surgery), Vitamin D deficiency, hypomagnesemia, pancreatitis (saponification), hyperphosphatemia (renal failure), alkalosis
"CATS": Convulsions / Arrhythmias (prolonged QT) / Tetany / Spasms
Signs:
  • Chvostek sign: tap facial nerve → facial twitching
  • Trousseau sign: BP cuff inflated → carpal spasm
Pathophysiology: low Ca2+ → ↑ neuronal excitability → spontaneous depolarization → tetany, seizures, laryngospasm

Hypercalcemia (Ca2+ > 10.5)

Causes: Hyperparathyroidism (most common outpatient), Malignancy/PTHrP (most common inpatient), Vitamin D toxicity, sarcoidosis, thiazides, immobilization
"Bones, Stones, Groans, Psychic Moans":
  • Bones: bone pain, fractures
  • Stones: kidney stones, polyuria
  • Groans: constipation, nausea, vomiting
  • Psychic Moans: confusion, depression, coma
  • Cardiac: shortened QT, bradycardia

Magnesium

  • Normal = 1.5-2.5 mEq/L; 60% in bone; 39% intracellular
  • Cofactor for >300 enzymes; required for PTH secretion and action
  • Hypomagnesemia: Alcoholism (most common), diuretics, malabsorption
    • Causes refractory hypokalemia (fix Mg first!) and hypocalcemia
    • Torsades de Pointes, tremors, seizures
  • Hypermagnesemia: Renal failure, antacid abuse
    • Loss of DTRs (first sign) → respiratory depression → cardiac arrest
    • Treat with IV calcium gluconate

PART 5: ACID-BASE BALANCE

Fundamentals

  • Normal blood pH = 7.35-7.45
  • pH < 7.35 = Acidosis; pH > 7.45 = Alkalosis

Henderson-Hasselbalch:

pH = 6.1 + log [HCO3-] / (0.03 x pCO2)
Normal: HCO3- = 24, pCO2 = 40, Ratio = 20:1
The 20:1 Ratio = physiological pH maintained as long as this ratio holds
  • Lungs = rapid compensation (minutes)
  • Kidneys = definitive regulation (hours to days)

Buffer Systems

  1. Bicarbonate-Carbonic Acid (most important ECF buffer): CO2 + H2O ⇌ H2CO3 ⇌ H+ + HCO3-
  2. Protein buffers (most important ICF buffer): hemoglobin, plasma proteins
  3. Phosphate buffer: important in ICF and urine

Four Primary Disorders Summary:

DisorderPrimary ChangepHpCO2HCO3-Compensation
Metabolic Acidosis↓ HCO3-↓ PRIMARYHyperventilation (Kussmaul)
Metabolic Alkalosis↑ HCO3-↑ PRIMARYHypoventilation
Respiratory Acidosis↑ pCO2↑ PRIMARYRenal HCO3- retention
Respiratory Alkalosis↓ pCO2↓ PRIMARYRenal HCO3- excretion

Metabolic Acidosis (pH < 7.35, HCO3- < 22)

Anion Gap = Na+ - (Cl- + HCO3-) [Normal 8-12]
HAGMA "MUDPILES": Methanol, Uremia, DKA, Propylene glycol, Isoniazid/Iron, Lactic acidosis, Ethylene glycol, Salicylates
NAGMA "HARDUPS": Hyperalimentation, Addison, RTA, Diarrhea, Ureteroenteric, Pancreatic fistula, Saline
  • Compensation: Kussmaul breathing (deep rapid), Winter's formula: pCO2 = 1.5 x [HCO3-] + 8 ± 2
  • Effects: ACIDOSIS DEPRESSES CNS and membrane excitability → confusion → coma; hyperkalemia (K+ exits cells)

Metabolic Alkalosis (pH > 7.45, HCO3- > 26)

Causes: Vomiting (loss of HCl - most common), diuretics, contraction alkalosis, hyperaldosteronism, excess base
  • Compensation: hypoventilation; Expected pCO2 = 0.7 x [HCO3-] + 21 ± 2
  • Effects: ALKALOSIS INDUCES HYPEREXCITABILITY AND TETANY (↓ ionized Ca2+); hypokalemia

Respiratory Acidosis (pH < 7.35, pCO2 > 45)

Cause: hypoventilation - CNS depression (opioids, stroke), neuromuscular disease (GBS, MG), COPD, airway obstruction
  • Compensation: Acute - HCO3- rises 1 per 10 ↑ pCO2; Chronic - HCO3- rises 3.5 per 10 ↑ pCO2
  • Features: headache, confusion, CO2 narcosis, flushing, cyanosis

Respiratory Alkalosis (pH > 7.45, pCO2 < 35)

Cause: hyperventilation - anxiety, hypoxia (PE, altitude), fever, salicylates, pregnancy
  • Compensation: Acute - HCO3- falls 2 per 10 ↓ pCO2; Chronic - HCO3- falls 5 per 10 ↓ pCO2
  • Features: light-headedness, perioral tingling, carpopedal spasm/tetany, palpitations

ABG Interpretation Steps:

  1. pH → Acidosis or Alkalosis?
  2. Match pCO2 or HCO3- to determine if respiratory or metabolic
  3. Check for compensation (never fully normalizes pH)
  4. If metabolic acidosis: calculate Anion Gap

TAKE-HOME MESSAGES

  1. TBW = 60%: ICF 40% (2/3), ECF 20% (1/3)
  2. Na+ = primary ECF cation; K+ = dominant ICF cation - maintained by Na+/K+/ATPase
  3. Edema = ↑hydrostatic pressure OR ↓oncotic pressure OR ↑permeability OR lymphatic obstruction
  4. Tonicity dictates cell volume: Hypotonic → swelling; Hypertonic → dehydration
  5. K+ determines RMP - hypo/hyperkalemia → lethal dysrhythmias
  6. Ca2+ and PO4 reciprocally regulated; PTH is the primary regulator
  7. 20:1 ratio maintains pH - lungs (fast) + kidneys (definitive)
  8. Acidosis depresses CNS; Alkalosis → hyperexcitability + tetany

Download your formatted PDF notes:

Pathophysiology 5 Notes

PDF Document · PDF

This is a shared conversation. Sign in to Orris to start your own chat.