npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

obgyn-expert

v1.0.0-lite

Published

Lite version of ObGynExpert SDK - Basic medically verified OBGYN calculations.

Downloads

20

Readme

ObGynExpert SDK 🤰

ObGynExpert is a medically verified JavaScript/TypeScript SDK designed for modern Obstetrics and Gynecology software. It bridges the gap between complex medical logic, regional clinical protocols, and premium user experience.


💎 The Dual-Release Strategy (Lite vs. Pro)

To ensure sustainable development and brand integrity, the SDK is available in two versions:

| Feature | Lite (Public npm) | Pro (Private Bundle) | | :--- | :---: | :---: | | Basic EDD Calculation (LMP-based with Cycle correction) | ✅ | ✅ | | Gestational Age (GA) Engine | ✅ | ✅ | | FHIR Interoperability | ✅ | ✅ | | Clinical 7-Day Rule (Ultrasound Redating) | ❌ | ✅ | | Regional Protocols (International Standards) | ❌ | ✅ | | Interactive Mini-App (HTML Generator) | ❌ | ✅ | | Multi-language Support (SL, EN, DE, HR) | ❌ | ✅ |


🚀 Key Technical Modules

  • Core Logic: Implements precision EDD and GA calculations using medically verified algorithms (Naegele's Rule, Hadlock, etc.).
  • i18n Module (Pro): Manages regional date formats and translations, ensuring the app feels native in Slovenia 🇸🇮, Croatia 🇭🇷, Germany 🇩🇪, or the US 🇺🇸.
  • Exporter Module (Pro): Transforms raw medical data into a premium, interactive HTML application or a professional PDF report.
  • FHIR Module: Ensures all pregnancy data can be exported as standard HL7 FHIR Observation resources for hospital systems.
  • Security: The Pro version is bundled into a single, minified, and obfuscated .min.js file to protect intellectual property and clinical know-how.

🌍 Regional Compliance & Localization (Pro)

The Pro SDK automatically adapts milestones, advice, and date formats based on the selected locale:

  • 🇸🇮 Slovenia: Clinical protocols according to the Official Gazette of the Republic of Slovenia.
  • 🇭🇷 Croatia: Localized pregnancy advice and milestones.
  • 🇩🇪 Germany: Regional date formatting and terminology.
  • 🇺🇸 Global: Standardized English medical terminology.

📦 Installation (Lite Version)

npm install obgyn-expert

⚡ Quick Start

import { calculateEDD } from 'obgyn-expert';

// 1. Calculate EDD (LMP + Cycle Adjustment)
const lmp = "2026-01-15";
const options = { cycleLength: 28 };

// In Lite version, options might be limited
const result = calculateEDD(lmp, options);

console.log(`Due Date: ${result.formattedEDD}`);

// 2. Get current Gestational Age
const ga = result.ui; // { currentWeek: 14, days: 3 ... }
console.log(`Status: ${ga.currentWeek} weeks`);

🏥 Hospital Interoperability (FHIR)

This SDK is designed to meet the requirements of modern medical infrastructure. By exporting data as FHIR Observation Resources, your application can communicate directly with:

  • Slovenia: Central Register of Patient Data (CRPP / e-Zdravje).
  • Global: Any Hospital Information System (HIS) using the HL7 FHIR standard.

🎨 Pro Features: Interactive Reports

The Pro version includes the prepareProfessionalReport function, which generates a complete, standalone mobile app for the patient:

  • Trimester View: Visual progress cards with checkmarks for completed exams.
  • Calendar Grid: A 42-week snapshot featuring all medical milestones (Nuchal Scan, Morphology, etc.).
  • Daily Inspiration: Personalized affirmations and fetal development facts.

📄 License & Access

  • Lite Version: Licensed under the MIT License. Free for personal and commercial use.
  • Pro Version: To access full clinical protocols, automated reporting, and the interactive mini-app, please contact us for a Commercial License and private repository access.