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

This macro restricts MOI episodes and dispensings to only those during a valid pregnancy/control episode. More...

Detailed Description

This macro restricts MOI episodes and dispensings to only those during a valid pregnancy/control episode.

  • Keep only the secondary cohort episodes of members who are in the primary cohort (to avoid unnecessary big file).
  • Save file of all dispensings during secondary cohort episodes.
  • Calculate dispensing metrics for each MOI episode.
Program inputs
  • work._controlgroup (Datasets with a list of control patients and demo data.)
  • work._ptsmasterlist (Dataset with potential index dates.)
  • work._ptsmasterlist2 (Dataset with all episodes.)
Program outputs
  • work._grouputilfile (Dataset containing all dispensings during secondary cohort episodes.)
  • work._ptsmasterlist2_&N. (Dataset containing dispensing metrics for each MOI episode.)
  • work._tmp_ptsmasterList2 (Dataset containing only the secondary cohort episodes of members who are in the primary cohort.)

Usage

%ms_finalizemoiepisodes();
Parameters
None.

SAS Macros Dependencies

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