Analyse like doctor and suggest treatment
~/
how to interpret laboratory test reports when to seek urgent medical care patient guidance
python -c "from pypdf import PdfReader; p='/tmp/workspace/attachments/c8f4239b-b1ad-4626-a851-2d45a5225a08/amma.pdf'; r=PdfReader(p); print('PAGES',len(r.pages)); [print('---PAGE',i+1,'---\n'+(pg.extract_text() or '')[:10000]) for i,pg in enumerate(r.pages)]"
mkdir -p "/tmp/workspace/amma-review/rendered" && python -c "import fitz; p='/tmp/workspace/attachments/c8f4239b-b1ad-4626-a851-2d45a5225a08/amma.pdf'; d=fitz.open(p); [pix.save(f'/tmp/workspace/amma-review/rendered/page_{i+1}.png') for i in range(len(d)) for pix in [d[i].get_pixmap(matrix=fitz.Matrix(2,2), alpha=False)]]; print('Rendered',len(d),'pages')"
python -c "import importlib.util; print('pypdfium2',importlib.util.find_spec('pypdfium2')); print('pymupdf',importlib.util.find_spec('pymupdf')); print('pdf2image',importlib.util.find_spec('pdf2image'))"
python -c "import pypdfium2 as pdfium; p='/tmp/workspace/attachments/c8f4239b-b1ad-4626-a851-2d45a5225a08/amma.pdf'; d=pdfium.PdfDocument(p); [page.render(scale=2.5).to_pil().save(f'/tmp/workspace/amma-review/rendered/page_{i+1}.png') for i in range(len(d)) for page in [d[i]]]; print('Rendered',len(d),'pages')"
python -c "from PIL import Image; import os; src='/tmp/workspace/amma-review/rendered'; dst='/tmp/workspace/amma-review/preview'; os.makedirs(dst,exist_ok=True); [(lambda im,i: (im.thumbnail((1000,1400)),im.convert('RGB').save(f'{dst}/page_{i}.jpg',quality=60,optimize=True)))(Image.open(f'{src}/page_{i}.png'),i) for i in range(1,8)]" && ls -lh "/tmp/workspace/amma-review/preview"
python -c "from PIL import Image; import os; src='/tmp/workspace/amma-review/rendered'; dst='/tmp/workspace/amma-review/tiny'; os.makedirs(dst,exist_ok=True); [(lambda im,i: (im.thumbnail((500,700)),im.convert('RGB').save(f'{dst}/page_{i}.jpg',quality=35,optimize=True)))(Image.open(f'{src}/page_{i}.png'),i) for i in range(1,8)]" && ls -lh "/tmp/workspace/amma-review/tiny"
python -c "import importlib.util; print('easyocr',importlib.util.find_spec('easyocr')); print('pytesseract',importlib.util.find_spec('pytesseract')); print('keras_ocr',importlib.util.find_spec('keras_ocr'))"; which tesseract || true
laboratory testing AND diagnosis
pip install --user rapidocr_onnxruntime -q
pip install rapidocr_onnxruntime -q && python -c "from rapidocr_onnxruntime import RapidOCR; import glob; o=RapidOCR(); [print('---',p,'---\n', '\n'.join([x[1] for x in (o(p)[0] or [])])) for p in sorted(glob.glob('/tmp/workspace/amma-review/rendered/*.png'))]"
ACOG uterine fibroids treatment medications myomectomy hysterectomy patient FAQ
uterine fibroids AND treatment
| Situation | Usual approach |
|---|---|
| No symptoms or mild symptoms | Observation, symptom diary, repeat clinical/ultrasound review as advised |
| Heavy bleeding but uterus preservation desired | Doctor-prescribed tranexamic acid during periods, hormonal treatment, or a levonorgestrel IUD if the uterine cavity is not distorted |
| Painful periods | Anti-inflammatory pain medicine may help if safe for her kidneys, stomach, blood pressure, and other conditions |
| Significant pressure/pain, anemia, rapidly worsening symptoms, or fertility-related concern | Discuss fibroid-directed procedure |
| Wants future pregnancy / uterus preservation | Myomectomy, removal of fibroids while retaining the uterus. A laparoscopic approach may be possible depending on examination and fibroid position. |
| Does not want pregnancy and symptoms are severe or recurrent | Hysterectomy is the definitive treatment and prevents fibroid recurrence |
| Wants to avoid major surgery and has completed family | Uterine artery embolization can be discussed, but its suitability depends on symptoms and future pregnancy wishes |
| Short-term reduction before a procedure or severe bleeding | GnRH-based treatment may be used by a gynecologist, usually temporarily because of side effects |