Receipt for payment

ahmed159 wrote on Monday, February 23, 2015:

Hi Team,

I would like to ask ur help, Is there any way that i could add doctors name in the Receipt for PAYMENT along with patient name and the others details. Please help me…

Will be Very Grateful to u

cmswest wrote on Monday, February 23, 2015:

hi, try this.

ahmed159 wrote on Monday, February 23, 2015:

Thanks for the reply but pls explain me how to apply the above settings which you had sent

cmswest wrote on Monday, February 23, 2015:

please find the file, interface/patient_file/front_payment.php, on your server under the webroot/openemr

if you’re on linux then something like var/www/openemr or windows, c:/xampp/openemr

then add the above highlighted entries from the link to my github by editing the file with something like notepad on windows or gedit on linux

bradymiller wrote on Thursday, February 26, 2015:

Hi,
Would this be useful to put in the main codebase?
-brady
OpenEMR

ahmed159 wrote on Thursday, February 26, 2015:

Hi team,

I would like to ask ur another help, Is there any way that i could add Patient Id no in the checkout PAYMENT along with patient name and the others details.

visolveemr wrote on Thursday, February 26, 2015:

Hello Ahmed,

You need to replace the line 409(if you are using OpenEMR-4.2.0) in “interface/patient_file/pos_checkout.php”

<?php echo text($patdata['fname']) . ' ' . text($patdata['mname']) . ' ' . text($patdata['lname']) ?>

with

<?php echo text($patdata['fname']) . ' ' . text($patdata['mname']) . ' ' . text($patdata['lname']) .' ('. text($patient_id).')' ?>

to display the Patient ID with the checkout details

Thanks
OpenEMR Customization/Support Team,
ViSolve Inc
services@visolve.com | Phone: 408-850-2243
Demo’s @ ViSolve Demo Library

blankev wrote on Thursday, February 26, 2015:

Thank you for this addition! Is it possible to change the patient_id into patient_dob or patient_ss, since most of my patients have a patient_id that is only available for the local office and does not help for identification purposes for the outside world.

Is there an easy insert? Or do I have to re-write most part of the file?

patient_id is defined in the upper parts of the file, but I could not find a quick solution to change id into ss or dob… except for changing id in the database, but that was no solution, since this is a connecting field and most of the patient information did not show as before.

visolveemr wrote on Thursday, February 26, 2015:

Hello Ahmed,

Yes, you can add patient SSN instead of ID by replacing the following lines in “interface/patient_file/pos_checkout.php”

  1. line 297:

    $patdata = getPatientData($patient_id, ‘fname,mname,lname,pubpid,street,city,state,postal_code,providerID’);

with

$patdata = getPatientData($patient_id, 'fname,mname,lname,pubpid,street,city,state,postal_code,providerID,ss');
  1. line 409:

    <?php echo text($patdata['fname']) . ' ' . text($patdata['mname']) . ' ' . text($patdata['lname']) ?>

with

<?php echo text($patdata['fname']) . ' ' . text($patdata['mname']) . ' ' . text($patdata['lname']). ' ' . text($patdata['ss']) ?>

To display with DOB then changes the above ‘ss’ into ‘DOB’ on both lines

Thanks
OpenEMR Customization/Support Team,
ViSolve Inc
services@visolve.com | Phone: 408-850-2243
Demo’s @ ViSolve Demo Library

blankev wrote on Thursday, February 26, 2015:

Could also replace: 297 (With whatever field you might want to use of patient data table):

$patdata = getPatientData($patient_id, ‘fname,mname,lname,pubpid,street,city,state,postal_code,providerID’);

with:

$patdata = getPatientData($patient_id, ‘fname,mname,lname,pubpid,street,city,state,postal_code,providerID,ss,DOB’);

And replace 409

<?php echo text($patdata['fname']) . ' ' . text($patdata['mname']) . ' ' . text($patdata['lname']) ?>

with:

<?php echo text($patdata['fname']) . ' ' . text($patdata['mname']) . ' ' . text($patdata['lname']) .' (ID: '. text($patdata['ss']).')' ?>

(Just changed it a little bit to add bracket or text and brackets around ID)

Tnx again for showing where to go! Pieter (… not Ahmed)

blankev wrote on Thursday, February 26, 2015:

For me it would be a good idea and useful. If I was more at ease with GIT-hub I would place it in the correct file to get it included, with some commenting text.

ahmed159 wrote on Thursday, February 26, 2015:

Thank you for all the help, pls help me again. is it possible in Openemr to add timing along with date of Encounters?

I am using windows 4.2.0.

Thanks again Team for all the help.

ahmed159 wrote on Thursday, February 26, 2015:

I Dont have any Insurance patients, all of my patients pay by cash, so the first encounter of every patient is done at the reception by the receptionist, later the doctor does new encounter. Therefore,in the Receipt of Payment Receptionist’s name is shown as the Provider. Is there anyway i can get the Doctors name(i.e. the providers name under the “choice” tab in demograpichs, in the Encounter history) as the Provider in Receipt of Payment???