Report Overview ••• A list of participants who belong to the specified agency and have benefits marked as lost/stolen during a specified Lost & Stolen Benefits Infoview Report Template Guidance – BENEFITS/AGENCY MANAGEMENT time period. The report also indicates Notes whether the benefits were redeemed and *Participants will display in multiple rows; once for each provides a count of redeemed lost/stolen benefit marked lost or stolen. benefits by Staff ID. *The Agency ID is based on where the participant currently Tab 1 – Participants: A list and count of belongs and may not reflect the agency/clinic where the benefits participants; grouped by Agency ID. were marked as lost or stolen. Tab 2 – Counts: A count of redeemed *The Staff ID is the person who marked the benefits as lost or benefits and participants by Staff ID; stolen. grouped by Agency ID. * This report provides private information. Please refer to the MN WIC Data Privacy Policy (Ref: MOM, Section 1.7). Tab 1 – Participants Tab 2 – Counts 1|Page MN Department of Health WIC Program Lost & Stolen Benefits ••• Prompt(s) TABLE MEMBER FOODINSTRUMENT FOODINSTRUMENT FIELD Agencyid Reportedlostdate Reporetedstolendate Reportedlostdate Reporetedstolendate OPERATOR In List VALUE PROMPT/DEFINITION ### or ###;### Enter 3-digit Agency ID(s). (use semi-colon to separate; no spaces) Enter Start Date. Between mm/dd/yy And Columns mm/dd/yy Householdid (MEMBER.Householdid) State WIC ID (MEMBER.Statewicid) First Name (MEMBER.Firstname) Last Name (MEMBER.Lastname) Benefit # (FOODINSTRUMENT.Serialno) Reported Lost Date (FOODINSTRUMENT.Reportedlostdate) Reported Stolen Date (FOODINSTRUMENT.Reportedstolendate) Staff ID (FOODINSTRUMENT.Staffid) Date Redeemed (FOODINSTRUMENT.Paiddate) Redemption Amount (FOODINSTRUMENT.Paidamount) Sorted by Staff ID (Ascending) Grouped by Agency ID (FOODINSTRUMENT.Agencyid) - Ascending Counts State WIC ID (Distinct by Agency) 2|Page The beginning date of the time period in which benefits were marked as either lost or stolen. Enter End Date. Tab 1 – Participants • • • • • • • • • • Agency participants currently belong to. The last date of the time period in which benefits were marked as either lost or stolen. Lost & Stolen Benefits ••• Tab 2 – Counts Table 1 Rows Number of Redeemed Benefits Marked L/S See FORMULAS Table 2 Rows Staff ID (FOODINSTRUMENT.Staffidvoidstolen) Columns Count of Lost/Stolen See FORMULAS Sorted by Staff ID (Ascending) Grouped by Agency ID Counts State WIC ID (Distinct by Agency) 3|Page Lost & Stolen Benefits ••• Technical Notes Notes There isn’t a flag in the database to indicate if benefits have been marked as lost or stolen. The only indicator is if a date has been recorded in the FOODINSTRUMENT.Reportedlostdate or FOODINSTRUMENT.Reportedstolendate field. Formulas Participants Tab Report Dates (report header) ="Report 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") Agency (group header) =[Name] + " ( " + [Agencyid] + ")" Counts Tab Report Dates (report header) ="Report 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") Agency ID (group header) ="Agency" + " " + [Agencyid] Number of Redeemed Benefits Marked L/S =Count([Serialno]) Where ([Paidamt] > 0) Count of Lost (column) =Count([Statewicid]) Where (IsNull([Reportedstolendate])) Count of Stolen (column) =Count([Statewicid]) Where (IsNull([Reportedlostdate])) SQL (changes are highlighted) Lost & Stolen Query SELECT dbo.MEMBER.FIRSTNAME, dbo.MEMBER.LASTNAME, dbo.MEMBER.HOUSEHOLDID, dbo.MEMBER.STATEWICID, dbo.FOODINSTRUMENT.REPORTEDSTOLENDATE, dbo.FOODINSTRUMENT.REPORTEDLOSTDATE, dbo.FOODINSTRUMENT.STAFFIDVOIDSTOLEN, dbo.AGENCY.NAME, dbo.MEMBER.AGENCYID, dbo.MEMBER.SERVICESITEID, 4|Page Lost & Stolen Benefits ••• dbo.FOODINSTRUMENT.SERIALNO, dbo.FOODINSTRUMENT.PAIDDATE, dbo.FOODINSTRUMENT.PAIDAMT FROM dbo.FOODINSTRUMENT INNER JOIN dbo.FOODINSTRUMENTSET ON (dbo.FOODINSTRUMENT.FOODINSTRUMENTSETID=dbo.FOODINSTRUMENTSET.FOODINSTRUMENTSETID) INNER JOIN dbo.MEMBER ON (dbo.FOODINSTRUMENTSET.STATEWICID=dbo.MEMBER.STATEWICID) INNER JOIN dbo.AGENCY ON (dbo.AGENCY.AGENCYID=dbo.MEMBER.AGENCYID) WHERE ( ( dbo.FOODINSTRUMENT.REPORTEDLOSTDATE BETWEEN @prompt('Enter Start Date:','D','Dbo Foodinstrument\Reportedlostdate',Mono,Free,Persistent,,User:1) AND @prompt('Enter End Date:','D','Dbo Foodinstrument\Reportedlostdate',Mono,Free,Persistent,,User:2) OR dbo.FOODINSTRUMENT.REPORTEDSTOLENDATE BETWEEN @prompt('Enter Start Date:','D','Dbo Foodinstrument\Reportedstolendate',Mono,Free,Persistent,,User:3) AND @prompt('Enter End Date:','D','Dbo Foodinstrument\Reportedstolendate',Mono,Free,Persistent,,User:4) ) AND dbo.MEMBER.AGENCYID IN @prompt('Enter 3-digit Agency ID(s):','A','Dbo Member\Agencyid',Multi,Free,Persistent,,User:0) ) 5|Page
© Copyright 2024 Paperzz