This macro finds all index dates that meet a cumulative and/or current filled daily dose criteria. More...
This macro finds all index dates that meet a cumulative and/or current filled daily dose criteria.
Usage
%ms_pov1dose(INFILE=_POV1&CohortId.,
CLAIMFILE=_GroupIndex&CohortId.(keep=patid adate &RxSupVar.
%if &mincumdose. ne . | (&maxcumdose. ne . and &cumdoseper. ne .) %then %do;
expiredt cumdose
%end;
%if &mincfdd. ne . | &maxcfdd. ne . %then %do;
strength &rxamtvar.
%end; ),
EXCLINDEXFILE=_DoseExcl&CohortId.,
OUTFILE=_POV1&CohortId.,
MINCUMDOSE=&mincumdose.,
MAXCUMDOSE=&maxcumdose.,
MINCFDD=&mincfdd.,
MAXCFDD=&maxcfdd.,
LOOKBACK=&cumdoseper.,
RXSUPVAR=&rxsupvar.);
| [in] | INFILE | Name of the dataset with eligible index dates. |
| [in] | CLAIMFILE | Name of the dataset with all claims. |
| [in] | EXCLINDEXFILE | Name of the dataset with index dates excluded due to not meeting criteria. |
| [out] | OUTFILE | Name of the output dataset meeting the dose criteria. |
| [in] | MINCUMDOSE | Minimum prior cumulative dose. |
| [in] | MAXCUMDOSE | Maximum prior cumulative dose. |
| [in] | MINCFDD | Minimum current filled daily dose. |
| [in] | MAXCFDD | Maximum current filled daily dose. |
| [in] | LOOKBACK | Number of days prior to index date to evaluate mincumdose/maxcumdose. |
| [in] | RXSUPVAR | Variable holding dispensing RX Days Supply. |