This macro enumerates exposure (EXP) and HOI defining codes.
More...
This macro enumerates exposure (EXP) and HOI defining codes.
- Determine the &DISTINDEXTYPE. (EXP or HOI).
- Determine whether to produce the table.
- If LABS or DATE define index, then there are no valid dates and this will be skipped.
- Create list of index codes (RX, PX/DX, MI, and CD).
- Expand EncType and PDX.
- Restrict codes to index date.
- Merge ID.
- Summarize code counts.
- Map code to ID.
- Add distindexlist to _mstr file.
- Create group file.
- Store map to msoc.
- If requested, then create separate prevalent and incident datasets.
- Program inputs
- &COHORTCODES. (Dataset that includes the codes for outcomes.)
- &DINDEXDATA. (Dataset with exposure and/or HOI episodes.)
- &PREGNANCYCODES. (Dataset that includes the codes for pregnancy outcomes.)
- work._itgroupparamdate (Dataset containing lookup parameters.)
- work._itgroupparamdth (Dataset containing lookup parameters.)
- work._itgroupparamlabs (Dataset containing lookup parameters.)
- work._itgroupparammeds (Dataset containing lookup parameters.)
- work._itgroupparamndc (Dataset containing lookup parameters.)
- work._ptsmasterlist (Dataset with potential index dates or valid episodes.)
- Program outputs
- msoc.&RUNID._distindex&DS_SUFFIX. (Dataset describing exposure and/or HOI episodes by the unique combination of codes used to identify the exposure/HOI on the index date.)
- msoc.&RUNID._distindexmap (Dataset containing the mapping to the codes in the DISTINDEXLIST variable.)
Usage
%ms_codedistribution();
- Parameters
- None.
SAS Macros Dependencies
None.
- Author
- Sentinel Coordinating Center (info@.nosp@m.sent.nosp@m.inels.nosp@m.yste.nosp@m.m.org)