/******************************************************************************* Project: Manitoba RHA Indicators Atlas 2024 File: S:\rha2024\prog\hprior\maternal\rgindex.sas Programmer: Heather Prior First Created: August 1, 2024 Revisions: none Description: The program groups mothers into one of 6 categories of the R-GINDEX to classifies prenatal care received. Key Variables: GEST = Gestational Age (18-45 weeks based on LMP) PCV = Number of Prenatal Care Visits (0 = None) TPCB = Trimester Prenatal Care Began (0 = None, 1-3 trimesters) GINDEX = Graduated Prenatal Care Utilization Index NOTE: Trimester 1 = (0-13 weeks or 1-91 days) Trimester 2 = (14-27 weeks or 92-189 days) Trimester 3 = (28+ weeks or 190+ days) usage: %include 'S:\rha2024\prog\hprior\maternal\rgindex.sas'; SAS code from Concept Dictionary. R-GINDEX proposed by Alexander and Kotelchuck 1996 *******************************************************************************/ ***** CODING ALGORITHMS FOR REVISED GINDEX; length gindex $28; **** INTENSIVE PRENATAL CARE UTILIZATION; IF (TPCB=1) & (((18<=GEST<=21) & (11=0))) THEN GINDEX = 'MISSING'; **** NO PRENATAL CARE UTILIZATION; IF (PCV=0) | (TPCB=0 & PCV=.) THEN GINDEX = 'NOCARE';