Section 23.5: Standard Reports and Data Repository
Understand how to extract actionable data from MEDITECH. We will review the library of standard pharmacy reports and introduce the concepts behind using the Data Repository for more advanced analytics.
Standard Reports and Data Repository
Turning Raw Data into Clinical Wisdom and Operational Excellence.
23.5.1 The “Why”: From Data-Rich, Information-Poor to Actionable Intelligence
In the preceding sections, we have focused on building the transactional components of the MEDITECH system. We have built the drug records, the CPOE orders, the eMAR, and the surveillance rules. Every one of these actions—every order placed, every dose verified, every administration documented—generates a digital footprint. The result is that your hospital’s EHR is a breathtakingly vast reservoir of clinical and operational data. It contains every medication ever given, every lab result, every diagnosis, every patient movement. For the first time in the history of medicine, we are not lacking for data. However, this creates a new and profound challenge.
An organization can easily become “data-rich, but information-poor.” Having mountains of raw data is useless if you have no way to access it, organize it, and, most importantly, interpret it. The raw data might tell you that 10,000 doses of vancomycin were dispensed last year, but it doesn’t tell you if that use was appropriate. It might tell you that the pharmacy’s budget was exceeded by 5%, but it can’t tell you if that was due to a new, expensive oncology drug or wasteful purchasing of routine items. Without tools to turn data into information, and information into actionable intelligence, the EHR is little more than a very expensive digital filing cabinet.
This is where reporting and analytics become the capstone of your informatics skillset. The ability to extract meaningful data is what closes the loop on every quality improvement initiative. It is how you demonstrate the value of your clinical programs. It is how you identify waste, inefficiency, and hidden safety risks. MEDITECH provides two primary avenues for this work: a vast library of pre-built Standard Reports for routine operational needs, and the powerful Data Repository (DR) for advanced, custom analytics.
As a Pharmacy Informatics Analyst, you are the gatekeeper, the interpreter, and the storyteller of this data. You are the one who will be asked the hard questions by leadership: “How much are we spending on albumin?”, “Which providers are our highest prescribers of antibiotics?”, “Can you prove that our new sepsis protocol is improving patient outcomes?” Your ability to answer these questions with clear, accurate, and compelling data is not a secondary part of your job—it is a core function. Mastering the tools in this section will transform you from a system builder into a true data analyst and a strategic partner in the hospital’s clinical and financial success.
Pharmacist Analogy: The Supermarket Manager
Imagine you have just been promoted to manager of a massive, 24/7 supermarket. The store is equipped with a state-of-the-art point-of-sale system that tracks every single item scanned at every register. This firehose of raw data is your live transactional EHR database.
Your regional manager calls you with a series of questions. To answer them, you will use two different types of tools.
Tool #1: The End-of-Day Register Report (Standard Reports)
The manager asks, “What were your total sales yesterday? And how much of that was from the produce department?” This is a routine, operational question. You don’t need a deep analysis. You go to your office, open the cash register software, and print the pre-built, standardized “Z Report” from last night. It tells you exactly what you need to know in a clean, simple format. This is a Standard Report. It’s fast, reliable, and perfect for day-to-day operational questions.
Tool #2: The Corporate Analytics Warehouse (The Data Repository)
Now the manager asks a much more complex, strategic question: “We’re thinking of running a promotion. I want to know, over the last year, what is the most common item that customers buy at the same time they buy diapers? Also, does this change on weekends versus weekdays?”
Your simple register report can’t answer this. It can’t look back in time a full year, and it can’t perform “basket analysis” to see what items are purchased together. To answer this, you need to access the Data Repository. Every night, all the sales data from your store—and every other store in the chain—is copied to a massive corporate data warehouse. There, a team of analysts can use powerful query tools (like SQL) to slice and dice the data in almost any way imaginable. They can join the sales data with customer loyalty card data, with inventory data, with demographic data. They can answer the manager’s question and discover that the most common co-purchased item is baby wipes, but on weekends, it’s actually beer. This strategic insight allows them to place a beer display right next to the diapers on Fridays, dramatically increasing sales.
As an analyst, you need to be an expert in both tools. You need to know how to quickly run the standard “Z Report” for a manager who needs a number right now. But you also need to understand the structure of the big data warehouse so you can perform the deep, custom analyses that drive real strategic improvement.
23.5.2 For Daily Operations: The Standard Pharmacy Report Library
Before diving into the complexities of custom analytics, it is essential to master the tools you will use every single day. MEDITECH comes equipped with a comprehensive library of pre-built, or “canned,” reports. These reports are designed to answer the most common operational, clinical, and financial questions that arise in the daily management of a pharmacy department. They are your first line of inquiry.
These reports are generally found within the Pharmacy (PHA) module itself, under a “Reports” menu. They are typically parameterized, meaning they will prompt you for inputs like a date range, a specific drug or drug class, or a patient location before running. The key to using them effectively is knowing what report answers what question. A new analyst should spend significant time simply exploring this menu, running each report for a test patient or a short date range, and studying the output to understand its purpose.
Masterclass Table: A Guided Tour of the Standard Report Library
| Category | Example Report Name(s) | The Question It Answers | Primary User / Audience |
|---|---|---|---|
| Operational & Workflow |
|
“What needs to be made/filled right now?” “What was the complete movement of this specific controlled substance?” “Which medications are being administered without pharmacy verification?” “Who dispensed this specific dose and when?” |
Pharmacy Technicians, Pharmacists, Pharmacy Managers |
| Financial & Purchasing |
|
“How much of Drug X did we use last month?” “What was our total drug spend with Wholesaler Y?” “What are our top 25 most expensive drugs and who is ordering them?” “How much are we spending on non-formulary medications?” |
Pharmacy Buyers, Pharmacy Managers, Director of Pharmacy, Finance Department |
| Clinical & Quality |
|
“How many ADRs were reported and what were the most common drugs involved?” “What is the volume and type of clinical interventions our pharmacists are making?” “What was our total usage of broad-spectrum antibiotics?” “Which patients are on two drugs from the same class?” |
Clinical Pharmacists, Clinical Coordinators, P&T Committee, Quality & Safety Department |
| Regulatory & Compliance |
|
“Which automated dispensing cabinet counts are off and need investigation?” “Can we generate the required inventory report for the DEA?” “Can we separate our 340B drug usage from our GPO usage for audit purposes?” |
Pharmacy Managers, Compliance Officers, 340B Coordinators |
The Performance Trap of Standard Reports
Standard reports run against the LIVE, transactional database. This is what makes them real-time, but it is also their greatest vulnerability. The live database is optimized for fast, small transactions (placing an order, documenting an administration). It is not designed for massive, complex queries. If a user tries to run a Drug Usage Report for a very common drug over a five-year date range, that query can consume an enormous amount of the server’s processing power. In a worst-case scenario, a poorly constructed or overly broad report can slow the entire EHR down to a crawl for every user in the hospital. This is a cardinal sin for an analyst. Always be mindful of the date ranges and parameters you use. For large, historical analyses, you should never use the standard reports; you must use the Data Repository.
23.5.3 For Strategic Analysis: The Data Repository (DR)
When the questions become more complex, more strategic, and require looking at data over long periods or combining data from different parts of the chart, the standard reports are no longer the right tool for the job. You must turn to the Data Repository (DR).
The DR is a separate database, a near-real-time replica of the live production database. Its entire purpose is to provide a safe, isolated environment for complex reporting and data analysis without impacting the performance of the live EHR. The process of copying data from the live system to the DR is called ETL (Extract, Transform, Load). Typically, this process runs automatically every night, meaning the data in the DR is usually about 24 hours behind the live system. This is a critical trade-off: you sacrifice absolute real-time data for the ability to perform incredibly powerful, system-spanning queries safely.
The Data Flow: From Live System to Analytical Engine
Live MEDITECH System
Optimized for fast transactions. Users are actively ordering, documenting, and viewing charts.
ETL Process
(Nightly)
Data Repository (DR)
Optimized for complex queries and analysis. A separate, safe environment for reporting.
The Language of the DR: Tables, Fields, and SQL
The DR is not a single, monolithic file. It is a relational database, which means the data is organized into a series of interconnected tables. Each table represents a specific concept (like Patients, Orders, or Lab Results). Each row in a table is a specific record (one patient, one order), and each column is a specific piece of data about that record, known as a field.
The magic of a relational database is the ability to join these tables together using common key fields. For example, the Patients table and the Orders table both contain a field for the Patient’s Medical Record Number. By linking them on this field, you can ask a question like, “Show me all the orders for patients who are over the age of 65.”
To ask these questions, you must learn the language of the database: SQL (Structured Query Language). SQL is the universal standard for interacting with relational databases. While a full course on SQL is beyond the scope of this program, understanding its basic syntax and purpose is a non-negotiable skill for a high-performing informatics pharmacist.
A Simple SQL Query: Your First Taste of Data Analysis
Let’s revisit our clinical question from the surveillance section: “Find all adult patients currently on Vancomycin who have a recent serum creatinine > 1.5 mg/dL.” Here is a simplified example of what that query might look like in SQL.
SELECT
Patient.Name,
Patient.Location,
LabResult.Value AS SerumCreatinine
FROM
Adm_Patients AS Patient
JOIN Pha_Orders AS PharmacyOrder ON Patient.ID = PharmacyOrder.PatientID
JOIN Lab_Results AS LabResult ON Patient.ID = LabResult.PatientID
WHERE
Patient.Age >= 18
AND PharmacyOrder.Drug = ‘VANCOMYCIN’
AND PharmacyOrder.Status = ‘ACTIVE’
AND LabResult.Test = ‘CRE’
AND LabResult.Value > 1.5
AND LabResult.CollectionDateTime > (NOW() – 2 days)
Even if you’ve never seen SQL before, you can likely read this and understand what it’s doing. It’s selecting specific data points, joining three different tables together, and then filtering the results based on a series of logical conditions. This is the fundamental skill of a data analyst.