Sherburne C TC - Local Use Question #1 (PDF)

Report Overview
•••
This report has been specifically
developed for the Sherburne County
WIC Program. It has one tab and
provides a list of infants and children
who have answered “Yes” to Local
Sherburne C&TC –
Local Use Question #1
Infoview Report Template Guidance – AGENCYSPECIFIC (Sherburne)
Use Question #1, have “MA” or “MN
Notes
Care” selected in the Insurance Type
*This report provides private information. Please refer to the MN
field in Demographics, and who were
WIC Data Privacy Policy (Ref: MOM, Section 1.7).
issued benefits by Sherburne during
the specified time period.
Tab 1 – C&TC: List and count of
infants and children.
*Infants and children listed were issued benefits by Sherburne
(agency 411) during the specified time period.
*The CTC Answer Date is the date the selection was last made
from the Local Use Question #1 drop-down list.
*Only infants or children who answered Yes for Local Use Question #1 will display on the report output.
*Only infants or children with either MA or MN Care selected in the Insurance Type field in Demographics
will display on the report output.
*The Issued Date is the date benefits were printed for the participant.
*The Cert Start Date is the participant’s most recent certification start date.
*The Clinic ID is the clinic where the benefits were issued.
Tab 1 – C&TC
1|Page
MN Department of Health WIC Program
Sherburne C&TC – Local Use Question #1
•••
Prompt(s)
TABLE
FIELD
OPERATOR
VALUE
PROMPT/DEFINITION
Enter Start Date.
FOODINSTRUMENTSET
Issueddate
Between
mm/dd/yyyy
The first date of the specified time
period during which benefits were
issued.
Enter End Date.
FOODINSTRUMENTSET
Issueddate
And
mm/dd/yyyy
The last date of the specified time
period during which benefits were
issued.
Static Criteria
C&TC Query
FOODISNTRUMENTSET.Agencyid Equal to 411
Explanation: Include records where benefits were issued at Agency 411 (Sherburne)
MEMBER.Insurancetype In List 0;1
Explanation: Include records where either MA (0) or MN Care (1) were selected in the Insurance Type field in
Demographics
MEMBEROTHERINFO.Localvalueid1 In List 1872;1884;1896;1908;1921
Explanation: Include records where Yes was selected for Local Use Question #1
MEMBER.Wicstatus In List I;C
Explanation: Include infant and children only
SQL (SELECT): MAX(dbo.FOODINSTRUMENTSET.Issueddate)
Explanation: Select the most recent date if more than one issuance date during time period
SQL (SELECT): MAX(dbo.LOCALSURVEYANSWER.Answerdate)
Explanation: Select the most recent answer to Local Use Question #1
Tab 1 – C&TC
Columns
•
•
•
Household ID (MEMBER.Householdid)
State WIC ID (FOODINSTRUMENTSET.Statewicid)
Participant Name  See FORMULAS
2|Page
Sherburne C&TC – Local Use Question #1
•••
•
•
•
•
•
•
DOB (MEMBER.Dateofbirth)
Insurance  See FORMULAS
Issued Date (MAX(FOODINSTRUMENTSET.Issueddate))
Cert Start Date (MEMBER.Certstartdate)
CTC Answer Date (MAX(LOCALSURVEYANSWER.Answerdate))
Clinic ID (FOODINSTRUMENTSET.Clinicid)
Sorted by
Issued Date (Ascending)
Grouped by
FOODINSTRUMENTSET.Clinicid (Ascending)
Counts
State WIC ID (Distinct)
3|Page
Sherburne C&TC – Local Use Question #1
•••
Technical Notes
Formulas
Tab 1 - C&TC
Report Date (report header) ="Report Dates (Issuance Dates): " + FormatDate(ToDate(UserResponse("Enter Start
Date:");"M/d/yyyy hh:mm:ss A");"MM/dd/yyyy") + " - " + FormatDate(ToDate(UserResponse("Enter End
Date:");"M/d/yyyy hh:mm:ss A");"MM/dd/yyyy")
Run Date (report header) ="Run Date: " + CurrentDate()
Clinic (group header) ="Clinic " + [Servicesiteid]
Participant Name (column) =[Firstname] + " " + [Lastname]
Insurance (column) =If [Insurancetype] = "0" Then "MA" Else "MN Care"
SQL (changes are highlighted)
C&TC Query
SELECT
dbo.MEMBER.HOUSEHOLDID,
dbo.FOODINSTRUMENTSET.STATEWICID,
dbo.FOODINSTRUMENTSET.SERVICESITEID,
dbo.MEMBER.FIRSTNAME,
dbo.MEMBER.LASTNAME,
dbo.MEMBER.DATEOFBIRTH,
dbo.MEMBER.CERTSTARTDATE,
dbo.MEMBER.INSURANCETYPE,
MAX(dbo.LOCALSURVEYANSWER.ANSWERDATE),
MAX(dbo.FOODINSTRUMENTSET.ISSUEDDATE)
FROM
dbo.FOODINSTRUMENTSET INNER JOIN dbo.MEMBER ON
(dbo.FOODINSTRUMENTSET.STATEWICID=dbo.MEMBER.STATEWICID)
INNER JOIN dbo.MEMBEROTHINFO ON (dbo.MEMBER.STATEWICID=dbo.MEMBEROTHINFO.STATEWICID)
INNER JOIN dbo.LOCALSURVEYANSWER ON
(dbo.LOCALSURVEYANSWER.STATEWICID=dbo.MEMBEROTHINFO.STATEWICID)
WHERE
(
dbo.FOODINSTRUMENTSET.AGENCYID = '411'
AND
dbo.FOODINSTRUMENTSET.ISSUEDDATE BETWEEN @prompt('Enter Start Date:','D','Dbo
Foodinstrumentset\Issueddate',Mono,Free,Persistent,,User:0) AND @prompt('Enter End Date:','D','Dbo
Foodinstrumentset\Issueddate',Mono,Free,Persistent,,User:1)
AND
dbo.MEMBER.INSURANCETYPE IN ( '0','1' )
4|Page
Sherburne C&TC – Local Use Question #1
•••
AND
dbo.MEMBEROTHINFO.LOCALVALUEID1 IN ( 1872, 1884, 1896, 1908, 1921 )
AND
dbo.MEMBER.WICSTATUS IN ( 'I','C' )
)
GROUP BY
dbo.MEMBER.HOUSEHOLDID,
dbo.FOODINSTRUMENTSET.STATEWICID,
dbo.FOODINSTRUMENTSET.SERVICESITEID,
dbo.MEMBER.FIRSTNAME,
dbo.MEMBER.LASTNAME,
dbo.MEMBER.DATEOFBIRTH,
dbo.MEMBER.CERTSTARTDATE,
dbo.MEMBER.INSURANCETYPE,
Local Use Reference Query
SELECT
dbo.LOCALUSECODE.VALUEID,
dbo.LOCALUSECODE.DESCRIPTION,
dbo.LOCALUSECAPTION.WICSTATUS
FROM
dbo.LOCALUSECAPTION INNER JOIN dbo.LOCALUSECODE ON
(dbo.LOCALUSECAPTION.CAPTIONID=dbo.LOCALUSECODE.CAPTIONID)
WHERE
(
dbo.LOCALUSECODE.AGENCYID = '411'
AND
dbo.LOCALUSECAPTION.ORDINALPOSITION = 1
)
5|Page