Code review for Defaulting the provider

teryhill wrote on Tuesday, August 11, 2015:

I took Sherwin’s Idea and this is what I came up with.
This looks at the encounter and if there is a provider assigned to it it uses that information, this would be an encounter genereated from the appoiment. If there is no provider in the encounter, a walk-in, then it looks to the patient file and gets it from there. I have tested it on two customers one that has 2 providers and one that does batching from nursing home rounds.

Thanks

Terry

teryhill wrote on Friday, August 14, 2015:

Made a change to check the current user and see if they are authorized.then use them

bradymiller wrote on Sunday, August 23, 2015:

Hi Terry,
Regarding the code, I posted a question on github.
-brady
OpenEMR