Search found 6 matches
- Fri Mar 15, 2024 4:14 pm
- Forum: Advanced Topics
- Topic: Bug in query 1203
- Replies: 1
- Views: 16936
Bug in query 1203
In query 1203 Count of new patients, total patients, and total patient visits in date range. you can potentially miss new patients. The new patient part boils down to : SET @StartDate=curdate() - INTERVAL 1 MONTH, @EndDate=curdate(); SET @ignoreCodes='D9986,D9987'; /*New patients*/ SELECT 'NP' AS 'C...
- Sun Feb 04, 2024 1:54 pm
- Forum: Advanced Topics
- Topic: Reappointment Rate Query & Help
- Replies: 2
- Views: 19259
Re: Reappointment Rate Query & Help
This query was very useful for me. Unfortunately, there's a security/permissions issue when released (probably from drop table). Here's a re-write to get around that: SET @FromDate=CURDATE()-INTERVAL 30 DAY, @ToDate=CURDATE(); SELECT t1.Date , t1.Seen , t2.Sched , CONCAT(ROUND((t2.Sched/t1.Seen*100)...
- Sat Jan 27, 2024 4:59 pm
- Forum: Advanced Topics
- Topic: SQL help - last ProcDate for each PatNum
- Replies: 1
- Views: 14040
Re: SQL help - last ProcDate for each PatNum
Nevermind, I fixed it. Order by ProcDate, then group by PatNum: SET @bwCodes = 'D0272,D0274,M0274'; SET @Date = curdate(); SELECT aptDay.PatNum, bwproc.CodeNum, bwproc.ProcCode, DATE(LastBW) FROM (SELECT * FROM appointment a WHERE date(a.AptDateTime) = @Date) aptDay /*Most recent @bwCode date for ea...
- Sat Jan 27, 2024 1:18 pm
- Forum: Advanced Topics
- Topic: SQL help - last ProcDate for each PatNum
- Replies: 1
- Views: 14040
SQL help - last ProcDate for each PatNum
I have the following query: SET @bwCodes = 'D0272,D0274,M0274'; SET @Date = curdate(); SELECT aptDay.PatNum, bwproc.CodeNum, bwproc.ProcCode, DATE(LastBW) FROM (SELECT * FROM appointment a WHERE date(a.AptDateTime) = @Date) aptDay /*Most recent @bwCode date for each patient*/ LEFT JOIN ( SELECT pl.P...
- Fri Sep 22, 2023 8:49 am
- Forum: Main Forum
- Topic: Default priority for procedures
- Replies: 0
- Views: 35371
Default priority for procedures
I've set up custom Treatment Plan Priorities definitions. Is there a way to set a default priority by procedure code or by procedure buttons?
- Fri Sep 22, 2023 7:57 am
- Forum: Main Forum
- Topic: Delete and purge old charts
- Replies: 4
- Views: 7455
Re: Delete and purge old charts
You can archive the patients. This only secures against a person manually pulling charts, but wouldn't affect reporting. You could also scramble identifying information (name, DOB, phone, address (maybe leave the ZIP?), SSN, etc) and leave everything else. This is probably the way to do what you wan...