Data-Min
Data-Min
Table of Contents
Section Page
Before You Begin. . . 2
Importing Data from Instrument Manager 3
Modifying the Data in Excel 6
Creating a Report:
Report: Turnaround Time 7
Report: Turnaround Time by Priority 11
Appendix A: Database Configuration for Instrument Manager v8.08 – v8.14 15
Overview
The purpose of this document is to provide examples of reports using Microsoft Excel® with
Instrument Manager and ODBC.
Report Application:
Information can be extracted from Instrument Manager with ODBC access using an ODBC-
compliant application such as Microsoft Excel, Crystal Reports, Open Office, etc… The most
common ODBC-compliant application in the laboratory is Microsoft Excel® and the reason for
using it for our example reports. If you are using another application, this guide should
provide guidance on how to develop similar reports in other applications.
Microsoft Excel® 2007 was used in the development of this guide. The same instructions can
be used for Microsoft Excel 2003 user being cognizant of the differences in how Excel 2003
screen appear different than 2007.
How to Develop an Example Report:
To develop any of the example reports, follow these steps:
1. Review the Before You Begin section (page 2)
2. Perform the Importing Data from Instrument Manager instructions (page 3)
3. Perform the Modifying the Data in Excel instructions (page 6)
4. Perform one of the reports examples from the Creating a Report section
6 Insert the following SQL statement into SQL statement window for the appropriate version of
Instrument Manager.
Instrument Manager v8.08 – v8.14
SELECT sinfo.SID, pinfo.LocationWard, sinfo.Priority,
sinfo.RequestedDateTimeTS, tinfo.TestCode, tinfo.TestResultsReviewedby,
cast($$timestamp^imconvert(status.DateTime) as TIMESTAMP) As
ReleasedDateTimeTS
FROM IM_SM.pinfo pinfo, IM_SM.sinfo sinfo, IM_SM.status status, IM_SM.tinfo
tinfo
WHERE sinfo.Patient = pinfo.Patient AND tinfo.Specimen = sinfo.Specimen AND
tinfo.Patient = pinfo.Patient AND ((tinfo.TestStatus='Released') AND
(status.Test=tinfo.Test) AND (status.Status='Released'))
Results: The imported data from Instrument Manager should appear in a worksheet within Excel.