Report Overview
•••
This report was created specifically for Countryside to
assist with merging immunization and well child exam
data for WIC appointments.
Countryside –
WIC-MIIC-CTC
Infoview Report Template Guidance –
AGENCY-SPECIFIC (Countryside)
Notes
*This report pulls all appointment information for the specified agency. However, appointment
information more than 90 days old is purged from the database during the End-of-Day processes.
*The Agencyid and Servicesiteid are based on the agency/clinic where the appointment is scheduled.
Tab 1 – Participants
Prompt(s)
TABLE
APPOINTMENT
FIELD
Agencyid
OPERATOR
In List
VALUE
PROMPT/DEFINITION
### or ###;###
Enter 3-digit Agency ID(s).
(use semi-colon to
separate; no spaces)
The agency where the participant’s
appointment is scheduled.
Tab 1 – Participants
Columns
•
•
•
•
•
•
•
•
•
•
Appiontmentdate (APPOINTMENT.Appointmentdate)
Appointmentresourceid (APPOINTMENT.Appointmentresourceid)
Appointmenttime (APPOINTMENT.Appointmenttime) See VARIABLES
Appointmentkep (APPOINTMENT.Appointmentkept)
Appointmenttypeid (APPOINTMENT.Appointmenttypeid)
Appt Type (APPOINTMENTYPE.Description)
Duration (APPOINTMENT.Duration)
Householdid (APPOINTMENT.Householdid)
Statewicid (APPOINTMENT.Statewicid)
Servicesitename (SERVICESSITE.Servicesitename)
1|Page
MN Department of Health WIC Program
Countryside – WIC-MIIC-CTC
•••
•
•
•
•
•
•
•
•
•
•
•
•
•
•
Agencyid (APPOINTMENT.Agencyid)
Dateofbirth (MEMBER.Dateofbirth)
Interpreterneeded (HOUSEHOLD.Interpreterneeded)
Language1 (REFERENCEDICTIONARY.Description)
Firstname (MEMBER.Firstname)
Middleinitial (MEMBER.Middleinitial)
Lastname (MEMBER.Lastname)
Gender (MEMBER.Gender)
Motherfirstname (MEMBER.Motherfirstname)
Motherlastname (MEMBER.Motherlastname)
Mailaddress (HOUSEHOLD.Mailaddress)
Mailcity (HOUSEHOLD.Mailcity)
Mailstate (HOUSEHOLD.Mailstate)
Mailzip (HOUSEHOLD.Mailzip) See FORMULAS
2|Page
Countryside – WIC-MIIC-CTC
•••
Technical Notes
Notes
The Appointmenttime is recorded in the database as military time. A variable (Nonmilitarytime) was created to change
the time to standard time. Once the variable is created and added as a column, a value of “1/1/70” displays. To change this
to the correct display, the number was formatted as time (right-click on column values, select Format Number, select
Date/Time from the Format type list, and select 8:45 PM from the Properties list). Note #2
The joins to the REFERENCEDICTIONARY table are to the HEALTHNOTE table. These joins were removed and the
REFERENCEDICTIONARY was left un-joined in the FROM statement. The link was then made in the WHERE statement
where the REFERENCEDICTIONARY.Externalid=HOUSEHOLD.Language1 and Category = LANGUAGE. The
REFERENCEDICTIONARY.Description was then added to the Result Objects to list the language instead of the language
code..
Variables
Nonmilitarytime =ToDate(FormatDate(ToDate([Appointmenttime];"HHmm");"hh:mm a");"hh:mm a")
Formulas
Mailzip (column) =Left([Mailzip];5)
SQL (changes are highlighted)
Participants Query
SELECT
dbo.APPOINTMENT.APPOINTMENTRESOURCEID,
dbo.APPOINTMENT.APPOINTMENTTIME,
dbo.APPOINTMENT.APPOINTMENTTYPEID,
dbo.APPOINTMENT.HOUSEHOLDID,
dbo.APPOINTMENT.STATEWICID,
dbo.APPOINTMENT.SERVICESITEID,
dbo.APPOINTMENT.AGENCYID,
dbo.APPOINTMENT.DURATION,
dbo.MEMBER.DATEOFBIRTH,
dbo.MEMBER.LASTNAME,
dbo.MEMBER.FIRSTNAME,
dbo.MEMBER.GENDER,
dbo.MEMBER.MIDDLEINITIAL,
dbo.MEMBER.MOTHERFIRSTNAME,
dbo.MEMBER.MOTHERLASTNAME,
dbo.HOUSEHOLD.MAILADDRESS,
dbo.HOUSEHOLD.MAILCITY,
3|Page
Countryside – WIC-MIIC-CTC
•••
dbo.HOUSEHOLD.MAILSTATE,
dbo.HOUSEHOLD.MAILZIP,
dbo.APPOINTMENTTYPE.DESCRIPTION,
dbo.SERVICESITE.SERVICESITENAME,
dbo.APPOINTMENT.APPOINTMENTDATE,
dbo.APPOINTMENT.APPOINTMENTKEPT,
dbo.HOUSEHOLD.INTERPRETERNEEDED,
dbo.HOUSEHOLD.LANGUAGE1,
dbo.REFERENCEDICTIONARY.DESCRIPTION
FROM
dbo.REFERENCEDICTIONARY,
dbo.HOUSEHOLD INNER JOIN dbo.MEMBER ON
(dbo.MEMBER.HOUSEHOLDID=dbo.HOUSEHOLD.HOUSEHOLDID)
INNER JOIN dbo.APPOINTMENT ON (dbo.APPOINTMENT.STATEWICID=dbo.MEMBER.STATEWICID)
INNER JOIN dbo.SERVICESITE ON (dbo.APPOINTMENT.SERVICESITEID=dbo.SERVICESITE.SERVICESITEID)
INNER JOIN dbo.APPOINTMENTTYPE ON
(dbo.APPOINTMENT.APPOINTMENTTYPEID=dbo.APPOINTMENTTYPE.APPOINTMENTTYPEID)
WHERE
(
dbo.APPOINTMENT.AGENCYID IN @prompt('Enter 3-digit Agency ID:','A','Dbo
Appointment\Agencyid',Multi,Free,Persistent,,User:0)
AND
(
dbo.REFERENCEDICTIONARY.CATEGORY = 'LANGUAGE'
AND
dbo.REFERENCEDICTIONARY.EXTERNALID = dbo.HOUSEHOLD.LANGUAGE1
)
)
4|Page
© Copyright 2026 Paperzz