Query to capture Patient Payment

This forum is for programmers who have questions about the source code.
Post Reply
glamorgan
Posts: 41
Joined: Tue Nov 08, 2011 11:25 pm

Query to capture Patient Payment

Post by glamorgan » Tue Dec 20, 2011 10:36 pm

Guys,

I am looking for MySQL query that will fetch payments made by the current patient, the result should also include the procedure name and the cost of the procedure.

Any bets?

Thanks in advance.

User avatar
jordansparks
Site Admin
Posts: 5770
Joined: Sun Jun 17, 2007 3:59 pm
Location: Salem, Oregon
Contact:

Re: Query to capture Patient Payment

Post by jordansparks » Wed Dec 21, 2011 6:25 am

Payments are not generally attached to procedures at the database level. So if there's no association, I don't see how a query could possibly be written to obtain that information. In other words, how does the database know which procedures the patient is paying for? We could add a feature to automate it according to FIFO on the patient estimate portion. But then if insurance pays slightly less than expected, the amounts might need to be adjusted.
Jordan Sparks, DMD
http://www.opendental.com

Post Reply