This macro extracts encounters by looping through saved datasets that have already been partioned on EncType. More...
This macro extracts encounters by looping through saved datasets that have already been partioned on EncType.
Usage
%ms_loopenc(DATAFILESUFFIX=worktemp.encextract, LOOKFILE=_ITGroupParamEnc, KEEPVARS=codetype codecat codesupply dateonly code %if &excl_incl = Y %then %do; &InclExclVars. %end; enctype indexcriteria %if &type. in (2 3 4) %then %do; fupcriteria %end; %if %eval(&type.=6) %then %do; productapprovaldate productmarketingdate otherproductdate %end;, OUTFILE=_ITEnc);
[in] | DATAFILESUFFIX | Name of the suffix for the dataset(s) containing the raw claims. |
[in] | LOOKFILE | Name of the dataset containing the lookup parameters. |
[in] | KEEPVARS | List of variables in the lookfile dataset to keep in the outfile dataset. |
[out] | OUTFILE | Name of the dataset with the extracted claims. |
None.