New Patient report
Posted: Fri Nov 04, 2016 4:26 am
There seems to be an issue with the New Patient report (Reports, New Patient) in OpenDental 16.3.15.
When a New Patient registers we check the box in the Edit Appointment window that says, NP and check the appointment completed at the end of the visit.
A manual count for the month of October 2016 says we had 94 new patients but the report (Reports, New Patient) says 69.
This custom query says 79
SET @FromDate='2016-10-01', @ToDate='2016-10-31';
SELECT Year(DateFirstVisit) AS Year, Month(DateFirstVisit) AS Month,
COUNT(DISTINCT patient.PatNum) AS 'New Patients'
FROM patient, procedurelog
WHERE procedurelog.PatNum = patient.PatNum
AND patient.patstatus = '0'
AND procedurelog.ProcDate BETWEEN @FromDate
AND @ToDate
AND procedurelog.ProcStatus=2
AND patient.DateFirstVisit >= @FromDate
AND procedurelog.ProcFee > 0
GROUP BY Month(DateFirstVisit)
ORDER BY patient.DateFirstVisit;
So we have three different totals. Not knowing the code behind the Report in OD I could not compare the two queries.
Anyone else have this issue? Any ideas?
drtmz
When a New Patient registers we check the box in the Edit Appointment window that says, NP and check the appointment completed at the end of the visit.
A manual count for the month of October 2016 says we had 94 new patients but the report (Reports, New Patient) says 69.
This custom query says 79
SET @FromDate='2016-10-01', @ToDate='2016-10-31';
SELECT Year(DateFirstVisit) AS Year, Month(DateFirstVisit) AS Month,
COUNT(DISTINCT patient.PatNum) AS 'New Patients'
FROM patient, procedurelog
WHERE procedurelog.PatNum = patient.PatNum
AND patient.patstatus = '0'
AND procedurelog.ProcDate BETWEEN @FromDate
AND @ToDate
AND procedurelog.ProcStatus=2
AND patient.DateFirstVisit >= @FromDate
AND procedurelog.ProcFee > 0
GROUP BY Month(DateFirstVisit)
ORDER BY patient.DateFirstVisit;
So we have three different totals. Not knowing the code behind the Report in OD I could not compare the two queries.
Anyone else have this issue? Any ideas?
drtmz