This function executes the Pregnancy Progression Signature (PPS) algorithm against a Common Data Model (CDM) instance. It inserts the required PPS concept lookup table, extracts gestational timing evidence (e.g., gestational weeks, trimesters) across OMOP clinical domains, assembles person-level gestational timing records, and writes intermediate episode and summary files to the specified output directory.
Arguments
- cdm
A `cdm_reference` object; must include all OMOP tables and structure needed for pregnancy concept search.
- outputFolder
Character. Directory path where intermediate and output RDS files will be saved.
- startDate
Date (`Date(1)`). Earliest clinical date to be considered for gestational timing evidence (default: `"1900-01-01"`).
- endDate
Date (`Date(1)`). Latest clinical date to be considered for gestational timing evidence (default: `Sys.Date()`).
- logger
`log4r` logger object (required) for emitting information and debug messages.
- debugMode
(`Logical`) Should intermediate datasets be written to the output folder for debugging? TRUE or FALSE (default)
