Hiii I am preparing for seminar of OBGYN and I am giving you the name of topic and you will give me following and remember, add as much images as possible and also use standard books and in the end crisp point or crux flow chart of management. Now the sequence you will give me is first demography mention if any most common or least common thing is there , causes like genetic and environmental, clinical features and any classification based on etiology or features, rwith whichever investigation needed, tell about when to do it and when not to do it and also specific finding images then biopsy how to take and when to take with cells of origin pathology and molecular ihc findings and classification based on biopsy and then management with surgery chemo radiotherapy hormonal therapy target therapy and whatever you tell like if surgery then indications contraindications limitations and surgical steps and then if any drug or chemo agent try to add doses mechanism of actions and side effects and if rat doses of that also and try brief approach to a pt. With tumor like if this size and this age then this management and then tell me about follow up and prognosis and try as much as images use standard books and try to explain things and take simplest things in count and also add specific investigation or any other charts are there add them AND THE TOPIC IS Anemia in Pregnancy
Hiii I am preparing for seminar of OBGYN and I am giving you the name of topic and you will give me following and remember, add as much images as possible and also use standard books and in the end crisp point or crux flow chart of management. Now the sequence you will give me is first demography mention if any most common or least common thing is there , causes like genetic and environmental, clinical features and any classification based on etiology or features, with whichever investigation needed, and management and then tell me about follow up and prognosis and try as much as images use standard books and try to explain things and take simplest things in count and also add specific investigation or any other charts are there add them AND THE TOPIC IS Anemia in Pregnancy. Also includes points such as impact on fetus, impact on mother (antenatal and postnatal, surgical complications, etc.)
"anemia in pregnancy"[MeSH Terms] AND management
"iron deficiency anemia" AND pregnancy AND treatment
anemia in pregnancy WHO classification hemoglobin levels management guidelines 2024
Iron deficiency anemia (IDA) = most common cause of anemia in pregnancy worldwide.Megaloblastic anemia (folate deficiency) = second most common non-physiologic anemia.
| Parameter | Non-pregnant | Pregnant (at term) |
|---|---|---|
| Plasma volume | Baseline | β 45-50% (singleton) |
| RBC mass | Baseline | β 15-25% |
| Net effect | - | Relative hemodilution = physiologic anemia |
| Trimester | Hb threshold for Anemia |
|---|---|
| 1st trimester | < 11.0 g/dL |
| 2nd trimester | < 10.5 g/dL |
| 3rd trimester | < 11.0 g/dL |
| Postpartum | < 10.0 g/dL |
Normal Hb for adult female = 14.0 Β± 2.0 g/dL
| Category | Hb (g/L) | Hb (g/dL) |
|---|---|---|
| Normal | β₯ 110 (pregnant) | β₯ 11.0 |
| Mild anemia | 100-109 | 10.0-10.9 |
| Moderate anemia | 70-99 | 7.0-9.9 |
| Severe anemia | < 70 | < 7.0 |
Severe anemia (Hb <7 g/dL) requires urgent evaluation and often inpatient management.Very severe / life-threatening: Hb < 5-6 g/dL - associated with high-output cardiac failure and fetal compromise.
| Condition | Genetics | Notable Points |
|---|---|---|
| Sickle cell anemia | AR, Hb S/S - beta-globin gene mutation | Most common severe hemoglobinopathy in African descent |
| Sickle-C disease | Hb S/C double heterozygote | <0.2% of Black pregnant women |
| Beta-thalassemia major | AR, absent/reduced beta-globin chains | Severe, requires transfusion |
| Alpha-thalassemia | AR, deletion of alpha-globin genes | Common in Southeast Asian, Mediterranean |
| G6PD deficiency | X-linked recessive | Triggered by oxidant stress |
| Hereditary spherocytosis | AD (majority), AR | Autosomal dominant; hemolytic crises in pregnancy |
| Pernicious anemia | Autoimmune - anti-intrinsic factor antibodies | Most common cause of B12 deficiency |
| Cause | Mechanism |
|---|---|
| Poor diet / malnutrition | Inadequate iron, folate, B12 intake |
| Multiple pregnancy | Increased fetal demand for iron and folate |
| Multiparity | Depleted stores from repeated pregnancies |
| Low socioeconomic status | Combined nutritional deficiencies |
| Hookworm / parasites | Chronic blood loss in GI tract |
| Malaria | Hemolysis + bone marrow suppression |
| Chronic renal/liver disease | Reduced EPO, reduced synthesis |
| Medications | Methotrexate, trimethoprim, pyrimethamine (folate antagonists) |
| HIV infection | Marrow suppression + opportunistic infections |
| Celiac disease / IBD | Malabsorption of iron and folate |
| Purpose | Average (mg) | Range (mg) |
|---|---|---|
| External iron loss | 170 | 150-200 |
| Expansion of RBC mass | 450 | 200-600 |
| Fetal iron needs | 270 | 200-370 |
| Placenta and cord | 90 | 30-170 |
| Blood loss at delivery | 150 | 90-310 |
| Total requirement | 1130 | 580-1340 |
The average daily iron requirement in pregnancy is 22-23 mg/day, but median dietary intake is only ~15 mg/day. Hence supplementation is mandatory.
Stage 1 (Pre-latent) β Stage 2 (Latent) β Stage 3 (Overt IDA)
Ferritin β Serum iron β Hb β
(Stores depleted) TIBC β MCV β (late)
Hb normal % Sat β Microcytic, hypochromic smear
Hb still normal
Important: Most anemia in pregnancy is discovered NOT because of symptoms, but because CBC is done as part of routine antenatal screening!
| Type | Specific Findings |
|---|---|
| Folate deficiency | Sore tongue, neural tube defect risk in fetus |
| B12 deficiency | Neurological symptoms (subacute combined degeneration), glossitis |
| Sickle cell | Painful crises, jaundice, splenomegaly, stroke history |
| Thalassemia | Facies, splenomegaly, family history |
| Hemolytic anemia | Jaundice, dark urine, splenomegaly |
| Aplastic anemia | Pancytopenia - bleeding, infections |
| HELLP syndrome | RUQ pain, hypertension, thrombocytopenia |
| Test | 1st Trimester | 2nd Trimester | 3rd Trimester |
|---|---|---|---|
| RBC count | 3.42-4.55 Γ 10ΒΉΒ²/L | 2.81-4.49 Γ 10ΒΉΒ²/L | 2.72-4.43 Γ 10ΒΉΒ²/L |
| MCV | 81-96 ΞΌmΒ³ | 82-97 ΞΌmΒ³ | 81-99 ΞΌmΒ³ |
| MCHC | 32-35 g/dL | 32-35 g/dL | 32-35 g/dL |
| Reticulocyte count | 0.5%-1.5% | 0.5%-1.5% | 0.5%-1.5% |
| Test | IDA | ACD/Inflammation | IDA + Inflammation | Sideroblastic |
|---|---|---|---|---|
| Serum iron | β | β | β | Often β |
| TIBC | β | β | β/Normal | Normal |
| Saturation | β (<16%) | β (<30%) | β (<20%) | β (>45%) |
| Ferritin | β (<15 ng/mL) | β (>200 ng/mL) | β (<100 ng/mL) | β (>200 ng/mL) |
Ferritin is the most accurate single test for diagnosing IDA in pregnancy (Rosen's EM). However, ferritin is an acute phase reactant - elevated in infection/inflammation even with iron deficiency.

| Smear Finding | Diagnosis |
|---|---|
| Hypochromic microcytic cells, pencil cells, anisocytosis | Iron deficiency anemia |
| Target cells + basophilic stippling + microcytic | Thalassemia (Hb electrophoresis confirms) |
| Oval macrocytes + hypersegmented neutrophils (β₯5-lobed) | Megaloblastic (B12/folate) |
| Sickle cells, target cells | Sickle cell disease |
| Spherocytes + polychromasia | Hereditary spherocytosis / AIHA |
| Schistocytes (helmet cells) | HELLP, TTP, HUS, microangiopathic |
| RBC agglutination | Cold AIHA |
| Test | When to Do | When NOT to Do |
|---|---|---|
| Ferritin | First antenatal visit + 28 weeks if iron supplementing | Acute infection/inflammation (falsely elevated) |
| Hb electrophoresis | Any patient from high-risk ethnic group (African, Mediterranean, SE Asian), family hx | Not needed if non-at-risk population with clear IDA |
| Direct Coombs | Unexplained hemolytic anemia, positive indirect Coombs on type & screen | Not routine |
| B12/Folate | Macrocytic anemia on CBC | Not needed if purely microcytic |
| Bone marrow | Pancytopenia, suspected aplasia/leukemia, refractory anemia | Routine anemia workup in pregnancy |
| Malaria smear | Endemic areas, fever + hemolytic anemia | Non-endemic regions without travel history |
| Severity | Maternal Effect |
|---|---|
| Mild (Hb 9-11) | Fatigue, reduced work capacity, palpitations |
| Moderate (Hb 7-9) | High-output cardiac state, increased cardiac workload, reduced exercise tolerance |
| Severe (Hb <7) | High-output cardiac failure, preeclampsia risk β, immune compromise |
| Very severe (Hb <5) | Decompensated heart failure, ICU admission, maternal mortality risk β |
| Maternal Hb threshold | Fetal/Neonatal Risk |
|---|---|
| Hb <11 g/dL (any) | β PPH risk, β preterm birth, β perinatal death |
| Hb <7-8 g/dL (severe) | β Low birth weight, β SGA neonates |
| Hb <6 g/dL (very severe) | Abnormal fetal oxygenation, non-reassuring FHR |
| Hb <5 g/dL | High risk fetal death |
Paradox: Elevated maternal Hb (>14.5 g/dL) early in pregnancy is also associated with poor perinatal outcome (stillbirth, SGA) - thought to reflect inadequate plasma volume expansion and reduced uteroplacental blood flow.
Any anemic pregnant woman β CBC + Reticulocyte count β Morphological classification
β
MICROCYTIC (βMCV) β Iron studies β Ferritin β = IDA β Oral/IV Iron
β Ferritin normal/β + normal TIBC = Thalassemia / ACD
β Hb electrophoresis
NORMOCYTIC β Reticulocyte count:
- LOW reticulocyte β Aplastic/Hypoplastic, Renal, ACD
- HIGH reticulocyte β Hemolytic β Coombs, LDH, haptoglobin, smear
MACROCYTIC β B12/Folate levels β Supplementation
| Preparation | Elemental Iron | Notes |
|---|---|---|
| Ferrous sulfate 325 mg | 65 mg | Standard first choice |
| Ferrous gluconate 300 mg | 35 mg | Better tolerated, less GI upset |
| Ferrous fumarate 200 mg | 65 mg | Alternative |
| Preparation | Dose | Route | Notes |
|---|---|---|---|
| Ferric carboxymaltose | Up to 1000 mg in single dose | IV infusion | Preferred in pregnancy; no test dose needed |
| Iron sucrose | 100-200 mg per infusion, multiple sessions | IV infusion | Used in pregnancy; well tolerated |
| Low-molecular-weight iron dextran | 1000 mg single dose over 1 hour | IV | Requires test dose; anaphylaxis risk |
| Ferumoxytol | 510 mg Γ 2 doses (3-8 days apart) | IV | Use in pregnancy is limited |
In pregnancy, IV iron has been shown to be superior to oral iron in multiple RCTs (Goldman-Cecil).
FIRST TRIMESTER
βββ Hb <11 β CBC + reticulocyte + iron studies + B12/folate
βββ Microcytic β IDA (treat oral iron) vs. Thalassemia (Hb electrophoresis)
βββ High risk ethnicity β Hb electrophoresis regardless
βββ Macrocytic β Check B12/folate, treat deficiency
SECOND TRIMESTER
βββ Hb 9-11 (mild) β Oral iron 200 mg elemental iron/day
βββ Hb 7-9 (moderate) β Oral iron + consider IV iron (ferric carboxymaltose)
βββ Hb <7 (severe) β IV iron Β± blood transfusion; consider hospitalization
βββ Serial ultrasound for fetal growth
THIRD TRIMESTER
βββ Hb 9-11 β IV iron preferred (quicker response before delivery)
βββ Hb <8 β IV iron + prepare blood for delivery
βββ Hb <6 β Transfuse; ensure crossmatch for delivery
βββ Fetal monitoring: NST, BPP if severe anemia
| Clinical Scenario | Action |
|---|---|
| 28-wk, Hb 9.5, ferritin 8, no symptoms | Oral ferrous sulfate 200mg elemental Fe daily + recheck in 4 weeks |
| 32-wk, Hb 8.2, unable to tolerate oral iron | IV ferric carboxymaltose 1000 mg infusion |
| 36-wk, Hb 6.5, going for CS next week | Blood transfusion + IV iron, aim Hb >8 before surgery |
| Any trimester, Hb <11, ferritin normal, MCV normal | Anemia of chronic disease vs. early hemolysis - further workup |
| Family history of thalassemia + microcytic anemia, ferritin normal | Hb electrophoresis; refer for genetic counseling |
| Sickle cell + 24-week pregnancy + painful crisis | Hydration, O2, opioid analgesia, assess Hb; transfuse if Hb <6 |
| Time point | What to check |
|---|---|
| Booking visit (1st ANC) | Hb, MCV, ferritin, blood group, Hb electrophoresis (if indicated) |
| 28 weeks | Repeat Hb; ferritin if on iron |
| 36 weeks | Hb, blood group, crossmatch (prepare for delivery) |
| Postpartum (6 weeks) | Hb; repeat ferritin; continue iron 3 months postpartum |
| Postpartum (3 months) | Ensure ferritin >30-50 ng/mL before stopping iron |
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β ANEMIA IN PREGNANCY β
β Hb < 11 g/dL (1st/3rd T) β
β Hb < 10.5 g/dL (2nd T) β
ββββββββββββββββββββββββ¬βββββββββββββββββββββββββββββββββββ
β
ββββββββββββββΌβββββββββββββ
β STEP 1: CBC + Retic β
β + Peripheral Smear β
βββββββββββ¬ββββββββββββββββ
ββββββββββββΌβββββββββββββββ
βΌ βΌ βΌ
MICROCYTIC NORMOCYTIC MACROCYTIC
(MCV<80) (MCV 80-100) (MCV>100)
β β β
Iron Studies Retic Count B12/Folate
β β β
Ferritinβ Low Retic Folateβ β Folic acid
TIBCβ β B12β β B12 replacement
β Aplasia/ACD
IDA βββββββΊ High Retic
β
Hemolysis
workup
(Coombs, LDH,
Haptoglobin,
Hb electrophoresis)
β
βΌ
SEVERITY?
βββββββββββββ¬βββββββββββββ¬ββββββββββββββ
Mild Moderate Severe Very Severe
Hb 9-11 Hb 7-9 Hb <7 Hb <5-6
β β β β
Oral Iron Oral Iron IV Iron Transfusion
60-200mg Β± IV Iron (FCM/Iron + IV Iron
elemental escalate Sucrose) + ICU assess
Fe/day if fails
β
All types:
ββ Folic acid 0.4-5 mg/day
ββ Dietary counseling
ββ Treat underlying cause
ββ Monitor: CBC 4-weekly
ββ Serial USG (severe cases)
ββ Prepare blood for delivery
β
POSTPARTUM:
ββ Continue iron Γ 3 months
ββ Delayed cord clamping
ββ Check Hb at 6 weeks
I am preparing for seminar on Anemia in Pregnancy as a resident Doctor in Obstetrics & Gynecology Department. You will give me following and remember, add as much images as possible and also use standard books and in the end crisp point or flow chart of management. The sequence of data provided by you will be as follows:
I am preparing for seminar on Anemia in Pregnancy as a resident Doctor in Obstetrics & Gynecology Department in India. You will give me following and remember, add as much images as possible and also use standard books and in the end crisp point or flow chart of management. The sequence of data provided by you will be as follows: 1) Definition (WHO) 2) Demographic details and epidemiological burden in India 3) Causes of anemia in pregnancy:- Hereditary & Acquired 4) Effects on Mother and Fetus 5) Details on Individual Causes of Anemia (Physiological, Iron-deficiency anemia, Acute blood-loss anemia, Anemia of chronic disease, Megaloblastic anemia, Hemolytic anemias, Aplastic or hypoplastic anemia, Thalassemias, Sickle-cell hemoglobinopathies, Other hemoglobinopathies, Hemolytic anemias). For each cause include information on pathophysiology, clinical features, laboratory investigation, treatment protocol.
"anemia" AND "pregnancy" AND "India" AND "prevalence"
anemia in pregnancy India NFHS-5 prevalence 2021 statistics burden
Anemia in pregnancy is defined as a hemoglobin (Hb) concentration below which, in a given population of individuals of the same age, sex, and physiological state, clinical intervention is warranted.
| Trimester | Hb (g/dL) | Hematocrit (%) |
|---|---|---|
| 1st Trimester | < 11.0 | < 33% |
| 2nd Trimester | < 10.5 | < 32% |
| 3rd Trimester | < 11.0 | < 33% |
| Postpartum | < 10.0 | < 30% |
Normal Hb in adult non-pregnant woman: 14.0 Β± 2.0 g/dL Normal Hb in non-pregnant woman (lower limit): 12.0 g/dL
| Category | Hb (g/dL) | Clinical Significance |
|---|---|---|
| No anemia | β₯ 11.0 | Normal |
| Mild | 10.0 β 10.9 | Compensated; fatigue |
| Moderate | 7.0 β 9.9 | High-output state; fetal risk begins |
| Severe | < 7.0 | Significant maternal-fetal morbidity |
| Very severe / life-threatening | < 5.0 | CCF, ICU, maternal mortality risk |
| Indicator | Figure |
|---|---|
| Prevalence of anemia in pregnant women (India) | 52.2% |
| Severe anemia (Hb <7 g/dL) in pregnant women | 1.4% |
| Women of reproductive age (15-49 yrs) with anemia | 57% (up from 53% in NFHS-4) |
| Adolescent pregnant women with anemia | 61.5% |
| Highest state burden | Bihar: 63.1% |
| Highest UT burden | Ladakh: 71.4% |
| Highest district burden | Udalgiri, Assam: 81.5% |
| Risk Factor | Adjusted Odds Ratio |
|---|---|
| No formal education | aOR = 1.41 |
| Poorest wealth quintile | aOR = 1.69 |
| Tobacco/smoking/alcohol use | aOR = 1.39 |
| Short birth interval | Higher risk |
| Eastern India (tribal belt) | Highest regional prevalence |
| Scheduled Tribes | 59.3% prevalence |
Poverty β Poor nutrition β Low dietary iron/folate intake
β
Frequent pregnancies (short inter-pregnancy interval)
β
No pre-pregnancy iron stores (pre-existing iron deficiency)
β
High prevalence of parasitic infections (hookworm, malaria in tribals)
β
Low coverage of IFA supplementation in pregnancy
β
Vegetarian diets (poor heme-iron bioavailability)
β
High prevalence of hemoglobinopathies (thalassemia, sickle cell in tribal populations)
Iron-Folic Acid (IFA) Supplementation Programme under ICDS/NHM targets 180 days of 100 mg elemental iron + 500 mcg folic acid during pregnancy, but compliance remains low.
ANEMIA IN PREGNANCY
βββ HEREDITARY (Genetic)
β βββ Hemoglobinopathies
β β βββ Sickle cell disease (SS, SC, S-Ξ² thal)
β β βββ Sickle cell trait (AS) β mild
β β βββ Other: Hb C, Hb E, Hb D
β βββ Thalassemias
β β βββ Ξ±-Thalassemia (gene deletions)
β β βββ Ξ²-Thalassemia (point mutations)
β βββ RBC Enzyme Defects
β β βββ G6PD deficiency (X-linked recessive)
β βββ RBC Membrane Disorders
β β βββ Hereditary spherocytosis (AD)
β β βββ Hereditary elliptocytosis
β βββ Porphyrias
β
βββ ACQUIRED
βββ Nutritional Deficiencies (MOST COMMON in India)
β βββ Iron deficiency anemia (IDA) β #1
β βββ Folate deficiency (megaloblastic) β #2
β βββ Vitamin B12 deficiency (pernicious anemia / vegetarian diet)
βββ Physiological (Dilutional) β Normal
βββ Acute Blood Loss
β βββ Antepartum hemorrhage (APH)
β βββ Postpartum hemorrhage (PPH)
βββ Anemia of Chronic Disease (ACD)
β βββ Chronic infections (TB, malaria, HIV)
β βββ Chronic renal failure
β βββ Connective tissue disease
βββ Hemolytic (Acquired)
β βββ Autoimmune hemolytic anemia (AIHA)
β βββ HELLP syndrome (microangiopathic)
β βββ TTP / HUS
β βββ Drug-induced hemolysis
βββ Bone Marrow Failure
βββ Aplastic anemia
βββ Leukemia / myeloma
| System | Effect |
|---|---|
| Cardiovascular | High-output cardiac failure (severe anemia); tachycardia, cardiomegaly, ankle edema |
| Immune | Increased susceptibility to infections (UTI, pneumonia, TB) |
| Pre-eclampsia | Increased risk in sickle cell disease; high Hb (>14.5) also increases risk |
| Placenta | Increased placental weight (compensatory) |
| Preterm labor | Risk β with moderate-severe anemia (meta-analysis confirmed) |
| PROM | Risk β due to membrane weakness from nutritional deficiency |
| Effect | Mechanism |
|---|---|
| Poor uterine contractions | Iron deficiency impairs smooth muscle function |
| Prolonged labour | Fatigue, reduced maternal stamina |
| Poor tolerance of blood loss | Reduced Hb reserve; even physiological blood loss poorly tolerated |
| Increased need for transfusion | Intraoperative and postoperative |
| Complication | Notes |
|---|---|
| Postpartum hemorrhage (PPH) | Primary cause of maternal mortality in India; anemia compounds blood loss |
| Puerperal sepsis | Reduced wound healing + immune compromise |
| Poor lactation | Iron and energy deficit |
| Postpartum depression | Iron deficiency independently associated |
| Slow wound healing | Especially after LSCS; increased SSI risk |
| Prolonged hospital stay | Direct cost to healthcare system |
| Maternal mortality | RR = 3.5 for maternal death with severe anemia (Hb <5 g/dL) in Asia/Africa/Latin America |
Anemia is one of the top three causes of maternal mortality in India, alongside hemorrhage and hypertensive disorders. It both causes and compounds hemorrhage-related deaths.
| Severity | Fetal / Neonatal Effect |
|---|---|
| Mild (Hb 9-11) | Generally good fetal outcome |
| Moderate (Hb 7-9) | β Preterm birth; β low birth weight |
| Severe (Hb <7) | β FGR/SGA; β perinatal death; non-reassuring FHR |
| Very severe (Hb <6) | Abnormal fetal oxygenation, stillbirth |
Important paradox: Elevated maternal Hb >14.5 g/dL early in pregnancy is also associated with stillbirth, SGA, and low birth weight β likely because high Hb is a marker of inadequate plasma volume expansion, signalling poor placentation.
| Parameter | Change |
|---|---|
| Total blood volume | β 40-45% (maximum at 34 weeks) |
| Plasma volume | β 47% |
| RBC mass | β only 17-20% (reaches maximum at term) |
| Net result | Relative hemodilution = fall in Hb, Hct, RBC count |
MCV and MCHC do NOT change in physiological anemia β this is the key differentiating point from IDA, where both fall progressively.
IDA is the most common cause of anemia in pregnancy worldwide and in India, accounting for >50% of all cases.
| Purpose | Average (mg) | Range (mg) |
|---|---|---|
| External iron loss | 170 | 150-200 |
| Expansion of RBC mass | 450 | 200-600 |
| Fetal iron needs | 270 | 200-370 |
| Placenta and cord | 90 | 30-170 |
| Blood loss at delivery | 150 | 90-310 |
| Total requirement | 1130 | 580-1340 |
Daily iron requirement in pregnancy: 22-23 mg/day | Average Indian dietary intake: ~15 mg/day | Shortfall must be met by supplementation.
STAGE 1 β Pre-latent (Iron Depletion)
β Serum ferritin (depleted stores)
Hb NORMAL | MCV NORMAL | Iron studies NORMAL
β
STAGE 2 β Latent (Iron-deficient erythropoiesis)
β Serum iron | β TIBC | β % transferrin saturation
Hb NORMAL | MCV NORMAL | sTfR β
β
STAGE 3 β Overt IDA (Iron Deficiency Anemia)
β Hb | β MCV | β MCHC | Microcytic hypochromic smear

