This macro bridges member raw enrollment episodes into continuous periods, while allowing a maximum gap in enrollment. More...
This macro bridges member raw enrollment episodes into continuous periods, while allowing a maximum gap in enrollment.
Usage
%ms_episoderec(INFILE=indata.&enrtable.(keep=Patid Enr_Start Enr_End MedCov DrugCov Chart),
OUTFILE=_ComboEnr1,
MEDCOV=Yes,
DRUGCOV=No,
ENRSTART=Enr_Start,
ENREND=Enr_End,
ENROLGAP=&ENROLGAP.,
REMOVEDUP=Yes);
| [in] | INFILE | SAS dataset containing the raw enrollment data. |
| [out] | OUTFILE | SAS output dataset containing the conciliated enrollment periods. |
| [in] | MEDCOV | Medical coverage indicator. |
| [in] | DRUGCOV | Drug coverage indicator. |
| [in] | ENRSTART | Name of enrollment episode start date variable in INFILE. |
| [in] | ENREND | Name of enrollment episode end date variable in INFILE. |
| [in] | ENROLGAP | Maximum allowable enrollment episode gap. |
| [in] | REMOVEDUP | Indicates the removal of duplicates from the output file. |
None.