Custom Reports
Posted: Sat Apr 30, 2011 4:03 am
Hi everyone
One of the things i want to do is the ability to search by payment number in the payment table, here is an example:
SELECT payNum,payment.PayDate,patient.ChartNumber,
CONCAT(patient.LName,', ',patient.FName,' ',patient.MiddleI) AS plfname,
payment.PayType,payment.CheckNum,payment.PayAmt
FROM payment,patient
WHERE
payment.PatNum = patient.PatNum
&& payment.PayAmt > 0
&& payment.PayNum= 5334
Now i need two things:
1. How can include the above query for users through the GUI? i mean, i want the user to click on a report link, enter the payment number and get the result.
2. How can i include the provider name on the above query? i.e.: i have the payment number and i want to know the provider name.
Thanks;
One of the things i want to do is the ability to search by payment number in the payment table, here is an example:
SELECT payNum,payment.PayDate,patient.ChartNumber,
CONCAT(patient.LName,', ',patient.FName,' ',patient.MiddleI) AS plfname,
payment.PayType,payment.CheckNum,payment.PayAmt
FROM payment,patient
WHERE
payment.PatNum = patient.PatNum
&& payment.PayAmt > 0
&& payment.PayNum= 5334
Now i need two things:
1. How can include the above query for users through the GUI? i mean, i want the user to click on a report link, enter the payment number and get the result.
2. How can i include the provider name on the above query? i.e.: i have the payment number and i want to know the provider name.
Thanks;