This macro extracts dispensing claims. More...
This macro extracts dispensing claims.
Usage
%ms_extractdrugs(DATAFILE=worktemp.drugs,
LOOKFILE=_ITGroupParamNDCForExtract,
LOOKVAR=code,
MINDATE=,
OUTFILE=_ITDrugs);
| [in] | DATAFILE | Name of the dataset to extract records from. |
| [in] | LOOKFILE | Name of the sas dataset containing the list of codes to extract. |
| [in] | LOOKVAR | Name of the variable containing the codes to extract. |
| [in] | MINDATE | Extract all claims occuring on or after this date. |
| [in] | OUTFILE | Name of the output dataset containing the extracted records. |
| [in] | DROPLOOKVAR | Indicator (Y/N) to drop &lookvar or not in final dataset. |
None.