Skip to content

Draft Fetal Anatomy, EFW, and Ratios Section Parsers#54

Merged
VarenyaJ merged 20 commits intodevelopfrom
vj/etl_section_migration
Mar 14, 2026
Merged

Draft Fetal Anatomy, EFW, and Ratios Section Parsers#54
VarenyaJ merged 20 commits intodevelopfrom
vj/etl_section_migration

Conversation

@VarenyaJ
Copy link
Collaborator

@VarenyaJ VarenyaJ commented Feb 2, 2026

Summary

Draft three new ETL section parsers for extracting structured clinical data from prenatal ultrasound reports:

  • Fetal Anatomy - Extracts normal/abnormal/not-visualized structures with HPO term extraction from anomaly descriptions
  • Estimated Fetal Weight (EFW) - Extracts weight estimates with SGA/AGA/LGA growth classification
  • Fetal Ratios - Extracts HC/AC, FL/BPD, FL/AC ratios with proportionality assessment

Changes

New Files

  • src/prenatalppkt/etl/sections/fetal_anatomy.py
  • src/prenatalppkt/etl/sections/estimated_fetal_weight.py
  • src/prenatalppkt/etl/sections/fetal_ratios.py
  • tests/etl/sections/test_fetal_anatomy.py
  • tests/etl/sections/test_estimated_fetal_weight.py
  • tests/etl/sections/test_fetal_ratios.py

Modified Files

  • src/prenatalppkt/etl/sections/__init__.py - Added new exports

Goals

  • HPO Integration: Fetal anatomy parser should extract HPO terms from anomaly descriptions using HpoExactConceptRecognizer
  • Growth Classification: EFW parser should classify growth ranges, e.g. SGA (<10th %ile), AGA (10-90th), or LGA (>90th)
  • Proportionality Assessment: Ratios parser should be able to help us identify nonstandard/asymmetric growth patterns in downstream analyses via ratios, e.g. HC/AC

@VarenyaJ VarenyaJ self-assigned this Feb 2, 2026
@VarenyaJ VarenyaJ added the enhancement New feature or request label Feb 2, 2026
@VarenyaJ VarenyaJ requested a review from pnrobinson February 2, 2026 16:04
@VarenyaJ VarenyaJ marked this pull request as ready for review March 14, 2026 13:36
@VarenyaJ VarenyaJ merged commit 8d6cfe8 into develop Mar 14, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant