# Receipt for payment

**URL:** <https://community.open-emr.org/t/receipt-for-payment/3179>\
**Category:** Day-to-Day Users\
**Created:** [February 23, 2015, 5:12pm UTC](https://community.open-emr.org/t/receipt-for-payment/3179 "2015-02-23T17:12:29Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [February 23, 2015, 5:12pm UTC](https://community.open-emr.org/t/receipt-for-payment/3179/1 "2015-02-23T17:12:29Z")

</div>

**[ahmed159](https://sourceforge.net/u/ahmed159/)** wrote on [Monday, February 23, 2015](https://sourceforge.net/p/openemr/discussion/202504/thread/46d782ec/#3791):

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

---

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [February 23, 2015, 7:06pm UTC](https://community.open-emr.org/t/receipt-for-payment/3179/2 "2015-02-23T19:06:40Z")

</div>

**[cmswest](https://sourceforge.net/u/cmswest/)** wrote on [Monday, February 23, 2015](https://sourceforge.net/p/openemr/discussion/202504/thread/46d782ec/#3791/0257):

hi, try [this](https://github.com/stephenwaite/openemr/commit/4ad6584185edce1ce4f9133b99a62db52f04165f).

---

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [February 23, 2015, 10:24pm UTC](https://community.open-emr.org/t/receipt-for-payment/3179/3 "2015-02-23T22:24:48Z")

</div>

**[ahmed159](https://sourceforge.net/u/ahmed159/)** wrote on [Monday, February 23, 2015](https://sourceforge.net/p/openemr/discussion/202504/thread/46d782ec/#a14b):

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

---

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [February 23, 2015, 10:32pm UTC](https://community.open-emr.org/t/receipt-for-payment/3179/4 "2015-02-23T22:32:51Z")

</div>

**[cmswest](https://sourceforge.net/u/cmswest/)** wrote on [Monday, February 23, 2015](https://sourceforge.net/p/openemr/discussion/202504/thread/46d782ec/#a14b/224b):

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

---

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [February 26, 2015, 8:37am UTC](https://community.open-emr.org/t/receipt-for-payment/3179/5 "2015-02-26T08:37:28Z")

</div>

**[bradymiller](https://sourceforge.net/u/bradymiller/)** wrote on [Thursday, February 26, 2015](https://sourceforge.net/p/openemr/discussion/202504/thread/46d782ec/#61d1):

Hi,  
Would this be useful to put in the main codebase?  
-brady  
[OpenEMR](http://www.open-emr.org/)

---

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [February 26, 2015, 8:42am UTC](https://community.open-emr.org/t/receipt-for-payment/3179/6 "2015-02-26T08:42:55Z")

</div>

**[ahmed159](https://sourceforge.net/u/ahmed159/)** wrote on [Thursday, February 26, 2015](https://sourceforge.net/p/openemr/discussion/202504/thread/46d782ec/#5ff2):

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.

---

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [February 26, 2015, 10:35am UTC](https://community.open-emr.org/t/receipt-for-payment/3179/7 "2015-02-26T10:35:18Z")

</div>

**[visolveemr](https://sourceforge.net/u/visolveemr/)** wrote on [Thursday, February 26, 2015](https://sourceforge.net/p/openemr/discussion/202504/thread/46d782ec/#b9e0):

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](http://www.visolve.com)  
 [services@visolve.com](mailto:services@visolve.com) | Phone: 408-850-2243  
Demo’s @ [ViSolve Demo Library](http://demo.visolve.com)_

---

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [February 26, 2015, 1:51pm UTC](https://community.open-emr.org/t/receipt-for-payment/3179/8 "2015-02-26T13:51:54Z")

</div>

**[blankev](https://sourceforge.net/u/blankev/)** wrote on [Thursday, February 26, 2015](https://sourceforge.net/p/openemr/discussion/202504/thread/46d782ec/#d6f2):

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.

---

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [February 26, 2015, 2:09pm UTC](https://community.open-emr.org/t/receipt-for-payment/3179/9 "2015-02-26T14:09:20Z")

</div>

**[visolveemr](https://sourceforge.net/u/visolveemr/)** wrote on [Thursday, February 26, 2015](https://sourceforge.net/p/openemr/discussion/202504/thread/46d782ec/#2b23):

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:

with

```
$patdata = getPatientData($patient_id, 'fname,mname,lname,pubpid,street,city,state,postal_code,providerID,ss');

```

1. line 409:

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](http://www.visolve.com)  
 [services@visolve.com](mailto:services@visolve.com) | Phone: 408-850-2243  
Demo’s @ [ViSolve Demo Library](http://demo.visolve.com)_

---

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [February 26, 2015, 2:50pm UTC](https://community.open-emr.org/t/receipt-for-payment/3179/10 "2015-02-26T14:50:31Z")

</div>

**[blankev](https://sourceforge.net/u/blankev/)** wrote on [Thursday, February 26, 2015](https://sourceforge.net/p/openemr/discussion/202504/thread/46d782ec/#0925):

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)

---

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [February 26, 2015, 2:52pm UTC](https://community.open-emr.org/t/receipt-for-payment/3179/11 "2015-02-26T14:52:28Z")

</div>

**[blankev](https://sourceforge.net/u/blankev/)** wrote on [Thursday, February 26, 2015](https://sourceforge.net/p/openemr/discussion/202504/thread/46d782ec/#61d1/9dd2):

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.

---

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [February 26, 2015, 10:20pm UTC](https://community.open-emr.org/t/receipt-for-payment/3179/12 "2015-02-26T22:20:41Z")

</div>

**[ahmed159](https://sourceforge.net/u/ahmed159/)** wrote on [Thursday, February 26, 2015](https://sourceforge.net/p/openemr/discussion/202504/thread/46d782ec/#8fa1):

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.

---

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [February 26, 2015, 11:14pm UTC](https://community.open-emr.org/t/receipt-for-payment/3179/13 "2015-02-26T23:14:58Z")

</div>

**[ahmed159](https://sourceforge.net/u/ahmed159/)** wrote on [Thursday, February 26, 2015](https://sourceforge.net/p/openemr/discussion/202504/thread/46d782ec/#a14b/224b/fa8f):

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???
