This macro creates episodes of claims with a given tolerance gap between two consecutive claims. More...
This macro creates episodes of claims with a given tolerance gap between two consecutive claims.
Usage
%ms_createclaimepi(INFILE=_GroupIndex&CohortId.(keep=patid adate expiredt enr_start rxsup),
%if &mincumdose. ne . | &mincfdd. ne . | &maxcfdd. ne . %then %do;
EPISTARTFILE=_pov1&cohortid.,
%end;
%else %do;
EPISTARTFILE=,
%end;
GAP=&&episodegap¶msuffix.,
GAPTYPE=&&EpisodeGapType¶msuffix.,
OUTFILE=_POV4&CohortId.);
| [in] | INFILE | Dataset containing the claims to create episodes with. |
| [in] | EPISTARTFILE | Dataset containing dates to start all episodes. |
| [in] | GAP | Maximum allowable gap between two claim (based on Adate Expiredt and EnrStart). |
| [in] | GAPTYPE | Specifies the type of algorithm to use for the calculation of episode gaps. |
| [out] | OUTFILE | Dataset containing the episodes with gap tolerance. |
None.