| name | date-calculator |
| description | Calculates gestational age and follow-up date windows. |
| version | 1.0.0 |
| category | Utility |
| tags | ["dates","pregnancy","follow-up","calculator"] |
| author | AIPOCH |
| license | MIT |
| status | Draft |
| risk_level | Medium |
| skill_type | Tool/Script |
| owner | AIPOCH |
| reviewer | |
| last_updated | 2026-02-06 |
Date Calculator
Calculates medical date windows.
Features
- Gestational age
- Follow-up windows
- Visit scheduling
- Date adjustments
Parameters
| Parameter | Type | Default | Required | Description |
|---|
--type, -t | string | - | Yes | Calculation type (gestational or followup) |
--date, -d | string | - | Yes | Date in YYYY-MM-DD format |
--weeks | int | 4 | No | Number of weeks for follow-up |
--window-days | int | 7 | No | Follow-up window size in days |
--output, -o | string | - | No | Output JSON file path |
Usage
python scripts/main.py --type gestational --date 2024-01-15
python scripts/main.py --type followup --date 2024-03-01
python scripts/main.py --type followup --date 2024-03-01 --weeks 6
Output Format
Gestational calculation:
{
"lmp_date": "2024-01-15",
"gestational_age": "12 weeks 3 days",
"gestational_age_days"