If you are struggling to identify which of your periodontal patients have fallen through the cracks and are overdue for their scaling and root planing (SRP) or perio maintenance, this report is for you. This open dental SRP overdue query helps your hygiene coordinator quickly generate a list of active patients who have a history of perio procedures but no recent completion date for those specific codes.
The Query
Copy and paste the following code into your User Query window. This query looks for patients with a status of "Patient" who have had specific SRP codes (D4341 or D4342) in the past, but have not had a perio-related procedure in the last 12 months.
SET @MonthsOverdue = 12;
SET @StartDate = DATE_SUB(CURDATE(), INTERVAL @MonthsOverdue MONTH);
SELECT
p.PatNum,
p.LName,
p.FName,
p.HmPhone,
p.WirelessPhone,
MAX(pl.ProcDate) AS LastPerioProcDate
FROM patient p
INNER JOIN procedurelog pl ON p.PatNum = pl.PatNum
INNER JOIN procedurecode pc ON pl.CodeNum = pc.CodeNum
WHERE p.PatStatus = 0
AND pc.ProcCode IN ('D4341', 'D4342', 'D4910')
AND pl.ProcStatus = 2
GROUP BY p.PatNum
HAVING MAX(pl.ProcDate) < @StartDate
ORDER BY LastPerioProcDate ASC;
How to Run This Query
- In Open Dental, go to Reports in the Main Menu.
- Click User Query.
- Paste the query provided above into the large text box.
- Click Submit Query.
- The results will display in the grid below.
Understanding the Results
- PatNum: The unique identification number for the patient in your system.
- LName/FName: The patient's last and first name.
- HmPhone/WirelessPhone: Contact numbers to help your team reach out for scheduling.
- LastPerioProcDate: The date of the most recent procedure found in the list (D4341, D4342, or D4910). If this date is older than 12 months, the patient appears on this list.
How to Customize
You can easily adjust the sensitivity of this report to match your practice's recall protocols.
- Change the time frame: To look for patients overdue by 18 months instead of 12, change the first line of the query:
SET @MonthsOverdue = 18; - Filter by Provider: If you only want to see patients assigned to a specific provider, add this line before the
GROUP BYclause:AND p.PriProv = 1(Replace '1' with the actual ProvNum of the provider).
Variations
If you want to narrow your focus, you can modify the pc.ProcCode line. For example, if you only want to see patients who have had Scaling and Root Planing (D4341/D4342) but have never had a Perio Maintenance (D4910) visit, you can remove 'D4910' from the list:
AND pc.ProcCode IN ('D4341', 'D4342')
Skip the Query — Use DentalCanvas Instead
Don't want to write SQL? DentalCanvas connects to your Open Dental database and shows you this data automatically in a visual dashboard — no queries required.
This article is provided by opendentalsupport.com, an independent community resource. We are not affiliated with Open Dental Software, Inc.