postnatal_list: list of patients who are pregnant at the 'appointment' date

View source: R/conditions.R

postnatal_listR Documentation

list of patients who are pregnant at the 'appointment' date

Description

list of patients who are pregnant at the 'appointment' date

Usage

postnatal_list(
  dMeasure_obj,
  appointments = NULL,
  include_edc = FALSE,
  days_min = 0,
  days_max = 180,
  outcome = c(0, 1, 2, 3, 4, 5, 6, 7)
)

Arguments

dMeasure_obj

dMeasure R6 object

appointments

dataframe of appointments $InternalID and $Date

include_edc

include post-natal by EDC (TRUE or FALSE)

days_min

minimum number of days post-natal

days_max

maximum number of days post-natal

outcome

allowable outcomes (vector) possible outcomes 0 = none recorded, 1 = "Live birth", 2 = Miscarriage, 3 = Termination, 4 = Ectopic, 5 = IUFD (intra-uterine fetal death), 6 = stillbirth 7 = hydatiform mole

if no parameter provided, derives from $appointments_filtered

Value

a dataframe : InternalID, EDCbyDate, EDCbyScan, EndDate, OutcomeCode


DavidPatShuiFong/dMeasure documentation built on Aug. 2, 2024, 11:45 p.m.