simplified notes of above pdf
python3 << 'EOF' import pdfplumber pdf_path = "/home/daytona/workspace/attachments/40fdf50f-283d-4a66-803d-a8c5d52507df/ESC-guidelines-Cardiovascular-disease-pregnancy-2025.pdf" with pdfplumber.open(pdf_path) as pdf: print(f"Total pages: {len(pdf.pages)}") # Extract first 10 pages to understand structure for i in range(min(10, len(pdf.pages))): text = pdf.pages[i].extract_text() if text: print(f"\n--- PAGE {i+1} ---") print(text[:1000]) EOF
python3 << 'EOF' import pdfplumber pdf_path = "/home/daytona/workspace/attachments/40fdf50f-283d-4a66-803d-a8c5d52507df/ESC-guidelines-Cardiovascular-disease-pregnancy-2025.pdf" with pdfplumber.open(pdf_path) as pdf: all_text = [] for i, page in enumerate(pdf.pages): text = page.extract_text() if text: all_text.append(f"\n=== PAGE {i+1} ===\n{text}") full_text = "\n".join(all_text) # Save to file for further processing with open("/home/daytona/workspace/esc_guidelines_text.txt", "w") as f: f.write(full_text) print(f"Extracted {len(full_text)} characters from {len(all_text)} pages") print("Saved to /home/daytona/workspace/esc_guidelines_text.txt") EOF
python3 << 'EOF' import pdfplumber pdf_path = "/home/daytona/workspace/attachments/40fdf50f-283d-4a66-803d-a8c5d52507df/ESC-guidelines-Cardiovascular-disease-pregnancy-2025.pdf" # Extract in batches to avoid memory issues with pdfplumber.open(pdf_path) as pdf: total = len(pdf.pages) print(f"Total pages: {total}") # Extract pages 10-50 (main content sections) text_batch1 = [] for i in range(10, 50): if i < total: text = pdf.pages[i].extract_text() if text: text_batch1.append(f"\n=== PAGE {i+1} ===\n{text}") with open("/home/daytona/workspace/esc_batch1.txt", "w") as f: f.write("\n".join(text_batch1)) print(f"Batch 1 (pages 11-50): {sum(len(t) for t in text_batch1)} chars") EOF
python3 << 'EOF' import pdfplumber pdf_path = "/home/daytona/workspace/attachments/40fdf50f-283d-4a66-803d-a8c5d52507df/ESC-guidelines-Cardiovascular-disease-pregnancy-2025.pdf" with pdfplumber.open(pdf_path) as pdf: total = len(pdf.pages) # Extract pages 50-107 text_batch2 = [] for i in range(50, min(107, total)): text = pdf.pages[i].extract_text() if text: text_batch2.append(f"\n=== PAGE {i+1} ===\n{text}") with open("/home/daytona/workspace/esc_batch2.txt", "w") as f: f.write("\n".join(text_batch2)) print(f"Batch 2 (pages 51-107): {sum(len(t) for t in text_batch2)} chars") EOF
| Class | Risk Level | Cardiac Event Rate | Examples |
|---|---|---|---|
| I | No detectable increased risk | ~3-10% | Mild PS, MVP without significant regurgitation, mild aortic dilatation (<40mm) |
| II | Small increased risk | ~8-22% | Mild MS, moderate AS, repaired simple ACHD, Turner without CV features |
| II-III | Intermediate risk | ~13-18% | Moderate MS, moderate aortic dilatation, uncomplicated mechanical valve |
| III | Significantly increased risk | ~21-29% | Severe MS, severe AS, Marfan with aorta 40-45mm, prior SCAD, prior STEMI |
| IV | Extremely high risk - pregnancy contraindicated | ~36-50% | Severe pulmonary hypertension, severe systolic LV dysfunction (EF <30%), severe aortic dilatation >45mm (Marfan), vascular Ehlers-Danlos |
| Drug/Action | Reason |
|---|---|
| ACE-I / ARB / ARNI | Foetal renal failure/death |
| DOACs | Teratogenic; foetal/neonatal bleeding |
| Ticagrelor | Embryotoxic |
| MRA (spironolactone) | Foetal anti-androgenic effects |
| Amiodarone (routine) | Foetal thyroid dysfunction, bradycardia |
| SGLT2 inhibitors | Foetal toxicity |
| Routine anti-Xa monitoring in PE | Not needed (no benefit shown) |
| Temporary pacemaker prophylaxis in asymptomatic congenital AV block | Not indicated |
| Withhold drugs in cardiac arrest due to teratogenicity concerns | Do not withhold |
| Thrombolysis/surgery for PE when anticoagulation working | Not recommended |