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.
- Reclassify all selected claims as inpatient if they fall within the admission and discharge dates of an inpatient stay.
- Assess claim number for unique record merging.
- For each record in INFILE matching an inpatient day date, recode encounter type as inpatient.
- Program inputs
- &ENCOUNTERINFILE. (Dataset with encounter data.)
- &INFILE. (Dataset with diagnosis/procedure claims data.)
- Program outputs
- &OUTFILE. (Dataset with reclassified claims.)
Usage
%ms_envelope(INFILE=worktemp.meds,
ENCOUNTERINFILE=indata.&ENCTABLE.,
OUTFILE=worktemp.meds);
- Parameters
-
[in] | INFILE | Name of SAS dataset with diagnosis and/or procedure claims data.
|
[in] | ENCOUNTERINFILE | Name of SAS dataset with encounter data.
|
[out] | OUTFILE | Name of output file with reclassified claims. |
SAS Macros Dependencies
- Note
- This operation is done without using the ENCOUNTERID variable, as this variable can be inconsistent across data partner datasets.
- Author
- Sentinel Coordinating Center (info@.nosp@m.sent.nosp@m.inels.nosp@m.yste.nosp@m.m.org)