Situation
When creating and printing prescriptions, the current logged in user is being used for the provider rather than what is selected in the drop down menu
OpenEMR Version
7.0.2 Patch 3
Browser:
I’m using: Firefox
Operating System
I’m using: Ubuntu 24.04
Search
Did you search the forum for similar questions? Yes
Logs
Did you check the logs? yes
Was there anything pertinent in them? no
Please paste them here (surround with three backticks (```) for readability.
You can also turn on User Debugging under Administration->Globals->Logging User Debugging Options=>All
After doing some looking it looks like the problem is when the prescription is being created that it using the currently logged in user for the provider rather than what is selected in the provider drop down menu
Here is an example using commit fdb4b5d0395399e8e61cfd837939996f249bfa0a
where the provider shows up after creation as administrator administrator rather than doctor one.
Thank you for the detailed investigation. I’ll see if I can reproduce this. I looked at the changes in general_edit.html.twig and the provider_id is still being populated correctly. I’m assuming the problem is likely in the C_Prescription.class.php. If I can reproduce it, I’ll open an issue on our development branch and we’ll get it fixed in time for the next release.