QRP
 
Loading...
Searching...
No Matches
ms_shaveinside.sas File Reference

This macro identifies overlapping claims and trim exposure that is inside the reference period. More...

Detailed Description

This macro identifies overlapping claims and trim exposure that is inside the reference period.

  • Identify segments where the shaving applies.
    • Segments without a period to remove must be deleted.
  • Segments that do not need shaving are set aside.
  • Calculate new segments.
Program inputs
  • &REFFILE. (Dataset containing the periods that claims must overlap.)
  • &TOSHAVEFILE. (Dataset containing the claims that must overlap the reference period.)
Program outputs
  • &OUTFILE. (Dataset containing the shaved claims.)

Usage

%ms_shaveinside(REFFILE=worktemp._denom&Group.,
                REFSTART=DenomEnrStartDt,
                REFEND=DenomEnrEndDt,  
                ID=EligEpisode, 
                TOSHAVEFILE=_UneligFupWash,
                TOSHAVESTART=UneligStart,
                TOSHAVEEND=UneligEnd,
                OUTFILE=worktemp._denom&Group.);
Parameters
[in]REFFILEDataset containing the periods that claims must overlap.
[in]REFSTARTVariable name containing the date claims cannot go before.
[in]REFENDVariable name containing the date claims cannot go beyond.
[in]IDVariable(s) name(s) to keep in the &outfile. dataset.
[in]TOSHAVEFILEDataset containing the claims that must overlap the reference period
[in]TOSHAVESTARTVariable containing the begin date of the claims to be shaven
[in]TOSHAVEENDVariable containing the end date of the claims to be shaven
[out]OUTFILEOutput dataset containing the shaved claims

SAS Macros Dependencies

None.

Author
Sentinel Coordinating Center (info@.nosp@m.sent.nosp@m.inels.nosp@m.yste.nosp@m.m.org)