No Answer to Breastfeeding Exclusivity State Use Question #1 (PDF)

MN WIC PROGRAM
No Answer to Breastfeeding Exclusivity
State Use Question #1
STATE USE QUESTIONS (REVISED 2.24.16)
Report Overview
This report has three tabs and provides a list, counts and percentages by Staff ID of participants
born during a specified time period and currently belonging to the specified agency who do not
have an answer to the Breastfeeding Exclusivity State Use Question #1. The last tab provides a
count and percentage by selected answer.
•
Tab 1 – Participants-No Answer: List and count of participants with no answer selected;
grouped by the Staff ID of the person who certified the participant.
•
Tab 2 – Count-Staff ID: A count and percentage of total participants born during the
specified time period with and without an answer selected by Staff ID.
•
Tab 3 – Count-Answer: A count and percentage of the answers selected for those
participants born during the specified time period.
Notes
▪
This report provides private information. Please refer to MN WIC Data Privacy Policy (ref:
MOM, Section 1.7).
▪
The participants included in this report are based on their Date of Birth falling between the
Start and End Dates entered into the PROMPTS. Participants must have been certified but
the certification dates do not need to fall within the specified time period.
▪
The Agency ID is based on the agency where the participant currently belongs. This may not
reflect the agency where the participant was certified.
▪
Some staff may not belong to the specified agency since the agency is based on where the
member currently belongs and the Certifier/Staff ID is based on the person who performed
the certifications, which may have been performed at a different agency.
▪
The Staff ID is based on the ID recorded at the time the electronic CPA signature was
collected at the end of the certification. If there isn't a signature (CPA failed to sign or VOC
cert, which doesn't require a signature), the Staff ID is represented by “No CPA Signature”.
NO ANSWER TO BREASTFEEDING EXCLUSIVITY STATE USE QUESTION #1
INFOVIEW GUIDANCE DOCUMENT
▪
All three report outputs are formatted to download to an 8 x 11.5 inch PDF (portrait). It can
also be exported to Excel (the margins will need to be adjusted and the headers/footers will
not display.)
Tab 1 – Participants-No Answer
Tab 2 – Count-Staff ID
Tab 3 – Count-Answer
Page |2
NO ANSWER TO BREASTFEEDING EXCLUSIVITY STATE USE QUESTION #1
INFOVIEW GUIDANCE DOCUMENT
Prompts
TABLE
MEMBER
MEMBER
MEMBER
FIELD
Agencyid
Dateofbirth
OPERATOR
Equal to
Between
Dateofbirth
And
VALUE
###
PROMPT/DEFINITIONS
Enter 3-digit Agency ID.
The agency where the participant
currently belongs.
mm/dd/yy
Enter Start Date.
The first date in the time period
during which the participants
were born.
mm/dd/yy
Enter End Date.
The last date in the time period
during which the participants
were born.
Static Criteria
SUQ1 Query
CERTCONTACT.Certstartdate Is Not Null
Explanation: Exclude participants that haven’t been certified (prescreened only)
CERTCONTACT.Certstartdate Equal to MEMBER.Certstartdate
Explanation: Identify the most recent certification record
CERCONTACT.Certstartdate Equal to CERTCONTACT.Certeffectivedate
Explanation: Exclude pseudo-certs
No Answer Query
MEMBER.Statewicid In List of Statewicids Identified in the SUQ1 Query
Explanation: Include those participants identified in the SUQ1 query only
MEMBEROTHINFO.Statevalueid1 Is Null
OR
MEMBEROTHINFO.Statevalueid1 Equal to 0
Explanation: Include participants that don’t have an answer for State Use Question #1
Page |3
NO ANSWER TO BREASTFEEDING EXCLUSIVITY STATE USE QUESTION #1
INFOVIEW GUIDANCE DOCUMENT
CERTCONTACT.Certstartdate Equal to MEMBER.Certstartdate
Explanation: Identify the most recent certification record
CERCONTACT.Certstartdate Equal to CERTCONTACT.Certeffectivedate
Explanation: Exclude pseudo-certs
Tab 1 – Participants-No Answer
Columns
▪
▪
▪
▪
▪
▪
Clinic ID (MEMBER.Servicesiteid)
Household ID (MEMBER.Householdid)
State WIC ID (MEMBER.Statewicid)
Participant’s Name  See FORMULAS
DOB (MEMBER.Dateofbirth)
Cert Date (CERTCONTACT.Certstartdate)
Grouped by
Staff ID (CERTSTAFFESIGN.Createduserid - Ascending)  See FORMULAS
Sorted by
▪
▪
Clinic ID (Ascending)
DOB (Ascending)
Counts
State WIC ID (Distinct)
Tab 2 – Count-Staff ID
Columns
▪
▪
▪
▪
Total Participants  See FORMULAS
Answer  See FORMULAS
No Answer  See FORMULAS
% Answered  See FORMULAS
Rows
Staff ID (CERTSTAFFESIGN.Createduserid)  See FORMULAS
Sorted by
Staff ID (Ascending)
Page |4
NO ANSWER TO BREASTFEEDING EXCLUSIVITY STATE USE QUESTION #1
INFOVIEW GUIDANCE DOCUMENT
Counts
State WIC ID (Distinct)
Tab 3 – Count-Answer
Columns
▪
▪
Count  See FORMULAS
Precentage  See FORMULAS
Rows
Answer (STATEUSECODE.Description)  See FORMULAS
Sorted by
Answer (Ascending)
Counts
State WIC ID (Distinct)
Page |5
NO ANSWER TO BREASTFEEDING EXCLUSIVITY STATE USE QUESTION #1
INFOVIEW GUIDANCE DOCUMENT
Technical Notes
Notes
The CERTCONTACT.Certstartdate was used in the report output instead of the MEMBER.Certstartdate in order to
link the staff ID from the CERTSTAFFESIGN table. However, still wanted the most recent Certstartdate so the
criterion CERTCONTACT.Certstartdate = MEMBER.Certstartdate was added to the queries.
The table in Tab 2 – Count-Staff ID was built column by column in order to be able to use data from both queries.
A horizontal table template was used and the merged [Createduserid] dimension entered into the first column.
Joins to the STATESURVEYANSWER table were removed from both queries.
Full outer joins were used for the STATEUSECODE table and the CERTSTAFFESIGN table in order to include
records where the value was Null.
Formulas
Tab 1 – Participants-No Answer
Agency Name (report header) =[No Answer].[Name] + " (" + [No Answer].[Agencyid] + ")"
Report Dates (report header) ="Participants Born between: " + 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")
Certifier (group header) =If IsNull([No Answer].[Createduserid]) Then "No CPA Signature " Else "CERTIFIER: " + [No
Answer].[Createduserid]
Participant’s Name (column) =[Firstname] + " " + [Lastname]
Report Date (page footer) =”Report Date: “ + CurrentDate()
Page # (page footer) ="Page " + Page()+" of "+NumberOfPages()
Tab 2 – Count-Staff ID
Agency Name (report header) =[SUQ1].[Name] + " (" + [SUQ1].[Agencyid] + ")"
Report Dates (report header) ="Participants Born between: " + 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")
Total Participants (column) =Count([SUQ1].[Statewicid])
TOTAL Total Participants (row) =Sum(Count([SUQ1].[Statewicid]))
Page |6
NO ANSWER TO BREASTFEEDING EXCLUSIVITY STATE USE QUESTION #1
INFOVIEW GUIDANCE DOCUMENT
Answer (column) =Count([SUQ1].[Statewicid]) - Count([No Answer].[Statewicid])
TOTAL Answer (row) =Sum(Count([SUQ1].[Statewicid]) - Count([No Answer].[Statewicid]) )
No Answer (column) =If (IsNull(Count([No Answer].[Statewicid]))) Then "0" Else Count([No Answer].[Statewicid])
TOTAL No Answer (row) =Sum(Count([No Answer].[Statewicid]))
% Answered (column) =Round(((Count([SUQ1].[Statewicid]) - Count([No Answer].[Statewicid]))/Count([SUQ1].
[Statewicid]))*100;0) + "%"
TOTAL % Answered (row) =Round(((Sum(Count([SUQ1].[Statewicid]) - Count([No Answer].[Statewicid])
))/Sum(Count([SUQ1].[Statewicid])))*100;0) + "%"
Report Date (page footer) =”Report Date: “ + CurrentDate()
Page # (page footer) ="Page " + Page()+" of "+NumberOfPages()
Tab 3 – Count-Answer
Agency Name (report header) =[SUQ1].[Name] + " (" + [SUQ1].[Agencyid] + ")"
Report Dates (report header) ="Participants Born between: " + 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")
Count (column) =Count([SUQ1].[Statewicid])
TOTAL Count (row) =Sum(Count([SUQ1].[Statewicid]))
Percentage (column) =Percentage(Count([SUQ1].[Statewicid]);Col)
TOTAL Percentage (row) =Percentage(Count([SUQ1].[Statewicid]);Col) * 100 + "%"
Answer (row header) =If IsNull([Statevalueid1]) Then "No Answer Selected" Else If [Statevalueid1] = 0 Then "Value
of 0" Else [Description]
Report Date (page footer) =”Report Date: “ + CurrentDate()
Page # (page footer) ="Page " + Page()+" of "+NumberOfPages()
SQL (changes are highlighted)
SUQ1 Query
SELECT
dbo.MEMBER.AGENCYID,
dbo.MEMBER.SERVICESITEID,
Page |7
NO ANSWER TO BREASTFEEDING EXCLUSIVITY STATE USE QUESTION #1
INFOVIEW GUIDANCE DOCUMENT
dbo.MEMBEROTHINFO.STATEWICID,
dbo.MEMBEROTHINFO.STATEVALUEID1,
dbo.CERTCONTACT.CERTSTARTDATE,
dbo.STATEUSECODE.DESCRIPTION,
dbo.CERTSTAFFESIGN.CREATEDUSERID,
dbo.CERTCONTACT.CREATEUSERID,
dbo.CERTCONTACT.CERTWICSTATUS,
dbo.MEMBER.HOUSEHOLDID,
dbo.MEMBER.DATEOFBIRTH,
dbo.AGENCY.NAME
FROM
dbo.MEMBER INNER JOIN dbo.MEMBEROTHINFO ON (dbo.MEMBER.STATEWICID=dbo.MEMBEROTHINFO.STATEWICID)
FULL OUTER JOIN dbo.STATEUSECODE ON (dbo.STATEUSECODE.VALUEID=dbo.MEMBEROTHINFO.STATEVALUEID1)
INNER JOIN dbo.CERTCONTACT ON (dbo.CERTCONTACT.STATEWICID=dbo.MEMBER.STATEWICID)
FULL OUTER JOIN dbo.CERTSTAFFESIGN ON (dbo.CERTSTAFFESIGN.CERTIFICATIONID=dbo.CERTCONTACT.CERTIFICATIONID)
INNER JOIN dbo.AGENCY ON (dbo.AGENCY.AGENCYID=dbo.MEMBER.AGENCYID)
WHERE
(
dbo.MEMBER.AGENCYID = @prompt('Enter 3-digit Agency ID:','A','Dbo Member\Agencyid',Mono,Free,Persistent,,User:0)
AND
dbo.MEMBER.DATEOFBIRTH BETWEEN @prompt('Enter Start Date:','D','Dbo
Member\Dateofbirth',Mono,Free,Persistent,,User:1) AND @prompt('Enter End Date:','D','Dbo
Member\Dateofbirth',Mono,Free,Persistent,,User:2)
AND
(
dbo.MEMBER.CERTSTARTDATE Is Not Null
AND
dbo.CERTCONTACT.CERTSTARTDATE = dbo.CERTCONTACT.CERTEFFECTIVEDATE
AND
dbo.CERTCONTACT.CERTSTARTDATE = dbo.MEMBER.CERTSTARTDATE
)
)
No Answer Query
SELECT
dbo.MEMBER.STATEWICID,
dbo.MEMBER.HOUSEHOLDID,
dbo.MEMBER.LASTNAME,
dbo.MEMBER.DATEOFBIRTH,
dbo.MEMBER.FIRSTNAME,
dbo.AGENCY.NAME,
dbo.MEMBER.AGENCYID,
dbo.CERTSTAFFESIGN.CREATEDUSERID,
dbo.CERTCONTACT.CERTSTARTDATE,
dbo.CERTCONTACT.SERVICESITEID
FROM
dbo.MEMBEROTHINFO INNER JOIN dbo.MEMBER ON (dbo.MEMBER.STATEWICID=dbo.MEMBEROTHINFO.STATEWICID)
INNER JOIN dbo.CERTCONTACT ON (dbo.CERTCONTACT.STATEWICID=dbo.MEMBER.STATEWICID)
FULL OUTER JOIN dbo.CERTSTAFFESIGN ON (dbo.CERTSTAFFESIGN.CERTIFICATIONID=dbo.CERTCONTACT.CERTIFICATIONID)
INNER JOIN dbo.AGENCY ON (dbo.AGENCY.AGENCYID=dbo.MEMBER.AGENCYID)
WHERE
(
dbo.MEMBER.AGENCYID = @prompt('Enter 3-digit Agency ID:','A','Dbo Member\Agencyid',Mono,Free,Persistent,,User:0)
AND
Page |8
NO ANSWER TO BREASTFEEDING EXCLUSIVITY STATE USE QUESTION #1
INFOVIEW GUIDANCE DOCUMENT
dbo.MEMBER.DATEOFBIRTH BETWEEN @prompt('Enter Start Date:','D','Dbo
Member\Dateofbirth',Mono,Free,Persistent,,User:1) AND @prompt('Enter End Date:','D','Dbo
Member\Dateofbirth',Mono,Free,Persistent,,User:2)
AND
dbo.MEMBER.STATEWICID IN @dpvalue('A', DP0.DO27f)
AND
(
dbo.MEMBEROTHINFO.STATEVALUEID1 Is Null
OR
dbo.MEMBEROTHINFO.STATEVALUEID1 = 0
)
AND
(
dbo.CERTCONTACT.CERTSTARTDATE = dbo.CERTCONTACT.CERTEFFECTIVEDATE
AND
dbo.CERTCONTACT.CERTSTARTDATE = dbo.MEMBER.CERTSTARTDATE
)
)
Revisions
2.24.16 – the following revisions were made:
•
Changed PROMPT from In List Agency ID(s) to Equal to GRANTEE ID
•
Changed date PROMPTS from Date of Birth and Cert Start Date Greater than or Equal to
to Date of Birth Between
•
Added No Answer Query
•
Identified Statevaluedid = 0 as No Answer instead of Answered
•
Guidance Document was created and report template posted statewide
Page |9