Report Overview ••• This report provides a list and count of children who were born between two specified dates and Children Born between Specified Dates Infoview Report Template Guidance – CHILDREN currently belong to the Notes specified agencies *The Age is the number of months between the participant’s date of birth and (regardless of current the current date (the date the report is run). It does not round the participant’s certification status). age in months (ex. “14 mo.” will display if calculated age is 14.8 months). *The Agency ID and Clinic ID are where the participant currently belongs. *The Cert Date and Cert End Date are the participant’s most recent certification period. Prompt(s) TABLE FIELD OPERATOR MEMBER Agencyid MEMBER Dateofbirth Between mm/dd/yy MEMBER Dateofbirth And mm/dd/yy In List VALUE PROMPT/DEFINITION ### or ###;### Enter 3-digit Agency ID(s). (use semi-colon to separate; no spaces) Agency participants currently belong to. Enter Start Date (DOB). Beginning date of date range in which participants were born. Enter End Date (DOB). Last date of date range in which participants were born. Static Criteria MEMBER.Wicstatus Equal to C Explanation: Only include participants who are children 1|Page MN Department of Health WIC Program Children Born within Specified Date Range ••• Columns • • • • • • • Household ID ( MEMBER.Householdid) State WIC ID (MEMBER.Statewicid) DOB (MEMBER.Dateofbirth) Age See FORMULAS Cert Date (MEMBER.Certstartdate) Cert End Date (MEMBER.Certificationduedate) Clinic ID (MEMBER.Servicesiteid) Sorted by DOB (Descending) Grouped by Agency ID (Ascending) Counts State WIC ID (Distinct) 2|Page Children Born within Specified Date Range ••• Technical Notes Notes The Age variable counts the number of months between two dates; this value cannot be rounded. Variables Age =MonthsBetween([Dateofbirth];CurrentDate()) + " mo." Formulas Age =If [Age] = "25 mo." Then "2 y 1 m" Else If [Age] = "26 mo." Then "2 y 2 m" Else If [Age] = "27 mo." Then "2 y 3 m" Else If [Age] = "28 mo." Then "2 y 4 m" Else If [Age] = "29 mo." Then "2 y 5 m" Else If [Age] = "30 mo." Then "2 y 6 m" Else If [Age] = "31 mo." Then "2 y 7 m" Else If [Age] = "32 mo." Then "2 y 8 m" Else If [Age] = "33 mo." Then "2 y 9 m" Else If [Age] = "34 mo." Then "2 y 10 m" Else If [Age] = "35 mo." Then "2 y 11 m" Else If [Age] = "36 mo." Then "3 y.o. " Else If [Age] = "37 mo." Then "3 y 1 m" Else If [Age] = "38 mo." Then "3 y 2 m" Else If [Age] = "39 mo." Then "3 y 3 m" Else If [Age] = "40 mo." Then "3 y 4 m" Else If [Age] = "41 mo." Then "3 y 5 m" Else If [Age] = "42 mo." Then "3 y 6 m" Else If [Age] = "43 mo." Then "3 y 7 m" Else If [Age] = "44 mo." Then "3 y 8 m" Else If [Age] = "45 mo." Then "3 y 9 m" Else If [Age] = "46 mo." Then "3 y 10 m" Else If [Age] = "47 mo." Then "3 y 11 m" Else If [Age] = "48 mo." Then "4 y.o." Else If [Age] = "49 mo." Then " 4 y 1 m" Else If [Age] = "50 mo." Then "4 y 2 m" Else If [Age] = "51 mo." Then "4 y 3 m" Else If [Age] = "52 mo." Then "4 y 4 m" Else If [Age] = "53 mo." Then "4 y 5 m" Else If [Age] = "54 mo." Then "4 y 6 m" Else If [Age] = "55 mo." Then "4 y 7 m" Else If [Age] = "56 mo." Then "4 y 8 m" Else If [Age] = "57 mo." Then "4 y 9 m" Else If [Age] = "58 mo." Then "4 y 10 m" Else If [Age] = "59 mo." Then "4 y 11 m" Else If [Age] = "60 mo." Then "5 y.o." Else [Age] SQL (changes are highlighted) SELECT dbo.MEMBER.AGENCYID, dbo.MEMBER.SERVICESITEID, dbo.AGENCY.NAME, dbo.MEMBER.HOUSEHOLDID, dbo.MEMBER.STATEWICID, dbo.MEMBER.DATEOFBIRTH, dbo.MEMBER.CERTSTARTDATE, dbo.MEMBER.CERTIFICATIONDUEDATE, dbo.MEMBER.WICSTATUS FROM dbo.MEMBER INNER JOIN dbo.AGENCY ON (dbo.AGENCY.AGENCYID=dbo.MEMBER.AGENCYID) WHERE ( dbo.MEMBER.AGENCYID IN @prompt('Enter 3-digit Agency ID(s):','A','Dbo Member\Agencyid',Multi,Free,Persistent,,User:0) 3|Page Children Born within Specified Date Range ••• AND dbo.MEMBER.WICSTATUS = 'C' AND dbo.MEMBER.DATEOFBIRTH BETWEEN @prompt('Enter Start Date (DOB):','D','Dbo Member\Dateofbirth',Mono,Free,Persistent,,User:1) AND @prompt('Enter End Date (DOB):','D','Dbo Member\Dateofbirth',Mono,Free,Persistent,,User:2) ) 4|Page