Query for No FMX Recall Type

For users or potential users.
Post Reply
jfdmanager
Posts: 6
Joined: Tue Jun 24, 2014 12:59 pm

Query for No FMX Recall Type

Post by jfdmanager » Tue Jun 24, 2014 1:02 pm

I'm looking for a list of active patients with an appointment who do not have a recall type for an FMX. Does anyone know how I can pull this information? Thank you.

KevinRossen
Posts: 293
Joined: Mon Apr 22, 2013 8:49 am
Location: Dallas, TX
Contact:

Re: Query for No FMX Recall Type

Post by KevinRossen » Tue Jun 24, 2014 9:56 pm

jfdmanager wrote:I'm looking for a list of active patients with an appointment who do not have a recall type for an FMX. Does anyone know how I can pull this information? Thank you.
I'm assuming you're looking for future appointments? I can probably whip it together, but I need one bit of info: the RecallTypeNum for FMX. To get it, run this query:

Code: Select all

SELECT * FROM recalltype
Once you get met that, I should be able to get you the query pretty quickly.
Kevin Rossen
Office Manager, Rossen Dental
Founder, DivergentDental.com
Image

KevinRossen
Posts: 293
Joined: Mon Apr 22, 2013 8:49 am
Location: Dallas, TX
Contact:

Re: Query for No FMX Recall Type

Post by KevinRossen » Tue Jun 24, 2014 10:23 pm

Well, this took a lot less time than I thought. This query will give you the PatNum, Age, and Appointment Date & Time for all patients with an appointment scheduled today or later and they don't have a recalltype of 6. You'll need to change that one item (line 4) to the appropriate recalltype. You could also use this to find anyone who hasn't had a prophy, bwx, etc just by changing the code.

Let me know if you need anything else.

Code: Select all

SELECT p.PatNum, DATE_FORMAT(NOW(), '%Y') - DATE_FORMAT(Birthdate, '%Y') - (DATE_FORMAT(NOW(), '00-%m-%d') < DATE_FORMAT(Birthdate, '00-%m-%d')) AS 'Age', a.AptDateTime
FROM patient p
LEFT JOIN appointment a ON p.PatNum=a.PatNum 
WHERE p.PatNum NOT IN (SELECT PatNum FROM recall WHERE RecallTypeNum=6) AND a.AptStatus=1 AND DATE(a.AptDateTime)>=CURDATE()
ORDER BY a.AptDateTime; 
Kevin Rossen
Office Manager, Rossen Dental
Founder, DivergentDental.com
Image

jfdmanager
Posts: 6
Joined: Tue Jun 24, 2014 12:59 pm

Re: Query for No FMX Recall Type

Post by jfdmanager » Wed Jun 25, 2014 8:17 am

Thank you so much! I didn't expect a custom written report, but this is going to be very valuable to our practice. :D

KevinRossen
Posts: 293
Joined: Mon Apr 22, 2013 8:49 am
Location: Dallas, TX
Contact:

Re: Query for No FMX Recall Type

Post by KevinRossen » Wed Jun 25, 2014 9:41 am

jfdmanager wrote:Thank you so much! I didn't expect a custom written report, but this is going to be very valuable to our practice. :D
You're welcome. It was really easy to write it up based on one of custom queries.
Kevin Rossen
Office Manager, Rossen Dental
Founder, DivergentDental.com
Image

User avatar
Justin Shafer
Posts: 596
Joined: Sat Jul 28, 2007 7:34 pm
Location: Fort Worth, TX.

Re: Query for No FMX Recall Type

Post by Justin Shafer » Sat Jun 28, 2014 7:51 am

http://dynamicdentists.com/looking-for- ... a-testers/

Neat...

I know a guy named Neil Milliken and he created something VERY similar except it had a TON of charts. He had the intention of selling it, as it was actually dumping Dentrix data to a mysql database, and then that was used for creating reports. It could do it's own Time Clock, Lab Cases, etc.

I still have it, and all the code behind it..

At the end it was converted to dump Open Dental data as the office converted to OD... Then the doc sold it to another doctor who already has 2 dentrix offices..

And so MyPractice is still running in a virtual machine, in limbo. :x

It had a TON.. of Graphical reports.

Anyways... Want to see it??? Neil's son did most of the work.. He works at google now. MySQL and PHP and DJango I think

User avatar
Justin Shafer
Posts: 596
Joined: Sat Jul 28, 2007 7:34 pm
Location: Fort Worth, TX.

Re: Query for No FMX Recall Type

Post by Justin Shafer » Sat Jun 28, 2014 8:37 am

Image

Image

jfdmanager
Posts: 6
Joined: Tue Jun 24, 2014 12:59 pm

Re: Query for No FMX Recall Type

Post by jfdmanager » Tue Aug 12, 2014 11:13 am

This is great Justin. Is there a cost for the software? How do I get my hands on it?

KevinRossen
Posts: 293
Joined: Mon Apr 22, 2013 8:49 am
Location: Dallas, TX
Contact:

Re: Query for No FMX Recall Type

Post by KevinRossen » Tue Aug 12, 2014 1:52 pm

jfdmanager wrote:This is great Justin. Is there a cost for the software? How do I get my hands on it?
I spoke with the original developer not too long ago. He's retired and ceased development a few years back.
Kevin Rossen
Office Manager, Rossen Dental
Founder, DivergentDental.com
Image

Post Reply