| Test | Normal | Iron Deficiency | ACD | Thalassemia |
|---|---|---|---|---|
| Serum iron | 60-170 ΞΌg/dL | ββ | β | Normal/β |
| TIBC | 250-370 ΞΌg/dL | β (>400) | β | Normal |
| % Transferrin saturation | 20-50% | β (<16%) | β (<30%) | Normal/β |
| Serum ferritin | 12-150 ΞΌg/L | β (<15) | β (>200) | Normal/β |
| Hb | 12-16 g/dL | β | β | β |
| MCV | 80-100 fL | β (<80) | Normal/β | β (<80) |
| MCHC | 32-36 g/dL | β | Normal | Normal |
| RDW | 11.5-14.5% | β (>15%) | Normal | Normal/β |
| Reticulocyte count | 0.5-1.5% | β (hypoproliferative) | β | Variable |
Ferritin < 15 ΞΌg/L = diagnostic of IDA. However, ferritin is an acute-phase reactant β may be falsely elevated during infection/inflammation even when iron-deficient. In such cases, ferritin <30 ΞΌg/L with co-existing inflammation suggests IDA.
Serum ferritin is the most accurate single test for diagnosing IDA in pregnancy (Rosen's Emergency Medicine).
| Preparation | Elemental Fe content | Dose | Notes |
|---|---|---|---|
| Ferrous sulfate 325 mg | 65 mg | 1 tab OD-BD | Cheapest; standard of care |
| Ferrous gluconate 300 mg | 35 mg | 1 tab BD-TDS | Better tolerated |
| Ferrous fumarate 200 mg | 65 mg | 1 tab BD | Alternative |
| Ferrous ascorbate 100 mg | 33 mg | 1 tab BD | Enhanced absorption |
In pregnancy, IV iron has been shown to be superior to oral iron in multiple RCTs (Goldman-Cecil Medicine).
| IV Iron Preparation | Dose | Notes |
|---|---|---|
| Ferric carboxymaltose (FCM) | 1000 mg single dose IV infusion | Preferred in pregnancy; no test dose; well-tolerated |
| Iron sucrose | 100-200 mg per session; multiple sessions | Safe in pregnancy; widely used in India |
| Low-MW Iron dextran | 1000 mg over 1 hr | Requires test dose; anaphylaxis risk |
| Ferumoxytol | 510 mg Γ 2 doses | Limited data in pregnancy |
Infection/Inflammation
β
IL-6, TNF-Ξ±, IL-1Ξ² (cytokines)
β
β Hepcidin from liver
β
Ferroportin inactivation
β Iron release from reticuloendothelial cells
β Intestinal iron absorption
β
β Serum iron β β Erythropoiesis
β
ANEMIA OF CHRONIC DISEASE
| Test | ACD | IDA | IDA + ACD |
|---|---|---|---|
| Serum iron | β | ββ | β |
| TIBC | β (key!) | ββ | Normal/β |
| % Saturation | β (<30%) | β (<16%) | β (<20%) |
| Ferritin | β (>100-200) | β (<15) | β (<30, despite inflammation) |
| MCV | Normal/slightly β | β | β |
| Reticulocyte | Low | Low | Low |
| CRP/ESR | β (inflammation) | Normal | β |
| Hepcidin | β | β | Variable |
| sTfR | Normal | β | β |
Key diagnostic tip: In ACD, TIBC is low (iron is sequestered in macrophages, reducing transport protein expression), whereas in IDA, TIBC is high (compensatory increase in transferrin synthesis).
The second most common nutritional anemia in pregnancy (after IDA). Predominantly due to folate deficiency in India; B12 deficiency is also common given the predominantly vegetarian population.
B12 deficiency β Folate trap β β THF β β Thymidylate β β DNA synthesis β Megaloblasts
β
β Homocysteine β Neural tube defects, thrombosis
| Feature | Folate Deficiency | B12 Deficiency |
|---|---|---|
| Onset | Rapid (months) | Slow (years) |
| Macrocytic anemia | Yes | Yes |
| Hypersegmented neutrophils | Yes | Yes |
| Glossitis, stomatitis | Yes | Yes |
| Neurological symptoms | Absent | Yes β subacute combined degeneration |
| Peripheral neuropathy | No | Numbness, tingling |
| Spinal cord (SCD) | No | Posterior + lateral column degeneration |
| Neural tube defects in fetus | Yes (periconceptional folate deficiency) | Less direct |
| Test | Folate Deficiency | B12 Deficiency |
|---|---|---|
| Hb | β | β |
| MCV | β (>100 fL) | β (>100 fL) |
| Peripheral smear | Oval macrocytes + hypersegmented neutrophils (β₯5 lobes) | Same |
| Serum folate | β (<2.5 ng/mL) | Normal or β (falsely high in B12 def.) |
| RBC folate | β (more reliable β reflects long-term stores) | β (also reduced in B12 deficiency) |
| Serum B12 | Normal | β (<200 pg/mL) |
| Methylmalonic acid (MMA) | Normal | β (specific for B12 deficiency) |
| Homocysteine | β (both deficiencies cause this) | β |
| Bone marrow | Megaloblasts, giant metamyelocytes | Same |
| Anti-intrinsic factor Ab | Negative | Positive in pernicious anemia (sensitivity ~60%) |
Clinical pearl for India: Treat empirically with both folate AND B12 if megaloblastic anemia is diagnosed but cause is unclear. Giving folate alone to a B12-deficient patient corrects blood picture but worsens neurological disease β the "folate trap masking B12 deficiency" is a dangerous error!
| Grade | Criteria |
|---|---|
| Severe | BM cellularity <25% + 2 of: neutrophils <500/ΞΌL, platelets <20,000/ΞΌL, reticulocytes <1% |
| Very severe | Same + neutrophils <200/ΞΌL |
| Non-severe | Does not meet above criteria |
| Type | Genetics | India Prevalence | Clinical Severity |
|---|---|---|---|
| Ξ²-Thalassemia trait | Heterozygous Ξ²-globin mutation | ~3-4% of Indians | Mild microcytic anemia; no transfusion |
| Ξ²-Thalassemia major (Cooley's anemia) | Homozygous | Rare in pregnancy (severe) | Transfusion-dependent from infancy |
| Ξ²-Thalassemia intermedia | Compound heterozygous | Uncommon | Moderate anemia; variable transfusion |
| Ξ±-Thalassemia trait (1-2 gene del) | -Ξ±/Ξ±Ξ± or --/Ξ±Ξ± | High in NE India, tribals | Silent/mild microcytic anemia |
| HbH disease (3 gene del) | --/-Ξ± | Less common | Moderate hemolytic anemia |
| Hb Barts/Hydrops fetalis (4 gene del) | --/-- | Rare | Fetal death in utero |

| Test | Ξ²-Thal Trait | Ξ±-Thal Trait | IDA |
|---|---|---|---|
| Hb | β (9-11) | β (10-12) | β |
| MCV | ββ (<75 fL) | β (<80 fL) | β |
| Hb A2 | β (>3.5%) β KEY | Normal | Normal |
| Hb F | Variable β | Normal | Normal |
| Hb electrophoresis | Hb A2 β | Normal (in trait) | Normal |
| Serum ferritin | Normal/β | Normal | β |
| TIBC | Normal | Normal | β |
| RDW | Normal | Normal | β |
| sTfR | Mild β (Ξ±-thal only) | β | ββ |
Mentzer Index = MCV/RBC count
13 β IDA- <13 β Thalassemia trait (Simple bedside tool, not definitive)
| Genotype | Name | Clinical Severity |
|---|---|---|
| HbSS | Sickle cell anemia (SCA) | Severe; most common severe form |
| HbSC | Sickle-C disease | Moderate; may worsen in pregnancy |
| HbS-Ξ² Thal | Sickle-beta thalassemia | Variable (depends on Ξ²0 vs Ξ²+) |
| HbAS | Sickle cell trait | Usually asymptomatic; some pregnancy risks |
Point mutation: Glutamic acid β Valine at position 6 of Ξ²-globin chain
β
Abnormal HbS produced
β
Deoxygenation / oxidant stress / dehydration / infection
β
HbS polymerizes β RBC sickling
β
ββββββββββββββββββββββββββββββββββββ
β β
Vaso-occlusion Hemolysis
(pain crises, (Hb often 6-9 g/dL
organ infarction) in baseline SCA)
β β
Acute chest syndrome Chronic anemia + jaundice
Stroke, AVN Pigment gallstones
Priapism, splenic Functional asplenia
sequestration
| System | Manifestation |
|---|---|
| Hematologic | Chronic hemolytic anemia (Hb 6-9 g/dL), jaundice, reticulocytosis |
| Bone/Joint | Painful crises (vaso-occlusive), avascular necrosis (femoral head) |
| Pulmonary | Acute chest syndrome (fever + chest pain + new infiltrate + βSpO2) |
| CNS | Stroke, TIA |
| Renal | Hematuria, renal papillary necrosis, pyelonephritis |
| Splenic | Acute sequestration, functional asplenia β β encapsulated organism infections |
| Eye | Proliferative retinopathy |
| Obstetric | Preeclampsia, PTL, FGR, perinatal death |
| Test | SCA (HbSS) | Sickle Trait (HbAS) |
|---|---|---|
| Hb | 6-9 g/dL | Normal (12-14) |
| MCV | Low/Normal | Normal |
| Peripheral smear | Sickle cells, target cells, Howell-Jolly bodies | Usually normal |
| Hb electrophoresis/HPLC | HbS >80%; No HbA | HbS 35-45%; HbA present |
| Reticulocyte count | ββ (7-20%) | Normal |
| LDH | β | Normal |
| Bilirubin (indirect) | β | Normal |
| Haptoglobin | β/absent | Normal |
| Sickling test (sodium metabisulfite) | Positive | Positive |
ANEMIC PREGNANT WOMAN (Hb below trimester threshold)
β
βββββββββββββββββββββββββββββββββ
β STEP 1: CBC + Reticulocyte β
β count + Peripheral Smear β
ββββββββββββββ¬βββββββββββββββββββ
β
ββββββββββββββ΄βββββββββββββββββββββββββ
β Morphological Classification β
βββββ¬ββββββββββββββ¬βββββββββββββββ¬ββββ
β β β
MICROCYTIC NORMOCYTIC MACROCYTIC
(MCV <80) (MCV 80-100) (MCV >100)
β β β
Iron studies Reticulocyte B12 + Folate
Ferritin count β
TIBC βMCV + oval macros
β LOW reticulocyte + hyperseg neuts
Ferritin <15 βAplasia/ACD = MEGALOBLASTIC
TIBC β /Chronic renal β
= IDA disease Folate/B12 Rx
β β
Ferritin HIGH reticulocyte
normal + MCV βHEMOLYSIS
very low β
= Thalassemia Coombs, LDH,
(check HPLC) Haptoglobin,
smear
βAIHA/MAHA/
Hemoglobinopathy
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β ANEMIA IN PREGNANCY β
β Hb < 11 (1st/3rd T) | Hb < 10.5 (2nd T) β
ββββββββββββββββββββββββββββββββ¬ββββββββββββββββββββββββββββββββββββ
β
ββββββββββββββββββββββββββββββββββ
β CBC + Retic + Smear β Classify β
βββββββββββββββββ¬βββββββββββββββββ
β
βββββββββββββββββββββββΌβββββββββββββββββββββββ
β β β
MICROCYTIC NORMOCYTIC MACROCYTIC
(Most common (Check for (B12/Folate
in India = IDA) ACD, hemolysis, deficiency)
β aplasia) β
Iron Studies β ββββββββββββββββββββ
Ferritin (key test) Full workup β Folate 5mg/day β
β as needed β or β
IDA Confirmed β B12 IM/oral β
β β NEVER give folate β
SEVERITY β alone in B12 def β
ββ Mild (Hb 9-11) β ORAL IRON ββββββββββββββββββββ
β Ferrous sulfate 200mg elem Fe/day
β + Vit C; empty stomach
β Recheck in 4 wks
β
ββ Moderate (Hb 7-9) β ORAL IRON
β Escalate to IV iron if:
β - Intolerant
β - 3rd trimester
β - Inadequate response
β
ββ Severe (Hb <7) β IV IRON
β Ferric carboxymaltose 1000mg
β OR Iron sucrose 200mg Γ sessions
β + Consider blood transfusion
β if Hb <6 or symptomatic
β
ββ Very Severe (<5) β TRANSFUSION
Packed RBCs (target Hb 8-10)
+ IV iron for stores
+ ICU if CCF
β
ALL PATIENTS:
βββ Folic acid 0.5-5 mg/day
βββ Dietary counseling
βββ Treat underlying cause
βββ Hemoglobinopathy screen if at risk
βββ Serial USS if severe
βββ Monitor CBC every 4 weeks
βββ Continue iron 3 months postpartum
β
SPECIAL SITUATIONS:
βββ Sickle cell: Hydration + O2 + analgesia
β for crises; exchange transfusion for ACS
β Folic acid 5mg; stop hydroxyurea
βββ Thalassemia trait: No extra iron;
β genetic counseling; partner testing
βββ Aplastic: ATG + cyclosporine;
β RBC + platelet transfusions
β No androgens in pregnancy
βββ AIHA: Steroids β IVIG β Splenectomy
Create a PowerPoint presentation from these seminar notes
ls /home/daytona/workspace/ 2>/dev/null && echo "workspace exists" || mkdir -p /home/daytona/workspace
mkdir -p /home/daytona/workspace/anemia-pregnancy-ppt && node -e "const p = require('pptxgenjs'); console.log('pptxgenjs OK')"
node /home/daytona/skills/shared/scripts/fetch_images.js "https://cdn.orris.care/cdss_images/fa23ee181891fb49a8189918cc3930fb1cf9e82b7d454a558c36f93c9f9c4f3b.png" "https://cdn.orris.care/cdss_images/1353c9da75dca8efa84a9566b079c218470222df134624cf51bdfbd78b21e033.png" 2>/dev/null | python3 -c "import sys,json; d=json.load(sys.stdin); [print(i, d[i]['error'] if d[i].get('error') else 'OK:'+str(len(d[i].get('base64',''))//1024)+'KB') for i in range(len(d))]"
Create a PowerPoint presentation from these seminar notes
mkdir -p /home/daytona/workspace/anemia-pregnancy-ppt && node -e "require('pptxgenjs'); console.log('OK')"
cd /home/daytona/workspace/anemia-pregnancy-ppt && node /home/daytona/skills/shared/scripts/fetch_images.js \ "https://cdn.orris.care/cdss_images/fa23ee181891fb49a8189918cc3930fb1cf9e82b7d454a558c36f93c9f9c4f3b.png" \ "https://cdn.orris.care/cdss_images/1353c9da75dca8efa84a9566b079c218470222df134624cf51bdfbd78b21e033.png" \ > images.json && python3 -c " import json d = json.load(open('images.json')) for i,x in enumerate(d): print(i, 'ERROR:'+str(x.get('error')) if x.get('error') else 'OK '+str(len(x.get('base64',''))//1024)+'KB') "
~/anemia-pregnancy-ppt/build.js
const pptxgen = require("pptxgenjs");
const fs = require("fs");
// Load pre-fetched images
const imgs = JSON.parse(fs.readFileSync("images.json"));
const smearImg = imgs[0].base64; // microcytic hypochromic smear
const thalFlowImg = imgs[1].base64; // thalassemia screening flowchart
// βββ PALETTE ββββββββββββββββββββββββββββββββββββββββββββββββ
// Medical deep navy/crimson theme
const C = {
navy: "0D1B3E", // dominant dark
crimson: "C0392B", // accent red (blood / medical)
teal: "1A6B7C", // secondary
gold: "D4A017", // highlight
white: "FFFFFF",
lightGray:"F4F6F9",
midGray: "8C9BAB",
darkGray: "2C3E50",
green: "1E8449",
orange: "D35400",
purple: "6C3483",
};
let pres = new pptxgen();
pres.layout = "LAYOUT_16x9";
pres.author = "OBGYN Seminar";
pres.title = "Anemia in Pregnancy";
// βββ HELPER FUNCTIONS ββββββββββββββββββββββββββββββββββββββββ
// Standard slide with navy header bar
function makeSlide(titleText, sectionTag) {
let s = pres.addSlide();
// Full background
s.addShape(pres.shapes.RECTANGLE, { x:0, y:0, w:10, h:5.625, fill:{ color: C.lightGray }, line:{ color: C.lightGray } });
// Top header bar
s.addShape(pres.shapes.RECTANGLE, { x:0, y:0, w:10, h:0.75, fill:{ color: C.navy }, line:{ color: C.navy } });
// Crimson left accent stripe
s.addShape(pres.shapes.RECTANGLE, { x:0, y:0, w:0.12, h:5.625, fill:{ color: C.crimson }, line:{ color: C.crimson } });
// Bottom footer
s.addShape(pres.shapes.RECTANGLE, { x:0, y:5.3, w:10, h:0.325, fill:{ color: C.navy }, line:{ color: C.navy } });
s.addText("Anemia in Pregnancy | OBGYN Seminar", { x:0.2, y:5.3, w:7, h:0.325, fontSize:8, color:C.midGray, valign:"middle", margin:0 });
s.addText("Source: Creasy & Resnik / Goldman-Cecil / NFHS-5", { x:5, y:5.3, w:4.8, h:0.325, fontSize:7, color:C.midGray, align:"right", valign:"middle", margin:0 });
// Title
s.addText(titleText, { x:0.25, y:0.05, w:8.8, h:0.65, fontSize:20, bold:true, color:C.white, valign:"middle", margin:4 });
// Section tag badge
if (sectionTag) {
s.addShape(pres.shapes.ROUNDED_RECTANGLE, { x:8.4, y:0.1, w:1.45, h:0.5, fill:{ color: C.crimson }, rectRadius:0.05, line:{ color: C.crimson } });
s.addText(sectionTag, { x:8.4, y:0.1, w:1.45, h:0.5, fontSize:8, bold:true, color:C.white, align:"center", valign:"middle", margin:0 });
}
return s;
}
// Dark "chapter divider" slide
function makeDivider(label, sub) {
let s = pres.addSlide();
s.addShape(pres.shapes.RECTANGLE, { x:0, y:0, w:10, h:5.625, fill:{ color: C.navy }, line:{ color: C.navy } });
s.addShape(pres.shapes.RECTANGLE, { x:0, y:2.4, w:10, h:0.06, fill:{ color: C.crimson }, line:{ color: C.crimson } });
s.addShape(pres.shapes.RECTANGLE, { x:0, y:0, w:0.18, h:5.625, fill:{ color: C.crimson }, line:{ color: C.crimson } });
s.addText(label, { x:0.5, y:1.5, w:9, h:1.1, fontSize:34, bold:true, color:C.white, align:"center", valign:"middle" });
if (sub) s.addText(sub, { x:0.5, y:2.7, w:9, h:0.9, fontSize:16, color:C.gold, align:"center", valign:"middle" });
return s;
}
// Stat card
function addStatCard(s, x, y, w, h, value, label, color) {
color = color || C.teal;
s.addShape(pres.shapes.RECTANGLE, { x, y, w, h, fill:{ color }, line:{ color }, shadow:{ type:"outer", color:"000000", blur:5, offset:2, angle:135, opacity:0.15 } });
s.addText(value, { x, y: y+0.05, w, h: h*0.55, fontSize:22, bold:true, color:C.white, align:"center", valign:"middle", margin:0 });
s.addText(label, { x, y: y+h*0.55, w, h: h*0.45, fontSize:9, color:C.white, align:"center", valign:"top", margin:2 });
}
// Colored info box
function addBox(s, x, y, w, h, title, body, titleColor, bgColor) {
bgColor = bgColor || "FFFFFF";
s.addShape(pres.shapes.RECTANGLE, { x, y, w, h, fill:{ color: bgColor }, line:{ color: titleColor || C.teal, pt:1.5 }, shadow:{ type:"outer", color:"000000", blur:4, offset:1, angle:135, opacity:0.1 } });
s.addShape(pres.shapes.RECTANGLE, { x, y, w, h:0.3, fill:{ color: titleColor || C.teal }, line:{ color: titleColor || C.teal } });
s.addText(title, { x: x+0.05, y, w: w-0.1, h:0.3, fontSize:9, bold:true, color:C.white, valign:"middle", margin:2 });
s.addText(body, { x: x+0.1, y: y+0.32, w: w-0.2, h: h-0.38, fontSize:8.5, color:C.darkGray, valign:"top", margin:0 });
}
// bullet list helper - returns array for addText
function bullets(items, opts) {
opts = opts || {};
return items.map((t,i) => ({
text: t,
options: { bullet: { type:"bullet" }, fontSize: opts.fontSize||9.5, color: opts.color||C.darkGray, breakLine: i<items.length-1, bold: opts.bold||false, indentLevel: opts.indent||0 }
}));
}
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
// SLIDE 1 β TITLE
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
{
let s = pres.addSlide();
s.addShape(pres.shapes.RECTANGLE, { x:0, y:0, w:10, h:5.625, fill:{ color: C.navy }, line:{ color: C.navy } });
// Decorative circles
s.addShape(pres.shapes.OVAL, { x:7.5, y:-0.5, w:4, h:4, fill:{ color: C.teal, transparency:75 }, line:{ color: C.teal, transparency:75 } });
s.addShape(pres.shapes.OVAL, { x:8.5, y:3, w:3, h:3, fill:{ color: C.crimson, transparency:80 }, line:{ color: C.crimson, transparency:80 } });
// Left accent
s.addShape(pres.shapes.RECTANGLE, { x:0, y:0, w:0.3, h:5.625, fill:{ color: C.crimson }, line:{ color: C.crimson } });
// Gold bar under title
s.addShape(pres.shapes.RECTANGLE, { x:0.5, y:2.85, w:5, h:0.06, fill:{ color: C.gold }, line:{ color: C.gold } });
s.addText("ANEMIA IN PREGNANCY", { x:0.5, y:1.1, w:8, h:1.3, fontSize:36, bold:true, color:C.white, charSpacing:3 });
s.addText("Comprehensive Seminar for OBG Residents", { x:0.5, y:2.45, w:8, h:0.45, fontSize:16, color:C.gold, italic:true });
s.addText([
{ text: "Department of Obstetrics & Gynaecology ", options:{fontSize:11, color:C.midGray} },
{ text: "\nIndia | NFHS-5 | WHO 2024 | Creasy & Resnik Β· Goldman-Cecil Β· Harrison's", options:{fontSize:9.5, color:C.midGray} }
], { x:0.5, y:3.1, w:8.5, h:0.9 });
s.addText([
{ text: "52.2%", options:{fontSize:38, bold:true, color:C.crimson} },
{ text: " of pregnant women in India are anemic", options:{fontSize:13, color:C.white} }
], { x:0.5, y:4.1, w:9, h:0.8 });
}
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
// SLIDE 2 β TABLE OF CONTENTS
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
{
let s = makeSlide("Table of Contents", "OVERVIEW");
const sections = [
["01", "Definition (WHO)", C.crimson],
["02", "Epidemiology & India Burden", C.teal],
["03", "Classification of Causes", C.purple],
["04", "Effects on Mother & Fetus", C.orange],
["05", "Iron Deficiency Anemia", C.crimson],
["06", "Megaloblastic Anemia", C.teal],
["07", "Hemolytic Anemias", C.orange],
["08", "Aplastic Anemia", C.purple],
["09", "Thalassemias", C.green],
["10", "Sickle Cell Disease", C.crimson],
["11", "Anemia of Chronic Disease", C.teal],
["12", "Management Flowchart", C.navy],
];
const cols = 2, rows = 6;
const bw = 4.5, bh = 0.62, gx = 0.2, gy = 0.95, colGap = 0.2;
sections.forEach((sec, i) => {
const col = i % cols, row = Math.floor(i / cols);
const x = gx + col*(bw + colGap);
const y = gy + row*(bh + 0.07);
s.addShape(pres.shapes.RECTANGLE, { x, y, w:bw, h:bh, fill:{ color: C.white }, line:{ color: sec[2], pt:1 } });
s.addShape(pres.shapes.RECTANGLE, { x, y, w:0.5, h:bh, fill:{ color: sec[2] }, line:{ color: sec[2] } });
s.addText(sec[0], { x, y, w:0.5, h:bh, fontSize:14, bold:true, color:C.white, align:"center", valign:"middle", margin:0 });
s.addText(sec[1], { x: x+0.58, y, w: bw-0.65, h:bh, fontSize:11, color:C.darkGray, valign:"middle", margin:0 });
});
}
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
// SLIDE 3 β DEFINITION
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
{
let s = makeSlide("1. Definition β WHO", "DEFINITION");
// Quote box
s.addShape(pres.shapes.RECTANGLE, { x:0.2, y:0.85, w:9.6, h:0.88, fill:{ color: C.navy }, line:{ color: C.navy } });
s.addShape(pres.shapes.RECTANGLE, { x:0.2, y:0.85, w:0.12, h:0.88, fill:{ color: C.gold }, line:{ color: C.gold } });
s.addText('"Anemia is a condition where the number of RBCs (and thus Hb concentration) is insufficient to meet the body\'s physiological needs." β WHO', {
x:0.45, y:0.85, w:9.2, h:0.88, fontSize:11, color:C.white, italic:true, valign:"middle"
});
// WHO threshold table
s.addText("WHO / CDC Operative Hb Thresholds in Pregnancy", { x:0.2, y:1.85, w:5.6, h:0.32, fontSize:10, bold:true, color:C.navy });
const tRows = [
["Trimester / Period", "Hb Threshold (g/dL)", "Haematocrit (%)"],
["1st Trimester", "< 11.0", "< 33%"],
["2nd Trimester", "< 10.5", "< 32%"],
["3rd Trimester", "< 11.0", "< 33%"],
["Postpartum", "< 10.0", "< 30%"],
];
s.addTable(tRows, {
x:0.2, y:2.2, w:5.5, h:2.7,
colW:[2.4, 1.8, 1.3],
fontSize:9.5,
border:{ type:"solid", color:"D0D0D0", pt:0.5 },
fill: C.white,
fontFace:"Calibri",
align:"center",
valign:"middle",
});
// Severity classification
s.addText("WHO Severity Classification (2024)", { x:5.85, y:1.85, w:3.9, h:0.32, fontSize:10, bold:true, color:C.navy });
const sevRows = [
["Category", "Hb (g/dL)"],
["Normal", "β₯ 11.0"],
["Mild", "10.0 β 10.9"],
["Moderate", "7.0 β 9.9"],
["Severe", "< 7.0"],
["Life-threat.", "< 5.0"],
];
const sevColors = [C.navy, C.green, C.gold, C.orange, C.crimson, "7D0000"];
s.addTable(sevRows, {
x:5.85, y:2.2, w:3.9, h:2.7,
colW:[2.2,1.7],
fontSize:9.5,
border:{ type:"solid", color:"D0D0D0", pt:0.5 },
fontFace:"Calibri",
align:"center",
valign:"middle",
});
}
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
// SLIDE 4 β EPIDEMIOLOGY INDIA
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
{
let s = makeSlide("2. Epidemiology β India Burden (NFHS-5, 2019-21)", "EPIDEMIOLOGY");
// Big stat cards
const cards = [
["52.2%", "Pregnant women\nwith anemia (India)", C.crimson],
["1.4%", "Severe anemia\n(Hb <7 g/dL)", "7D0000"],
["57%", "Women of repro.\nage anemic (NFHS-5)", C.orange],
["63.1%", "Bihar β highest\nstate burden", C.teal],
["71.4%", "Ladakh β highest\nUT burden", C.purple],
["81.5%", "Udalgiri (Assam)\nworst district", C.navy],
];
cards.forEach((c,i) => {
const col = i%3, row = Math.floor(i/3);
addStatCard(s, 0.2 + col*3.22, 0.9 + row*1.45, 3.0, 1.28, c[0], c[1], c[2]);
});
// Risk factors
s.addShape(pres.shapes.RECTANGLE, { x:0.2, y:3.55, w:9.6, h:1.62, fill:{ color: C.white }, line:{ color: C.teal, pt:1 } });
s.addShape(pres.shapes.RECTANGLE, { x:0.2, y:3.55, w:9.6, h:0.3, fill:{ color: C.teal }, line:{ color: C.teal } });
s.addText("Key Risk Factors β India (NFHS-5 Logistic Regression)", { x:0.3, y:3.55, w:9, h:0.3, fontSize:9.5, bold:true, color:C.white, valign:"middle", margin:2 });
const rfItems = [
"No formal education β aOR 1.41 | Poorest wealth quintile β aOR 1.69",
"Tobacco / smoking / alcohol β aOR 1.39 | Short birth interval β higher risk",
"Adolescent pregnancy (61.5%) | Scheduled Tribes (59.3%) | Eastern India (62.1%)",
"Vegetarian diet (low heme-iron bioavailability) | High multiparity | Hookworm / malaria endemic zones",
];
s.addText(rfItems.map((r,i) => ({ text:r, options:{ bullet:{ type:"bullet" }, fontSize:8.8, color:C.darkGray, breakLine: i<rfItems.length-1 } })),
{ x:0.4, y:3.88, w:9.2, h:1.25 });
}
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
// SLIDE 5 β CAUSES CLASSIFICATION
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
{
let s = makeSlide("3. Classification of Causes", "CAUSES");
// Two columns: Hereditary | Acquired
addBox(s, 0.2, 0.85, 4.6, 4.35, "HEREDITARY (Genetic)", [
"Hemoglobinopathies:",
" β’ Sickle cell disease (SS, SC, S-Ξ² thal)",
" β’ Sickle cell trait (AS)",
" β’ Hb C, Hb E, Hb D Punjab",
"",
"Thalassemias:",
" β’ Ξ±-Thalassemia (gene deletions)",
" β’ Ξ²-Thalassemia (point mutations)",
" β’ HbE + Ξ²-thal (common in NE India)",
"",
"RBC Enzyme Defects:",
" β’ G6PD deficiency (X-linked recessive)",
"",
"RBC Membrane Disorders:",
" β’ Hereditary spherocytosis (AD)",
" β’ Hereditary elliptocytosis",
].join("\n"), C.purple, C.white);
addBox(s, 5.05, 0.85, 4.75, 4.35, "ACQUIRED", [
"Nutritional (MOST COMMON in India):",
" β’ Iron deficiency anemia (IDA) β #1",
" β’ Folate deficiency (megaloblastic) β #2",
" β’ Vitamin B12 deficiency",
"",
"Physiological (Dilutional) β Normal",
"",
"Acute Blood Loss: APH, PPH, rupture",
"",
"Anemia of Chronic Disease (ACD):",
" β’ TB, Malaria, HIV, chronic renal disease",
"",
"Hemolytic (Acquired):",
" β’ AIHA (warm/cold), HELLP, TTP/HUS",
"",
"Bone Marrow Failure:",
" β’ Aplastic anemia, Leukemia",
].join("\n"), C.teal, C.white);
}
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
// SLIDE 6 β EFFECTS ON MOTHER
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
{
let s = makeSlide("4a. Effects on Mother", "MATERNAL EFFECTS");
const boxes = [
["ANTENATAL", ["High-output cardiac failure (severe)", "Tachycardia, palpitations, dyspnoea", "Increased infection risk (UTI, TB, pneumonia)", "Pre-eclampsia risk β (SCD)", "Preterm labour / PROM"], C.teal],
["INTRAPARTUM", ["Poor uterine contractions (iron def.)", "Prolonged labour (fatigue)", "Poor tolerance of blood loss", "Increased need for blood transfusion", "Sickle crises during labour"], C.orange],
["POSTPARTUM / SURGICAL", ["PPH β primary cause of maternal death in India", "Poor wound healing, SSI β", "Puerperal sepsis (immune compromise)", "Postpartum depression (iron def.)", "Failure of lactation, prolonged hospital stay"], C.crimson],
];
boxes.forEach((b,i) => {
addBox(s, 0.2 + i*3.27, 0.85, 3.1, 3.4, b[0], b[1].map(x=>"β’ "+x).join("\n"), b[2], C.white);
});
// Key stat banner
s.addShape(pres.shapes.RECTANGLE, { x:0.2, y:4.35, w:9.6, h:0.7, fill:{ color: C.navy }, line:{ color: C.navy } });
s.addText([
{ text: "Maternal mortality RR = 3.5", options:{fontSize:13, bold:true, color:C.crimson} },
{ text: " with severe anemia (Hb <5 g/dL) β Asia, Africa, Latin America (Creasy & Resnik)", options:{fontSize:10, color:C.white} }
], { x:0.4, y:4.35, w:9.2, h:0.7, valign:"middle" });
}
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
// SLIDE 7 β EFFECTS ON FETUS
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
{
let s = makeSlide("4b. Effects on Fetus & Neonate", "FETAL EFFECTS");
const fRows = [
["Maternal Hb", "Fetal / Neonatal Risk"],
["Hb 9 β 11 g/dL (Mild)", "Generally good outcome"],
["Hb 7 β 9 g/dL (Moderate)", "β Preterm birth, β Low birth weight"],
["Hb < 7 g/dL (Severe)", "β FGR/SGA, β Perinatal death"],
["Hb < 6 g/dL (Very severe)", "Abnormal fetal oxygenation, non-reassuring FHR, stillbirth"],
["Hb > 14.5 g/dL (Too high!)", "Paradox: poor placentation β SGA, stillbirth (inadequate plasma expansion)"],
];
s.addTable(fRows, {
x:0.2, y:0.85, w:9.6, h:2.4,
colW:[3.4,6.2],
fontSize:9.5,
border:{ type:"solid", color:"D0D0D0", pt:0.5 },
fontFace:"Calibri",
align:"left",
valign:"middle",
});
// Bottom boxes
const fboxes = [
["Preterm Birth", "Significant association with anemia early in pregnancy β confirmed by meta-analyses (Creasy & Resnik)", C.orange],
["Neonatal Iron Deficiency", "Ferritin <25th percentile β long-term ABNORMAL NEUROLOGIC FUNCTION, cognitive delays, language deficits", C.crimson],
["Neural Tube Defects", "Periconceptional folate deficiency β 400 ΞΌg/day supplementation mandatory; 5 mg for high-risk women", C.teal],
["Delayed Cord Clamping", "WHO + ACOG recommend 30-60 second delay β significantly increases neonatal iron stores", C.green],
];
fboxes.forEach((b,i) => {
addBox(s, 0.2 + i*2.42, 3.35, 2.26, 1.68, b[0], b[1], b[2], C.white);
});
}
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
// SLIDE 8 β DIVIDER: PHYSIOLOGICAL
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
makeDivider("PHYSIOLOGICAL ANEMIA OF PREGNANCY", "Normal Adaptive Hemodilution β Understanding the Baseline");
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
// SLIDE 9 β PHYSIOLOGICAL ANEMIA
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
{
let s = makeSlide("5A. Physiological (Dilutional) Anemia", "PHYSIOLOGICAL");
// Volume change table
s.addText("Normal Blood Volume Changes", { x:0.2, y:0.85, w:4.8, h:0.3, fontSize:10, bold:true, color:C.navy });
s.addTable([
["Parameter", "Change"],
["Total blood volume", "β 40β45%"],
["Plasma volume", "β 47%"],
["RBC mass", "β 17β20%"],
["Net effect", "Relative hemodilution"],
["Hb nadir at", "28β34 weeks"],
], { x:0.2, y:1.18, w:4.8, h:2.15, colW:[2.8,2.0], fontSize:9.5, border:{ type:"solid", color:"D0D0D0", pt:0.5 }, fontFace:"Calibri", align:"center", valign:"middle" });
// Key distinguishing features
addBox(s, 0.2, 3.4, 4.8, 1.52, "Key Points β Physiological Anemia", [
"β’ MCV and MCHC do NOT change (key distinction from IDA)",
"β’ Hb falls because plasma rises faster than RBC mass",
"β’ Protective: reduces blood viscosity β improves uteroplacental flow",
"β’ Ferritin: NORMAL",
"β’ NO treatment required β routine IFA supplementation continues",
].join("\n"), C.green, C.white);
// Right column: IDA vs physio distinction
addBox(s, 5.25, 0.85, 4.5, 4.07, "Physiological vs. IDA β Distinguish by:", [
"Parameter Physiol. IDA",
"βββββββββββββββββββββββββββββ",
"MCV NORMAL ββ",
"MCHC NORMAL β",
"Ferritin NORMAL β (<15)",
"TIBC NORMAL β (>400)",
"% Sat NORMAL β (<16%)",
"Reticulocyte Nl/mild β β",
"Symptoms None Pica, pallor",
"",
"β Serial MCV + MCHC unchanged",
" = dilutional (reassuring)",
" Declining MCV + MCHC = IDA",
].join("\n"), C.teal, C.white);
}
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
// SLIDE 10 β DIVIDER IDA
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
makeDivider("IRON DEFICIENCY ANEMIA (IDA)", "Most Common β Accounts for >50% of all Anemia in Pregnancy");
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
// SLIDE 11 β IDA PATHOPHYSIOLOGY
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
{
let s = makeSlide("5B. IDA β Iron Requirements & Pathophysiology", "IDA");
// Iron requirements table
s.addText("Iron Requirements in Pregnancy (Creasy & Resnik)", { x:0.2, y:0.85, w:5.5, h:0.3, fontSize:10, bold:true, color:C.navy });
s.addTable([
["Purpose", "Average (mg)", "Range (mg)"],
["External iron loss", "170", "150β200"],
["Expand RBC mass", "450", "200β600"],
["Fetal iron needs", "270", "200β370"],
["Placenta & cord", "90", "30β170"],
["Blood loss at delivery", "150", "90β310"],
["TOTAL", "1130", "580β1340"],
], { x:0.2, y:1.18, w:5.4, h:2.6, colW:[2.8,1.3,1.3], fontSize:9.5, border:{ type:"solid", color:"D0D0D0", pt:0.5 }, fontFace:"Calibri", align:"center", valign:"middle" });
// Three stages boxes
s.addText("3 Stages of Iron Deficiency", { x:0.2, y:3.85, w:5.4, h:0.3, fontSize:9.5, bold:true, color:C.navy });
const stages = [
["Stage 1\nPre-latent", "β Ferritin\nStores depleted\nHb NORMAL", C.gold],
["Stage 2\nLatent", "β Serum Fe\nβ TIBC\nβ % Saturation\nHb still NORMAL", C.orange],
["Stage 3\nOvert IDA", "β Hb\nβ MCV\nMicrocytic smear\nSymptoms appear", C.crimson],
];
stages.forEach((st, i) => {
const x = 0.2 + i*1.87;
s.addShape(pres.shapes.RECTANGLE, { x, y:4.18, w:1.75, h:0.98, fill:{ color: st[2] }, line:{ color: st[2] } });
s.addText(st[0], { x, y:4.18, w:1.75, h:0.3, fontSize:8, bold:true, color:C.white, align:"center", valign:"middle", margin:1 });
s.addText(st[1], { x, y:4.5, w:1.75, h:0.66, fontSize:7.5, color:C.white, align:"center", valign:"top", margin:2 });
if(i<2) s.addText("β", { x: x+1.77, y:4.5, w:0.1, h:0.5, fontSize:14, bold:true, color:C.crimson, valign:"middle" });
});
// Right column: key facts
addBox(s, 5.85, 0.85, 3.9, 2.3, "Iron Balance in India", [
"Daily requirement: 22β23 mg/day",
"Average Indian diet provides: ~15 mg/day",
"Only 10β15% non-heme iron absorbed",
"Only 25β30% heme iron absorbed",
"Vegetarian diets = predominantly non-heme iron",
"Short inter-pregnancy interval depletes stores",
"Hookworm infection: chronic GI blood loss (1 mL/day/worm)",
"",
"60% of women with ferritin <20 ΞΌg/L",
"before pregnancy develop IDA by 20 wks",
].join("\n"), C.teal, C.white);
addBox(s, 5.85, 3.3, 3.9, 1.85, "IDA Clinical Features", [
"Fatigue, weakness, exertional dyspnoea",
"PICA β pagophagia (ice), geophagia (clay/chalk)",
"Restless legs syndrome",
"Koilonychia (spoon nails) β chronic IDA",
"Angular stomatitis, atrophic glossitis",
"Pallor: conjunctiva, nails, tongue",
"Soft systolic flow murmur (high-output)",
].join("\n"), C.crimson, C.white);
}
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
// SLIDE 12 β IDA INVESTIGATIONS + SMEAR IMAGE
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
{
let s = makeSlide("5B. IDA β Laboratory Investigations", "IDA");
// Peripheral smear image
s.addImage({ data: smearImg, x:0.2, y:0.85, w:3.5, h:2.5 });
s.addText("Peripheral smear: Microcytic hypochromic RBCs\nlarge central pallor, pencil cells, anisocytosis\n(Goldman-Cecil Medicine)", { x:0.2, y:3.38, w:3.5, h:0.75, fontSize:7.5, color:C.midGray, italic:true, align:"center" });
// Iron studies comparison table
s.addText("Iron Studies β Differential Diagnosis", { x:3.85, y:0.85, w:5.9, h:0.3, fontSize:10, bold:true, color:C.navy });
s.addTable([
["Test", "IDA", "ACD", "Thalassemia"],
["Serum iron", "ββ", "β", "Normal/β"],
["TIBC", "β (>400)", "β", "Normal"],
["% Saturation", "β (<16%)", "β (<30%)", "Normal/β"],
["Ferritin", "β (<15)", "β (>200)", "Normal/β"],
["MCV", "β (<80)", "Normal/β", "ββ"],
["RDW", "β (>15%)", "Normal", "Normal"],
["Hb A2 (HPLC)", "Normal", "Normal", "β >3.5% (Ξ²)"],
], { x:3.85, y:1.18, w:5.9, h:2.9, colW:[2.1,1.2,1.2,1.4], fontSize:9, border:{ type:"solid", color:"D0D0D0", pt:0.5 }, fontFace:"Calibri", align:"center", valign:"middle" });
// Key tip box
s.addShape(pres.shapes.RECTANGLE, { x:3.85, y:4.15, w:5.9, h:0.75, fill:{ color: C.gold }, line:{ color: C.gold } });
s.addText([
{ text: "β
FERRITIN ", options:{fontSize:11, bold:true, color:C.navy} },
{ text: "is the MOST ACCURATE single test for IDA in pregnancy. ", options:{fontSize:10, color:C.navy} },
{ text: "Ferritin <15 ΞΌg/L = diagnostic. Ferritin is an acute-phase reactant β may be falsely elevated in infection; use <30 ΞΌg/L threshold if co-existing inflammation.", options:{fontSize:8.5, color:C.darkGray} }
], { x:4.0, y:4.15, w:5.6, h:0.75, valign:"middle" });
// Mentzer index
s.addShape(pres.shapes.RECTANGLE, { x:0.2, y:4.15, w:3.5, h:0.75, fill:{ color: C.purple }, line:{ color: C.purple } });
s.addText([
{ text: "Mentzer Index = MCV / RBC count\n", options:{fontSize:9.5, bold:true, color:C.white} },
{ text: "> 13 β IDA | < 13 β Thalassemia trait", options:{fontSize:9, color:C.white} }
], { x:0.25, y:4.15, w:3.4, h:0.75, valign:"middle" });
}
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
// SLIDE 13 β IDA TREATMENT
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
{
let s = makeSlide("5B. IDA β Treatment Protocol", "IDA TREATMENT");
// Oral iron
addBox(s, 0.2, 0.85, 4.7, 2.35, "ORAL IRON β First Line", [
"Ferrous sulfate 325 mg = 65 mg elemental Fe (cheapest, standard)",
"Ferrous gluconate 300 mg = 35 mg (better tolerated)",
"Ferrous fumarate / ascorbate: alternatives",
"",
"Prophylaxis (WHO/NHM India): 60 mg elem Fe + 500 ΞΌg FA daily Γ 180 days",
"Treatment dose: 100β200 mg elemental iron/day",
"",
"Take on EMPTY STOMACH + Vitamin C (β absorption)",
"AVOID with: tea (β90%), coffee (β60%), calcium, antacids, high-fibre meals",
"Alternate-day dosing: equally effective, fewer GI side effects (RCT data)",
].join("\n"), C.teal, C.white);
addBox(s, 5.1, 0.85, 4.7, 2.35, "IV IRON β When Oral Fails/Insufficient", [
"Indications: 3rd trimester, intolerance, malabsorption, severe IDA",
"NOT used in 1st trimester",
"",
"Ferric Carboxymaltose: 1000 mg single dose β PREFERRED (no test dose)",
"Iron Sucrose: 100β200 mg per session (multiple sessions; safe in India)",
"Low-MW Iron Dextran: 1000 mg over 1 hr (requires test dose)",
"",
"Side effects: flushing, myalgia, hypophosphatemia (FCM)",
"Anaphylaxis rare but serious (mainly high-MW dextran)",
"IV iron superior to oral iron in pregnancy β multiple RCTs",
].join("\n"), C.crimson, C.white);
// Blood transfusion
s.addShape(pres.shapes.RECTANGLE, { x:0.2, y:3.28, w:9.6, h:0.3, fill:{ color: C.navy }, line:{ color: C.navy } });
s.addText("BLOOD TRANSFUSION", { x:0.25, y:3.28, w:9, h:0.3, fontSize:10, bold:true, color:C.gold, valign:"middle", margin:2 });
s.addTable([
["Indication", "Threshold"],
["Antenatally symptomatic / cardiovascular compromise", "Any Hb"],
["Antenatal IDA β severe", "Hb < 6 g/dL"],
["Pre-operative (CS, etc.)", "Hb < 7β8 g/dL"],
["Active hemorrhage / PPH", "Clinical judgment β transfuse early"],
["Cardiac disease in pregnancy", "Hb < 10 g/dL"],
], { x:0.2, y:3.62, w:9.6, h:1.63, colW:[6.2,3.4], fontSize:9, border:{ type:"solid", color:"D0D0D0", pt:0.5 }, fontFace:"Calibri", align:"left", valign:"middle" });
}
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
// SLIDE 14 β MEGALOBLASTIC ANEMIA
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
makeDivider("MEGALOBLASTIC ANEMIA", "2nd Most Common Nutritional Anemia β Folate & B12 Deficiency");
{
let s = makeSlide("6. Megaloblastic Anemia β Pathophysiology & Features", "MEGALOBLASTIC");
addBox(s, 0.2, 0.85, 4.7, 2.05, "Pathophysiology", [
"Folate β Tetrahydrofolate (THF) via dihydrofolate reductase",
"THF essential for thymidylate synthesis β DNA synthesis",
"Without THF: cells enlarge but cannot divide β MEGALOBLASTS",
"",
"B12 deficiency β 'Folate trap': 5-methyl-THF trapped β",
" same end result as folate deficiency PLUS neurological damage",
" β Homocysteine β thrombosis, NTD",
"",
"Folate needs β 50% in pregnancy (fetal demand + cell turnover)",
"Half-life serum folate only 3β5 weeks β deficiency develops quickly",
].join("\n"), C.teal, C.white);
addBox(s, 5.1, 0.85, 4.7, 2.05, "Causes β India Context", [
"FOLATE DEFICIENCY:",
" β’ Poor diet (most common in India)",
" β’ Folate antagonists: methotrexate, trimethoprim, phenytoin, valproate",
" β’ Malabsorption: celiac, IBD, tropical sprue, gastric bypass",
" β’ Multiple pregnancy, hemolytic anemias",
"",
"B12 DEFICIENCY (very common in India!):",
" β’ Vegetarian/vegan diet β no animal products",
" β’ Pernicious anemia (anti-intrinsic factor antibodies)",
" β’ Metformin (blocks B12 absorption)",
" β’ Crohn's disease / terminal ileal resection",
].join("\n"), C.purple, C.white);
// Features comparison table
s.addText("Folate vs. B12 Deficiency β Clinical Comparison", { x:0.2, y:3.0, w:9.6, h:0.3, fontSize:10, bold:true, color:C.navy });
s.addTable([
["Feature", "Folate Deficiency", "B12 Deficiency"],
["Onset", "Rapid (weeksβmonths)", "Slow (years)"],
["Macrocytic anemia", "Yes", "Yes"],
["Hypersegmented neutrophils", "Yes", "Yes"],
["Glossitis / stomatitis", "Yes", "Yes"],
["Neurological symptoms", "ABSENT", "YES β SCD (dorsal & lateral columns)"],
["Neural tube defects (fetus)", "Yes β periconceptional", "Less direct association"],
["Homocysteine β", "Yes", "Yes"],
["MMA β", "NO", "YES β specific for B12 def."],
], { x:0.2, y:3.33, w:9.6, h:1.95, colW:[3.0,3.1,3.5], fontSize:8.8, border:{ type:"solid", color:"D0D0D0", pt:0.5 }, fontFace:"Calibri", align:"left", valign:"middle" });
}
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
// SLIDE 15 β MEGALOBLASTIC TREATMENT
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
{
let s = makeSlide("6. Megaloblastic Anemia β Investigations & Treatment", "MEGALOBLASTIC Rx");
addBox(s, 0.2, 0.85, 4.7, 2.1, "Laboratory Investigations", [
"CBC: β MCV (>100 fL)",
"Peripheral smear: Oval macrocytes + hypersegmented neutrophils (β₯5 lobes)",
"Serum folate: β (<2.5 ng/mL) in folate def.",
"RBC folate: more reliable (reflects long-term stores)",
"Serum B12: β (<200 pg/mL) in B12 def.",
"Methylmalonic acid (MMA): β β SPECIFIC for B12 def.",
"Homocysteine: β (both deficiencies)",
"Anti-intrinsic factor antibodies: + in pernicious anemia (sensitivity 60%)",
"Bone marrow: megaloblasts, giant metamyelocytes (rarely needed)",
].join("\n"), C.teal, C.white);
addBox(s, 5.1, 0.85, 4.7, 2.1, "Treatment", [
"FOLATE DEFICIENCY:",
" Prevention (ALL women): 400β500 ΞΌg/day pre-conception",
" High-risk (prior NTD, anticonvulsants, DM, obesity): 5 mg/day",
" NHM India IFA tablet: 100 mg Fe + 500 ΞΌg FA Γ 180 days",
" Treatment of folate def. anemia: Folic acid 5 mg/day orally",
"",
"B12 DEFICIENCY:",
" Dietary (vegetarian): Cyanocobalamin oral 1000β2000 ΞΌg/day",
" Pernicious anemia/malabsorption: IM cyanocobalamin",
" 1000 ΞΌg/day Γ 7 days β weekly Γ 4 wks β monthly (lifelong)",
" Continue through pregnancy and postpartum",
].join("\n"), C.purple, C.white);
// Critical warning banner
s.addShape(pres.shapes.RECTANGLE, { x:0.2, y:3.05, w:9.6, h:0.88, fill:{ color: "FFF0D0" }, line:{ color: C.gold, pt:2 } });
s.addShape(pres.shapes.RECTANGLE, { x:0.2, y:3.05, w:0.12, h:0.88, fill:{ color: C.gold }, line:{ color: C.gold } });
s.addText([
{ text: "β CRITICAL WARNING: ", options:{fontSize:12, bold:true, color:C.crimson} },
{ text: "NEVER give folate alone in megaloblastic anemia without first checking B12 levels.", options:{fontSize:11, bold:true, color:C.darkGray} },
{ text: "\n Folate alone corrects the blood picture but allows B12-related neurological damage (Subacute Combined Degeneration) to progress β sometimes irreversibly.", options:{fontSize:9.5, color:C.darkGray} }
], { x:0.45, y:3.05, w:9.3, h:0.88, valign:"middle" });
// Lab sequence
s.addText("Sequence of B12 Deficiency Development:", { x:0.2, y:4.0, w:9.6, h:0.28, fontSize:9.5, bold:true, color:C.navy });
const seq = ["β Serum B12", "β MMA + Homocysteine", "β MCV (macro-ovalocytes)", "Hyperseg. neutrophils", "Megaloblastic anaemia", "Neurological damage (late)"];
seq.forEach((tx,i) => {
const x = 0.2 + i*1.63;
s.addShape(pres.shapes.RECTANGLE, { x, y:4.32, w:1.5, h:0.65, fill:{ color: i<3?C.teal:C.crimson }, line:{ color: i<3?C.teal:C.crimson } });
s.addText(tx, { x, y:4.32, w:1.5, h:0.65, fontSize:7.5, color:C.white, align:"center", valign:"middle", margin:2 });
if(i<5) s.addText("β", { x:x+1.52, y:4.45, w:0.1, h:0.4, fontSize:11, bold:true, color:C.midGray, valign:"middle" });
});
}
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
// SLIDE 16 β HEMOLYTIC ANEMIAS
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
makeDivider("HEMOLYTIC ANEMIAS", "AIHA Β· HELLP Syndrome Β· G6PD Deficiency Β· Hereditary Spherocytosis");
{
let s = makeSlide("7. Hemolytic Anemias β Overview", "HEMOLYTIC");
addBox(s, 0.2, 0.85, 4.7, 2.15, "Autoimmune Hemolytic Anemia (AIHA)", [
"Warm AIHA (80β90%): IgG β anti-Rh antigens β splenic destruction",
"Cold AIHA (10β20%): IgM β complement β intravascular hemolysis",
"Associations: SLE, lymphoma, viral infections, drugs (methyldopa, penicillin)",
"",
"Labs: βHb, spherocytes + polychromasia on smear",
"β Reticulocyte, β LDH, β Haptoglobin, β Indirect bilirubin",
"DIRECT COOMBS TEST (DAT): POSITIVE β KEY diagnostic test",
"",
"Treatment: Prednisolone 1β2 mg/kg/day β IVIG if fails",
"Splenectomy (2nd trimester if refractory)",
].join("\n"), C.orange, C.white);
addBox(s, 5.1, 0.85, 4.7, 2.15, "HELLP Syndrome (Microangiopathic)", [
"H = Hemolysis | EL = Elevated Liver enzymes | LP = Low Platelets",
"Part of severe pre-eclampsia spectrum",
"",
"Mechanism: Endothelial dysfunction β platelet consumption +",
"fibrin strands β RBC shearing β SCHISTOCYTES (helmet cells)",
"",
"Labs: βHb + schistocytes, βPlatelets (<100K), βLDH, βAST/ALT",
"",
"Definitive treatment: DELIVERY",
"Supportive: Corticosteroids (fetal lung/platelet boost) + MgSO4",
].join("\n"), C.crimson, C.white);
addBox(s, 0.2, 3.12, 4.7, 2.0, "G6PD Deficiency (India Relevant)", [
"X-linked recessive; affects >400 million worldwide",
"Common in: Tribals, Mediterranean, Sephardic Jews, Blacks",
"",
"Mechanism: βNADPH β oxidant injury β acute hemolysis",
"Triggers: Primaquine, sulfonamides, nitrofurantoin, fava beans,",
" naphthalene (MOTHBALLS β very common in India!), infection",
"",
"Testing: G6PD quantitative assay β do AFTER hemolytic episode resolves",
" (reticulocytes have normal G6PD β falsely normal result during crisis)",
"Neonatal hyperbilirubinemia in affected male infants",
].join("\n"), C.purple, C.white);
addBox(s, 5.1, 3.12, 4.7, 2.0, "Hereditary Spherocytosis", [
"Autosomal dominant; defect in RBC membrane (spectrin, ankyrin)",
"Smear: Spherocytes (no central pallor) + polychromasia",
"",
"Diagnosis: EMA binding test (flow cytometry)",
" Sensitivity 86β94%, Specificity 94β97%",
" (Osmotic fragility test: older, sensitivity only 62%)",
"",
"In pregnancy: hemolytic crises possible; folic acid 5 mg/day",
"Splenectomy before pregnancy if severe",
"If crisis in pregnancy: transfusion; splenectomy 2nd trimester",
"Fetal outcome: generally good",
].join("\n"), C.green, C.white);
}
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
// SLIDE 17 β APLASTIC ANEMIA
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
makeDivider("APLASTIC ANEMIA IN PREGNANCY", "Pancytopenia Β· Bone Marrow Failure Β· High Maternal-Fetal Morbidity");
{
let s = makeSlide("8. Aplastic Anemia β Features & Management", "APLASTIC");
addBox(s, 0.2, 0.85, 4.7, 2.0, "Pathophysiology & Features", [
"Autoimmune T-cell mediated destruction of hematopoietic stem cells",
"Triggers: Hepatitis, PNH, drugs (chloramphenicol, benzene, gold, CBZ)",
"Result: Pancytopenia β βRBCs, βWBCs, βPlatelets",
"",
"Symptoms:",
" Anemia: fatigue, pallor",
" Neutropenia: recurrent infections, fever, sepsis",
" Thrombocytopenia: petechiae, mucosal bleeding, PPH risk",
"No splenomegaly (unlike hemolytic anemias)",
"MOST SERIOUS complications: hemorrhage + sepsis",
].join("\n"), C.purple, C.white);
addBox(s, 5.1, 0.85, 4.7, 2.0, "Investigations", [
"CBC: Pancytopenia β βHb, βWBC (<1500), βPlatelets (<50K)",
"Reticulocyte count: ββ (marrow cannot respond)",
"Peripheral smear: Normocytic normochromic; few cells; no dysplasia",
"",
"BONE MARROW BIOPSY: Hypocellular / empty marrow",
" with fatty replacement β KEY diagnostic finding",
"",
"Flow cytometry: Rule out PNH (CD55/CD59 deficiency)",
"",
"Severity (Camitta Criteria):",
" Severe: BM <25% + 2 of: Neutrophils <500, Plt <20K, Retic <1%",
" Very severe: Same + Neutrophils <200/ΞΌL",
].join("\n"), C.teal, C.white);
addBox(s, 0.2, 2.97, 9.6, 2.18, "Management in Pregnancy", [
"SUPPORTIVE (primary in pregnancy):",
" β’ RBC transfusions β maintain Hb >8 g/dL throughout",
" β’ Platelet transfusions β target >50,000 for delivery; >10,000 to prevent spontaneous bleeding",
" β’ G-CSF (filgrastim): boost neutrophil count; limited data in pregnancy",
" β’ Broad-spectrum antibiotics for infections",
"",
"IMMUNOSUPPRESSION:",
" β’ Anti-thymocyte globulin (ATG) + Cyclosporine: standard treatment; can be used in pregnancy",
" β’ Eltrombopag (TPO receptor agonist): limited pregnancy data; for refractory cases",
"",
"CONTRAINDICATED in pregnancy: Androgens (danazol, oxymetholone β TERATOGENIC) | Alkylating agents | BMT (defer to postpartum)",
"",
"2025 Meta-analysis (Arora et al., Eur J Haematol, PMID:39491801): Maternal mortality ~12% | Fetal loss ~15% | Most deaths from infection and hemorrhage",
].join("\n"), C.crimson, C.white);
}
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
// SLIDE 18 β THALASSEMIA DIVIDER
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
makeDivider("THALASSEMIAS", "~45 Million Carriers in India Β· Most Common Single-Gene Disorder Worldwide");
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
// SLIDE 19 β THALASSEMIA
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
{
let s = makeSlide("9. Thalassemias β Types & Pathophysiology", "THALASSEMIA");
s.addText("Types of Thalassemia (India Burden)", { x:0.2, y:0.85, w:9.6, h:0.3, fontSize:10, bold:true, color:C.navy });
s.addTable([
["Type", "Genetics", "India Prevalence", "Clinical Severity"],
["Ξ²-Thal Trait (heterozygous)", "One Ξ²-globin mutation", "~3β4% of Indians", "Mild microcytic anemia; asymptomatic"],
["Ξ²-Thal Major (homozygous)", "Both Ξ²-globin mutated", "~10β15K births/year", "Transfusion-dependent from infancy"],
["Ξ²-Thal Intermedia", "Compound heterozygous", "Uncommon", "Moderate; variable transfusion"],
["Ξ±-Thal Trait (1β2 gene del)", "Ξ±Ξ±/-- or Ξ±-/Ξ±Ξ±", "High in NE India, tribals", "Silent/mild microcytic anemia"],
["HbH disease (3 gene del)", "--/-Ξ±", "Less common", "Moderate hemolytic anemia"],
["Hb Barts (4 gene del)", "--/--", "Rare", "Hydrops fetalis β fetal death in utero"],
["HbE + Ξ²-Thal", "HbE + Ξ² mutation", "VERY COMMON in NE India (Assam, Bengal)", "Clinically severe β similar to thal major"],
], { x:0.2, y:1.18, w:9.6, h:3.2, colW:[2.5,2.0,2.5,2.6], fontSize:8.2, border:{ type:"solid", color:"D0D0D0", pt:0.5 }, fontFace:"Calibri", align:"left", valign:"middle" });
addBox(s, 0.2, 4.45, 9.6, 0.72, "Ξ²-Thalassemia Pathophysiology",
"Absent/reduced Ξ²-globin chains β excess unpaired Ξ±-chains β precipitate in erythroid precursors β Ineffective erythropoiesis + hemolysis β Bone marrow hyperplasia β Thalassemic facies (frontal bossing, maxillary prominence) β Extramedullary hematopoiesis β Splenomegaly, hepatomegaly",
C.green, C.white);
}
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
// SLIDE 20 β THALASSEMIA INVESTIGATIONS + FLOWCHART IMAGE
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
{
let s = makeSlide("9. Thalassemia β Screening Flowchart & Lab Findings", "THALASSEMIA");
// Thalassemia screening flowchart image
s.addImage({ data: thalFlowImg, x:0.2, y:0.82, w:4.5, h:4.38 });
s.addText("Figure: Maternal screening algorithm for Ξ±- & Ξ²-thalassemia\n(Creasy & Resnik MFM 7e, Fig. 55.3)", { x:0.2, y:5.2, w:4.5, h:0.4, fontSize:7.5, color:C.midGray, italic:true, align:"center" });
// Lab table
s.addText("Ξ²-Thalassemia Trait vs. IDA β Key Lab Differences", { x:4.85, y:0.82, w:5.0, h:0.3, fontSize:9.5, bold:true, color:C.navy });
s.addTable([
["Test", "Ξ²-Thal Trait", "IDA"],
["Hb", "9β11 g/dL", "β"],
["MCV", "ββ (<75 fL) β disproportionate", "β"],
["Hb A2 (HPLC)", "> 3.5% β KEY", "Normal"],
["Hb F", "Variable β", "Normal"],
["Ferritin", "Normal / β", "β (<15)"],
["TIBC", "Normal", "β (>400)"],
["RDW", "NORMAL", "β (>15%)"],
["Mentzer Index (MCV/RBC)", "< 13", "> 13"],
], { x:4.85, y:1.15, w:5.0, h:2.62, colW:[2.5,1.4,1.1], fontSize:8.8, border:{ type:"solid", color:"D0D0D0", pt:0.5 }, fontFace:"Calibri", align:"left", valign:"middle" });
addBox(s, 4.85, 3.85, 5.0, 1.38, "Management of Ξ²-Thal Trait in Pregnancy", [
"β’ Do NOT give excess iron (ferritin normal β risk of overload)",
"β’ Folic acid 5 mg/day (compensate for chronic hemolysis)",
"β’ Genetic counseling β partner testing (HPLC) MANDATORY",
"β’ If both parents carriers: prenatal diagnosis",
" β CVS at 10β12 weeks (preferred) or amniocentesis 15β18 wks",
"β’ Serial USS for fetal growth (q4 weekly from 24 wks)",
"β’ Ξ²-Thal major/intermedia: regular transfusions; deferoxamine",
" (oral chelators deferasirox/deferiprone TERATOGENIC β stop pre-conception)",
].join("\n"), C.green, C.white);
}
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
// SLIDE 21 β SICKLE CELL DIVIDER
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
makeDivider("SICKLE CELL HEMOGLOBINOPATHY", "~15 Million Carriers in India Β· National Elimination Mission 2023 (Target: 2047)");
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
// SLIDE 22 β SICKLE CELL FEATURES
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
{
let s = makeSlide("10. Sickle Cell Disease β Pathophysiology & Manifestations", "SICKLE CELL");
addBox(s, 0.2, 0.85, 4.7, 1.85, "Pathophysiology", [
"Point mutation: Glutamic acid β Valine at Ξ²-globin position 6",
"HbS produced β deoxygenation/dehydration β polymerization β SICKLING",
"",
"Two main consequences:",
"1. Vaso-occlusion: pain crises, organ infarction, stroke, AVN",
"2. Hemolysis: chronic anemia (Hb 6β9 g/dL), jaundice, pigment stones",
"",
"Pregnancy worsens SCA: β metabolic demand, hypercoagulability,",
" β infection risk, β renal concentration β more complications",
].join("\n"), C.crimson, C.white);
addBox(s, 5.1, 0.85, 4.7, 1.85, "India Context", [
"~15 million sickle cell trait carriers in India",
"Predominantly tribal belt: MP, Chhattisgarh, Jharkhand, Odisha,",
" Maharashtra (Vidarbha), NE India",
"",
"Govt of India: National Sickle Cell Anaemia Elimination Mission",
" Launched: 2023 | Target: Elimination by 2047",
"",
"HbSS (SCA): Hb 6β9 g/dL; Hb electrophoresis β HbS >80%, No HbA",
"HbAS (Trait): Normal Hb; HbS 35β45%; HbA present",
"HbSC: Moderate; may worsen in pregnancy",
].join("\n"), C.navy, C.white);
// Clinical manifestations table
s.addText("Pregnancy-Specific Manifestations (BOX 55.2 β Creasy & Resnik)", { x:0.2, y:2.8, w:9.6, h:0.3, fontSize:10, bold:true, color:C.navy });
s.addTable([
["System", "Manifestation in Pregnancy"],
["Hematologic", "Chronic hemolytic anemia (Hb 6β9), jaundice, reticulocytosis"],
["Pain", "Vaso-occlusive crises: 20β50% of pregnancies have β₯1 crisis"],
["Pulmonary", "ACUTE CHEST SYNDROME: up to 20% of SCA pregnancies β most severe complication"],
["Obstetric", "Pre-eclampsia β, Preterm birth + FGR up to 45%, Perinatal death β"],
["Renal", "Pyelonephritis β β screen urine culture each trimester"],
["VTE", "Increased β especially with hospitalisation"],
], { x:0.2, y:3.12, w:9.6, h:2.15, colW:[2.0,7.6], fontSize:8.8, border:{ type:"solid", color:"D0D0D0", pt:0.5 }, fontFace:"Calibri", align:"left", valign:"middle" });
}
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
// SLIDE 23 β SICKLE CELL MANAGEMENT
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
{
let s = makeSlide("10. Sickle Cell Disease β Management in Pregnancy", "SICKLE CELL Rx");
addBox(s, 0.2, 0.85, 4.7, 1.8, "Antenatal Management", [
"Folic acid 5 mg/day (chronic hemolysis β high cell turnover)",
"Penicillin prophylaxis 500 mg BD (functional asplenia)",
"Low-dose aspirin 75β150 mg/day from 12 wks (β pre-eclampsia)",
"LMWH thromboprophylaxis when hospitalised or immobile",
"Vaccines: pneumococcal, meningococcal, Hib, influenza",
"STOP HYDROXYUREA: teratogenic risk (stop 3 months pre-conception)",
"Do NOT give iron routinely (may be iron-overloaded)",
"Serial USS q4-weekly from 24 wks (FGR risk up to 45%)",
"Prenatal diagnosis: CVS / amniocentesis",
].join("\n"), C.teal, C.white);
addBox(s, 5.1, 0.85, 4.7, 1.8, "Management of Painful Crisis", [
"HYDRATION: IV fluids 2β3 L/day (avoid overhydration β pulmonary oedema)",
"OXYGEN: maintain SpO2 >95%",
"ANALGESIA: IV morphine + paracetamol",
" (Avoid NSAIDs in 3rd trimester)",
"Warm packs to painful areas",
"ANTIBIOTICS if infection suspected (common precipitant)",
"",
"TRANSFUSION if:",
" Hb <6 g/dL or Hct <18%",
" Prophylactic transfusions β reduce crises 50% β 14% (RCT, n=72)",
].join("\n"), C.orange, C.white);
addBox(s, 0.2, 2.77, 9.6, 1.38, "Acute Chest Syndrome (ACS) β Up to 20% of SCA Pregnancies", [
"Most severe complication | Definition: Fever + Chest pain + New pulmonary infiltrate + βSpO2",
"",
"Treatment: Hydration + O2 + Incentive spirometry + Antibiotics (cephalosporin + macrolide) + Bronchodilators",
"PARTIAL EXCHANGE TRANSFUSION: Goal HbA >50% and Hct >25% β CORNERSTONE of treatment",
"Consider ICU admission",
].join("\n"), C.crimson, C.white);
addBox(s, 0.2, 4.22, 4.7, 0.98, "Intrapartum", [
"SpO2 >95% | IV fluids | Epidural analgesia (reduces stress)",
"Continuous FHR monitoring | Cross-matched blood available",
"Active management of 3rd stage",
].join("\n"), C.navy, C.white);
addBox(s, 5.1, 4.22, 4.7, 0.98, "Postpartum", [
"Continue LMWH thromboprophylaxis (high VTE risk)",
"Restart hydroxyurea postpartum if NOT breastfeeding",
"Hydroxyurea CONTRAINDICATED while breastfeeding",
].join("\n"), C.green, C.white);
}
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
// SLIDE 24 β ANEMIA OF CHRONIC DISEASE
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
makeDivider("ANEMIA OF CHRONIC DISEASE", "ACD / Anemia of Inflammation β Hepcidin-Mediated Iron Sequestration");
{
let s = makeSlide("11. Anemia of Chronic Disease β Pathophysiology & Management", "ACD");
addBox(s, 0.2, 0.85, 5.5, 2.55, "Hepcidin Mechanism (India: TB, Malaria, HIV)", [
"Chronic infection/inflammation β IL-6, TNF-Ξ±, IL-1Ξ²",
" β",
"Liver produces β HEPCIDIN (acute phase reactant)",
" β",
"Hepcidin inactivates FERROPORTIN (only known iron exporter)",
" β",
"Iron trapped in macrophages and enterocytes",
" β",
"β Serum iron β β Erythropoiesis β ACD",
" ALSO: shortened RBC lifespan + blunted EPO response",
"",
"In India: TB and malaria are MAJOR causes of ACD in pregnancy",
].join("\n"), C.teal, C.white);
addBox(s, 5.85, 0.85, 3.9, 2.55, "Key Clinical Features", [
"Usually mild to moderate anemia",
"Normocytic normochromic (usual)",
"Symptoms of underlying disease",
" predominate (fever, weight loss)",
"No pica, koilonychia, or typical IDA",
"Splenomegaly (if malaria/chronic cause)",
"",
"TIBC is LOW (key difference from IDA)",
"Ferritin is HIGH (iron sequestered,",
" not actually deficient)",
].join("\n"), C.orange, C.white);
s.addText("IDA vs. ACD vs. Combined Deficiency", { x:0.2, y:3.48, w:9.6, h:0.3, fontSize:10, bold:true, color:C.navy });
s.addTable([
["Test", "IDA", "ACD Only", "IDA + Inflammation", "Sideroblastic"],
["Serum iron", "ββ", "β", "β", "β"],
["TIBC", "β (>400)", "β", "β/Normal", "Normal"],
["% Saturation", "β (<16%)", "β (<30%)", "β (<20%)", "β (>45%)"],
["Ferritin", "β (<15)", "β (>200)", "β (<30β100)", "β (>200)"],
["Hepcidin", "β", "β", "Variable", "Normal"],
["sTfR", "ββ", "Normal", "β", "Normal"],
], { x:0.2, y:3.8, w:9.6, h:1.6, colW:[2.0,1.6,1.6,2.2,2.2], fontSize:8.5, border:{ type:"solid", color:"D0D0D0", pt:0.5 }, fontFace:"Calibri", align:"center", valign:"middle" });
}
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
// SLIDE 25 β MANAGEMENT FLOWCHART
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
makeDivider("MANAGEMENT ALGORITHM", "Diagnostic Flowchart Β· Severity-Based Treatment Β· Follow-Up");
{
let s = makeSlide("12. Diagnostic & Management Flowchart β Anemia in Pregnancy", "MANAGEMENT");
// Top: Anemia box
s.addShape(pres.shapes.RECTANGLE, { x:3.5, y:0.82, w:3.0, h:0.55, fill:{ color: C.crimson }, line:{ color: C.crimson } });
s.addText("ANEMIA IN PREGNANCY\nHb below trimester threshold", { x:3.5, y:0.82, w:3.0, h:0.55, fontSize:8.5, bold:true, color:C.white, align:"center", valign:"middle", margin:2 });
// Step 1
s.addShape(pres.shapes.RECTANGLE, { x:3.5, y:1.48, w:3.0, h:0.5, fill:{ color: C.navy }, line:{ color: C.navy } });
s.addText("STEP 1: CBC + Reticulocyte + Peripheral Smear", { x:3.5, y:1.48, w:3.0, h:0.5, fontSize:7.5, bold:true, color:C.white, align:"center", valign:"middle", margin:2 });
// 3 branches
const branches = [
{x:0.2, label:"MICROCYTIC\nMCV <80", sub:"Iron Studies\nFerritin (key!)\nTIBC\nMentzer Index", sub2:"β Ferritin β IDA\nNormal Ferritin\n+ Low MCV β Thalassemia\n(HPLC / Hb electrophoresis)", color:C.teal},
{x:3.65, label:"NORMOCYTIC\nMCV 80β100", sub:"Reticulocyte count", sub2:"Low Retic β ACD /\nAplasia / Renal / ACD\n\nHigh Retic β HEMOLYSIS\n(Coombs, LDH,\nHaptoglobin, HPLC)", color:C.orange},
{x:7.1, label:"MACROCYTIC\nMCV >100", sub:"Serum B12\nSerum/RBC Folate\nMMA, Homocysteine", sub2:"β Folate β Folic acid 5mg\nβ B12 β IM cyanocobalamin\nCheck B12 FIRST!", color:C.purple},
];
branches.forEach(b => {
s.addShape(pres.shapes.RECTANGLE, { x:b.x, y:2.1, w:2.65, h:0.55, fill:{ color: b.color }, line:{ color: b.color } });
s.addText(b.label, { x:b.x, y:2.1, w:2.65, h:0.55, fontSize:8, bold:true, color:C.white, align:"center", valign:"middle", margin:1 });
s.addShape(pres.shapes.RECTANGLE, { x:b.x, y:2.72, w:2.65, h:0.58, fill:{ color: C.white }, line:{ color: b.color, pt:1 } });
s.addText(b.sub, { x:b.x+0.05, y:2.72, w:2.55, h:0.58, fontSize:7.5, color:C.darkGray, valign:"middle", margin:2 });
s.addShape(pres.shapes.RECTANGLE, { x:b.x, y:3.37, w:2.65, h:0.92, fill:{ color: "F7F7FF" }, line:{ color: b.color, pt:1 } });
s.addText(b.sub2, { x:b.x+0.05, y:3.37, w:2.55, h:0.92, fontSize:7.5, color:C.darkGray, valign:"top", margin:2 });
});
// Bottom: Severity-based management banner
s.addShape(pres.shapes.RECTANGLE, { x:0.2, y:4.35, w:9.6, h:0.88, fill:{ color: C.navy }, line:{ color: C.navy } });
const sev = [
{label:"MILD\n(Hb 9β11)", rx:"Oral iron\n200mg elem Fe/day", c:C.green},
{label:"MODERATE\n(Hb 7β9)", rx:"Oral β IV Iron\n(escalate if poor response)", c:C.gold},
{label:"SEVERE\n(Hb <7)", rx:"IV Iron + Consider\nBlood Transfusion", c:C.orange},
{label:"VERY SEVERE\n(Hb <5β6)", rx:"Transfusion +\nICU Assessment", c:C.crimson},
];
sev.forEach((sv,i) => {
s.addShape(pres.shapes.RECTANGLE, { x:0.25 + i*2.42, y:4.37, w:2.32, h:0.83, fill:{ color: sv.c }, line:{ color: sv.c } });
s.addText(sv.label, { x:0.25+i*2.42, y:4.37, w:2.32, h:0.4, fontSize:7.5, bold:true, color:C.white, align:"center", valign:"middle", margin:1 });
s.addText(sv.rx, { x:0.25+i*2.42, y:4.77, w:2.32, h:0.43, fontSize:7, color:C.white, align:"center", valign:"top", margin:2 });
});
}
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
// SLIDE 26 β FOLLOW-UP & MONITORING
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
{
let s = makeSlide("Follow-Up Schedule & Treatment Monitoring", "FOLLOW-UP");
s.addText("Routine Follow-Up Schedule", { x:0.2, y:0.85, w:5.5, h:0.3, fontSize:10, bold:true, color:C.navy });
s.addTable([
["Time Point", "What to Check"],
["Booking (1st ANC)", "Hb, MCV, Ferritin, Blood group, Hb electrophoresis if indicated"],
["20 weeks", "Hb repeat if initially anaemic; review IFA compliance"],
["28 weeks", "Hb, Ferritin; escalate to IV iron if oral insufficient"],
["36 weeks", "Hb, Blood group, Crossmatch β prepare for delivery"],
["4 weeks after starting iron", "Reticulocyte β β Hb rise expected 1β2 g/dL/month"],
["6 weeks postpartum", "Hb; continue iron until ferritin >50 ng/mL"],
["3 months postpartum", "Ferritin β confirm stores replete before stopping iron"],
], { x:0.2, y:1.17, w:5.5, h:3.35, colW:[2.2,3.3], fontSize:8.8, border:{ type:"solid", color:"D0D0D0", pt:0.5 }, fontFace:"Calibri", align:"left", valign:"middle" });
addBox(s, 5.85, 0.85, 3.9, 2.15, "Response Monitoring", [
"Reticulocyte β within 1 WEEK of iron therapy",
"Hb starts rising by WEEK 2",
"Expected: 1β2 g/dL rise per month",
"Target ferritin: 50β100 ng/mL (stores replete)",
"",
"If NO response by 4 weeks:",
" β’ Check compliance",
" β’ Check absorption (celiac, H. pylori)",
" β’ Check for ongoing blood loss",
" β’ Reconsider diagnosis (thalassemia? ACD?)",
" β’ Switch to IV iron",
].join("\n"), C.teal, C.white);
addBox(s, 5.85, 3.12, 3.9, 1.4, "Postpartum Continuation", [
"Continue iron 3 months postpartum",
"Delayed cord clamping (30β60 seconds) β β neonatal iron stores",
"Check neonatal ferritin β if <25th percentile β long-term neuro risk",
"Genetic counselling referral for hemoglobinopathies",
"Pre-conception optimization before next pregnancy",
].join("\n"), C.green, C.white);
// Bottom mnemonics
s.addShape(pres.shapes.RECTANGLE, { x:0.2, y:4.58, w:9.6, h:0.65, fill:{ color: C.gold }, line:{ color: C.gold } });
s.addText([
{ text: "MNEMONICS ", options:{fontSize:9.5, bold:true, color:C.navy} },
{ text: "PHILIP (IDA causes): Poor diet Β· High demand Β· Increased losses Β· Low absorption Β· Infection Β· Pre-existing deficiency | ", options:{fontSize:8.5, color:C.darkGray} },
{ text: "FARM (IDA vs ACD): Ferritin LOW/HIGH Β· serum iron (Acidity = βboth) Β· TIBC Raised/low Β· Macrophages trap iron in ACD", options:{fontSize:8.5, color:C.darkGray} }
], { x:0.3, y:4.58, w:9.4, h:0.65, valign:"middle" });
}
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
// SLIDE 27 β KEY TAKEAWAYS + CLOSING
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
{
let s = pres.addSlide();
s.addShape(pres.shapes.RECTANGLE, { x:0, y:0, w:10, h:5.625, fill:{ color: C.navy }, line:{ color: C.navy } });
s.addShape(pres.shapes.RECTANGLE, { x:0, y:0, w:0.22, h:5.625, fill:{ color: C.crimson }, line:{ color: C.crimson } });
s.addShape(pres.shapes.RECTANGLE, { x:0, y:4.95, w:10, h:0.675, fill:{ color: C.teal }, line:{ color: C.teal } });
s.addText("Key Takeaways", { x:0.4, y:0.2, w:9, h:0.55, fontSize:22, bold:true, color:C.white, charSpacing:2 });
s.addShape(pres.shapes.RECTANGLE, { x:0.4, y:0.8, w:4.0, h:0.05, fill:{ color: C.gold }, line:{ color: C.gold } });
const points = [
["01", "DEFINE correctly: Hb <11 (1st/3rd T), <10.5 (2nd T). High Hb >14.5 is also dangerous β paradox!", C.crimson],
["02", "52.2% of Indian pregnant women are anemic (NFHS-5). Iron deficiency = most common cause (>50%)", C.teal],
["03", "FERRITIN is the single best test. IDA: TIBC β, Ferritin β. ACD: TIBC β, Ferritin β. Thal: Hb A2 β", C.gold],
["04", "IDA Treatment: Oral iron (empty stomach + Vit C). 3rd trimester β IV iron preferred. Hb <6 β transfuse", C.orange],
["05", "NEVER give folate alone without checking B12 β risk of masking subacute combined degeneration", C.purple],
["06", "Sickle cell crises: hydrate + O2 + analgesia. Acute chest syndrome = exchange transfusion (goal HbA >50%)", C.green],
["07", "Thalassemia trait: NO excess iron. HPLC mandatory + genetic counselling + partner testing", C.teal],
["08", "Aplastic anemia: ATG + cyclosporine. No androgens (teratogenic). Maternal mortality ~12% (meta-analysis 2025)", C.crimson],
];
points.forEach((p,i) => {
const col = i%2, row = Math.floor(i/2);
const x = 0.4 + col*4.85;
const y = 1.05 + row*0.9;
s.addShape(pres.shapes.RECTANGLE, { x, y, w:4.65, h:0.82, fill:{ color: "0D1B3E" }, line:{ color: p[2], pt:1.5 } });
s.addShape(pres.shapes.RECTANGLE, { x, y, w:0.42, h:0.82, fill:{ color: p[2] }, line:{ color: p[2] } });
s.addText(p[0], { x, y, w:0.42, h:0.82, fontSize:12, bold:true, color:C.white, align:"center", valign:"middle", margin:0 });
s.addText(p[1], { x: x+0.48, y, w:4.1, h:0.82, fontSize:8.5, color:C.white, valign:"middle", margin:3 });
});
s.addText("Creasy & Resnik MFM 7e Β· Goldman-Cecil Medicine Β· Harrison's 22e Β· NFHS-5 India (2019-21) Β· WHO 2024", {
x:0.3, y:4.98, w:9.4, h:0.4, fontSize:8, color:C.white, align:"center", valign:"middle"
});
}
// βββ WRITE FILE βββββββββββββββββββββββββββββββββββββββββββββ
pres.writeFile({ fileName: "/home/daytona/workspace/anemia-pregnancy-ppt/Anemia_in_Pregnancy_OBGYN_Seminar.pptx" })
.then(() => console.log("SUCCESS"))
.catch(e => { console.error("ERROR:", e.message); process.exit(1); });
cd /home/daytona/workspace/anemia-pregnancy-ppt && node build.js 2>&1
Create a powerpoint presentation using the data in the given pdf. Make it sophisticated for a seminar on the topic "Anemia in pregnancy"
ls /home/daytona/workspace/attachments/2bc21bf7-6128-4bab-a123-0e0d7d12fa01/
PDF="/home/daytona/workspace/attachments/2bc21bf7-6128-4bab-a123-0e0d7d12fa01/I now have all the data needed Let me compile the .pdf" python3 -c " from pypdf import PdfReader r = PdfReader('$PDF') print('Pages:', len(r.pages)) for i,p in enumerate(r.pages): print(f'--- PAGE {i+1} ---') print(p.extract_text()) " 2>&1 | head -400
PDF="/home/daytona/workspace/attachments/2bc21bf7-6128-4bab-a123-0e0d7d12fa01/I now have all the data needed Let me compile the .pdf" python3 -c " from pypdf import PdfReader r = PdfReader('$PDF') for i,p in enumerate(r.pages[12:]): print(f'--- PAGE {i+13} ---') print(p.extract_text()) " 2>&1 | head -500
PDF="/home/daytona/workspace/attachments/2bc21bf7-6128-4bab-a123-0e0d7d12fa01/I now have all the data needed Let me compile the .pdf" python3 -c " from pypdf import PdfReader r = PdfReader('$PDF') for i,p in enumerate(r.pages[24:]): print(f'--- PAGE {i+25} ---') print(p.extract_text()) " 2>&1
mkdir -p /home/daytona/workspace/anemia-ppt && node -e "require('pptxgenjs'); console.log('OK')" && \ node /home/daytona/skills/shared/scripts/fetch_images.js \ "https://cdn.orris.care/cdss_images/fa23ee181891fb49a8189918cc3930fb1cf9e82b7d454a558c36f93c9f9c4f3b.png" \ "https://cdn.orris.care/cdss_images/1353c9da75dca8efa84a9566b079c218470222df134624cf51bdfbd78b21e033.png" \ > /home/daytona/workspace/anemia-ppt/imgs.json && \ python3 -c " import json d=json.load(open('/home/daytona/workspace/anemia-ppt/imgs.json')) for i,x in enumerate(d): print(i,'OK' if not x.get('error') else 'ERR:'+str(x.get('error')), len(x.get('base64',''))//1024,'KB') "
Create a powerpoint presentation using the data in the given pdf. Make it sophisticated for a seminar on the topic "Anemia in pregnancy
PDF="/home/daytona/workspace/attachments/2bc21bf7-6128-4bab-a123-0e0d7d12fa01/I now have all the data needed Let me compile the (1).pdf" python3 -c " from pypdf import PdfReader r = PdfReader('$PDF') print('Pages:', len(r.pages)) for i,p in enumerate(r.pages): print(f'=== PAGE {i+1} ===') print(p.extract_text()) " 2>&1
mkdir -p /home/daytona/workspace/anemia-ppt node -e "require('pptxgenjs'); console.log('pptxgenjs OK')" # Fetch images as base64 python3 - <<'PYEOF' import urllib.request, base64, json, os urls = [ "https://cdn.orris.care/cdss_images/fa23ee181891fb49a8189918cc3930fb1cf9e82b7d454a558c36f93c9f9c4f3b.png", "https://cdn.orris.care/cdss_images/1353c9da75dca8efa84a9566b079c218470222df134624cf51bdfbd78b21e033.png" ] imgs = [] for url in urls: try: req = urllib.request.Request(url, headers={"User-Agent": "Mozilla/5.0"}) data = urllib.request.urlopen(req, timeout=15).read() imgs.append({"ok": True, "b64": base64.b64encode(data).decode(), "size": len(data)}) print(f"Fetched {url[-20:]} β {len(data)//1024}KB") except Exception as e: imgs.append({"ok": False, "error": str(e)}) print(f"FAIL {url[-20:]}: {e}") json.dump(imgs, open("/home/daytona/workspace/anemia-ppt/imgs.json","w")) print("Saved imgs.json") PYEOF
~/anemia-ppt/build.js
// Anemia in Pregnancy β OBGYN Seminar PowerPoint Builder
// PptxGenJS β Navy/Crimson/Teal medical theme
const pptxgen = require("pptxgenjs");
const fs = require("fs");
// ββ Colours ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
const C = {
navy: "0D1B3E",
crimson:"C0392B",
teal: "1A6B7C",
gold: "D4A017",
white: "FFFFFF",
offWhite:"F4F6F9",
silver: "B8C5D1",
lightTeal:"E8F4F7",
darkGray:"2C3E50",
lightGray:"ECF0F1",
warn: "E74C3C",
};
// ββ Load images βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
const imgs = JSON.parse(fs.readFileSync("/home/daytona/workspace/anemia-ppt/imgs.json","utf8"));
const smearB64 = imgs[0].ok ? "data:image/png;base64," + imgs[0].b64 : null;
const thalB64 = imgs[1].ok ? "data:image/png;base64," + imgs[1].b64 : null;
// ββ Presentation setup ββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
const pres = new pptxgen();
pres.layout = "LAYOUT_WIDE"; // 13.3" Γ 7.5"
pres.title = "Anemia in Pregnancy";
pres.author = "OBGYN Seminar";
pres.subject = "Comprehensive Seminar Notes β India Focus";
const W = 13.3; // slide width
const H = 7.5; // slide height
// ββ Helpers βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
function addBg(slide, color) {
slide.addShape(pres.ShapeType.rect, { x:0, y:0, w:W, h:H, fill:{color}, line:{color} });
}
function addHeader(slide, text, bgColor, textColor) {
bgColor = bgColor || C.navy;
textColor = textColor || C.white;
slide.addShape(pres.ShapeType.rect, { x:0, y:0, w:W, h:1.0, fill:{color:bgColor}, line:{color:bgColor} });
slide.addText(text, {
x:0.35, y:0, w:W-0.7, h:1.0,
fontSize:28, bold:true, color:textColor, fontFace:"Calibri",
valign:"middle", margin:0,
});
}
function accentBar(slide, color) {
color = color || C.crimson;
slide.addShape(pres.ShapeType.rect, { x:0, y:1.0, w:0.08, h:H-1.0, fill:{color}, line:{color} });
}
function footerLine(slide, text) {
slide.addShape(pres.ShapeType.rect, { x:0, y:H-0.38, w:W, h:0.38, fill:{color:C.navy}, line:{color:C.navy} });
slide.addText(text || "Anemia in Pregnancy | OBGYN Seminar | India Focus", {
x:0.3, y:H-0.38, w:W-0.6, h:0.38,
fontSize:9, color:"AABBCC", fontFace:"Calibri", valign:"middle", italic:true,
});
}
function sectionDivider(slide, num, title, subtitle) {
// Full navy bg
addBg(slide, C.navy);
// Crimson accent strip
slide.addShape(pres.ShapeType.rect, { x:0, y:0, w:0.5, h:H, fill:{color:C.crimson}, line:{color:C.crimson} });
// Gold horizontal line
slide.addShape(pres.ShapeType.rect, { x:0.5, y:3.4, w:W-0.5, h:0.06, fill:{color:C.gold}, line:{color:C.gold} });
// Section number
slide.addText("SECTION " + num, {
x:1.2, y:1.8, w:W-2, h:0.7,
fontSize:18, bold:true, color:C.gold, fontFace:"Calibri", charSpacing:6,
});
// Title
slide.addText(title, {
x:1.2, y:2.5, w:W-2, h:1.1,
fontSize:44, bold:true, color:C.white, fontFace:"Calibri",
});
if (subtitle) {
slide.addText(subtitle, {
x:1.2, y:3.65, w:W-2, h:0.7,
fontSize:20, color:C.silver, fontFace:"Calibri", italic:true,
});
}
}
function infoBox(slide, x, y, w, h, title, bodyLines, titleBg, bodyBg) {
titleBg = titleBg || C.teal;
bodyBg = bodyBg || C.lightTeal;
slide.addShape(pres.ShapeType.rect, { x, y, w, h:0.42, fill:{color:titleBg}, line:{color:titleBg}, rectRadius:0.05 });
slide.addText(title, { x, y, w, h:0.42, fontSize:12, bold:true, color:C.white, fontFace:"Calibri", align:"center", valign:"middle", margin:0 });
const bh = h - 0.42;
slide.addShape(pres.ShapeType.rect, { x, y:y+0.42, w, h:bh, fill:{color:bodyBg}, line:{color:"C8DCE4"} });
const items = bodyLines.map((t,i) => ({
text: t,
options: { bullet:{code:"2022"}, fontSize:10.5, color:C.darkGray, breakLine: i < bodyLines.length-1 }
}));
slide.addText(items, { x:x+0.08, y:y+0.44, w:w-0.16, h:bh-0.1, fontFace:"Calibri", valign:"top" });
}
function tableSlide(slide, headers, rows, x, y, w, colWidths) {
const tblData = [];
tblData.push(headers.map(h => ({
text: h,
options: { bold:true, color:C.white, fill:C.navy, fontSize:11, align:"center" }
})));
rows.forEach((row, ri) => {
tblData.push(row.map(cell => ({
text: cell,
options: { fontSize:10, color:C.darkGray, fill: ri%2===0 ? C.offWhite : C.white, align:"center" }
})));
});
slide.addTable(tblData, {
x, y, w, colW: colWidths,
border:{ type:"solid", pt:0.5, color:"C8D6E5" },
fontFace:"Calibri",
});
}
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
// SLIDE 1 β TITLE SLIDE
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
{
const s = pres.addSlide();
addBg(s, C.navy);
// Crimson diagonal band
s.addShape(pres.ShapeType.rect, { x:0, y:0, w:4.2, h:H, fill:{color:C.crimson}, line:{color:C.crimson} });
s.addShape(pres.ShapeType.rect, { x:4.2, y:0, w:0.35, h:H, fill:{color:C.gold}, line:{color:C.gold} });
// Left panel text
s.addText("OBGYN\nSEMINAR", {
x:0.3, y:0.5, w:3.6, h:1.4,
fontSize:18, bold:true, color:C.white, fontFace:"Calibri", charSpacing:4, align:"center",
});
s.addShape(pres.ShapeType.rect, { x:0.5, y:1.95, w:3.1, h:0.06, fill:{color:C.white}, line:{color:C.white} });
s.addText("India Focus\nNFHS-5 Data & WHO 2024 Guidelines", {
x:0.3, y:2.1, w:3.6, h:1.0,
fontSize:11, color:C.silver, fontFace:"Calibri", align:"center", italic:true,
});
// Right panel β main title
s.addText("ANEMIA IN\nPREGNANCY", {
x:4.8, y:1.2, w:8.1, h:2.8,
fontSize:60, bold:true, color:C.white, fontFace:"Calibri",
});
s.addShape(pres.ShapeType.rect, { x:4.8, y:4.1, w:8.1, h:0.06, fill:{color:C.gold}, line:{color:C.gold} });
s.addText("Comprehensive Seminar for Postgraduate OBGYN Residents", {
x:4.8, y:4.25, w:8.1, h:0.6,
fontSize:18, color:C.silver, fontFace:"Calibri", italic:true,
});
s.addText([
{ text: "Sources: ", options:{ bold:true, color:C.gold } },
{ text: "Creasy & Resnik's MFM 7e Β· Goldman-Cecil Medicine Β· Harrison's 22e Β· NFHS-5 (2019-21) Β· WHO 2024", options:{ color:C.silver } }
], { x:4.8, y:5.1, w:8.1, h:0.5, fontSize:10, fontFace:"Calibri" });
// Bottom bar
s.addShape(pres.ShapeType.rect, { x:0, y:H-0.45, w:W, h:0.45, fill:{color:"06102A"}, line:{color:"06102A"} });
s.addText("RR = 3.5 for maternal death with Hb < 5 g/dL Β· 52.2% of pregnant women in India are anemic (NFHS-5)", {
x:0.3, y:H-0.45, w:W-0.6, h:0.45,
fontSize:10, color:C.silver, fontFace:"Calibri", align:"center", valign:"middle", italic:true,
});
}
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
// SLIDE 2 β TABLE OF CONTENTS
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
{
const s = pres.addSlide();
addBg(s, C.offWhite);
addHeader(s, "Seminar Overview", C.navy, C.white);
accentBar(s, C.crimson);
footerLine(s);
const sections = [
["01", "WHO Definition & Severity Classification"],
["02", "Epidemiological Burden in India (NFHS-5)"],
["03", "Classification of Causes"],
["04", "Effects on Mother & Fetus"],
["05", "Individual Causes β 10 Entities"],
["06", "Diagnostic Algorithm (Flowchart)"],
["07", "Management Flowchart & Mnemonics"],
];
const col1 = sections.slice(0,4);
const col2 = sections.slice(4);
function tocCol(items, xStart) {
items.forEach((item, i) => {
const yy = 1.25 + i * 1.2;
s.addShape(pres.ShapeType.rect, { x:xStart, y:yy, w:0.65, h:0.65, fill:{color:C.crimson}, line:{color:C.crimson}, rectRadius:0.06 });
s.addText(item[0], { x:xStart, y:yy, w:0.65, h:0.65, fontSize:18, bold:true, color:C.white, fontFace:"Calibri", align:"center", valign:"middle", margin:0 });
s.addText(item[1], { x:xStart+0.75, y:yy+0.05, w:5.4, h:0.55, fontSize:15, color:C.darkGray, fontFace:"Calibri", valign:"middle" });
});
}
tocCol(col1, 0.5);
tocCol(col2, 7.0);
}
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
// SLIDE 3 β SECTION DIVIDER: Definition
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
{
const s = pres.addSlide();
sectionDivider(s, "01", "WHO Definition", "Trimester-based Hb thresholds & Severity Classification");
}
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
// SLIDE 4 β WHO DEFINITION & SEVERITY
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
{
const s = pres.addSlide();
addBg(s, C.offWhite);
addHeader(s, "WHO Definition β Anemia in Pregnancy", C.navy, C.white);
accentBar(s, C.crimson);
footerLine(s);
// Definition box
s.addShape(pres.ShapeType.rect, { x:0.3, y:1.1, w:12.7, h:0.75, fill:{color:C.teal}, line:{color:C.teal}, rectRadius:0.08 });
s.addText("Hemoglobin concentration below which clinical intervention is warranted, given age, sex, and physiological state (WHO)", {
x:0.35, y:1.1, w:12.6, h:0.75, fontSize:13, bold:true, color:C.white, fontFace:"Calibri", valign:"middle", align:"center", margin:0,
});
// Trimester threshold table
tableSlide(s,
["Trimester / State", "Hb Threshold (g/dL)", "Hematocrit (%)"],
[
["1st Trimester", "< 11.0", "< 33%"],
["2nd Trimester", "< 10.5", "< 32%"],
["3rd Trimester", "< 11.0", "< 33%"],
["Postpartum", "< 10.0", "< 30%"],
],
0.3, 2.0, 5.8, [2.4, 1.7, 1.7]
);
// Severity classification table
tableSlide(s,
["Category", "Hb (g/dL)", "Clinical Significance"],
[
["No Anemia", "β₯ 11.0", "Normal"],
["Mild", "10.0 β 10.9", "Compensated; fatigue"],
["Moderate", "7.0 β 9.9", "High-output state; fetal risk begins"],
["Severe", "< 7.0", "Significant maternal-fetal morbidity"],
["Very Severe / Life-threatening", "< 5.0", "CCF, ICU, maternal mortality risk"],
],
6.4, 2.0, 6.6, [2.6, 1.4, 2.6]
);
s.addText("Normal adult non-pregnant Hb: 14.0 Β± 2.0 g/dL | Lower limit non-pregnant: 12.0 g/dL", {
x:0.3, y:6.55, w:12.7, h:0.4,
fontSize:11, italic:true, color:C.teal, fontFace:"Calibri", align:"center",
});
}
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
// SLIDE 5 β SECTION DIVIDER: Epidemiology
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
{
const s = pres.addSlide();
sectionDivider(s, "02", "Epidemiological Burden in India", "NFHS-5 Data 2019-21 | Staggering National Statistics");
}
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
// SLIDE 6 β INDIA EPIDEMIOLOGY
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
{
const s = pres.addSlide();
addBg(s, C.offWhite);
addHeader(s, "Anemia in Pregnancy β India's Burden (NFHS-5, 2019-21)", C.navy, C.white);
accentBar(s, C.gold);
footerLine(s);
// Big stat boxes
const stats = [
["52.2%", "Pregnant women\nanemic in India"],
["1.4%", "Severe anemia\n(Hb < 7 g/dL)"],
["57%", "Women of\nreproductive age"],
["61.5%", "Adolescent\npregnant women"],
];
stats.forEach((st, i) => {
const xx = 0.3 + i * 3.22;
s.addShape(pres.ShapeType.rect, { x:xx, y:1.15, w:3.0, h:1.7, fill:{color:C.navy}, line:{color:C.crimson}, rectRadius:0.1 });
s.addText(st[0], { x:xx, y:1.15, w:3.0, h:0.95, fontSize:36, bold:true, color:C.gold, fontFace:"Calibri", align:"center", valign:"bottom", margin:0 });
s.addText(st[1], { x:xx+0.1, y:2.1, w:2.8, h:0.7, fontSize:12, color:C.silver, fontFace:"Calibri", align:"center", valign:"top" });
});
// State hotspots
s.addShape(pres.ShapeType.rect, { x:0.3, y:3.05, w:6.2, h:0.38, fill:{color:C.teal}, line:{color:C.teal}, rectRadius:0.05 });
s.addText("STATE / DISTRICT HOTSPOTS", { x:0.3, y:3.05, w:6.2, h:0.38, fontSize:12, bold:true, color:C.white, fontFace:"Calibri", align:"center", valign:"middle", margin:0 });
const hotspots = [
["Bihar (State)", "63.1%"],
["Ladakh (UT)", "71.4%"],
["Udalgiri, Assam (District)", "81.5%"],
["Scheduled Tribes", "59.3%"],
];
hotspots.forEach((h, i) => {
const yy = 3.5 + i * 0.62;
s.addShape(pres.ShapeType.rect, { x:0.3, y:yy, w:4.2, h:0.52, fill:{color: i%2===0 ? C.white : C.lightTeal}, line:{color:"C8DCE4"} });
s.addShape(pres.ShapeType.rect, { x:4.5, y:yy, w:2.0, h:0.52, fill:{color:C.crimson}, line:{color:C.crimson} });
s.addText(h[0], { x:0.4, y:yy, w:4.0, h:0.52, fontSize:12, color:C.darkGray, fontFace:"Calibri", valign:"middle" });
s.addText(h[1], { x:4.5, y:yy, w:2.0, h:0.52, fontSize:15, bold:true, color:C.white, fontFace:"Calibri", align:"center", valign:"middle", margin:0 });
});
// Risk factors
s.addShape(pres.ShapeType.rect, { x:6.9, y:3.05, w:6.1, h:0.38, fill:{color:C.crimson}, line:{color:C.crimson}, rectRadius:0.05 });
s.addText("RISK FACTORS (Adjusted Odds Ratios)", { x:6.9, y:3.05, w:6.1, h:0.38, fontSize:12, bold:true, color:C.white, fontFace:"Calibri", align:"center", valign:"middle", margin:0 });
const risks = [
["No formal education", "aOR = 1.41"],
["Poorest wealth quintile", "aOR = 1.69"],
["Tobacco / alcohol use", "aOR = 1.39"],
["Short birth interval", "β Risk"],
["Eastern India tribal belt", "Highest prevalence"],
];
risks.forEach((r, i) => {
const yy = 3.5 + i * 0.62;
s.addShape(pres.ShapeType.rect, { x:6.9, y:yy, w:4.2, h:0.52, fill:{color: i%2===0 ? C.white : C.lightTeal}, line:{color:"C8DCE4"} });
s.addShape(pres.ShapeType.rect, { x:11.1, y:yy, w:1.7, h:0.52, fill:{color:C.teal}, line:{color:C.teal} });
s.addText(r[0], { x:7.0, y:yy, w:4.0, h:0.52, fontSize:12, color:C.darkGray, fontFace:"Calibri", valign:"middle" });
s.addText(r[1], { x:11.1, y:yy, w:1.7, h:0.52, fontSize:11, bold:true, color:C.white, fontFace:"Calibri", align:"center", valign:"middle", margin:0 });
});
}
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
// SLIDE 7 β SECTION DIVIDER: Classification
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
{
const s = pres.addSlide();
sectionDivider(s, "03", "Classification of Causes", "Hereditary vs. Acquired β Complete Taxonomy");
}
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
// SLIDE 8 β CAUSES CLASSIFICATION
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
{
const s = pres.addSlide();
addBg(s, C.offWhite);
addHeader(s, "Classification of Anemia in Pregnancy", C.navy, C.white);
accentBar(s, C.teal);
footerLine(s);
// HEREDITARY column
s.addShape(pres.ShapeType.rect, { x:0.3, y:1.1, w:5.9, h:0.45, fill:{color:C.teal}, line:{color:C.teal}, rectRadius:0.06 });
s.addText("HEREDITARY (Genetic)", { x:0.3, y:1.1, w:5.9, h:0.45, fontSize:14, bold:true, color:C.white, fontFace:"Calibri", align:"center", valign:"middle", margin:0 });
const hereditary = [
["Hemoglobinopathies", "Sickle cell (SS/SC/S-Ξ²Thal), HbC, HbE, HbD"],
["Thalassemias", "Ξ±-Thalassemia (gene deletions), Ξ²-Thalassemia (point mutations)"],
["RBC Enzyme Defects", "G6PD deficiency (X-linked recessive) β hemolytic crises"],
["RBC Membrane Disorders", "Hereditary spherocytosis (AD), Hereditary elliptocytosis"],
];
hereditary.forEach((item, i) => {
const yy = 1.65 + i * 1.0;
s.addShape(pres.ShapeType.rect, { x:0.3, y:yy, w:1.95, h:0.82, fill:{color:C.navy}, line:{color:C.navy}, rectRadius:0.05 });
s.addText(item[0], { x:0.3, y:yy, w:1.95, h:0.82, fontSize:10.5, bold:true, color:C.white, fontFace:"Calibri", align:"center", valign:"middle", margin:0.05 });
s.addShape(pres.ShapeType.rect, { x:2.3, y:yy, w:3.9, h:0.82, fill:{color:C.white}, line:{color:"BDD3E0"} });
s.addText(item[1], { x:2.4, y:yy, w:3.7, h:0.82, fontSize:10.5, color:C.darkGray, fontFace:"Calibri", valign:"middle" });
});
// ACQUIRED column
s.addShape(pres.ShapeType.rect, { x:6.8, y:1.1, w:6.2, h:0.45, fill:{color:C.crimson}, line:{color:C.crimson}, rectRadius:0.06 });
s.addText("ACQUIRED (Most Common in India)", { x:6.8, y:1.1, w:6.2, h:0.45, fontSize:14, bold:true, color:C.white, fontFace:"Calibri", align:"center", valign:"middle", margin:0 });
const acquired = [
["IDA #1", "Most common; >50% of all pregnancy anemia in India", C.crimson],
["Megaloblastic #2", "Folate (most common), Vitamin B12 deficiency", C.crimson],
["Physiological", "Normal dilutional anemia β plasma β47%, RBC β17%", C.teal],
["Acute Blood Loss", "APH (placenta previa, abruption), PPH", C.teal],
["ACD", "Hepcidin mechanism; TB, malaria, HIV in India", C.teal],
["Hemolytic", "AIHA (Coombs+), HELLP, TTP/HUS, Drug-induced", C.navy],
["Aplastic Anemia", "Bone marrow failure; pancytopenia; Camitta criteria", C.navy],
];
acquired.forEach((item, i) => {
const yy = 1.65 + i * 0.73;
s.addShape(pres.ShapeType.rect, { x:6.8, y:yy, w:1.6, h:0.63, fill:{color:item[2]}, line:{color:item[2]}, rectRadius:0.04 });
s.addText(item[0], { x:6.8, y:yy, w:1.6, h:0.63, fontSize:10, bold:true, color:C.white, fontFace:"Calibri", align:"center", valign:"middle", margin:0.04 });
s.addShape(pres.ShapeType.rect, { x:8.45, y:yy, w:4.55, h:0.63, fill:{color: i%2===0 ? C.white : C.lightTeal}, line:{color:"BDD3E0"} });
s.addText(item[1], { x:8.55, y:yy, w:4.35, h:0.63, fontSize:10.5, color:C.darkGray, fontFace:"Calibri", valign:"middle" });
});
}
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
// SLIDE 9 β SECTION DIVIDER: Effects
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
{
const s = pres.addSlide();
sectionDivider(s, "04", "Effects on Mother & Fetus", "Maternal Mortality Β· Fetal Outcomes Β· Paradox of High Hb");
}
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
// SLIDE 10 β EFFECTS ON MOTHER & FETUS
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
{
const s = pres.addSlide();
addBg(s, C.offWhite);
addHeader(s, "Effects on Mother & Fetus", C.navy, C.white);
accentBar(s, C.crimson);
footerLine(s);
// Maternal effects
infoBox(s, 0.3, 1.15, 4.0, 2.9, "ANTENATAL MATERNAL EFFECTS", [
"High-output cardiac failure (severe anemia)",
"Increased infections: UTI, pneumonia, TB",
"Preterm labor risk (meta-analysis confirmed)",
"PROM β membrane weakness",
"Increased placental weight (compensatory)",
"Pre-eclampsia β in sickle cell disease",
], C.teal, C.lightTeal);
infoBox(s, 4.5, 1.15, 4.0, 2.9, "INTRAPARTUM & POSTPARTUM EFFECTS", [
"Poor uterine contractions β iron impairs smooth muscle",
"Prolonged labour, poor maternal stamina",
"PPH β primary cause of maternal mortality in India",
"Puerperal sepsis β reduced immunity",
"Poor lactation; slow wound healing (LSCS)",
"Postpartum depression (iron deficiency association)",
], C.crimson, "#FDECEA");
infoBox(s, 8.9, 1.15, 4.1, 2.9, "FETAL & NEONATAL EFFECTS", [
"Hb 9-11 β Generally good outcome",
"Hb 7-9 β Preterm birth, low birth weight",
"Hb < 7 β FGR/SGA, perinatal death",
"Hb < 6 β Stillbirth, abnormal oxygenation",
"Neonatal ferritin <25th %ile β neurodevelopmental delays",
"Folate deficiency β Neural tube defects (periconceptional)",
], C.navy, C.lightGray);
// Mortality stat
s.addShape(pres.ShapeType.rect, { x:0.3, y:4.2, w:8.0, h:1.0, fill:{color:C.crimson}, line:{color:C.crimson}, rectRadius:0.08 });
s.addText([
{ text: "RR = 3.5 ", options:{ fontSize:28, bold:true, color:C.gold } },
{ text: "for maternal death with Hb < 5 g/dL in Asia, Africa & Latin America\n", options:{ fontSize:14, color:C.white } },
{ text: "Anemia is one of the top 3 causes of maternal mortality in India β alongside hemorrhage and hypertensive disorders", options:{ fontSize:11, italic:true, color:"FFD0CC" } },
], { x:0.4, y:4.2, w:7.8, h:1.0, fontFace:"Calibri", valign:"middle" });
// Paradox box
s.addShape(pres.ShapeType.rect, { x:8.6, y:4.2, w:4.4, h:1.0, fill:{color:C.gold}, line:{color:C.gold}, rectRadius:0.08 });
s.addText([
{ text: "β HIGH Hb PARADOX\n", options:{ fontSize:13, bold:true, color:C.navy } },
{ text: "Maternal Hb > 14.5 g/dL early in pregnancy β stillbirth, SGA, LBW. High Hb = inadequate plasma volume expansion β poor placentation", options:{ fontSize:10, color:C.darkGray } },
], { x:8.7, y:4.2, w:4.2, h:1.0, fontFace:"Calibri", valign:"middle" });
// Fetal table
tableSlide(s,
["Hb Severity", "Fetal / Neonatal Impact"],
[
["Mild (9-11)", "Generally good fetal outcome"],
["Moderate (7-9)", "β Preterm birth, β low birth weight"],
["Severe (<7)", "FGR/SGA, perinatal death, non-reassuring FHR"],
["Very Severe (<6)", "Abnormal fetal oxygenation, stillbirth"],
],
0.3, 5.35, 12.7, [2.5, 10.2]
);
}
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
// SLIDE 11 β SECTION DIVIDER: Individual Causes
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
{
const s = pres.addSlide();
sectionDivider(s, "05", "Individual Causes of Anemia", "Pathophysiology Β· Clinical Features Β· Investigations Β· Treatment");
}
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
// SLIDE 12 β PHYSIOLOGICAL ANEMIA
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
{
const s = pres.addSlide();
addBg(s, C.offWhite);
addHeader(s, "5A. Physiological (Dilutional) Anemia of Pregnancy", C.teal, C.white);
accentBar(s, C.teal);
footerLine(s);
// Changes table
tableSlide(s,
["Parameter", "Change in Pregnancy"],
[
["Total Blood Volume", "β 40-45% (max at 34 weeks)"],
["Plasma Volume", "β 47%"],
["RBC Mass", "β only 17-20% (reaches max at term)"],
["Net Result", "Relative hemodilution β β Hb, Hct, RBC count"],
],
0.3, 1.15, 6.0, [2.8, 3.2]
);
infoBox(s, 6.6, 1.15, 3.3, 3.6, "CLINICAL FEATURES", [
"Hb nadir at 28-34 weeks (~10.5-11 g/dL)",
"Asymptomatic β normal and PROTECTIVE",
"No pallor, no tissue hypoxia",
"Improves uteroplacental perfusion",
"(reduces blood viscosity)",
], C.teal, C.lightTeal);
infoBox(s, 10.1, 1.15, 2.9, 3.6, "LABS (KEY!)", [
"Hb: ~10.5-11.5 g/dL (2nd T)",
"MCV: NORMAL (81-99 fL)",
"MCHC: NORMAL (32-35)",
"Ferritin: NORMAL",
"Retic: Normal/mild β",
"No treatment needed",
], C.navy, C.lightGray);
// Mechanism
s.addShape(pres.ShapeType.rect, { x:0.3, y:4.95, w:6.0, h:1.7, fill:{color:C.navy}, line:{color:C.navy}, rectRadius:0.08 });
s.addText("MECHANISM", { x:0.3, y:4.95, w:6.0, h:0.45, fontSize:12, bold:true, color:C.gold, fontFace:"Calibri", align:"center", valign:"middle", margin:0 });
s.addText("Progesterone β Aldosterone β Na & water retention β Plasma volume β\nIncreased renal blood flow β β EPO β β RBC mass (but less than plasma expansion)", {
x:0.4, y:5.42, w:5.8, h:1.15, fontSize:11, color:C.silver, fontFace:"Calibri", valign:"top",
});
s.addShape(pres.ShapeType.rect, { x:6.6, y:4.95, w:6.4, h:0.45, fill:{color:C.gold}, line:{color:C.gold}, rectRadius:0.05 });
s.addText("KEY TEACHING POINT", { x:6.6, y:4.95, w:6.4, h:0.45, fontSize:12, bold:true, color:C.navy, fontFace:"Calibri", align:"center", valign:"middle", margin:0 });
s.addText("MCV and MCHC do NOT change in physiological anemia β this is the essential differentiating point from IDA where both fall progressively. Diagnose by exclusion: normal MCV + normal ferritin = dilutional.", {
x:6.6, y:5.45, w:6.4, h:1.2, fontSize:11, color:C.darkGray, fontFace:"Calibri", valign:"top",
});
}
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
// SLIDE 13 β IDA PATHOPHYSIOLOGY + STAGES
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
{
const s = pres.addSlide();
addBg(s, C.offWhite);
addHeader(s, "5B. Iron Deficiency Anemia (IDA) β Most Common Cause", C.crimson, C.white);
accentBar(s, C.crimson);
footerLine(s);
// Iron requirements table
tableSlide(s,
["Purpose", "Average (mg)", "Range (mg)"],
[
["External iron loss", "170", "150-200"],
["Expansion of RBC mass", "450", "200-600"],
["Fetal iron needs", "270", "200-370"],
["Placenta and cord", "90", "30-170"],
["Blood loss at delivery", "150", "90-310"],
["TOTAL REQUIREMENT", "1130", "580-1340"],
],
0.3, 1.15, 5.5, [2.6, 1.4, 1.5]
);
// 3 Stages
s.addShape(pres.ShapeType.rect, { x:6.1, y:1.15, w:6.9, h:0.4, fill:{color:C.crimson}, line:{color:C.crimson}, rectRadius:0.05 });
s.addText("THREE STAGES OF IRON DEFICIENCY", { x:6.1, y:1.15, w:6.9, h:0.4, fontSize:13, bold:true, color:C.white, fontFace:"Calibri", align:"center", valign:"middle", margin:0 });
const stages = [
{ num:"1", title:"Pre-latent (Iron Depletion)", color:C.teal, items:["β Serum ferritin (depleted stores)", "Hb NORMAL | MCV NORMAL", "Iron studies NORMAL"] },
{ num:"2", title:"Latent (Iron-deficient Erythropoiesis)", color:C.gold, items:["β Serum iron | β TIBC | β % Transferrin sat.", "Hb NORMAL | MCV NORMAL", "sTfR β"] },
{ num:"3", title:"Overt IDA", color:C.crimson, items:["β Hb | β MCV | β MCHC", "Microcytic hypochromic smear", "Classic clinical presentation"] },
];
stages.forEach((st, i) => {
const yy = 1.65 + i * 1.5;
s.addShape(pres.ShapeType.rect, { x:6.1, y:yy, w:0.6, h:1.3, fill:{color:st.color}, line:{color:st.color}, rectRadius:0.05 });
s.addText("S" + st.num, { x:6.1, y:yy, w:0.6, h:1.3, fontSize:18, bold:true, color:C.white, fontFace:"Calibri", align:"center", valign:"middle", margin:0 });
s.addShape(pres.ShapeType.rect, { x:6.75, y:yy, w:6.25, h:1.3, fill:{color:C.white}, line:{color:"C8D6E5"} });
s.addText(st.title, { x:6.82, y:yy+0.05, w:6.1, h:0.4, fontSize:12, bold:true, color:st.color, fontFace:"Calibri" });
const items = st.items.map((t,j) => ({ text:t, options:{ bullet:{code:"2022"}, fontSize:11, color:C.darkGray, breakLine: j < st.items.length-1 }}));
s.addText(items, { x:6.85, y:yy+0.45, w:6.05, h:0.8, fontFace:"Calibri", valign:"top" });
});
s.addText("Daily iron requirement in pregnancy: 22-23 mg/day | Average Indian dietary intake: ~15 mg/day | Shortfall must be met by supplementation", {
x:0.3, y:6.55, w:12.7, h:0.4, fontSize:10.5, italic:true, color:C.crimson, fontFace:"Calibri", align:"center",
});
}
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
// SLIDE 14 β IDA: INVESTIGATIONS + SMEAR IMAGE
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
{
const s = pres.addSlide();
addBg(s, C.offWhite);
addHeader(s, "5B. IDA β Clinical Features & Investigations", C.crimson, C.white);
accentBar(s, C.crimson);
footerLine(s);
// Clinical features box
infoBox(s, 0.3, 1.15, 3.5, 3.2, "CLINICAL FEATURES", [
"Fatigue, palpitations, exertional dyspnea",
"Pica β pagophagia (ice craving) β HIGHLY characteristic",
"Restless legs syndrome",
"Koilonychia (spoon-shaped nails) β chronic IDA",
"Angular stomatitis, glossitis",
"Soft systolic flow murmur (high-output state)",
], C.crimson, "#FDECEA");
// Iron studies comparison table
tableSlide(s,
["Test", "Normal", "IDA", "ACD", "Thalassemia"],
[
["Serum Iron", "60-170 ΞΌg/dL", "ββ", "β", "Normal/β"],
["TIBC", "250-370 ΞΌg/dL", "β (>400) β KEY", "β KEY", "Normal"],
["% Transferrin Sat", "20-50%", "β (<16%)", "β (<30%)", "Normal/β"],
["Serum Ferritin", "12-150 ΞΌg/L", "β (<15) β DIAGNOSTIC", "β (>200)", "Normal/β"],
["MCV", "80-100 fL", "β (<80)", "β (<80)", "ββ (<75)"],
["RDW", "11.5-14.5%", "β (>15%)", "Normal", "Normal/β"],
],
0.3, 4.5, 9.0, [1.8, 1.6, 1.6, 1.6, 1.2, 1.2]
);
// Smear image
if (smearB64) {
s.addImage({ data: smearB64, x:10.0, y:1.15, w:3.0, h:3.3 });
s.addShape(pres.ShapeType.rect, { x:10.0, y:4.5, w:3.0, h:0.5, fill:{color:C.navy}, line:{color:C.navy} });
s.addText("Microcytic Hypochromic Smear\n(IDA β classic appearance)", { x:10.0, y:4.5, w:3.0, h:0.5, fontSize:9, color:C.white, fontFace:"Calibri", align:"center", valign:"middle", italic:true, margin:0 });
}
s.addShape(pres.ShapeType.rect, { x:0.3, y:4.0, w:9.4, h:0.42, fill:{color:C.gold}, line:{color:C.gold}, rectRadius:0.04 });
s.addText("Ferritin <15 ΞΌg/L = DIAGNOSTIC of IDA. Ferritin <30 ΞΌg/L with inflammation also suggests IDA (ferritin is an acute-phase reactant).", {
x:0.35, y:4.0, w:9.3, h:0.42, fontSize:10.5, bold:true, color:C.navy, fontFace:"Calibri", valign:"middle", margin:0,
});
}
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
// SLIDE 15 β IDA TREATMENT
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
{
const s = pres.addSlide();
addBg(s, C.offWhite);
addHeader(s, "5B. IDA β Treatment Protocol", C.crimson, C.white);
accentBar(s, C.crimson);
footerLine(s);
// Oral iron
s.addShape(pres.ShapeType.rect, { x:0.3, y:1.15, w:6.0, h:0.4, fill:{color:C.teal}, line:{color:C.teal}, rectRadius:0.04 });
s.addText("1. ORAL IRON (First-line)", { x:0.3, y:1.15, w:6.0, h:0.4, fontSize:13, bold:true, color:C.white, fontFace:"Calibri", align:"center", valign:"middle", margin:0 });
tableSlide(s,
["Preparation", "Elemental Fe", "Dose", "Notes"],
[
["Ferrous sulfate 325 mg", "65 mg", "1 tab OD-BD", "Cheapest β standard of care"],
["Ferrous gluconate 300 mg", "35 mg", "1 tab BD-TDS", "Better tolerated"],
["Ferrous fumarate 200 mg", "65 mg", "1 tab BD", "Alternative"],
],
0.3, 1.62, 6.0, [1.8, 1.0, 1.0, 2.2]
);
infoBox(s, 0.3, 3.5, 3.0, 3.1, "OPTIMISING ABSORPTION", [
"Take on empty stomach",
"Take with Vitamin C (100 mg)",
"Avoid tea (β 90%), coffee (β 60%)",
"Avoid calcium/antacids",
"Alternate-day dosing = daily dosing with fewer GI effects",
"Expected Hb rise: 1-2 g/dL per month",
], C.teal, C.lightTeal);
infoBox(s, 3.5, 3.5, 2.8, 3.1, "MONITORING", [
"Retic count β within 1 week",
"Hb rises from week 2",
"Continue until ferritin 50-100 ng/mL",
"Continue 3 months postpartum",
"Side effects in 30-50%: nausea,\nconstipation, black stools (harmless)",
], C.navy, C.lightGray);
// IV iron
s.addShape(pres.ShapeType.rect, { x:6.6, y:1.15, w:6.4, h:0.4, fill:{color:C.crimson}, line:{color:C.crimson}, rectRadius:0.04 });
s.addText("2. IV IRON β Indications & Preparations", { x:6.6, y:1.15, w:6.4, h:0.4, fontSize:13, bold:true, color:C.white, fontFace:"Calibri", align:"center", valign:"middle", margin:0 });
tableSlide(s,
["Preparation", "Dose", "Notes"],
[
["Ferric Carboxymaltose (FCM)", "1000 mg single dose", "PREFERRED in pregnancy β no test dose"],
["Iron Sucrose", "100-200 mg/session", "Safe in pregnancy; widely used in India"],
["Low-MW Iron Dextran", "1000 mg over 1 hr", "Requires test dose; anaphylaxis risk"],
],
6.6, 1.62, 6.4, [2.5, 1.7, 2.2]
);
infoBox(s, 6.6, 3.1, 6.4, 1.4, "INDICATIONS FOR IV IRON", [
"Intolerance / non-compliance with oral iron",
"Severe IDA in 2nd/3rd trimester (Hb <8 g/dL)",
"Malabsorption (celiac, IBD, gastric bypass)",
"3rd trimester β insufficient time for oral iron",
"NOT in 1st trimester (insufficient safety data)",
], C.crimson, "#FDECEA");
// Transfusion
s.addShape(pres.ShapeType.rect, { x:6.6, y:4.6, w:6.4, h:0.4, fill:{color:C.navy}, line:{color:C.navy}, rectRadius:0.04 });
s.addText("3. BLOOD TRANSFUSION (Severe Cases)", { x:6.6, y:4.6, w:6.4, h:0.4, fontSize:13, bold:true, color:C.white, fontFace:"Calibri", align:"center", valign:"middle", margin:0 });
const txItems = [
{ text:"Hb <6 g/dL antenatally OR symptomatic severe anemia", options:{ bullet:{code:"2022"}, fontSize:11, color:C.darkGray, breakLine:true }},
{ text:"Hb <8 g/dL with active bleeding / planned surgery", options:{ bullet:{code:"2022"}, fontSize:11, color:C.darkGray, breakLine:true }},
{ text:"Hemodynamic compromise regardless of Hb", options:{ bullet:{code:"2022"}, fontSize:11, color:C.darkGray, breakLine:true }},
{ text:"Target post-transfusion Hb: 8-10 g/dL | Each unit pRBCs raises Hb by ~1 g/dL", options:{ bullet:{code:"2022"}, fontSize:11, color:C.crimson, bold:true }},
];
s.addShape(pres.ShapeType.rect, { x:6.6, y:5.05, w:6.4, h:1.55, fill:{color:C.white}, line:{color:"C8D6E5"} });
s.addText(txItems, { x:6.65, y:5.1, w:6.3, h:1.45, fontFace:"Calibri", valign:"top" });
}
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
// SLIDE 16 β MEGALOBLASTIC ANEMIA
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
{
const s = pres.addSlide();
addBg(s, C.offWhite);
addHeader(s, "5E. Megaloblastic Anemia β Folate & B12 Deficiency", C.navy, C.white);
accentBar(s, C.gold);
footerLine(s);
// Folate trap mechanism
s.addShape(pres.ShapeType.rect, { x:0.3, y:1.15, w:5.5, h:0.4, fill:{color:C.gold}, line:{color:C.gold}, rectRadius:0.04 });
s.addText("FOLATE TRAP MECHANISM (B12 Deficiency)", { x:0.3, y:1.15, w:5.5, h:0.4, fontSize:12, bold:true, color:C.navy, fontFace:"Calibri", align:"center", valign:"middle", margin:0 });
s.addShape(pres.ShapeType.rect, { x:0.3, y:1.6, w:5.5, h:2.1, fill:{color:C.white}, line:{color:"C8DCE4"} });
s.addText(
"B12 deficiency β Folate trapped as 5-methylTHF\n" +
"β β THF β β Thymidylate synthesis\n" +
"β β DNA synthesis β Megaloblasts\n" +
"β β Homocysteine β NTDs + thrombosis\n\n" +
"Key: B12 deficiency gives identical blood picture to\nfolate deficiency but adds NEUROLOGICAL damage",
{ x:0.4, y:1.65, w:5.3, h:2.0, fontSize:11, color:C.darkGray, fontFace:"Calibri", valign:"top" }
);
// Comparison table
tableSlide(s,
["Feature", "Folate Deficiency", "B12 Deficiency"],
[
["Onset", "Rapid (months)", "Slow (years)"],
["Macrocytic anemia", "Yes", "Yes"],
["Hyperseg. neutrophils", "Yes", "Yes"],
["Neurological symptoms", "ABSENT", "YES β subacute combined degeneration"],
["Serum folate", "β", "Normal or falsely β"],
["Serum B12", "Normal", "β (<200 pg/mL)"],
["Methylmalonic acid", "Normal", "β (specific for B12 def.)"],
],
6.1, 1.15, 6.9, [2.3, 2.2, 2.4]
);
// Treatment
infoBox(s, 0.3, 3.85, 5.5, 2.65, "TREATMENT PROTOCOL", [
"Folate deficiency β Folic acid 5 mg/day orally",
"Prophylaxis: 0.4 mg/day from pre-conception",
"High-risk women: 5 mg/day (prior NTD, anticonvulsants, DM)",
"B12 (dietary): Cyanocobalamin oral 1000-2000 mcg/day",
"B12 (pernicious anemia/malabsorption): IM cyanocobalamin 1000 mcg/day Γ 7d β weekly Γ 4 wks β monthly",
"Continue B12 through pregnancy and postpartum",
], C.teal, C.lightTeal);
// Critical warning
s.addShape(pres.ShapeType.rect, { x:6.1, y:4.85, w:6.9, h:1.6, fill:{color:C.crimson}, line:{color:C.crimson}, rectRadius:0.08 });
s.addText("β CRITICAL WARNING", { x:6.2, y:4.88, w:6.7, h:0.45, fontSize:15, bold:true, color:C.gold, fontFace:"Calibri", valign:"middle" });
s.addText(
"NEVER give folate alone to a megaloblastic anemia patient without first checking B12!\n" +
"Folate corrects the blood picture but worsens B12 neurological disease (subacute combined degeneration of spinal cord) β a dangerous, irreversible error. Treat empirically with BOTH if cause is unclear.",
{ x:6.2, y:5.35, w:6.7, h:1.05, fontSize:10.5, color:C.white, fontFace:"Calibri", valign:"top" }
);
}
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
// SLIDE 17 β ACD + HELLP + AIHA
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
{
const s = pres.addSlide();
addBg(s, C.offWhite);
addHeader(s, "5D & 5F. Anemia of Chronic Disease Β· AIHA Β· HELLP Syndrome", C.navy, C.white);
accentBar(s, C.teal);
footerLine(s);
// ACD
infoBox(s, 0.3, 1.15, 3.9, 5.4, "ANEMIA OF CHRONIC DISEASE (ACD)", [
"Triggered by: TB, malaria, HIV, UTI (key in India)",
"Mechanism: IL-6 β β Hepcidin β inactivates ferroportin",
"β Iron trapped in macrophages β β serum iron",
"Key lab: TIBC is LOW (opposite of IDA!)",
"Ferritin β (>100-200 ΞΌg/L)",
"Usually mild-moderate normocytic normochromic",
"TREATMENT: Address underlying cause",
"High-dose iron NOT useful (hepcidin blocks absorption)",
"ESA (epoetin alfa) for CRF-associated ACD",
"Mnemonic FARM: Ferritin LOW in IDA, HIGH in ACD",
"TIBC HIGH in IDA, LOW in ACD",
], C.teal, C.lightTeal);
// AIHA
infoBox(s, 4.4, 1.15, 4.0, 2.6, "AUTOIMMUNE HEMOLYTIC ANEMIA (AIHA)", [
"Warm AIHA (80-90%): IgG β splenic macrophage destruction",
"Cold AIHA (10-20%): IgM + complement β intravascular",
"Associated: Lupus, lymphoma, EBV, methyldopa",
"Labs: β LDH, β haptoglobin, β indirect bili, β retic",
"Direct Coombs Test (DAT): POSITIVE β KEY diagnostic test",
"Treatment: Steroids β IVIG β Splenectomy (2nd T if refractory)",
], C.navy, C.lightGray);
// HELLP
infoBox(s, 4.4, 3.9, 4.0, 2.65, "HELLP SYNDROME", [
"Hemolysis + Elevated Liver enzymes + Low Platelets",
"Part of severe preeclampsia spectrum",
"Mechanism: Endothelial dysfunction β fibrin deposition β RBC shearing (schistocytes)",
"Labs: β Hb, β Platelets (<100k), β LDH, β AST/ALT",
"Smear: SCHISTOCYTES (helmet cells) β pathognomonic",
"Treatment: DELIVERY is definitive; MgSO4; corticosteroids for FLM",
], C.crimson, "#FDECEA");
// Aplastic
infoBox(s, 8.6, 1.15, 4.4, 5.4, "APLASTIC / HYPOPLASTIC ANEMIA", [
"Autoimmune T-cell destruction of hematopoietic stem cells",
"Pancytopenia: β Hb, β WBC, β Platelets (all 3 lines)",
"Reticulocyte count ββ (marrow failure)",
"BM biopsy: HYPOCELLULAR / empty fatty marrow",
"Camitta criteria: BM cellularity <25% + 2 of: neutrophils <500, platelets <20k, retic <1%",
"TX: RBC + platelet transfusions (maintain Hb >8, plt >50k for delivery)",
"ATG + Cyclosporine: Standard immunosuppression",
"Androgens: CONTRAINDICATED (teratogenic!)",
"No alkylating agents; BMT deferred to postpartum",
"Meta-analysis 2025 (Arora et al., PMID 39491801):",
" Maternal mortality ~12%, fetal loss ~15%",
"Deaths from infection + hemorrhage",
], C.navy, C.lightGray);
}
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
// SLIDE 18 β THALASSEMIA
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
{
const s = pres.addSlide();
addBg(s, C.offWhite);
addHeader(s, "5H. Thalassemias β India's Genetic Burden", C.teal, C.white);
accentBar(s, C.teal);
footerLine(s);
// Stats bar
s.addShape(pres.ShapeType.rect, { x:0.3, y:1.15, w:12.7, h:0.5, fill:{color:C.navy}, line:{color:C.navy}, rectRadius:0.05 });
s.addText("Ξ²-Thalassemia carrier prevalence: 3-4% of Indians (~45 million carriers) | ~10,000-15,000 thalassemia major children born/year in India | Ξ±-Thalassemia: High in NE India & tribal populations", {
x:0.35, y:1.15, w:12.6, h:0.5, fontSize:11, color:C.gold, fontFace:"Calibri", align:"center", valign:"middle", bold:true, margin:0,
});
// Types table
tableSlide(s,
["Type", "Genetics", "India Prevalence", "Clinical Severity"],
[
["Ξ²-Thal trait", "Heterozygous Ξ²-globin mutation", "3-4%", "Mild microcytic; no transfusion"],
["Ξ²-Thal major", "Homozygous", "Rare in pregnancy", "Transfusion-dependent from infancy"],
["Ξ±-Thal trait", "-Ξ±/Ξ±Ξ± or --/Ξ±Ξ±", "High in NE India/tribals", "Silent/mild microcytic"],
["HbH disease", "--/-Ξ±", "Less common", "Moderate hemolytic anemia"],
["Hb Barts Hydrops", "--/--", "Rare", "Fetal death in utero"],
],
0.3, 1.75, 8.5, [1.8, 2.2, 1.8, 2.7]
);
// Investigations comparison
tableSlide(s,
["Test", "Ξ²-Thal Trait", "Ξ±-Thal Trait", "IDA"],
[
["Hb", "β (9-11)", "β (10-12)", "β"],
["MCV", "ββ (<75 fL)", "β (<80 fL)", "β"],
["Hb A2", "β (>3.5%) β KEY", "Normal", "Normal"],
["Serum Ferritin", "Normal/β", "Normal", "β (<15)"],
["TIBC", "Normal", "Normal", "β"],
["Mentzer Index (MCV/RBC)", "<13 β Thalassemia", "<13", ">13 β IDA"],
],
0.3, 4.6, 8.5, [2.2, 2.1, 2.1, 2.1]
);
// Key points & image
s.addShape(pres.ShapeType.rect, { x:9.1, y:1.75, w:3.9, h:0.4, fill:{color:C.teal}, line:{color:C.teal}, rectRadius:0.04 });
s.addText("KEY MANAGEMENT POINTS", { x:9.1, y:1.75, w:3.9, h:0.4, fontSize:11, bold:true, color:C.white, fontFace:"Calibri", align:"center", valign:"middle", margin:0 });
const thalMgmt = [
{ text:"Ξ²-Thal Trait: NO excess iron (ferritin is normal β risk of iron overload!)", options:{ bullet:{code:"2022"}, fontSize:10, color:C.crimson, bold:true, breakLine:true }},
{ text:"Routine IFA at WHO standard dose only", options:{ bullet:{code:"2022"}, fontSize:10, color:C.darkGray, breakLine:true }},
{ text:"Folic acid 5 mg/day (compensate hemolysis)", options:{ bullet:{code:"2022"}, fontSize:10, color:C.darkGray, breakLine:true }},
{ text:"Genetic counseling + partner HPLC testing", options:{ bullet:{code:"2022"}, fontSize:10, color:C.darkGray, breakLine:true }},
{ text:"HPLC: Gold standard β Hb A2 >3.5% confirms Ξ²-thal trait", options:{ bullet:{code:"2022"}, fontSize:10, color:C.teal, bold:true, breakLine:true }},
{ text:"Chelation: Deferoxamine (IV/SC) only in pregnancy. Oral chelators (deferasirox, deferiprone) are TERATOGENIC β stop pre-conception", options:{ bullet:{code:"2022"}, fontSize:10, color:C.darkGray, breakLine:true }},
{ text:"CVS at 10-12 weeks for prenatal diagnosis if both parents carriers", options:{ bullet:{code:"2022"}, fontSize:10, color:C.darkGray }},
];
s.addShape(pres.ShapeType.rect, { x:9.1, y:2.2, w:3.9, h:2.3, fill:{color:C.white}, line:{color:"C8DCE4"} });
s.addText(thalMgmt, { x:9.15, y:2.25, w:3.8, h:2.2, fontFace:"Calibri", valign:"top" });
// Thalassemia screening flowchart image
if (thalB64) {
s.addImage({ data: thalB64, x:9.1, y:4.6, w:3.9, h:2.55 });
s.addShape(pres.ShapeType.rect, { x:9.1, y:7.15, w:3.9, h:0, fill:{color:C.navy}, line:{color:C.navy} });
}
s.addText("Thalassemia Screening Algorithm (Creasy & Resnik MFM 7e)", {
x:9.1, y:7.1, w:3.9, h:0.35, fontSize:8, italic:true, color:C.teal, fontFace:"Calibri", align:"center",
});
}
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
// SLIDE 19 β SICKLE CELL DISEASE
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
{
const s = pres.addSlide();
addBg(s, C.offWhite);
addHeader(s, "5I. Sickle Cell Hemoglobinopathies β India Context", C.crimson, C.white);
accentBar(s, C.crimson);
footerLine(s);
// India context bar
s.addShape(pres.ShapeType.rect, { x:0.3, y:1.15, w:12.7, h:0.5, fill:{color:C.navy}, line:{color:C.navy}, rectRadius:0.05 });
s.addText("~15 million sickle cell trait carriers in India | ~200,000 SCA patients | National Sickle Cell Anaemia Elimination Mission 2023 (target: 2047) | Tribal belts: MP, Chhattisgarh, Jharkhand, Odisha, Maharashtra", {
x:0.35, y:1.15, w:12.6, h:0.5, fontSize:10.5, color:C.gold, fontFace:"Calibri", align:"center", valign:"middle", bold:true, margin:0,
});
// Pathophysiology
s.addShape(pres.ShapeType.rect, { x:0.3, y:1.75, w:5.8, h:0.4, fill:{color:C.crimson}, line:{color:C.crimson}, rectRadius:0.04 });
s.addText("PATHOPHYSIOLOGY", { x:0.3, y:1.75, w:5.8, h:0.4, fontSize:12, bold:true, color:C.white, fontFace:"Calibri", align:"center", valign:"middle", margin:0 });
s.addShape(pres.ShapeType.rect, { x:0.3, y:2.2, w:5.8, h:1.9, fill:{color:C.white}, line:{color:"C8D6E5"} });
s.addText(
"Point mutation: Glutamic acid β Valine at position 6 of Ξ²-globin chain\n" +
"β HbS produced β deoxygenation/oxidant stress β HbS polymerizes β RBC sickling\n\n" +
"2 consequences:\n" +
" β’ VASO-OCCLUSION β pain crises, organ infarction, ACS, stroke\n" +
" β’ HEMOLYSIS β chronic anemia (Hb 6-9), jaundice, pigment gallstones, functional asplenia",
{ x:0.4, y:2.25, w:5.6, h:1.8, fontSize:10.5, color:C.darkGray, fontFace:"Calibri", valign:"top" }
);
// Pregnancy-specific risks
infoBox(s, 0.3, 4.2, 5.8, 2.35, "PREGNANCY-SPECIFIC RISKS", [
"Painful crises in 20-50% of SCA pregnancies",
"Acute Chest Syndrome: up to 20% β most severe complication",
"Preterm birth + FGR: up to 45% rate",
"Pyelonephritis: β (screen urine culture each trimester)",
"VTE: β risk β especially with hospitalisation",
"Preeclampsia: β risk",
], C.crimson, "#FDECEA");
// Management
infoBox(s, 6.4, 1.75, 6.6, 2.65, "ANTENATAL MANAGEMENT", [
"Folic acid 5 mg/day (chronic hemolysis demand)",
"Penicillin prophylaxis 500mg BD (functional asplenia)",
"Low-dose aspirin 75-150 mg/day from 12 weeks (pre-eclampsia)",
"LMWH thromboprophylaxis if hospitalised",
"Serial USS: fetal growth scans 4-weekly from 24 weeks",
"STOP hydroxyurea 3 months before conception (teratogenic)",
"Do NOT give routine iron (may be iron-overloaded)",
"Avoid: cold, dehydration, infections, hypoxia, oxidant drugs",
], C.navy, C.lightGray);
infoBox(s, 6.4, 4.55, 3.1, 2.0, "PAINFUL CRISIS", [
"IV fluids 2-3 L/day",
"Oxygen (SpO2 >95%)",
"IV morphine + paracetamol",
"Warm packs",
"Antibiotics if infection suspected",
"Transfuse if Hb <6 or Hct <18%",
], C.teal, C.lightTeal);
infoBox(s, 9.7, 4.55, 3.3, 2.0, "ACUTE CHEST SYNDROME", [
"O2 + IV fluids + incentive spirometry",
"Cephalosporin + macrolide",
"Bronchodilators",
"EXCHANGE TRANSFUSION",
"Goal: HbA >50%, Hct >25%",
"Consider ICU",
], C.crimson, "#FDECEA");
}
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
// SLIDE 20 β SECTION DIVIDER: Diagnostic Algorithm
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
{
const s = pres.addSlide();
sectionDivider(s, "06", "Diagnostic Algorithm", "Practical Flowchart β MCV-Based Approach");
}
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
// SLIDE 21 β DIAGNOSTIC FLOWCHART
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
{
const s = pres.addSlide();
addBg(s, C.offWhite);
addHeader(s, "Practical Diagnostic Algorithm β Anemia in Pregnancy", C.navy, C.white);
accentBar(s, C.teal);
footerLine(s);
// Start box
s.addShape(pres.ShapeType.rect, { x:4.3, y:1.15, w:4.7, h:0.7, fill:{color:C.crimson}, line:{color:C.crimson}, rectRadius:0.08 });
s.addText("ANEMIC PREGNANT WOMAN\n(Hb below trimester threshold)", { x:4.3, y:1.15, w:4.7, h:0.7, fontSize:12, bold:true, color:C.white, fontFace:"Calibri", align:"center", valign:"middle", margin:0 });
// Arrow down
s.addShape(pres.ShapeType.line, { x:6.65, y:1.85, w:0.001, h:0.4, line:{color:C.navy, width:2} });
s.addShape(pres.ShapeType.rect, { x:3.9, y:2.25, w:5.5, h:0.65, fill:{color:C.navy}, line:{color:C.navy}, rectRadius:0.06 });
s.addText("STEP 1: CBC + Reticulocyte count + Peripheral Smear\nβ Morphological Classification", { x:3.9, y:2.25, w:5.5, h:0.65, fontSize:11, bold:true, color:C.white, fontFace:"Calibri", align:"center", valign:"middle", margin:0 });
// Three columns
const cols = [
{
title:"MICROCYTIC\n(MCV < 80 fL)",
color:C.crimson, x:0.3,
steps:[
{label:"Iron Studies", bg:C.lightTeal},
{label:"Ferritin + TIBC", bg:C.white},
{label:"Ferritin <15, TIBC β\nβ IDA (MOST COMMON)", bg:C.crimson, light:true},
{label:"Ferritin normal, MCV very low\nβ Thalassemia (check HPLC)", bg:C.teal, light:true},
]
},
{
title:"NORMOCYTIC\n(MCV 80-100 fL)",
color:C.teal, x:4.6,
steps:[
{label:"Reticulocyte Count", bg:C.lightTeal},
{label:"LOW Reticulocyte\nβ Aplastic anemia / ACD\n/ Chronic renal disease", bg:C.teal, light:true},
{label:"HIGH Reticulocyte\nβ Hemolysis", bg:C.navy, light:true},
{label:"Check: Coombs, LDH,\nHaptoglobin, Smear\nβ AIHA / MAHA / Hemoglobinopathy", bg:C.lightGray},
]
},
{
title:"MACROCYTIC\n(MCV > 100 fL)",
color:C.gold, x:8.9,
steps:[
{label:"B12 + Folate levels", bg:C.lightTeal},
{label:"Oval macrocytes +\nHyperseg neutrophils\n= MEGALOBLASTIC", bg:"FFF8E1"},
{label:"Check B12 FIRST\nbefore giving folate!", bg:C.gold, light:true},
{label:"Treat: Folate 5mg/day\nor B12 IM/oral", bg:C.white},
]
},
];
cols.forEach(col => {
s.addShape(pres.ShapeType.rect, { x:col.x, y:3.1, w:3.9, h:0.65, fill:{color:col.color}, line:{color:col.color}, rectRadius:0.06 });
s.addText(col.title, { x:col.x, y:3.1, w:3.9, h:0.65, fontSize:12, bold:true, color: col.color===C.gold ? C.navy : C.white, fontFace:"Calibri", align:"center", valign:"middle", margin:0 });
col.steps.forEach((step, si) => {
const yy = 3.85 + si * 0.78;
const bgCol = step.bg;
const txtCol = step.light ? C.white : C.darkGray;
s.addShape(pres.ShapeType.rect, { x:col.x, y:yy, w:3.9, h:0.7, fill:{color:bgCol}, line:{color:"C8D6E5"}, rectRadius:0.04 });
s.addText(step.label, { x:col.x+0.08, y:yy, w:3.74, h:0.7, fontSize:10, color:txtCol, fontFace:"Calibri", valign:"middle", bold:step.light });
// Arrow
if (si < col.steps.length - 1) {
s.addShape(pres.ShapeType.line, { x:col.x+1.9, y:yy+0.7, w:0.001, h:0.08, line:{color:C.navy, width:1.5} });
}
});
});
}
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
// SLIDE 22 β SECTION DIVIDER: Management
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
{
const s = pres.addSlide();
sectionDivider(s, "07", "Management Flowchart", "Severity-Based Treatment Β· Mnemonics Β· Follow-Up");
}
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
// SLIDE 23 β SEVERITY-BASED MANAGEMENT FLOWCHART
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
{
const s = pres.addSlide();
addBg(s, C.offWhite);
addHeader(s, "Management of Anemia in Pregnancy β Severity-Based Protocol", C.navy, C.white);
accentBar(s, C.crimson);
footerLine(s);
const sevs = [
{
label:"MILD\nHb 9-11 g/dL", color:C.teal, x:0.3,
lines:["Oral iron (1st line)","Ferrous sulfate 65mg elem Fe/day","+ Vitamin C on empty stomach","Dietary counseling","Recheck CBC in 4 weeks","Expected Hb rise: 1-2 g/dL/month"]
},
{
label:"MODERATE\nHb 7-9 g/dL", color:C.gold, x:3.55,
lines:["Oral iron β dose as above","Escalate to IV iron if:","β’ Intolerant to oral","β’ 3rd trimester","β’ Inadequate response (4 wks)","Ferric carboxymaltose preferred"]
},
{
label:"SEVERE\nHb < 7 g/dL", color:C.crimson, x:6.8,
lines:["IV iron (1st choice)","Ferric carboxymaltose 1000mg IV","OR Iron sucrose 200mg Γ sessions","Consider blood transfusion","if Hb <6 g/dL or symptomatic","Monitor closely β fetal USS"]
},
{
label:"VERY SEVERE\nHb < 5 g/dL", color:C.navy, x:10.05,
lines:["TRANSFUSION β packed RBCs","Target Hb 8-10 g/dL","+ IV iron for stores","ICU if CCF features","Continuous fetal monitoring","Senior obstetrician involvement"]
},
];
sevs.forEach(sev => {
s.addShape(pres.ShapeType.rect, { x:sev.x, y:1.15, w:3.0, h:0.75, fill:{color:sev.color}, line:{color:sev.color}, rectRadius:0.06 });
s.addText(sev.label, { x:sev.x, y:1.15, w:3.0, h:0.75, fontSize:13, bold:true, color: sev.color===C.gold ? C.navy : C.white, fontFace:"Calibri", align:"center", valign:"middle", margin:0 });
s.addShape(pres.ShapeType.rect, { x:sev.x, y:1.95, w:3.0, h:4.0, fill:{color:C.white}, line:{color:sev.color} });
const items = sev.lines.map((t,i) => ({
text:t,
options:{ bullet: t.startsWith("β’") ? false : {code:"2022"}, fontSize:11, color:C.darkGray, breakLine: i < sev.lines.length-1 }
}));
s.addText(items, { x:sev.x+0.1, y:2.0, w:2.8, h:3.9, fontFace:"Calibri", valign:"top" });
});
// Universal care
s.addShape(pres.ShapeType.rect, { x:0.3, y:6.05, w:12.7, h:0.45, fill:{color:C.navy}, line:{color:C.navy}, rectRadius:0.05 });
s.addText("ALL PATIENTS: Folic acid 0.5-5 mg/day | Dietary counseling | Treat underlying cause | Hemoglobinopathy screen if at risk | Serial USS if severe | Monitor CBC every 4 weeks | Continue iron 3 months postpartum", {
x:0.35, y:6.05, w:12.6, h:0.45, fontSize:10, color:C.white, fontFace:"Calibri", align:"center", valign:"middle", margin:0,
});
}
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
// SLIDE 24 β SPECIAL SITUATIONS + MNEMONICS
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
{
const s = pres.addSlide();
addBg(s, C.offWhite);
addHeader(s, "Special Situations Β· Key Mnemonics for the Seminar", C.navy, C.white);
accentBar(s, C.gold);
footerLine(s);
// Special situations
infoBox(s, 0.3, 1.15, 5.8, 5.4, "SPECIAL CLINICAL SITUATIONS", [
"SICKLE CELL: Hydration + O2 + analgesia for crises; exchange transfusion for ACS (HbA >50%); folic acid 5mg; STOP hydroxyurea; penicillin prophylaxis",
"",
"THALASSEMIA TRAIT: No extra iron; genetic counseling; partner HPLC testing; deferoxamine chelation if transfusion-dependent; oral chelators TERATOGENIC",
"",
"APLASTIC ANEMIA: ATG + cyclosporine; RBC + platelet transfusions; NO androgens; delivery with Hb >8 and platelets >50k; maternal mortality ~12% (2025 meta-analysis)",
"",
"AIHA: Prednisolone β IVIG β Splenectomy (2nd trimester); rituximab limited data",
"",
"HELLP: Delivery is definitive; MgSO4 seizure prophylaxis; corticosteroids for FLM",
], C.teal, C.lightTeal);
// Mnemonics
s.addShape(pres.ShapeType.rect, { x:6.4, y:1.15, w:6.6, h:0.4, fill:{color:C.gold}, line:{color:C.gold}, rectRadius:0.04 });
s.addText("MNEMONICS TO REMEMBER", { x:6.4, y:1.15, w:6.6, h:0.4, fontSize:14, bold:true, color:C.navy, fontFace:"Calibri", align:"center", valign:"middle", margin:0 });
// PHILIP mnemonic
s.addShape(pres.ShapeType.rect, { x:6.4, y:1.63, w:6.6, h:0.4, fill:{color:C.navy}, line:{color:C.navy}, rectRadius:0.04 });
s.addText("\"PHILIP\" β Causes of IDA in India", { x:6.4, y:1.63, w:6.6, h:0.4, fontSize:12, bold:true, color:C.white, fontFace:"Calibri", align:"center", valign:"middle", margin:0 });
const philip = [
["P", "Poor diet / vegetarian"],
["H", "High demand (pregnancy, multiparity)"],
["I", "Increased losses (hookworm, menorrhagia)"],
["L", "Low absorption (celiac, tea with meals)"],
["I", "Infection (H. pylori reduces absorption)"],
["P", "Pre-existing deficiency (no iron stores before pregnancy)"],
];
philip.forEach((row, i) => {
const yy = 2.1 + i * 0.42;
s.addShape(pres.ShapeType.rect, { x:6.4, y:yy, w:0.5, h:0.38, fill:{color:C.crimson}, line:{color:C.crimson} });
s.addText(row[0], { x:6.4, y:yy, w:0.5, h:0.38, fontSize:14, bold:true, color:C.white, fontFace:"Calibri", align:"center", valign:"middle", margin:0 });
s.addShape(pres.ShapeType.rect, { x:6.95, y:yy, w:6.05, h:0.38, fill:{color: i%2===0 ? C.white : C.lightTeal}, line:{color:"C8DCE4"} });
s.addText(row[1], { x:7.05, y:yy, w:5.85, h:0.38, fontSize:11, color:C.darkGray, fontFace:"Calibri", valign:"middle" });
});
// FARM mnemonic
s.addShape(pres.ShapeType.rect, { x:6.4, y:4.65, w:6.6, h:0.4, fill:{color:C.crimson}, line:{color:C.crimson}, rectRadius:0.04 });
s.addText("\"FARM\" β IDA vs ACD", { x:6.4, y:4.65, w:6.6, h:0.4, fontSize:12, bold:true, color:C.white, fontFace:"Calibri", align:"center", valign:"middle", margin:0 });
const farm = [
["F", "Ferritin β LOW in IDA, HIGH in ACD"],
["A", "Acid (serum iron) β LOW in BOTH"],
["R", "Receptors (TIBC) β HIGH in IDA, LOW in ACD"],
["M", "Macrophages trap iron β mechanism of ACD (hepcidin)"],
];
farm.forEach((row, i) => {
const yy = 5.13 + i * 0.42;
s.addShape(pres.ShapeType.rect, { x:6.4, y:yy, w:0.5, h:0.38, fill:{color:C.navy}, line:{color:C.navy} });
s.addText(row[0], { x:6.4, y:yy, w:0.5, h:0.38, fontSize:14, bold:true, color:C.white, fontFace:"Calibri", align:"center", valign:"middle", margin:0 });
s.addShape(pres.ShapeType.rect, { x:6.95, y:yy, w:6.05, h:0.38, fill:{color: i%2===0 ? C.white : C.lightTeal}, line:{color:"C8DCE4"} });
s.addText(row[1], { x:7.05, y:yy, w:5.85, h:0.38, fontSize:11, color:C.darkGray, fontFace:"Calibri", valign:"middle" });
});
}
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
// SLIDE 25 β KEY TAKEAWAYS
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
{
const s = pres.addSlide();
addBg(s, C.navy);
// Gold accent
s.addShape(pres.ShapeType.rect, { x:0, y:0, w:W, h:0.08, fill:{color:C.gold}, line:{color:C.gold} });
s.addShape(pres.ShapeType.rect, { x:0, y:H-0.08, w:W, h:0.08, fill:{color:C.gold}, line:{color:C.gold} });
s.addText("KEY TAKEAWAYS", {
x:0.5, y:0.2, w:W-1, h:0.75,
fontSize:32, bold:true, color:C.white, fontFace:"Calibri", align:"center", charSpacing:4,
});
s.addShape(pres.ShapeType.rect, { x:1.0, y:0.95, w:W-2, h:0.06, fill:{color:C.gold}, line:{color:C.gold} });
const takeaways = [
[C.crimson, "52.2% of pregnant women in India are anemic (NFHS-5) β one of the highest burdens globally"],
[C.teal, "IDA is the #1 cause β daily iron shortfall in Indian diet is 7-8 mg; supplementation is essential"],
[C.gold, "Ferritin <15 ΞΌg/L = diagnostic of IDA; Ferritin is an acute-phase reactant β use <30 in inflammation"],
[C.crimson, "TIBC is the KEY differentiator: HIGH in IDA vs. LOW in ACD (FARM mnemonic)"],
[C.teal, "NEVER give folate alone without checking B12 β risks irreversible subacute combined degeneration"],
[C.gold, "IV iron (ferric carboxymaltose 1000 mg) is preferred in 3rd trimester severe IDA"],
[C.crimson, "Thalassemia trait: NO excess iron; HPLC for diagnosis; Hb A2 >3.5% = Ξ²-thal trait"],
[C.teal, "Sickle cell: stop hydroxyurea 3 months pre-conception; exchange transfusion for ACS (HbA >50%)"],
[C.gold, "Aplastic anemia: ATG + cyclosporine; maternal mortality ~12% (2025 meta-analysis)"],
[C.crimson, "High Hb >14.5 g/dL is also dangerous β associated with stillbirth and FGR (paradox)"],
];
takeaways.forEach((item, i) => {
const col = i < 5 ? 0 : 1;
const row = i < 5 ? i : i - 5;
const xx = col === 0 ? 0.3 : 6.9;
const yy = 1.15 + row * 1.1;
s.addShape(pres.ShapeType.rect, { x:xx, y:yy, w:0.52, h:0.52, fill:{color:item[0]}, line:{color:item[0]}, rectRadius:0.05 });
s.addText(String(i+1), { x:xx, y:yy, w:0.52, h:0.52, fontSize:16, bold:true, color:C.white, fontFace:"Calibri", align:"center", valign:"middle", margin:0 });
s.addShape(pres.ShapeType.rect, { x:xx+0.6, y:yy, w:6.0, h:0.52, fill:{color:"1A2A4A"}, line:{color:"2A3A5A"}, rectRadius:0.04 });
s.addText(item[1], { x:xx+0.68, y:yy, w:5.84, h:0.52, fontSize:10.5, color:C.white, fontFace:"Calibri", valign:"middle" });
});
}
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
// SLIDE 26 β REFERENCES / THANK YOU
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
{
const s = pres.addSlide();
addBg(s, C.navy);
s.addShape(pres.ShapeType.rect, { x:0, y:0, w:W, h:0.08, fill:{color:C.gold}, line:{color:C.gold} });
s.addText("REFERENCES", {
x:0.5, y:0.2, w:W-1, h:0.7,
fontSize:30, bold:true, color:C.white, fontFace:"Calibri", align:"center", charSpacing:4,
});
s.addShape(pres.ShapeType.rect, { x:1.0, y:0.88, w:W-2, h:0.05, fill:{color:C.gold}, line:{color:C.gold} });
const refs = [
"Creasy & Resnik's Maternal-Fetal Medicine, 7th Edition β Chapter 55 (Anemia in Pregnancy)",
"Goldman-Cecil Medicine β Chapter 145 (Anemia)",
"Harrison's Principles of Internal Medicine, 22nd Edition",
"Rosen's Emergency Medicine, 9th Edition",
"NFHS-5 India 2019-21 β National Family Health Survey",
"WHO Anaemia Guidelines 2024",
"PMID 37888841 β NFHS-5 Anemia Analysis in Indian Pregnant Women",
"PMID 39491801 β Arora A et al., Aplastic Anemia in Pregnancy Meta-Analysis, Eur J Haematol 2025",
"National Sickle Cell Anaemia Elimination Mission, Government of India, 2023",
];
refs.forEach((ref, i) => {
s.addShape(pres.ShapeType.rect, { x:0.8, y:1.1 + i * 0.62, w:11.7, h:0.52, fill:{color:"1A2A4A"}, line:{color:"2A3A5A"}, rectRadius:0.05 });
s.addShape(pres.ShapeType.rect, { x:0.8, y:1.1 + i * 0.62, w:0.45, h:0.52, fill:{color: i%3===0 ? C.crimson : i%3===1 ? C.teal : C.gold}, line:{color:"1A2A4A"}, rectRadius:0.05 });
s.addText(String(i+1), { x:0.8, y:1.1 + i * 0.62, w:0.45, h:0.52, fontSize:12, bold:true, color:C.white, fontFace:"Calibri", align:"center", valign:"middle", margin:0 });
s.addText(ref, { x:1.35, y:1.1 + i * 0.62, w:11.1, h:0.52, fontSize:10.5, color:C.silver, fontFace:"Calibri", valign:"middle" });
});
s.addShape(pres.ShapeType.rect, { x:0, y:H-0.5, w:W, h:0.5, fill:{color:"06102A"}, line:{color:"06102A"} });
s.addText("Prepared for OBGYN Residency Seminar β India Focus | Data current as of 2024-2025", {
x:0.3, y:H-0.5, w:W-0.6, h:0.5, fontSize:11, color:C.silver, fontFace:"Calibri", align:"center", valign:"middle", italic:true,
});
}
// ββ Write file ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
const outPath = "/home/daytona/workspace/anemia-ppt/Anemia_in_Pregnancy_OBGYN_Seminar.pptx";
pres.writeFile({ fileName: outPath })
.then(() => {
const stat = require("fs").statSync(outPath);
console.log("SUCCESS:", outPath);
console.log("Size:", (stat.size/1024/1024).toFixed(2), "MB");
})
.catch(err => {
console.error("ERROR:", err.message);
process.exit(1);
});
cd /home/daytona/workspace/anemia-ppt && node build.js 2>&1
Anemia in Pregnancy OBGYN Seminar
Presentation Β· PPTX
| Slide | Content |
|---|---|
| 1 | Title slide β Navy/crimson/gold medical theme |
| 2 | Table of Contents (7 sections) |
| 3 | Section divider β WHO Definition |
| 4 | WHO thresholds by trimester + Severity classification table |
| 5 | Section divider β Epidemiology |
| 6 | NFHS-5 stats: 52.2%, state hotspots, risk factor table with aORs |
| 7 | Section divider β Classification |
| 8 | Full hereditary vs. acquired classification with color-coded columns |
| 9 | Section divider β Effects |
| 10 | Effects on mother (antenatal/postpartum) + fetal risks table + RR=3.5 stat + high-Hb paradox |
| 11 | Section divider β Individual Causes |
| 12 | Physiological (dilutional) anemia β mechanism, labs, key teaching point |
| 13 | IDA pathophysiology β iron requirements table (1130 mg total), 3 stages |
| 14 | IDA investigations β comparative iron studies table + peripheral smear image |
| 15 | IDA treatment β oral iron, IV iron (FCM preferred), transfusion indications |
| 16 | Megaloblastic anemia β folate trap, B12 vs folate comparison, critical warning box |
| 17 | ACD, AIHA, HELLP, Aplastic anemia β all 4 in one concise slide |
| 18 | Thalassemia β India burden, types table, investigations, screening flowchart image, management |
| 19 | Sickle cell β India context, pathophysiology, ACS management, exchange transfusion goals |
| 20 | Section divider β Diagnostic Algorithm |
| 21 | Practical MCV-based diagnostic flowchart (microcytic/normocytic/macrocytic) |
| 22 | Section divider β Management |
| 23 | Severity-based management (Mild/Moderate/Severe/Very Severe) β 4-column layout |
| 24 | Special situations + PHILIP & FARM mnemonics |
| 25 | 10 Key Takeaways (dark navy slide) |
| 26 | References (9 sources including NFHS-5, WHO 2024, PMID 39491801) |
the pptx is not downloading
ls -lh /home/daytona/workspace/anemia-ppt/ && file /home/daytona/workspace/anemia-ppt/Anemia_in_Pregnancy_OBGYN_Seminar.pptx
cp /home/daytona/workspace/anemia-ppt/Anemia_in_Pregnancy_OBGYN_Seminar.pptx /home/daytona/workspace/Anemia_in_Pregnancy_OBGYN_Seminar.pptx && ls -lh /home/daytona/workspace/Anemia_in_Pregnancy_OBGYN_Seminar.pptx
Anemia in Pregnancy OBGYN Seminar
Presentation Β· PPTX
Anemia in Pregnancy OBGYN Seminar
Presentation Β· PPTX
Convert it to pdf
which libreoffice && libreoffice --version
libreoffice --headless --convert-to pdf --outdir /home/daytona/workspace/anemia-ppt/ /home/daytona/workspace/anemia-ppt/Anemia_in_Pregnancy_OBGYN_Seminar.pptx 2>&1
libreoffice --headless --convert-to pdf --outdir /tmp/ /home/daytona/workspace/anemia-ppt/Anemia_in_Pregnancy_OBGYN_Seminar.pptx 2>&1 && \ cp /tmp/Anemia_in_Pregnancy_OBGYN_Seminar.pdf /home/daytona/workspace/Anemia_in_Pregnancy_OBGYN_Seminar.pdf && \ ls -lh /home/daytona/workspace/Anemia_in_Pregnancy_OBGYN_Seminar.pdf
Anemia in Pregnancy OBGYN Seminar
PDF Document Β· PDF
Convert it to pdf
ls -lh /home/daytona/workspace/Anemia_in_Pregnancy_OBGYN_Seminar.pdf
Anemia in Pregnancy OBGYN Seminar
PDF Document Β· PDF
the ppt is still not downloading and it does not show the save link as option on right clicking
python3 -c " import base64, os path = '/home/daytona/workspace/Anemia_in_Pregnancy_OBGYN_Seminar.pdf' data = open(path,'rb').read() b64 = base64.b64encode(data).decode() print(f'Size: {len(data)//1024}KB, b64 length: {len(b64)}') # Write an HTML download page html = f'''<!DOCTYPE html> <html> <head><title>Download Anemia PDF</title></head> <body style=\"font-family:Arial;text-align:center;padding:60px;background:#0D1B3E;color:white\"> <h2>Anemia in Pregnancy β OBGYN Seminar</h2> <p>Click the button below to download your PDF</p> <a href=\"data:application/pdf;base64,{b64}\" download=\"Anemia_in_Pregnancy_OBGYN_Seminar.pdf\" style=\"background:#C0392B;color:white;padding:16px 32px;font-size:18px;border-radius:8px;text-decoration:none;display:inline-block;margin-top:20px\"> β¬ Download PDF (511 KB) </a> </body> </html>''' with open('/home/daytona/workspace/download.html','w') as f: f.write(html) print('HTML written') "
download
HTML File Β· HTML
/home/daytona/workspace/download.html
the ppt is still not downloading and it does not show the save link as option on right clicking
curl -s -F "file=@/home/daytona/workspace/Anemia_in_Pregnancy_OBGYN_Seminar.pdf" https://file.io/?expires=1d 2>&1
curl -s -F "file=@/home/daytona/workspace/Anemia_in_Pregnancy_OBGYN_Seminar.pdf" "https://file.io" 2>&1 echo "---" curl -s --upload-file /home/daytona/workspace/Anemia_in_Pregnancy_OBGYN_Seminar.pdf "https://transfer.sh/Anemia_in_Pregnancy_OBGYN_Seminar.pdf" 2>&1
curl -sL -F "file=@/home/daytona/workspace/Anemia_in_Pregnancy_OBGYN_Seminar.pdf" "https://file.io" 2>&1
curl -F multipart form upload approach worked previously - the issue is that file.io's API URL may need to be https://file.io/ with the correct endpoint. Let me try a different approach and also test 0x0.st.curl -s -w "\nHTTP_STATUS:%{http_code}" -F "file=@/home/daytona/workspace/Anemia_in_Pregnancy_OBGYN_Seminar.pptx" "https://file.io/" 2>&1 | tail -5
curl -s -w "\nHTTP_STATUS:%{http_code}" -F "file=@/home/daytona/workspace/Anemia_in_Pregnancy_OBGYN_Seminar.pptx" "https://0x0.st" --max-time 30 2>&1 ; echo "EXIT:$?"
# Try gofile.io and bashupload.com in parallel curl -s -w "\nHTTP_STATUS:%{http_code}" "https://api.gofile.io/getServer" --max-time 15 2>&1 & GOFILE_PID=$! curl -s -w "\nHTTP_STATUS:%{http_code}" --upload-file /home/daytona/workspace/Anemia_in_Pregnancy_OBGYN_Seminar.pptx "https://bashupload.com/Anemia_in_Pregnancy.pptx" --max-time 20 2>&1 & BASH_PID=$! wait $GOFILE_PID echo "---GOFILE_DONE---" wait $BASH_PID echo "---BASH_DONE---"
# Try gofile.io v2 endpoint and pixeldrain in parallel curl -s -w "\nHTTP_STATUS:%{http_code}" "https://api.gofile.io/accounts" -X POST --max-time 15 2>&1 & G2=$! curl -s -w "\nHTTP_STATUS:%{http_code}" -T /home/daytona/workspace/Anemia_in_Pregnancy_OBGYN_Seminar.pptx "https://pixeldrain.com/api/file/Anemia_in_Pregnancy.pptx" --max-time 20 2>&1 & P2=$! wait $G2; echo "---GOFILE2---" wait $P2; echo "---PIXELDRAIN---"
# Upload PPTX to pixeldrain (it returned a guest token but I used -T, let me try multipart POST) curl -s -w "\nHTTP_STATUS:%{http_code}" \ -F "file=@/home/daytona/workspace/Anemia_in_Pregnancy_OBGYN_Seminar.pptx;filename=Anemia_in_Pregnancy_OBGYN_Seminar.pptx" \ "https://pixeldrain.com/api/file" \ --max-time 60 2>&1 echo "EXIT:$?"
# Use the gofile.io guest token to get an upload server, then upload TOKEN="zweTHqBkt3WWuukCCn0Rs9R8ASL4wMHz" # Get upload server SERVER_RESP=$(curl -s -H "Authorization: Bearer $TOKEN" "https://api.gofile.io/servers" --max-time 15 2>&1) echo "SERVERS: $SERVER_RESP"
TOKEN="zweTHqBkt3WWuukCCn0Rs9R8ASL4wMHz" SERVER="store1" # EU server # Upload PPTX echo "=== Uploading PPTX ===" PPTX_RESP=$(curl -s -w "\nHTTP_STATUS:%{http_code}" \ -H "Authorization: Bearer $TOKEN" \ -F "file=@/home/daytona/workspace/Anemia_in_Pregnancy_OBGYN_Seminar.pptx;filename=Anemia_in_Pregnancy_OBGYN_Seminar.pptx" \ "https://${SERVER}.gofile.io/contents/uploadfile" \ --max-time 90 2>&1) echo "$PPTX_RESP" echo "" # Upload PDF echo "=== Uploading PDF ===" PDF_RESP=$(curl -s -w "\nHTTP_STATUS:%{http_code}" \ -H "Authorization: Bearer $TOKEN" \ -F "file=@/home/daytona/workspace/Anemia_in_Pregnancy_OBGYN_Seminar.pdf;filename=Anemia_in_Pregnancy_OBGYN_Seminar.pdf" \ "https://${SERVER}.gofile.io/contents/uploadfile" \ --max-time 60 2>&1) echo "$PDF_RESP"
zweTHqBkt3WWuukCCn0Rs9R8ASL4wMHz