This macro uses data from the SDD to recode non-inpatient encounters to inpatient if they were determined to have occurred during an inpatient stay. More...
This macro uses data from the SDD to recode non-inpatient encounters to inpatient if they were determined to have occurred during an inpatient stay.
Usage
%ms_envelope(INFILE=worktemp.meds,
ENCOUNTERINFILE=indata.&ENCTABLE.,
MINDATE=&studystartdate,
OUTFILE=worktemp.meds);
| [in] | INFILE | Name of SAS dataset with diagnosis and/or procedure claims data. |
| [in] | ENCOUNTERINFILE | Name of SAS dataset with encounter data. |
| [in] | MINDATE | Extract all claims occuring on or after this date. |
| [out] | OUTFILE | Name of output file with reclassified claims. |