# Calculate test date from last menstrual period
calculate_test_date("2025-01-31")
# Calculate for blood test from conception date
calculate_test_date(
start_date = "5023-02-14",
start_type = "conception",
test_type = "blood"
)
# Calculate from day 5 embryo transfer
calculate_test_date(
as.Date("2025-02-19"),
start_type = "transfer_day_5"
)
# Calculate with non-standard cycle length
calculate_test_date("2025-01-31", cycle = 35)
Run the code above in your browser using DataLab