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

This macro extracts enrollment and demographic claims based on either age or fixed calendar date, then creates claim based on valid date. More...

Detailed Description

This macro extracts enrollment and demographic claims based on either age or fixed calendar date, then creates claim based on valid date.

  • For index date defined by fixed calendar date: create claim for each date.
  • For index date defined by age anniversary: for each age, calculate date and create claim on date.
Program inputs
  • &DATAFILE. (Dataset containing enrollment and birth date records.)
  • &LOOKFILE. (Dataset containing the list of dates to extract.)
Program outputs
  • &OUTFILE. (Dataset containing the extracted records.)
  • work._ageanniversary (Dataset containing index date defined by age anniversary.)
  • work._ageanniversaryclaim (Dataset with claim created for each age.)

Usage

%ms_extractanniversarydate(DATAFILE=worktemp.enr_&enrollmentnum.,
                           LOOKFILE=_ITGroupParamDate,
                           LOOKVAR=code,
                           OUTFILE=_itdates);
Parameters
[in]DATAFILEName of the dataset to containing enrollment and birth date records.
[in]LOOKFILEName of the sas dataset containing the list of dates to extract.
[in]LOOKVARName of the variable containing the dates to extract.
[out]OUTFILEName of the output dataset containing the extracted records.

SAS Macros Dependencies

None.

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