02 / Case Study
Context
Mother of Fact needed a tool that hospital administrators and clinic decision-makers could use themselves — not through a sales call — to see the financial and clinical case for adding maternal nutrition services to their care model. The audience was busy practice leaders who needed defensible, partner-ready numbers in a format they could hand to a CFO.
Challenge
Translate a multi-variable clinical and financial model — birth volume, payor mix, dietitian coverage, complication rates, and cost impact across cesarean, NICU, gestational diabetes, and preeclampsia — into a self-serve product that ends in a branded PDF report delivered to the user's inbox. The math had to be transparent and editable as clinical assumptions evolved, the input flow had to feel light, and the output had to look credible enough to circulate inside a partner organization.
Approach
Architected and built the system end-to-end as a Vite + React + TypeScript single-page app on AWS. Designed the deterministic ROI engine in TypeScript, computing future value, ROI percent, per-condition cost savings, RDN capacity, additional patients served, and three-year revenue projections from user inputs against editable clinical and financial assumptions. Wired the frontend to four AWS API Gateway endpoints for defaults retrieval, defaults persistence, submission logging, and transactional email through Lambda + SES. Built the reporting layer with Recharts for in-app visualization and a pdf-lib pipeline that overlays computed results onto a versioned S3-hosted report template, with @react-pdf/renderer as a programmatic fallback. Built an internal admin surface so the Mother of Fact team can update clinical and financial assumptions without code changes. Set up the static deployment pipeline to S3 + CloudFront with scripted build, sync, and cache invalidation.
Outcome
In production and publicly linked from Mother of Fact's provider site. Mother of Fact reports that partner clinics using the underlying nutrition care model see an average 49% return on investment, $55,920 net benefit, and 20% decrease in pregnancy complications — figures the tool surfaces and personalizes for each prospective partner. The estimator replaces what was previously a manual analyst workflow and now serves as a primary entry point for new clinical partnerships.