Skip to contents

Calculate gestational age given head circumference (mm) and/or femur length (mm) based on ultrasound

Usage

calculate_gestage_hcfl(date = Sys.Date(), hc = NULL, fl = NULL)

Arguments

date

Date when measurement/s was/were taken. Date should be provided in format. Defaults to current date.

hc

Head circumference measurement in millimetres.

fl

Femur length measurement in millimetres.

Value

A list of 3 elements containing 1) gestational age in weeks (numeric); 2) gestational age in weeks and days (character); and, 3) expected date of delivery (date).

Examples


calculate_gestage_hcfl(date = "2016-23-12", hc = 130, fl = 20)
#> Estimating gestational age using head circumference of 130 mm and femur length of 20 mm.
#> [[1]]
#> [1] 16.36685
#> 
#> [[2]]
#> [1] "16 weeks and 2 days"
#> 
#> [[3]]
#> [1] "2017-06-07"
#>