Solve every question in detail referring from ghai book Be my professor and get me exam ready gold standard answers
cd /home/daytona/workspace/attachments/c166d1c6-9ef5-4d37-9010-95b8bba4c7d2 && p…
~/pediatrics-answers/PART1_Ch1_to_Ch9.md
# PEDIATRICS PAST 10 YEARS - GOLD STANDARD EXAM ANSWERS
## Reference: Ghai's Essential Pediatrics (8th Edition)
### Part 1: Chapters 1-9
---
# CHAPTER 1: NORMAL GROWTH AND ITS DISORDERS
## Q1. Growth During Infancy
### Definition
Growth is an increase in physical size of the body as a whole or any of its parts and can be measured quantitatively.
### Parameters of Growth
- **Weight**
- **Height/Length**
- **Head Circumference**
- **Chest Circumference**
---
### WEIGHT
| Age | Weight |
|-----|--------|
| Birth | 2.5 - 3.5 kg (average 3 kg) |
| 5 months | Double birth weight (~6 kg) |
| 1 year | Triple birth weight (~9 kg) |
| 2 years | Quadruple birth weight (~12 kg) |
**Rate of gain:**
- 0-3 months: ~30 g/day (900 g/month)
- 3-6 months: ~20 g/day (600 g/month)
- 6-9 months: ~15 g/day (450 g/month)
- 9-12 months: ~12 g/day (360 g/month)
**Note:** Physiological weight loss of 5-10% occurs in first 3-5 days of life, regained by day 7-10.
---
### LENGTH/HEIGHT
| Age | Length |
|-----|--------|
| Birth | ~50 cm |
| 1 year | ~75 cm (increases by 25 cm in 1st year) |
| 4 years | ~100 cm (doubles birth length) |
| 2 years | 87 cm |
**Rate of gain:**
- 1st year: 25 cm total
- 1st quarter: 10 cm
- 2nd quarter: 6 cm
- 3rd quarter: 5 cm
- 4th quarter: 4 cm
- 2nd year: 12 cm
- 3rd year onwards: ~6 cm/year
---
### HEAD CIRCUMFERENCE
| Age | Head Circumference |
|-----|--------------------|
| Birth | 34 cm |
| 3 months | 40 cm |
| 6 months | 43 cm |
| 1 year | 46 cm |
| 2 years | 48 cm |
| 5 years | 50 cm |
| Adult | 56-57 cm |
**Rate:** Increases 2 cm/month for first 3 months, then 1 cm/month for next 9 months.
---
### CHEST CIRCUMFERENCE
- Birth: 32 cm (2 cm less than HC)
- 1 year: Equal to HC (~46 cm)
- After 1 year: Chest > Head circumference
---
### BRAIN GROWTH
- At birth: Brain is 25% of adult weight
- At 1 year: 50% of adult weight
- At 2 years: 75% of adult weight
- At 5 years: 90% of adult weight
---
# CHAPTER 2: NORMAL AND ABNORMAL DEVELOPMENT
## Q1. Growth and Development in the First Year of Life
### Definitions
- **Growth:** Increase in physical size
- **Development:** Increase in skill/function (myelination dependent)
### Domains of Development
1. Gross motor
2. Fine motor/Adaptive
3. Language/Personal-social
4. Personal-social
---
### DEVELOPMENTAL MILESTONES - FIRST YEAR (Ghai Table)
| Age | Gross Motor | Fine Motor | Language | Personal-Social |
|-----|-------------|------------|----------|-----------------|
| **1 month** | Raises chin off surface | Follows to midline | Social smile (exogenous) | Regards face |
| **3 months** | Holds head steady; no head lag | Holds rattle briefly | Coos, vocalizes | Recognizes mother |
| **6 months** | Sits with support; rolls over | Palmar grasp; transfers hand to hand | Monosyllables (ma, ba, da) | Recognizes strangers |
| **9 months** | Stands with support; crawls | Pincer grasp (inferior) | "Dada/Mama" non-specifically | Waves bye-bye |
| **12 months** | Stands alone momentarily; walks with one hand held | Neat pincer grasp | "Dada/Mama" specifically; 2-3 words | Plays pat-a-cake |
---
### KEY MILESTONES TO MEMORIZE
- **Social smile:** 6 weeks (exogenous = in response to mother's smile)
- **Head control:** Complete by 4 months (no head lag at 4 months)
- **Sits without support:** 7-8 months
- **Stands alone:** 11-12 months
- **Walks alone:** 13 months (range: 11-15 months)
- **Pincer grasp:** 9-10 months
---
## Q2. Milestones at 3 Years of Age
### Gross Motor
- Rides tricycle
- Climbs stairs with alternating feet
- Runs well, no falling
- Stands on one foot for 3 seconds
### Fine Motor
- Copies a circle (O)
- Builds a tower of 9 cubes
- Draws a cross (+) - some do at 3.5 years
### Language
- Speaks in sentences of 3+ words
- Vocabulary of 250+ words
- Gives first and last name
- Knows age and sex
### Personal-Social
- Feeds self completely
- Dresses and undresses with supervision
- Toilet trained (daytime)
- Knows full name
---
## Q3. Milestones at 1 Year of Age
| Domain | Milestone |
|--------|-----------|
| Gross Motor | Stands alone; walks with one hand held |
| Fine Motor | Neat pincer grasp; releases objects |
| Language | 2-3 meaningful words + "dada/mama" specifically |
| Personal-Social | Waves bye-bye; plays pat-a-cake |
**Anthropometric data at 1 year:**
- Weight: 9 kg (triple birth weight)
- Length: 75 cm
- Head circumference: 46 cm
- Chest circumference: 46 cm (equals HC)
---
## Q4. Normal Developmental Milestones of a 5-Year-Old Child
### Gross Motor
- Skips on alternate feet
- Stands on one foot for 10 seconds
- Jumps over low obstacles
- Walks backward heel-to-toe
### Fine Motor
- Copies a triangle (△)
- Draws a recognizable man with at least 6 parts
- Uses scissors skillfully
- Prints name
### Language
- Vocabulary of 2000+ words
- Speaks in grammatically correct sentences
- Tells a long story
- Defines words by use
### Personal-Social
- Dresses and undresses completely
- Names 4 colors
- Counts 10 objects
- No more separation anxiety
---
## Q5. Clinical Features and Management of Breath Holding Spells
### Definition
Paroxysmal events in young children (6 months - 6 years) precipitated by emotional upset (anger, frustration, pain) characterized by breath holding in expiration.
### Types
**1. Cyanotic (more common):**
- Precipitated by frustration/anger
- Child cries vigorously → holds breath in expiration → cyanosis → loss of consciousness → tonic-clonic movements → recovery
**2. Pallid (less common):**
- Precipitated by sudden fright/pain
- Child startles → brief cry or no cry → pallor → loss of consciousness → bradycardia
### Clinical Features
- Age: 6 months - 6 years (peak: 2 years)
- Always triggered by an event
- Self-limiting (<1 minute usually)
- No post-ictal state
- Normal neurological examination
- EEG normal
### Diagnosis
- Clinical diagnosis
- EEG: Normal
- ECG: May show prolonged QTc in pallid type
### Management
**Acute:**
- Place child supine
- Cold water on face (stimulates vagal activity)
- Do NOT perform mouth-to-mouth
- Most resolve spontaneously
**Long-term:**
- Reassure parents - benign condition, outgrows by age 6
- Avoid reinforcement - do not reward the behavior
- Iron therapy: If iron deficiency present (reduces frequency)
- Atropine: For severe pallid type
**Prognosis:** Self-limited; resolves by age 6 years; NO increased risk of epilepsy
---
## Q6. Enuresis / Nocturnal Enuresis
### Definition
- **Enuresis:** Involuntary voiding of urine at an age when bladder control is normally expected (>5 years)
- **Nocturnal enuresis:** Bed-wetting at night; most common form
- **Primary:** Child has never achieved dryness
- **Secondary:** Child was dry for at least 6 months before wetting recurs
### Epidemiology
- 10% of 6-year-olds
- 5% of 10-year-olds
- 1% of adults
- Male:Female = 2:1
### Etiology
1. **Maturational delay** (most common) - delayed bladder maturation
2. Genetic: Strong family history
3. Deep sleep arousal disorder
4. Reduced functional bladder capacity
5. Reduced nocturnal ADH secretion
6. Psychological: Secondary enuresis
7. Organic: UTI, diabetes insipidus, diabetes mellitus, spina bifida
### Clinical Features
- History: Pattern, frequency, associated daytime symptoms, family history, stressors
- Examination: Spine, genitalia, abdomen (palpable bladder?)
- Investigations: Urine R/M, urine culture, blood glucose, renal ultrasound if indicated
### Management (Treatment of Nocturnal Enuresis)
**Non-pharmacological (first line):**
1. **Motivational therapy:** Star chart - reward dry nights
2. **Fluid restriction:** Reduce fluid after 6 PM; adequate fluid in day
3. **Bladder training:** Timed voiding every 2-3 hours; retention control training
4. **Enuresis alarm (most effective long-term):** Bell and pad method - moisture sensor triggers alarm; wakes child → conditions arousal; response rate 70-80%; takes 3-6 months
5. Lifting and waking at fixed times
**Pharmacological:**
1. **Desmopressin (DDAVP)** - first-line pharmacotherapy
- Synthetic ADH analog
- Dose: 0.2 mg oral at bedtime OR 20 mcg intranasal
- Works within days; relapse on stopping
- Do NOT use with excessive fluid intake (hyponatremia risk)
2. **Imipramine (TCA):**
- Dose: 25 mg (<8 yr), 50 mg (>8 yr) at bedtime
- Mechanism: Anticholinergic + ADH-like effect + alters sleep
- Not first-line due to cardiac toxicity risk
3. **Oxybutynin:** If overactive bladder component
**Key points for exam:**
- Alarm therapy is most effective long-term (lowest relapse rate)
- Desmopressin is best for short-term/situational use
- Imipramine has highest relapse rate on stopping
- Always reassure family - spontaneous resolution in ~15%/year
---
## Q7. Attention Deficit Hyperactivity Disorder (ADHD)
### Definition
A neurodevelopmental disorder characterized by persistent inattention and/or hyperactivity-impulsivity that interferes with functioning.
### DSM-5 Criteria (simplified)
- Symptoms present in ≥2 settings (school + home)
- Onset before age 12 years
- Duration ≥6 months
- ≥6 symptoms of inattention AND/OR ≥6 symptoms of hyperactivity-impulsivity
### Types
1. Predominantly Inattentive
2. Predominantly Hyperactive-Impulsive
3. Combined (most common)
### Clinical Features
**Inattention:**
- Short attention span
- Easily distracted
- Loses things
- Forgets instructions
- Does not complete tasks
**Hyperactivity:**
- Fidgets, squirms
- Leaves seat
- Runs or climbs excessively
- Cannot play quietly
- Talks excessively
**Impulsivity:**
- Blurts out answers
- Cannot wait turn
- Interrupts
### Associated Conditions
- Learning disabilities (20-30%)
- Conduct disorder
- Oppositional defiant disorder
- Anxiety/depression
- Sleep problems
### Management
**Behavioral therapy (all ages, especially <6 years):**
- Parent training
- Social skills training
- Educational intervention (IEP)
**Pharmacological (>6 years):**
*Stimulants (first-line):*
- **Methylphenidate (Ritalin):** 5-10 mg BID/TID; CNS stimulant; increases dopamine/norepinephrine
- **Amphetamines (Adderall)**
*Non-stimulants:*
- **Atomoxetine:** Selective NE reuptake inhibitor; useful if stimulants fail or tics present
- **Clonidine/Guanfacine:** α2 agonists; useful with tics or sleep problems
**Monitoring:** Height, weight (stimulants reduce appetite), BP, HR
---
# CHAPTER 3: ADOLESCENT HEALTH
## Q1. Adolescence - Problems and Management
### Definition
Period of transition from childhood to adulthood (10-19 years per WHO).
### Stages
- Early: 10-13 years (puberty onset)
- Middle: 14-16 years (identity formation)
- Late: 17-19 years (mature personality)
### Pubertal Changes
**Girls (Tanner staging):**
- B1: Prepubertal
- B2: Breast budding (first sign; mean age 10.5 years)
- B3-B4: Progressive breast development
- B5: Adult breast
- Menarche: Usually at B3-B4 (mean age 12.5 years)
**Boys:**
- Testicular enlargement (first sign; >4 mL = beginning of puberty; mean age 11.5 years)
- Penile growth
- Pubic hair
- Voice change
- Spermarche (first ejaculation)
### Problems of Adolescence
**1. Nutritional:**
- Iron deficiency anemia (especially girls)
- Calcium/Vitamin D deficiency
- Obesity
- Eating disorders (anorexia nervosa, bulimia)
**2. Psychological:**
- Identity crisis
- Depression
- Suicide (2nd leading cause of adolescent death)
- Schizophrenia onset
**3. Social:**
- Peer pressure
- Substance abuse (alcohol, tobacco, drugs)
- School dropout
- Juvenile delinquency
**4. Sexual/Reproductive:**
- Early sexual activity
- STIs including HIV
- Teen pregnancy
- Contraception issues
**5. Accidents and injuries**
### Management Principles
1. **HEADSS assessment:** Home, Education, Activities, Drugs, Sex, Suicide
2. Confidentiality and trust
3. Comprehensive counseling
4. Nutrition education
5. Life skills education
6. Safe sex education
7. ARSH (Adolescent Reproductive and Sexual Health) - Government program
---
# CHAPTER 4: FLUID AND ELECTROLYTE DISTURBANCE
## Q1. Management of a Child with Hyperkalemia
### Definition
Serum K+ >5.5 mEq/L
### Causes in Children
- Renal failure (most common)
- Metabolic acidosis
- Adrenal insufficiency (Addison's, CAH)
- Tissue destruction (burns, rhabdomyolysis)
- Hemolysis
- Pseudohyperkalemia (hemolyzed sample)
- Excess K+ intake
- Drugs: Spironolactone, ACE inhibitors
### Clinical Features
- Usually asymptomatic until severe
- Weakness, paralysis
- ECG changes (most important for management)
### ECG Changes (in order of severity):
1. Peaked T waves (earliest)
2. Prolonged PR interval
3. Widened QRS
4. Sine wave pattern
5. Ventricular fibrillation/Asystole (if untreated)
### Management
**Step 1: Stabilize the myocardium**
- **Calcium gluconate 10%:** 0.5 mL/kg IV over 2-3 minutes (max 10 mL)
- Onset: Immediate; Duration: 30-60 minutes
- Indicated when ECG changes present or K+ >7 mEq/L
**Step 2: Shift K+ into cells**
- **Sodium bicarbonate:** 1-2 mEq/kg IV over 30 min
- **Glucose + Insulin:** Glucose 0.5 g/kg + Insulin 0.1 U/kg IV
- **Salbutamol (albuterol):** 2.5-5 mg nebulized
**Step 3: Remove K+ from body**
- **Kayexalate (Sodium polystyrene sulfonate):** 1 g/kg PO or PR
- **Furosemide:** 1-2 mg/kg IV (if kidneys functional)
- **Dialysis:** If K+ >6.5 with renal failure or unresponsive to above
**Step 4: Stop K+ intake**
- Remove all potassium from IV fluids and diet
- Treat underlying cause
---
# CHAPTER 5: NUTRITION
## Q1. Management of a Child with Marasmus
### Definition
Severe acute malnutrition (SAM) due to deficiency of both protein AND calories.
### Clinical Features of Marasmus
- Severe wasting: weight <60% of expected for age
- "Old man face" / "Baggy pants" - loss of subcutaneous fat
- Visible ribs and intercostal muscles
- Skin: loose, wrinkled, no edema
- Hair: may be thin, sparse but not discolored
- Alert, irritable, "wizened" appearance
- Subnormal temperature
- Apathy, anorexia
### WHO 10-Step Management Protocol
**PHASE 1: Stabilization (Days 1-7)**
**Step 1: Treat/prevent hypoglycemia**
- Blood glucose <3 mmol/L = hypoglycemia
- Give 50 mL of 10% glucose/sucrose water orally
- Feed every 2-3 hours (do NOT fast)
- If unconscious: 10% glucose 5 mL/kg IV bolus
**Step 2: Treat/prevent hypothermia**
- Temperature <35.5°C = hypothermia
- Keep warm: warm room, Kangaroo care, blankets
- Feed immediately
- Avoid wet clothing/diapers
**Step 3: Treat/prevent dehydration**
- Use ReSoMal (Rehydration Solution for Malnutrition) - NOT standard ORS
- ReSoMal: 70-100 mL/kg over 12 hours (5 mL/kg every 30 min for 2 hours, then 5-10 mL/kg/hr)
- IV fluids ONLY if shock; use with extreme caution (risk of cardiac failure)
**Step 4: Correct electrolyte imbalance**
- ALL malnourished children have excess body Na+ and deficit of K+ and Mg2+
- Give K+: 3-4 mEq/kg/day, Mg2+: 0.4-0.6 mEq/kg/day
- Do NOT give diuretics for edema
- Use low-sodium foods/fluids
**Step 5: Treat/prevent infection**
- Even without fever, assume infection present
- Routine: Amoxicillin 25 mg/kg BD for 5 days (if no complications)
- If complications: Ampicillin 50 mg/kg IM 6-hourly + Gentamicin 7.5 mg/kg IM daily for 7 days, then Amoxicillin for 5 days
- Add Metronidazole 7.5 mg/kg TDS for 7 days
**Step 6: Correct micronutrient deficiencies**
- Vitamin A on Day 1 (only if no edema):
- <6 months: 50,000 IU
- 6-12 months: 100,000 IU
- >12 months: 200,000 IU
- Folic acid: 5 mg on Day 1, then 1 mg/day
- Zinc: 2 mg/kg/day
- Copper: 0.3 mg/kg/day
- Iron: NOT in stabilization phase (promotes free radical injury)
**Step 7: Initiate refeeding (Starter F-75 diet)**
- F-75: 75 kcal/100 mL, 0.9 g protein/100 mL
- Give 100 mL/kg/day divided into 12 feeds (every 2 hours)
- Gradually reduce frequency to 8, then 6 feeds
**PHASE 2: Rehabilitation (Weeks 2-6)**
**Step 8: Achieve catch-up growth (F-100 diet)**
- F-100: 100 kcal/100 mL, 2.9 g protein/100 mL
- Increase gradually to 150-220 mL/kg/day
- Target: >10 g/kg/day weight gain
- Now add iron: 3 mg/kg/day
**Step 9: Provide sensory stimulation and emotional support**
- Tender loving care
- Play therapy
- Structured activities
**Step 10: Prepare for follow-up after recovery**
- Discharge when W/H >-2 SD, no edema, no illness
- Education of mother
- Follow up at 1, 2, 4 weeks
---
## Q2 & Q3. Complications of Severe Malnutrition/PEM
1. **Hypoglycemia** (most dangerous immediate complication)
2. **Hypothermia**
3. **Infections:** Pneumonia, gastroenteritis, septicemia, TB
4. **Severe dehydration** (ReSoMal rather than ORS)
5. **Cardiac failure** (overenthusiastic IV fluids)
6. **Anemia**
7. **Vitamin deficiencies:** Xerophthalmia (Vit A), Scurvy (Vit C), Rickets
8. **Electrolyte disturbances:** Hypokalemia, Hypomagnesemia, Hyponatremia
9. **Dysbacteriosis / SBBO**
10. **Refeeding syndrome:** Dangerous fall in PO4, K+, Mg2+ when feeding started
11. **Lactose intolerance** - secondary
12. **Edema** in kwashiorkor
13. **Long-term:** Stunting, cognitive impairment
---
## Q4. Principles of Management of PEM
**Principle 1: Identify and treat life-threatening conditions first**
(Hypoglycemia, Hypothermia, Dehydration, Infection)
**Principle 2: Use WHO 10-step protocol**
**Principle 3: Phased nutritional rehabilitation**
- Phase 1 (Stabilization): F-75 diet (low energy, low protein)
- Phase 2 (Rehabilitation): F-100 diet (high energy, high protein)
- Phase 3 (Follow-up): Transition to family foods
**Principle 4: Do NOT:**
- Give IV fluids unless in shock (danger of cardiac failure)
- Give diuretics for edema
- Give iron in stabilization phase
- Overfeed initially (refeeding syndrome)
**Principle 5: Micronutrient supplementation** (VIZFMC mnemonic)
**Principle 6: Sensory stimulation and psychosocial support**
**Principle 7: Mother education and follow-up**
---
## Q5. Classification of PEM
### WHO/Wellcome Trust Classification (Weight for Age):
| Grade | % Expected Weight (IAP) | Wellcome Trust |
|-------|------------------------|----------------|
| Normal | >80% | - |
| Grade I (Mild) | 71-80% | - |
| Grade II (Moderate) | 61-70% | Underweight |
| Grade III (Severe) | 51-60% | Marasmus (no edema) |
| Grade IV (Very Severe) | <50% | Marasmus |
| + Edema = | Any grade | Kwashiorkor (with edema) |
### IAP Classification (Indian Academy of Pediatrics):
Based on weight for age as % of expected weight (median NCHS or IAP standards)
| Grade | % Expected Weight |
|-------|------------------|
| Normal | >80% |
| Grade I | 71-80% |
| Grade II | 61-70% |
| Grade III | 51-60% |
| Grade IV | <50% |
### WHO SAM Criteria (current standard):
- W/H <-3 SD OR
- MUAC <115 mm OR
- Bilateral pitting edema
---
## Q6. Indian Reference Standard / Road to Health Growth Curve
**Gomez classification** - uses Weight for Age % of standard:
- Normal: >90%
- Grade I: 75-90%
- Grade II: 60-75%
- Grade III: <60%
**Reference standard for Indian children:**
- **IAP Growth Charts 2015** - used for <5 years
- **WHO Child Growth Standards 2006** - also used
- **ICMR standards** - older reference
**Road to Health (Growth) Card:**
- Shows weight plotted against age
- "Road" = the growth channel between 60-80% of median
- Child "on road" = normal
- Child "off road" = malnourished
- Used in ICDS (Integrated Child Development Services) and NHP
---
## Q7. Lactose Intolerance
### Definition
Inability to digest lactose due to deficiency of intestinal lactase enzyme.
### Types
1. **Primary:** Genetic/racial - late-onset adult type (most common worldwide)
2. **Secondary:** After gastroenteritis, malnutrition, celiac disease, Crohn's (most common in India)
3. **Congenital:** Rare, presents at birth
### Pathogenesis
Lactose → not digested → passes to colon → bacterial fermentation → short-chain fatty acids + H2, CO2, CH4 → osmotic diarrhea + gas
### Clinical Features
- Frothy, watery, acidic stools (pH <5.5)
- Flatulence, bloating, abdominal cramps
- Symptoms appear within 30 min - 2 hours of milk consumption
- No malabsorption of other nutrients
### Diagnosis
1. **Hydrogen breath test** (gold standard) - >20 ppm rise diagnostic
2. **Stool pH <5.5** + reducing substances in stool
3. Lactose tolerance test
4. Jejunal biopsy (lactase assay) - definitive
### Management
- **Secondary lactose intolerance:** Lactose-free diet temporarily; reintroduce gradually
- **Lactase enzyme supplements** (Lactaid)
- Yogurt/curd tolerated (bacteria partially digest lactose)
- Hard cheese tolerated
- Small frequent feeds of milk tolerated better
---
## Q8. National Nutritional Anemia Control Program (NNACP)
### Launched: 1970; Now part of National Health Mission
### Target Groups
1. Children 6-60 months
2. Adolescent girls (10-19 years) - Weekly Iron Folic Acid Supplementation (WIFS)
3. Pregnant and lactating women
### Interventions
1. **Iron supplementation:**
- 6-60 months: 1 mg/kg/day elemental iron (weekly syrup)
- 5-10 years: 45 mg/week
- 10-19 years (adolescents): 60 mg/week + 500 mcg folic acid
2. **Dietary diversification** - promoting iron-rich foods
3. **Fortification** - iron-fortified food programs
4. **Control of infection** - deworming (Albendazole 400 mg twice yearly)
5. **Health education**
### Newer Program: RBSK (Rashtriya Bal Swasthya Karyakram) includes anemia screening
---
# CHAPTER 6: MICRONUTRIENTS IN HEALTH AND DISEASE
## Q1. Clinical Features of Nutritional Rickets
### Definition
Disease of growing bone due to deficiency of Vitamin D (and/or calcium) causing failure of mineralization of osteoid.
### Pathophysiology
Vitamin D deficiency → ↓ Ca absorption → ↓ serum Ca → ↑ PTH → ↑ bone resorption + ↑ phosphate excretion → hypophosphatemia → failure of mineralization of osteoid at metaphysis
### Clinical Features
**General:**
- Age: 4 months - 2 years (peak 6-12 months)
- Restlessness, delayed teething
**Skeletal manifestations:**
*Head:*
- **Craniotabes** (earliest sign): Softening of skull bones, "Ping-pong ball" feel
- **Frontal bossing:** Prominence of frontal and parietal bones ("hot cross bun")
- **Delayed closure of anterior fontanelle**
- Delayed dentition, enamel hypoplasia
*Chest:*
- **Rachitic rosary:** Swelling at costochondral junction (beading)
- **Harrison's sulcus (groove):** Horizontal groove at diaphragm insertion
- **Pigeon chest** (pectus carinatum) or funnel chest
*Spine:*
- Kyphosis, scoliosis, lordosis
*Limbs:*
- **Widening of wrists and ankles** (most characteristic)
- **Genu varum (bow legs)** in walking child
- **Genu valgum (knock knees)** later
- **Windswept deformity**
**Muscular hypotonia:** Pot belly, constipation, frog posture
**Tetany (due to hypocalcemia):**
- Carpopedal spasm
- Convulsions
- Laryngospasm (most dangerous)
- Chvostek's sign, Trousseau's sign
### Laboratory Findings
| Parameter | Nutritional Rickets |
|-----------|---------------------|
| Serum Ca | Low or normal |
| Serum PO4 | Low (hallmark) |
| Serum ALP | Very high (best screening) |
| PTH | High |
| 25(OH)D | Low (<20 ng/mL) |
| Urine Ca | Very low |
### X-ray Findings
- **Cupping, fraying, splaying of metaphysis** (most characteristic)
- Widened zone of provisional calcification
- Coarse trabecular pattern
- "Looser's zones" (pseudofractures) in severe/adults
---
## Q2. Diagnosis and Treatment of Nutritional Rickets
### Diagnosis
1. **Clinical:** As above
2. **X-ray wrist** (most commonly done): Fraying, splaying, cupping of lower radius/ulna
3. **Labs:** Low PO4, High ALP, low/normal Ca, low 25(OH)D
### Treatment
**General:**
- Adequate sunlight exposure (30 min/day with 40% body surface)
- Dietary modification
**Vitamin D:**
- **Stoss therapy (single large dose):** 3-6 lakh IU Vitamin D3 IM once
- Indicated when compliance is poor OR malabsorption
- **Daily therapy:** 2000-4000 IU/day for 2-3 months
**Calcium supplementation:**
- 30-75 mg/kg/day of elemental calcium
- Essential in calcium-deficiency rickets (common in India)
**Follow-up:**
- Radiological healing: 2-4 weeks (earliest sign = line of calcification at metaphysis)
- ALP normalizes in 3-4 months
- Deformities: Correct spontaneously if <2 years; surgery if >4 years
---
## Q3. Refractory Rickets (Vitamin D Resistant Rickets)
### Definition
Rickets that does not respond to conventional doses of Vitamin D (physiological doses).
### Causes
**1. X-linked Hypophosphatemic Rickets (most common type)**
- Mutation in PHEX gene → ↑ FGF23 → ↑ phosphate excretion + ↓ 1α-hydroxylase
- X-linked dominant
- Features: Rickets, short stature, phosphaturia, normal Ca, normal PTH
- Treatment: Oral phosphate (Joulie's solution) + Calcitriol
**2. Vitamin D Dependent Rickets Type I (VDDR-I)**
- Autosomal recessive
- Deficiency of 25(OH)D-1α-hydroxylase
- Features: Early onset severe rickets, hypocalcemia, convulsions
- Treatment: Calcitriol (active Vitamin D) 0.5-1 mcg/day
**3. Vitamin D Dependent Rickets Type II (VDDR-II)**
- Vitamin D receptor mutation (end-organ resistance)
- Features: Alopecia + severe rickets
- Treatment: High-dose calcitriol + calcium infusion
**4. Renal Tubular Acidosis (RTA)**
- Fanconi syndrome (tubular leak of phosphate, glucose, amino acids)
**5. Hepatic rickets** - impaired 25-hydroxylation
---
## Q4. Vitamin K Deficiency in First Weeks of Life (Hemorrhagic Disease of Newborn)
### Renamed: Vitamin K Deficiency Bleeding (VKDB)
### Vitamin K and Coagulation
Vitamin K is required for activation (gamma-carboxylation) of:
- Factors II (prothrombin), VII, IX, X
- Protein C, Protein S
### Classification
| Type | Age | Site | Cause |
|------|-----|------|-------|
| **Early** | 0-24 hours | Internal (brain, abd) | Maternal drugs (warfarin, phenytoin, rifampicin) |
| **Classic** | 2-7 days | Gut, umbilicus, skin | Low Vit K in breast milk; not prophylaxed |
| **Late** | 2 weeks - 3 months | Brain (ICH most common) | Malabsorption, exclusively breastfed without prophylaxis |
### Clinical Features
- Cutaneous: Bruising, petechiae, ecchymoses
- GI: Melena, hematemesis
- Umbilical: Bleeding from stump
- Internal: Intracranial hemorrhage (most dangerous, late type)
- Puncture site oozing
### Investigations
- PT prolonged (most sensitive) → PT/INR elevated
- APTT prolonged
- Platelet count - NORMAL
- Fibrinogen - NORMAL
- Factor VII assay - low
### Treatment
- Vitamin K1 (Phytonadione): 1 mg IV slowly
- Fresh Frozen Plasma (FFP): 10-20 mL/kg for immediate hemostasis
- For ICH: Neurosurgical intervention
### Prophylaxis (CRITICAL)
- **All newborns:** Vitamin K1 1 mg IM at birth (single dose) - most effective
- Oral option: 2 mg at birth + 2 mg at 1 week + 2 mg at 4-6 weeks
- IM injection preferred (oral less effective, especially in breastfed infants)
---
## Q5. Scurvy
### Definition
Vitamin C (ascorbic acid) deficiency
### Age: 6-24 months (when cow's milk or boiled milk substituted for breast milk)
### Pathophysiology
Vitamin C essential for:
- Collagen synthesis (hydroxylation of proline/lysine)
- Maintenance of capillary integrity
- Iron absorption
- Neurotransmitter synthesis
### Clinical Features
**General:**
- Irritability, low-grade fever, anorexia
- Tender legs (pseudoparalysis - "pithed frog" position)
**SPECIFIC SIGNS:**
1. **Scorbutic rosary:** Beading at costochondral junction (differs from rachitic rosary: scorbutic is sharp, "bayonet" deformity)
2. **Subperiosteal hemorrhage:** Painful swollen tender limbs (especially femur)
3. **"Pithed frog" position:** Frog-leg posture due to pain
4. **Bleeding gums** (only in children with erupted teeth)
5. **Corkscrew hairs** (older children/adults)
6. **Perifollicular hemorrhages**
7. **Woody induration** of muscles
8. **Anemia** (hemolytic + iron deficiency)
### X-ray
- Subperiosteal hemorrhage (elevated periosteum)
- "Ground glass" appearance of bone
- Trümmerfeld zone (zone of rarefaction)
- White line of Fränkel (dense metaphyseal line)
- Pelkan spurs
### Treatment
- Vitamin C: 100-200 mg/day orally for 1-2 months
- Dietary advice: Citrus fruits, tomatoes, amla
- Response: Pain relief in 24-48 hours (dramatic)
---
# CHAPTER 7: NEWBORN INFANT
## Q1. Algorithm of Neonatal Resuscitation (NRP - Neonatal Resuscitation Program)
### Preparation
- Warm, dry surface ready
- Equipment checked: suction, O2, bag-mask, medications
- At least one person skilled in neonatal resuscitation present at every delivery
### Steps (ABCD approach)
**A - Airway**
1. Position: Slightly extended "sniffing position"
2. Suction mouth then nose (10-15 seconds maximum)
3. Dry and stimulate (rub back, flick feet)
**B - Breathing (at 30 seconds)**
Evaluate: Breathing? Heart Rate? Color?
**C - Circulation (Chest compressions)**
If HR <60 bpm despite 30 sec of PPV with 100% O2:
- Start chest compressions
- Depth: 1/3 AP diameter
- Rate: 90 compressions + 30 breaths/min (3:1 ratio)
**D - Drugs**
If HR still <60 after 30 sec of adequate PPV + compressions:
- **Epinephrine (Adrenaline):** 0.1-0.3 mL/kg of 1:10,000 IV/IO (preferred) OR 0.5-1 mL/kg ET
- **Volume expander:** Normal saline or O-negative blood 10 mL/kg over 5-10 min (if hypovolemia suspected)
### Decision Tree
```
Birth → Term? Breathing/crying? Good tone?
YES → Routine care (warmth, dry, clear airway)
NO →
Warm, dry, stimulate (Initial steps: 30 sec)
Evaluate HR, Breathing
Breathing, HR>100 → Routine/Supplemental O2
HR <100, Breathing labored/Apnea →
PPV (30 sec)
HR >100 → Post resuscitation care
HR 60-100 → Continue PPV + re-evaluate
HR <60 →
PPV + Chest compressions (30 sec)
HR <60 → Epinephrine
```
### Special Situations
- **Meconium-stained amniotic fluid:** If baby vigorous - routine care; If NOT vigorous - intubate and suction
- **Preterm:** Higher risk, avoid hyperoxia (use air initially)
---
## Q2. Advantages of Breast Feeding (HIGH YIELD - asked 3 times)
### Nutritional Advantages
**1. Ideal composition:**
- **Proteins:** Lactalbumin:casein = 60:40 (cow milk = 20:80); easier to digest
- **Fat:** Rich in unsaturated fatty acids + cholesterol + DHA/AA (brain development); lipase present
- **Carbohydrate:** High lactose → lowers intestinal pH, promotes Lactobacillus bifidus
- **Minerals:** Lower total load → less renal strain; better iron bioavailability (50% vs 10%)
- **Vitamins:** Adequate all except Vitamin K and D
**2. Colostrum (1st 3-5 days):**
- Yellow, thick, low volume
- Rich in secretory IgA (SIgA) - 10x more than mature milk
- Rich in Vitamin A, K, leukocytes, growth factors
- Provides passive immunity to newborn gut
**3. Caloric adequacy:** 67 kcal/100 mL (sufficient for exclusive breastfed baby)
### Immunological/Protective Advantages
1. **SIgA:** Coats GI tract, prevents bacterial/viral adherence
2. **Lactoferrin:** Iron-binding → inhibits bacterial growth (E. coli, Staphylococci)
3. **Lysozyme:** Destroys bacterial cell walls
4. **Bifidus factor:** Promotes Lactobacillus bifidus → acidic pH → inhibits pathogens
5. **Leukocytes (macrophages, lymphocytes):** Active immunity transfer
6. **Complement system**
7. **Anti-infective factors:** Anti-CMV, anti-RSV, anti-rotavirus
**Protective against:**
- Diarrhea (3-4x less)
- RTI (2x less)
- Otitis media
- Meningitis
- NEC (Necrotizing enterocolitis) - very important in preterm
- SIDS (Sudden Infant Death Syndrome)
### Psychological Advantages
- Maternal bonding
- Security for infant
- Emotional development
### Advantages for Mother
- Contraceptive effect (LAM - Lactational Amenorrhea Method - 98% effective if exclusive BF + amenorrhea + <6 months)
- Reduced risk of breast cancer and ovarian cancer
- Faster uterine involution (oxytocin release)
- Weight loss
- Reduced postpartum depression
- Economic advantage
- Environmentally friendly
### Other Advantages
- Always available, right temperature, sterile
- Reduces risk of obesity, T2DM, allergies in child
- Higher IQ scores in breastfed children
---
## Q3. Exclusive Breast Feeding
### Definition
Giving ONLY breast milk - no other fluids, food, or water except oral medications - for the first **6 months** of life.
### Recommendation
- **WHO/IAP/AAP:** Exclusive breastfeeding for 6 months
- Then continue breastfeeding + complementary foods until 2 years or beyond
- Initiate within **1 hour** of birth (including preterm)
### Contraindications to Breastfeeding
**Absolute:**
- Maternal HIV positive (in India - controversial; if PMTCT measures available, some guidelines support BF)
- Maternal active untreated TB (after 2 weeks of therapy, can breastfeed)
- Maternal chemotherapy
- Herpes simplex lesion on breast
- Infant: Galactosemia (cannot digest lactose in breast milk)
**Relative:**
- Hepatitis B (give HBV vaccine + HBIg to baby - can breastfeed)
- Hepatitis C (can breastfeed)
---
## Q4. Low Birth Weight (LBW) Baby
### Definition
**LBW:** Birth weight <2500 g
**VLBW:** Birth weight <1500 g
**ELBW:** Birth weight <1000 g
### Causes
**Preterm (born before 37 weeks):**
- Maternal: Infection, PIH, cervical incompetence, uterine anomaly
- Fetal: Multiple gestation, hydrops
- Placental: Abruption, previa
**Small for Gestational Age (SGA/IUGR):**
- Maternal: Hypertension, anemia, malnutrition, smoking
- Placental: Infarction, insufficiency
- Fetal: TORCH infections, chromosomal anomalies
### Problems of LBW Neonates (asked directly)
1. **Thermal instability/Hypothermia** (most dangerous immediate problem)
2. **Respiratory Distress Syndrome** (preterm, surfactant deficiency)
3. **Hypoglycemia** (poor glycogen stores)
4. **Feeding difficulties** (poor suck-swallow reflex)
5. **Infections** (deficient immunity)
6. **Metabolic bone disease** (osteopenia of prematurity)
7. **NEC** (necrotizing enterocolitis)
8. **Intraventricular hemorrhage** (IVH)
9. **Retinopathy of prematurity** (ROP)
10. **Anemia of prematurity**
11. **Jaundice** (immature liver)
12. **Patent ductus arteriosus** (PDA)
13. **Chronic lung disease** (BPD)
### Management of LBW Baby
**Thermal protection (Priority 1):**
- Dry and warm immediately
- Kangaroo Mother Care (KMC) - skin-to-skin contact
- Incubator/radiant warmer
- Maintain temperature 36.5-37.5°C
**Feeding:**
- Start within 30-60 minutes of birth
- Weight >1800 g: Direct breastfeeding
- 1500-1800 g: Cup/spoon/Paladai feeding
- <1500 g: NG tube feeding
- Expressed breast milk is preferred
- Preterm formula if EBM unavailable
**Thermoregulation at home (Kangaroo care):**
- Skin-to-skin contact with mother/father
- Cover both with warm cloth
- Hat on baby's head
- Warm room (25-28°C)
- Regular feeding 8-12 times/day
**Danger signs (tell mother):**
1. Difficult breathing/fast breathing
2. Hypothermia (<36.5°C)
3. Poor feeding/refuses to feed
4. Fever (>38°C)
5. Jaundice (yellow eyes/skin)
6. Bleeding from anywhere
7. Convulsions
8. Abdominal distension
---
## Q5. Respiratory Distress Syndrome (RDS) / Hyaline Membrane Disease (HMD)
### Etiology
- **Deficiency of surfactant** (dipalmitoyl phosphatidylcholine)
- Primary: Preterm (<34 weeks most at risk)
- Secondary: Maternal diabetes, perinatal asphyxia, C-section without labor
### Pathogenesis
Surfactant deficiency → high surface tension → alveolar collapse → V/Q mismatch → hypoxia → anaerobic metabolism → metabolic acidosis → surfactant production further impaired → vicious cycle
### Clinical Features
- Onset within 4-6 hours of birth (worsens by 48-72 hours, then improves if survives)
- Tachypnea (>60/min)
- Grunting (auto-PEEP)
- Nasal flaring
- Subcostal/intercostal retractions
- Cyanosis
- Silverman-Anderson score (SAS) used for assessment
### Diagnosis
- **CXR:** Fine reticulogranular (ground glass) pattern + air bronchograms + bell-shaped chest
- **Lecithin:Sphingomyelin ratio:** <2 = risk (amniotic fluid)
- Shake test (Clements bubbles test): Absent bubbles = mature
### Management
**Preventive (antenatal):**
- **Antenatal corticosteroids:** Betamethasone 12 mg IM x2 doses 24h apart (or Dexamethasone)
- Given 24h - 7 days before expected preterm delivery
- Accelerates surfactant production in lung
- Reduces RDS by 50%, reduces IVH, NEC
**At birth:**
- Stabilize with CPAP (Continuous Positive Airway Pressure) - first line
- Target SpO2: 90-95%
**Surfactant replacement therapy (SRT):**
- **Poractant alfa (Curosurf):** 200 mg/kg (1st dose) intratracheally
- **Beractant (Survanta)**
- Given via endotracheal tube
- Most effective within first 2 hours (rescue surfactant)
- Results in dramatic improvement (CXR improves within hours)
- INSURE technique: Intubate → Surfactant → Extubate to CPAP
**Supportive:**
- CPAP or mechanical ventilation
- Maintain temperature
- IV glucose, fluids
- Antibiotics pending culture
---
## Q6. Neonatal Jaundice
### Normal Bilirubin Metabolism
- Bilirubin derived from Hb breakdown
- Unconjugated (indirect) → liver → conjugated (direct) → bile → gut → stercobilinogen → urobilinogen
### Physiological Jaundice
- Appears **after 24 hours** (day 2-3)
- Peaks day 3-5
- Resolves by day 7 (term) or day 14 (preterm)
- Maximum TSB: 12 mg/dL (term), 14 mg/dL (preterm)
- Predominantly unconjugated
**Causes of physiological jaundice:**
- Increased RBC breakdown (higher Hb, fetal Hb, shorter RBC lifespan)
- Immature liver conjugation (low glucuronyl transferase)
- Increased enterohepatic circulation
### Causes of Neonatal Jaundice on Day 1 (Pathological - ALWAYS pathological)
1. **Hemolytic disease of newborn (HDN):**
- Rh incompatibility (most severe)
- ABO incompatibility (most common)
- Minor blood group incompatibility
2. **G6PD deficiency**
3. **Congenital infections (TORCH)**
4. **Drugs** (maternal sulfonamides)
### Causes of Persistent Neonatal Jaundice (>14 days term, >21 days preterm)
1. **Breast milk jaundice** (most common benign cause)
2. **Hypothyroidism** (must exclude!)
3. **Hemolytic anemias** (G6PD, spherocytosis)
4. **Biliary atresia** (conjugated - surgical emergency)
5. **Neonatal hepatitis**
6. **Galactosemia**
7. **Sepsis**
8. **Polycythemia**
### Management of Neonatal Hyperbilirubinemia
**Assessment:**
- Gestational age, hours of life, risk factors
- Total serum bilirubin (TSB) or TcB
- Transcutaneous bilirubinometer (screening)
**Treatment thresholds:** Based on AAP/NNF nomograms (age in hours + risk factors)
**Phototherapy:**
- Most common treatment
- Wavelength: 450-490 nm (blue light)
- Converts unconjugated bilirubin to water-soluble photoisomers (lumirubin, configurational isomers) excreted in urine and bile without conjugation
- Naked baby except eye patches and diaper
- Distance from light: 30-45 cm
- Increase fluid intake (increased insensible loss)
- Complications: Bronze baby syndrome (if direct bili elevated), dehydration, diarrhea, hypocalcemia, DNA damage (theoretical)
**Exchange Transfusion:**
- Double volume exchange (2 x 80 mL/kg = 160 mL/kg)
- Indications: TSB 5 mg/dL above phototherapy level, signs of bilirubin encephalopathy, hydrops
- Removes bilirubin + sensitized RBCs + antibodies
- Complication: Infection, air embolism, hypoglycemia, electrolyte disturbances, cardiac arrhythmia
**Intravenous Immunoglobulin (IVIG):**
- For Rh and ABO incompatibility
- Blocks Fc receptors → reduces hemolysis
- 0.5-1 g/kg IV over 2 hours
### Management of Baby with TSB 10 mg/dL at 24 Hours
- **At 24 hours with TSB 10 mg/dL = PATHOLOGICAL**
- Evaluate: Blood group (mother + baby), DCT/Coombs test, CBC, reticulocyte count
- Start phototherapy IMMEDIATELY (don't wait)
- TSB 10 mg/dL at 24h is above phototherapy threshold for ANY gestation
- Follow-up TSB every 4-6 hours
---
## Q7. Phototherapy - Mechanism, Indications, Complications
### Mechanism
Three photochemical reactions:
1. **Configurational isomerization:** 4Z-15Z bilirubin → 4Z-15E bilirubin (reversible, main pathway)
2. **Structural isomerization:** Bilirubin → Lumirubin (irreversible, most effective pathway)
3. **Photo-oxidation:** Bilirubin → colorless polar compounds (slowest)
### Types
- Conventional fluorescent (phototherapy lamps)
- LED phototherapy (preferred - narrow spectrum blue, durable, less heat)
- Fiber optic blankets (Bili-blanket)
- Intensive phototherapy: Multiple lights + fiber optic blanket simultaneously
### Indications (NNF/AAP nomogram-based)
- For term baby: Phototherapy if TSB ≥ threshold for age in hours
- At 24h: ~10-12 mg/dL
- At 48h: ~15-18 mg/dL
- At 72h: ~18-20 mg/dL
- Adjust lower for preterm, sick, risk factors
### Complications
1. **Bronze baby syndrome:** If direct bilirubin elevated - skin turns grey-brown
2. **Loose green stools** (bilirubin photoproducts in gut)
3. **Dehydration** (increased insensible water loss)
4. **Hypocalcemia**
5. **Retinal damage** (hence eye patches essential)
6. **Skin rash** (erythematous)
7. **Gonadal damage** (diaper to cover genitalia)
8. **Overheating**
9. **Separation anxiety** (mother-infant separation)
---
## Q8. APGAR Score
| Sign | 0 | 1 | 2 |
|------|---|---|---|
| **A**ppearance (color) | Blue all over | Body pink, extremities blue | All pink |
| **P**ulse (HR) | Absent | <100 | >100 |
| **G**rimace (reflex) | No response | Grimace | Cry, sneeze, cough |
| **A**ctivity (tone) | Limp | Some flexion | Active movement |
| **R**espiration | Absent | Weak, irregular | Strong cry |
**Scoring:**
- 7-10: Normal
- 4-6: Moderate depression
- 0-3: Severe depression (needs immediate resuscitation)
**Timing:** At 1 minute and 5 minutes (5 min more predictive of outcome)
**If <7 at 5 min:** Continue at 10, 15, 20 min
---
# CHAPTER 8: IMMUNITY AND IMMUNIZATION
## Q1. Acellular Pertussis Vaccine vs Whole Cell Pertussis Vaccine
| Feature | Whole Cell (wP) | Acellular (aP) |
|---------|-----------------|----------------|
| **Composition** | Killed whole B. pertussis | Purified subunit antigens (PT, FHA, pertactin, fimbriae) |
| **Efficacy** | 90-95% | 80-85% |
| **Side effects** | More: Fever, local reaction, HHE, febrile convulsions | Fewer: Less fever, less local reaction |
| **Serious side effects** | RARE: Hypotonic-hyporesponsive episode (HHE), encephalopathy | Very rare |
| **Cost** | Cheaper | Expensive |
| **Use in India** | Still used in UIP | DTaP in private practice |
### Advantages of Acellular over Whole Cell:
1. Fewer febrile reactions
2. Fewer local reactions (redness, swelling)
3. Lower risk of HHE (Hypotonic Hyporesponsive Episode)
4. Lower risk of febrile seizures
5. Can be given to older children and adults (Tdap)
6. Better tolerated
### Disadvantages of Acellular:
1. More expensive
2. Slightly lower efficacy
3. Waning immunity faster
---
## Q2. MMR Vaccine - Importance at 13-15 months
### Composition
- **M**easles: Schwarz or Edmonston-Zagreb strain (live attenuated)
- **M**umps: Jeryl Lynn or Urabe strain (live attenuated)
- **R**ubella: RA 27/3 strain (live attenuated)
### IAP Immunization Schedule
- 1st dose: **9-12 months** (Measles only or MMR)
- 2nd dose: **15-18 months** (MMR)
### Importance at 13-15 months:
1. **By 15 months, maternal antibodies have waned** completely (passive maternal antibodies can interfere before this)
2. **Immune system is mature enough** for good response to all 3 antigens
3. **Before school entry** - reduces transmission in high-contact settings
4. **MMR (vs MR alone):** Adds mumps protection (orchitis, meningitis) and rubella protection (congenital rubella syndrome prevention)
5. **Two-dose schedule** ensures coverage of primary vaccine failures (5% fail after 1st dose)
### Contraindications to MMR
- Immunocompromised (HIV with CD4 <15%, malignancy, steroids)
- Allergy to neomycin (anaphylaxis)
- Pregnancy
- Recent blood transfusion or Ig (wait 3-6 months)
### Side Effects
- Fever (day 5-12)
- Rash (day 7-10)
- Parotitis (mumps component)
- Arthralgia (rubella component)
- Febrile seizures (1 in 3000)
- Idiopathic thrombocytopenic purpura (ITP): 1 in 25,000
- **NOT associated:** Autism (Wakefield's paper was retracted; multiple large studies disprove this)
---
## Q3. Conjugate Vaccines
### Definition
Vaccines where the polysaccharide antigen of bacteria is **conjugated (chemically linked)** to a carrier protein to convert T-independent response to **T-dependent immune response**.
### Why Needed?
- **Pure polysaccharide vaccines** are T-independent antigens
- No immunological memory
- Poor response in children <2 years (immature spleen)
- No IgG class switching
- **Conjugate vaccines** overcome these limitations
### Examples of Conjugate Vaccines
| Vaccine | Carrier Protein | Used Against |
|---------|----------------|--------------|
| **Hib (Haemophilus influenzae type b)** | TT, CRM197, OMP | Meningitis, epiglottitis |
| **PCV (Pneumococcal)** | CRM197, diphtheria toxoid | Pneumococcal disease |
| **MCV (Meningococcal)** | TT, diphtheria toxoid | Meningococcal disease |
| **Typhoid Vi conjugate (Typbar-TCV)** | TT | Typhoid in <2 years |
### Advantages of Conjugate over Polysaccharide:
1. Effective in <2-year-old children
2. Immunological memory (booster response)
3. IgG production (class switching)
4. Herd immunity
5. Mucosal immunity
6. Reduces carrier state
---
## Q4. Universal Immunization Programme (UIP) - India
### Vaccines under UIP:
| Vaccine | Schedule |
|---------|---------|
| BCG | At birth |
| Hepatitis B | 0, 6, 10, 14 weeks |
| OPV | Birth, 6, 10, 14 weeks + Boosters at 16-24 months |
| IPV | 6 and 14 weeks (2 doses) |
| Pentavalent (DPT+Hib+HepB) | 6, 10, 14 weeks |
| Rotavirus | 6, 10, 14 weeks (selected states) |
| PCV | 6, 14 weeks + Booster at 9 months |
| MR/MMR | 9-12 months + 16-24 months |
| Japanese Encephalitis | 9-12 months (endemic areas) |
| DPT booster | 16-24 months + 5-6 years |
| TT/Td | 10 years + 16 years |
| Vitamin A | 9 months + every 6 months until 5 years |
---
## Q5. Newer Vaccines
1. **Rotavirus vaccine:** Live oral; prevents rotavirus diarrhea; given at 6, 10, 14 weeks
2. **PCV (Pneumococcal Conjugate Vaccine):** PCV13; prevents pneumonia, meningitis
3. **Typhoid Conjugate Vaccine (Typbar-TCV):** Vi-TT conjugate; single dose from 6 months
4. **Varicella (Chickenpox) vaccine:** Live attenuated; 15 months + 4-6 years
5. **Hepatitis A vaccine:** Killed (Havrix) or live attenuated; 1-2 years
6. **Meningococcal vaccine:** MCV4; recommended for travelers, asplenic
7. **HPV vaccine:** Recombinant; girls 9-14 years; prevents cervical cancer
8. **Influenza vaccine:** Inactivated or LAIV; annual; recommended >6 months
9. **Japanese Encephalitis:** SA-14-14-2 live attenuated (endemic districts)
10. **Dengue vaccine (Dengvaxia):** CYD-TDV; only seropositives; limited use
---
My answers?
My answers
Show me part 1 first
| Age | Weight |
|---|---|
| Birth | 2.5 - 3.5 kg (average 3 kg) |
| 5 months | Double birth weight (~6 kg) |
| 1 year | Triple birth weight (~9 kg) |
| 2 years | Quadruple birth weight (~12 kg) |
| Age | Length |
|---|---|
| Birth | 50 cm |
| 1 year | 75 cm (+25 cm in 1st year) |
| 2 years | 87 cm |
| 4 years | 100 cm (doubles birth length) |
| Age | HC |
|---|---|
| Birth | 34 cm |
| 3 months | 40 cm |
| 6 months | 43 cm |
| 1 year | 46 cm |
| 2 years | 48 cm |
| Adult | 56-57 cm |
| Age | Gross Motor | Fine Motor | Language | Personal-Social |
|---|---|---|---|---|
| 1 month | Raises chin | Follows to midline | Social smile (exogenous) | Regards face |
| 3 months | Holds head steady, no head lag | Holds rattle briefly | Coos | Recognizes mother |
| 6 months | Sits with support, rolls over | Palmar grasp, transfers hand to hand | Monosyllables (ma, ba) | Recognizes strangers |
| 9 months | Stands with support, crawls | Inferior pincer grasp | "Dada/Mama" non-specifically | Waves bye-bye |
| 12 months | Stands alone momentarily, walks with one hand | Neat pincer grasp | "Dada/Mama" specifically, 2-3 words | Plays pat-a-cake |
| Domain | Milestone |
|---|---|
| Gross Motor | Stands alone, walks with one hand held |
| Fine Motor | Neat pincer grasp, releases objects |
| Language | 2-3 meaningful words + "dada/mama" specifically |
| Personal-Social | Waves bye-bye, plays pat-a-cake |
| Method | Details |
|---|---|
| Motivational therapy | Star chart - reward dry nights |
| Fluid restriction | Reduce fluids after 6 PM |
| Bladder training | Timed voiding every 2-3 hours |
| Enuresis alarm | Bell-and-pad; most effective long-term (70-80% cure); takes 3-6 months |
| Lifting | Wake child at fixed times to void |
| Drug | Dose | Mechanism | Notes |
|---|---|---|---|
| Desmopressin (1st line) | 0.2 mg oral at bedtime | Synthetic ADH; reduces urine volume | Best for short-term/situational; relapse on stopping |
| Imipramine | 25 mg (<8 yr), 50 mg (>8 yr) at bedtime | Anticholinergic + ADH-like + alters sleep | NOT 1st line; cardiac toxicity; highest relapse |
| Oxybutynin | Variable | Anticholinergic | If overactive bladder |
| Category | Problems |
|---|---|
| Nutritional | Iron deficiency anemia, obesity, eating disorders (anorexia, bulimia) |
| Psychological | Identity crisis, depression, suicide (2nd leading cause of adolescent death) |
| Social | Peer pressure, substance abuse, school dropout |
| Sexual/Reproductive | STIs, teen pregnancy, HIV |
| Accidents | Leading cause of death |
| Step | Action | Details |
|---|---|---|
| 1 | Treat hypoglycemia | BG <3 mmol/L → 50 mL 10% glucose orally; feed every 2 hrs |
| 2 | Treat hypothermia | <35.5°C → KMC, warm room, blankets, feed immediately |
| 3 | Treat dehydration | ReSoMal (NOT standard ORS) - 70-100 mL/kg over 12 hrs |
| 4 | Correct electrolytes | K+ 3-4 mEq/kg/day, Mg2+ 0.4 mEq/kg/day; NO diuretics for edema |
| 5 | Treat infection | Amoxicillin 25 mg/kg BD x5 days (no complications); Add Ampicillin + Gentamicin if severe |
| 6 | Micronutrients | Vit A (Day 1 if no edema), Folic acid 5 mg Day 1, Zinc, Copper; NO iron yet |
| 7 | Start refeeding | F-75 diet: 75 kcal/100 mL; 100 mL/kg/day in 12 feeds (every 2 hrs) |
| Step | Action | Details |
|---|---|---|
| 8 | Catch-up growth | F-100 diet: 100 kcal/100 mL, 2.9 g protein/100 mL; increase to 150-220 mL/kg/day; Add iron now: 3 mg/kg/day |
| 9 | Sensory stimulation | Tender loving care, play therapy, structured activities |
| 10 | Follow-up | Discharge when W/H >-2 SD, educate mother, F/U at 1, 2, 4 weeks |
| Grade | % Expected Weight |
|---|---|
| Normal | >80% |
| Grade I (Mild) | 71-80% |
| Grade II (Moderate) | 61-70% |
| Grade III (Severe) | 51-60% |
| Grade IV (Very Severe) | <50% |
| Parameter | Finding |
|---|---|
| Serum Ca | Low or normal |
| Serum PO4 | Low (hallmark) |
| Serum ALP | Very high (best screening test) |
| PTH | High |
| 25(OH)D | Low (<20 ng/mL) |
| X-ray wrist | Cupping, fraying, splaying of metaphysis |
| Type | Gene/Defect | Features | Treatment |
|---|---|---|---|
| X-linked Hypophosphatemic Rickets (most common) | PHEX gene → ↑FGF23 → phosphate wasting | Rickets, short stature, phosphaturia, normal Ca, X-linked dominant | Oral phosphate (Joulie's solution) + Calcitriol |
| VDDR Type I | 1α-hydroxylase deficiency | Early severe rickets, hypocalcemia, convulsions | Calcitriol 0.5-1 mcg/day |
| VDDR Type II | Vitamin D receptor mutation | Alopecia + severe rickets | High-dose calcitriol + Ca infusion |
| Renal tubular acidosis / Fanconi syndrome | Tubular phosphate leak | + glycosuria, aminoaciduria | Treat underlying |
| Type | Age | Cause | Bleeding Sites |
|---|---|---|---|
| Early | 0-24 hours | Maternal drugs (warfarin, phenytoin, rifampicin) | Internal (brain, abdomen) |
| Classic | 2-7 days | Exclusively breastfed, no prophylaxis | Gut, umbilicus, skin, circumcision |
| Late | 2 weeks - 3 months | Malabsorption, exclusively breastfed | ICH most common (brain) |
| Component | Action |
|---|---|
| Secretory IgA (SIgA) | Coats GI tract, prevents microbial adherence |
| Lactoferrin | Iron-binding, inhibits E. coli/Staphylococci |
| Lysozyme | Destroys bacterial cell walls |
| Bifidus factor | Promotes Lactobacillus, acidic pH, inhibits pathogens |
| Leukocytes (macrophages) | Direct cellular immunity transfer |
| Feature | Physiological | Pathological |
|---|---|---|
| Onset | After 24 hours (day 2-3) | Before 24 hours |
| Duration | Resolves day 7 (term), day 14 (preterm) | Prolonged |
| Max TSB | 12 mg/dL (term) | >15-17 mg/dL |
| Rate of rise | <5 mg/dL/day | >5 mg/dL/day |
| Direct bili | <2 mg/dL | May be elevated |
| Cause | Physiological | Pathological |
| Sign | 0 | 1 | 2 |
|---|---|---|---|
| Appearance (color) | Blue all over | Body pink, blue extremities | All pink |
| Pulse (HR) | Absent | <100 | >100 |
| Grimace (reflex) | No response | Grimace | Cry/cough/sneeze |
| Activity (tone) | Limp | Some flexion | Active movement |
| Respiration | Absent | Weak/irregular | Strong cry |
| Feature | Whole Cell (wP) | Acellular (aP) |
|---|---|---|
| Composition | Killed whole B. pertussis | Purified subunits: PT, FHA, pertactin, fimbriae |
| Efficacy | 90-95% | 80-85% |
| Fever/local reactions | More | Fewer |
| HHE risk | Present | Very rare |
| Febrile seizures | More common | Less common |
| Cost | Cheap | Expensive |
| Use in India | UIP | Private (DTaP) |
| Vaccine | Carrier Protein | Disease Prevented |
|---|---|---|
| Hib | TT, CRM197, OMP | Meningitis, epiglottitis |
| PCV13 | CRM197 | Pneumococcal disease |
| MCV4 | Diphtheria toxoid, TT | Meningococcal disease |
| Typhoid TCV (Typbar-TCV) | TT | Typhoid in <2 years |
| Vaccine | Schedule |
|---|---|
| BCG | At birth |
| OPV | Birth, 6, 10, 14 weeks + Boosters 16-24 months |
| Hepatitis B | 0, 6, 10, 14 weeks |
| Pentavalent (DPT+Hib+HepB) | 6, 10, 14 weeks |
| IPV | 6 and 14 weeks |
| Rotavirus | 6, 10, 14 weeks |
| PCV | 6, 14 weeks + Booster 9 months |
| MR/MMR | 9-12 months + 16-24 months |
| Vitamin A | 9 months, then every 6 months until 5 years |
| DPT booster | 16-24 months + 5-6 years |
| TT/Td | 10 years + 16 years |
| JE vaccine | 9-12 months (endemic districts) |
PART1 Ch1 to Ch9
MD File · MD
Convert this into pdf
pandoc --version | head -1 && which xelatex || which pdflatex || echo "no latex"…
python3 -c "import weasyprint; print('weasyprint ok')" 2>/dev/null || echo "no w…
pip install markdown --quiet --user 2>&1 | tail -1
~/pediatrics-answers/make_pdf.py
#!/usr/bin/env python3
"""Convert Pediatrics Markdown answers to a clean PDF using ReportLab."""
from reportlab.lib.pagesizes import A4
from reportlab.lib.styles import getSampleStyleSheet, ParagraphStyle
from reportlab.lib.units import cm
from reportlab.lib import colors
from reportlab.platypus import (
SimpleDocTemplate, Paragraph, Spacer, Table, TableStyle,
HRFlowable, PageBreak, KeepTogether
)
from reportlab.lib.enums import TA_LEFT, TA_CENTER, TA_JUSTIFY
import re, os
# ── Output path ──────────────────────────────────────────────────────────────
OUTPUT = "/home/daytona/workspace/pediatrics-answers/Pediatrics_Part1_GoldStandard.pdf"
MD_FILE = "/home/daytona/workspace/pediatrics-answers/PART1_Ch1_to_Ch9.md"
# ── Styles ───────────────────────────────────────────────────────────────────
PAGE_W, PAGE_H = A4
MARGIN = 2 * cm
def make_styles():
s = getSampleStyleSheet()
NAVY = colors.HexColor("#003366")
TEAL = colors.HexColor("#007080")
LTBLUE = colors.HexColor("#e8f4f8")
LTGOLD = colors.HexColor("#fff8e1")
DARK = colors.HexColor("#1a1a2e")
GREY = colors.HexColor("#555555")
styles = {
"doc_title": ParagraphStyle(
"doc_title", fontSize=20, leading=26, textColor=NAVY,
fontName="Helvetica-Bold", alignment=TA_CENTER, spaceAfter=6),
"doc_sub": ParagraphStyle(
"doc_sub", fontSize=11, leading=14, textColor=TEAL,
fontName="Helvetica-Oblique", alignment=TA_CENTER, spaceAfter=4),
"ch_heading": ParagraphStyle(
"ch_heading", fontSize=15, leading=20, textColor=colors.white,
fontName="Helvetica-Bold", alignment=TA_LEFT,
spaceBefore=18, spaceAfter=8,
backColor=NAVY, borderPad=6),
"q_heading": ParagraphStyle(
"q_heading", fontSize=12, leading=16, textColor=NAVY,
fontName="Helvetica-Bold", spaceBefore=14, spaceAfter=6,
backColor=LTBLUE, borderPad=5, leftIndent=0),
"h3": ParagraphStyle(
"h3", fontSize=11, leading=15, textColor=TEAL,
fontName="Helvetica-Bold", spaceBefore=10, spaceAfter=4),
"h4": ParagraphStyle(
"h4", fontSize=10, leading=14, textColor=DARK,
fontName="Helvetica-Bold", spaceBefore=8, spaceAfter=3),
"body": ParagraphStyle(
"body", fontSize=9.5, leading=14, textColor=DARK,
fontName="Helvetica", alignment=TA_JUSTIFY,
spaceBefore=2, spaceAfter=3),
"bullet": ParagraphStyle(
"bullet", fontSize=9.5, leading=13, textColor=DARK,
fontName="Helvetica", leftIndent=16, spaceBefore=1, spaceAfter=1,
bulletIndent=6),
"bullet2": ParagraphStyle(
"bullet2", fontSize=9.5, leading=13, textColor=GREY,
fontName="Helvetica", leftIndent=30, spaceBefore=0, spaceAfter=1,
bulletIndent=20),
"bold_body": ParagraphStyle(
"bold_body", fontSize=9.5, leading=13, textColor=DARK,
fontName="Helvetica-Bold", spaceBefore=2, spaceAfter=2),
"note": ParagraphStyle(
"note", fontSize=9, leading=13, textColor=colors.HexColor("#7b3f00"),
fontName="Helvetica-Oblique", backColor=LTGOLD,
borderPad=4, leftIndent=4, spaceBefore=4, spaceAfter=4),
}
return styles
# ── Table helpers ─────────────────────────────────────────────────────────────
NAVY = colors.HexColor("#003366")
TEAL = colors.HexColor("#007080")
LTBLUE = colors.HexColor("#e8f4f8")
def make_table(headers, rows, col_widths=None):
USABLE = PAGE_W - 2 * MARGIN
if col_widths is None:
n = len(headers)
col_widths = [USABLE / n] * n
s = getSampleStyleSheet()
hdr_style = ParagraphStyle("th", fontSize=9, fontName="Helvetica-Bold",
textColor=colors.white, leading=12)
cell_style = ParagraphStyle("td", fontSize=8.5, fontName="Helvetica",
textColor=colors.HexColor("#1a1a2e"), leading=11)
table_data = [[Paragraph(h, hdr_style) for h in headers]]
for row in rows:
table_data.append([Paragraph(str(c), cell_style) for c in row])
t = Table(table_data, colWidths=col_widths, repeatRows=1)
t.setStyle(TableStyle([
("BACKGROUND", (0, 0), (-1, 0), NAVY),
("ROWBACKGROUNDS", (0, 1), (-1, -1), [colors.white, LTBLUE]),
("GRID", (0, 0), (-1, -1), 0.4, colors.HexColor("#aaaaaa")),
("VALIGN", (0, 0), (-1, -1), "TOP"),
("TOPPADDING", (0, 0), (-1, -1), 4),
("BOTTOMPADDING",(0,0), (-1, -1), 4),
("LEFTPADDING", (0, 0), (-1, -1), 5),
("RIGHTPADDING",(0, 0), (-1, -1), 5),
]))
return t
# ── Markdown → Flowables ──────────────────────────────────────────────────────
def inline_md(text):
"""Convert inline markdown (**bold**, *italic*, `code`) to ReportLab XML."""
text = text.replace("&", "&").replace("<", "<").replace(">", ">")
text = re.sub(r'\*\*\*(.+?)\*\*\*', r'<b><i>\1</i></b>', text)
text = re.sub(r'\*\*(.+?)\*\*', r'<b>\1</b>', text)
text = re.sub(r'\*(.+?)\*', r'<i>\1</i>', text)
text = re.sub(r'`(.+?)`', r'<font name="Courier">\1</font>', text)
return text
def parse_md_to_flowables(md_text, styles):
flowables = []
lines = md_text.split("\n")
i = 0
while i < len(lines):
line = lines[i]
# ── Blank line ──
if not line.strip():
i += 1
continue
# ── Tables ──
if line.strip().startswith("|"):
table_lines = []
while i < len(lines) and lines[i].strip().startswith("|"):
table_lines.append(lines[i])
i += 1
if len(table_lines) >= 2:
# header row
headers = [c.strip() for c in table_lines[0].split("|") if c.strip()]
rows = []
for tl in table_lines[2:]: # skip separator
row = [c.strip() for c in tl.split("|") if c.strip()]
if row:
rows.append(row)
if rows:
flowables.append(Spacer(1, 4))
flowables.append(make_table(headers, rows))
flowables.append(Spacer(1, 6))
continue
# ── Headings ──
if line.startswith("# ") and not line.startswith("## "):
text = line[2:].strip()
if "CHAPTER" in text or text.startswith("PART"):
flowables.append(PageBreak())
flowables.append(Paragraph(inline_md(text), styles["ch_heading"]))
else:
flowables.append(Paragraph(inline_md(text), styles["doc_title"]))
i += 1
continue
if line.startswith("## "):
text = line[3:].strip()
if text.startswith("Q"):
flowables.append(Paragraph("Q. " + inline_md(text[2:].strip() if text[1:2] == "." else text[1:].strip()), styles["q_heading"]))
else:
flowables.append(Paragraph(inline_md(text), styles["ch_heading"]))
i += 1
continue
if line.startswith("### "):
flowables.append(Paragraph(inline_md(line[4:].strip()), styles["h3"]))
i += 1
continue
if line.startswith("#### "):
flowables.append(Paragraph(inline_md(line[5:].strip()), styles["h4"]))
i += 1
continue
# ── Horizontal rule ──
if re.match(r'^-{3,}$', line.strip()):
flowables.append(HRFlowable(width="100%", thickness=0.8,
color=TEAL, spaceAfter=4, spaceBefore=4))
i += 1
continue
# ── Bullet / numbered list ──
m_bullet = re.match(r'^(\s*)([-*]|\d+[.)]) (.+)', line)
if m_bullet:
indent = len(m_bullet.group(1))
content = inline_md(m_bullet.group(3))
if indent > 0:
flowables.append(Paragraph(f"• {content}", styles["bullet2"]))
else:
flowables.append(Paragraph(f"• {content}", styles["bullet"]))
i += 1
continue
# ── Bold-only line (acts as sub-heading) ──
if re.match(r'^\*\*[^*]+\*\*:?$', line.strip()):
flowables.append(Paragraph(inline_md(line.strip()), styles["bold_body"]))
i += 1
continue
# ── Exam tip / note line ──
if "exam tip" in line.lower() or line.strip().startswith(">"):
text = line.lstrip(">").strip()
flowables.append(Paragraph(inline_md(text), styles["note"]))
i += 1
continue
# ── Normal paragraph ──
flowables.append(Paragraph(inline_md(line.strip()), styles["body"]))
i += 1
return flowables
# ── Header / Footer ───────────────────────────────────────────────────────────
def on_page(canvas, doc):
canvas.saveState()
W, H = A4
# Header bar
canvas.setFillColor(NAVY)
canvas.rect(MARGIN, H - 1.4*cm, W - 2*MARGIN, 0.55*cm, fill=1, stroke=0)
canvas.setFillColor(colors.white)
canvas.setFont("Helvetica-Bold", 8)
canvas.drawString(MARGIN + 4, H - 1.05*cm,
"PEDIATRICS PAST 10 YEARS | Gold Standard Answers | Ref: Ghai's Essential Pediatrics 8e")
# Footer
canvas.setFillColor(TEAL)
canvas.rect(MARGIN, 1.1*cm, W - 2*MARGIN, 0.4*cm, fill=1, stroke=0)
canvas.setFillColor(colors.white)
canvas.setFont("Helvetica", 7.5)
canvas.drawString(MARGIN + 4, 1.25*cm, "Prepared for Exam Revision")
canvas.drawRightString(W - MARGIN - 4, 1.25*cm, f"Page {doc.page}")
canvas.restoreState()
# ── Cover page ────────────────────────────────────────────────────────────────
def cover_page(styles):
items = []
items.append(Spacer(1, 3*cm))
items.append(Paragraph("PEDIATRICS", ParagraphStyle(
"cv1", fontSize=34, fontName="Helvetica-Bold",
textColor=NAVY, alignment=TA_CENTER, leading=40)))
items.append(Paragraph("PAST 10 YEARS", ParagraphStyle(
"cv2", fontSize=28, fontName="Helvetica-Bold",
textColor=TEAL, alignment=TA_CENTER, leading=34)))
items.append(Spacer(1, 0.5*cm))
items.append(HRFlowable(width="60%", thickness=2, color=TEAL,
hAlign="CENTER", spaceAfter=10, spaceBefore=10))
items.append(Paragraph("GOLD STANDARD EXAM ANSWERS", ParagraphStyle(
"cv3", fontSize=16, fontName="Helvetica-Bold",
textColor=colors.HexColor("#c0392b"), alignment=TA_CENTER, leading=22)))
items.append(Spacer(1, 0.4*cm))
items.append(Paragraph("Reference: Ghai's Essential Pediatrics, 8th Edition", ParagraphStyle(
"cv4", fontSize=12, fontName="Helvetica-Oblique",
textColor=colors.HexColor("#555555"), alignment=TA_CENTER, leading=16)))
items.append(Spacer(1, 0.3*cm))
items.append(Paragraph("PART 1 — Chapters 1 to 9", ParagraphStyle(
"cv5", fontSize=13, fontName="Helvetica-Bold",
textColor=NAVY, alignment=TA_CENTER, leading=18)))
items.append(Spacer(1, 2*cm))
# Chapter index box
chapters = [
("Ch 1", "Normal Growth & Its Disorders"),
("Ch 2", "Normal & Abnormal Development (Milestones, ADHD, Enuresis, BHS)"),
("Ch 3", "Adolescent Health & Development"),
("Ch 4", "Fluid & Electrolyte Disturbance (Hyperkalemia)"),
("Ch 5", "Nutrition (Marasmus, PEM, Lactose Intolerance, NNACP)"),
("Ch 6", "Micronutrients (Rickets, VKDB, Scurvy)"),
("Ch 7", "Newborn Infant (NRP, Breast Feeding, LBW, RDS, Jaundice)"),
("Ch 8", "Immunity & Immunization (UIP, MMR, Conjugate, Newer Vaccines)"),
]
tbl_data = [["Chapter", "Topic"]]
for ch, topic in chapters:
tbl_data.append([ch, topic])
idx_style_h = ParagraphStyle("ih", fontSize=10, fontName="Helvetica-Bold",
textColor=colors.white)
idx_style = ParagraphStyle("ic", fontSize=9.5, fontName="Helvetica",
textColor=colors.HexColor("#1a1a2e"))
table_data = [[Paragraph(r[0], idx_style_h), Paragraph(r[1], idx_style_h)]]
for row in tbl_data[1:]:
table_data.append([Paragraph(row[0], idx_style), Paragraph(row[1], idx_style)])
USABLE = PAGE_W - 2*MARGIN
t = Table(table_data, colWidths=[2*cm, USABLE - 2*cm], repeatRows=1)
t.setStyle(TableStyle([
("BACKGROUND", (0,0), (-1,0), NAVY),
("ROWBACKGROUNDS", (0,1), (-1,-1), [colors.white, colors.HexColor("#e8f4f8")]),
("GRID", (0,0), (-1,-1), 0.4, colors.HexColor("#aaaaaa")),
("VALIGN", (0,0), (-1,-1), "MIDDLE"),
("TOPPADDING", (0,0), (-1,-1), 5),
("BOTTOMPADDING", (0,0), (-1,-1), 5),
("LEFTPADDING", (0,0), (-1,-1), 6),
]))
items.append(t)
items.append(PageBreak())
return items
# ── Main ──────────────────────────────────────────────────────────────────────
def build():
with open(MD_FILE, "r", encoding="utf-8") as f:
md_text = f.read()
styles = make_styles()
doc = SimpleDocTemplate(
OUTPUT,
pagesize=A4,
leftMargin=MARGIN, rightMargin=MARGIN,
topMargin=2*cm, bottomMargin=2*cm,
title="Pediatrics Past 10 Years - Gold Standard Answers",
author="Ghai's Essential Pediatrics 8e",
)
flowables = []
flowables += cover_page(styles)
flowables += parse_md_to_flowables(md_text, styles)
doc.build(flowables, onFirstPage=on_page, onLaterPages=on_page)
print(f"PDF created: {OUTPUT}")
import os
size = os.path.getsize(OUTPUT)
print(f"File size: {size/1024:.1f} KB")
if __name__ == "__main__":
build()
python3 /home/daytona/workspace/pediatrics-answers/make_pdf.py 2>&1
~/pediatrics-answers/make_pdf.py
Successfully replaced 1 instance(s) of the string in '/home/daytona/workspace/pediatrics-answers/make_pdf.py'
python3 /home/daytona/workspace/pediatrics-answers/make_pdf.py 2>&1
Pediatrics Part1 GoldStandard
PDF Document · PDF
Generate Part 2 PDF (Chapters 9-25: Infections through Poisoning)
Give me my pdfs both compiled