QRP
 
Loading...
Searching...
No Matches
ms_moimetrics.sas File Reference

This macro creates individual level medication of interest metrics for pregnancy analysis. More...

Detailed Description

This macro creates individual level medication of interest metrics for pregnancy analysis.

  • Create dataset with medical exposure during pregnancy.
    • Do not count secondary cohort episodes (medical exposure) ending prior to "pre" period or beginning after the post-pregnancy period.
    • Apply removal period (RemoveMOIStart/RemoveMOIEnd).
    • Apply removal period (RemoveADate) to same-day dispensings when they happen on the last day of pregnancy.
  • If T4cohortdef2 = 01, then take the first exposure date during the pregnancy episode per MOI.
  • If T4cohortdef2 = 99, then take the last exposure date during the pregnancy episode per MOI.
  • Compute trimester use:
    • Gestational week of MOI.
    • When the computed gestwk is greater than the number of weeks in pregnancy episode, assign post-pregnancy values (+1, +2, +3,...).
  • Keep concurrent dispensings:
    • Gestational week of code.
    • When the computed gestwk is greater than the number of weeks in pregnancy episode, assign post-pregnancy values (+1, +2, +3,...).
  • Summarize _concdispensings and merge with _concepisodes.
  • Merge in additional variables.
  • Save to dplocal.
Program inputs
  • &COHORTFILE. (Dataset containing pregnancy codes.)
  • work._grouputilfile (Dataset containing defined group pregnancy and control episodes.)
  • work._ptsmasterlist2 (Dataset containing MOI drug codes.)
Program outputs
  • dplocal.&RUNID._concepi_&OUTFILE._tri (Dataset with trimester statistics for each pregnancy outcome and medical product of interest.)
  • work.t4_dispensings_&OUTFILE. (Dataset containing 1 row per dispensing for gestational week metrics.)

Usage

%ms_moimetrics(COHORTFILE=_PtsMasterList,
               OUTFILE=mstr_preg);
Parameters
[in]COHORTFILEName of the SAS dataset that defines how Type 4 PSA/Mother-Infant cohorts will be created.
[out]OUTFILEName of the output SAS dataset for Type 4 analyses.

SAS Macros Dependencies

Author
Sentinel Coordinating Center (info@.nosp@m.sent.nosp@m.inels.nosp@m.yste.nosp@m.m.org)