Corrected (adjusted) age for a premature baby
corrected_ageThe corrected age of a baby born before 37 weeks: the age since birth minus the weeks the baby was early. Use it for 'what is my preemie's corrected / adjusted age', for reading milestones, and for choosing the age at which to plot growth. Takes the birth date and the gestational age at birth and returns the corrected age, the age since birth, the original due date, and the date by which correction usually stops (about 24 months since birth). Before the due date there is no corrected age, and the result says how many days remain. A baby born at 37 weeks or later needs no correction. Dates are calendar dates (YYYY-MM-DD).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asOf | No | The date to calculate the age on, YYYY-MM-DD. Defaults to today in UTC; pass the user's own date to avoid being a day off near midnight. | |
| locale | No | Language for the disclaimer and any clinician note. Pass the language you will answer the user in: these are clinical safety texts written by a paediatrician, and they should reach the reader as written rather than translated by the model. | en |
| birthDate | Yes | Date of birth, YYYY-MM-DD. | |
| gestationalDays | No | Extra days beyond the completed weeks. A baby born at 32 weeks and 3 days: 3. | |
| gestationalWeeks | Yes | Completed weeks of pregnancy at birth. A baby born at 32 weeks and 3 days: 32. |