# Test/Review: Newpatient form assigning provider ID

**URL:** <https://community.open-emr.org/t/test-review-newpatient-form-assigning-provider-id/6621>\
**Category:** OpenEMR Development\
**Created:** [February 19, 2016, 2:09am UTC](https://community.open-emr.org/t/test-review-newpatient-form-assigning-provider-id/6621 "2016-02-19T02:09:47Z")\
**Posts on this page:** 4\
**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 19, 2016, 2:09am UTC](https://community.open-emr.org/t/test-review-newpatient-form-assigning-provider-id/6621/1 "2016-02-19T02:09:47Z")

</div>

**[medfetch](https://sourceforge.net/u/medfetch/)** wrote on [Friday, February 19, 2016](https://sourceforge.net/p/openemr/discussion/202506/thread/9c5dc420/#0044):

Brady rebased my ophthal files with the latest codebase to this branch:

> **[ophthal/openEMR\_2](https://github.com/ophthal/openEMR_2/tree/current-work)**
>
> Contribute to openEMR\_2 development by creating an account on GitHub.

with the latest commit being:

> <https://github.com/ophthal/openEMR_2/commit/270b28a7bcc1f5f896fa2276ca8bd0ebc0bf54ff>

From the Help forums a problem was noted regarding the assignment of a providerID in the billng module. I had the same problem but it was an issue for me at the encounter/form level, so I added some code to the newencounter form to allow selection of a provider at this level. For example, a patient comes late. They are not “arrived”, but “arrived late” in the calendar by the front staff. No encounter is auto-created. It must be manually crreated and if not done by the provider him/herself, but say by a tech or MA/physician extender, no provider is assigned. This change allows a procviderID be assigned to a new encounter, or change on when editing it.

Here are the encounter summary form changes which affect two files:  
interface/forms/newpatient/common.php  
and interface/forms/newpatient/save.php

If anyone has time to test and review these newpatient files I would appreciate it.  
Thanks,  
Ray

---

<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 19, 2016, 2:21am UTC](https://community.open-emr.org/t/test-review-newpatient-form-assigning-provider-id/6621/2 "2016-02-19T02:21:11Z")

</div>

**[teryhill](https://sourceforge.net/u/teryhill/)** wrote on [Friday, February 19, 2016](https://sourceforge.net/p/openemr/discussion/202506/thread/9c5dc420/#f2e3):

There is code in the newest version of feesheet that I believe will handle this. It assigns the provider based on encounter, if no encounter it uses the logged on user if they are authorized, if not it uses the provider assigned in the patient file. Will this work for what you need?

Thanks

Terry

---

<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 19, 2016, 12:18pm UTC](https://community.open-emr.org/t/test-review-newpatient-form-assigning-provider-id/6621/3 "2016-02-19T12:18:53Z")

</div>

**[medfetch](https://sourceforge.net/u/medfetch/)** wrote on [Friday, February 19, 2016](https://sourceforge.net/p/openemr/discussion/202506/thread/9c5dc420/#f2e3/efa8):

That’s perfect Terry. I added it into the eye\_mag new.php file. Just what I needed. Thanks.

---

<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 19, 2016, 12:38pm UTC](https://community.open-emr.org/t/test-review-newpatient-form-assigning-provider-id/6621/4 "2016-02-19T12:38:33Z")

</div>

**[teryhill](https://sourceforge.net/u/teryhill/)** wrote on [Friday, February 19, 2016](https://sourceforge.net/p/openemr/discussion/202506/thread/9c5dc420/#1985):

The entire commit is here

> <https://github.com/openemr/openemr/commit/f4ebc71526125ae38d1debf4678d8d4432008a28>

Terry
