Internal error, no drug ID specified! When "Save and Dispense" the drug

Situation
I am facing the error at the time of “Save and Dispense” drug.
Internal error, no drug ID specified!

I dont know why it is showing this error while I added drug properly. I think either it is not defined drug id when added drug or not getting drug id at the time of save and dispense.

I would be very thankful please suggest the solution.

OpenEMR Version
I’m using OpenEMR version 7.0.0 (2)

Hello @callsheeraz

Not knowing how you set up your Pharmacy Diapensary module, it’s difficult to tell how to answer your question. But let me say that the module is very complex and not at all intuitive to configure. And if even one step is omitted the module will not work as expected.

Be sure that you have performed every step in the config as described in the wiki doc:
https://www.open-emr.org/wiki/index.php/Pharmacy_Dispensary_Module

and be sure to refer to the page with instructions about ‘templates’ that is linked to in the section, ‘Add Medications to Dispensary’:
https://www.open-emr.org/wiki/index.php/Using_OpenEMR_Inventory-Dispensary_Module_for_Non-_Pharmaceutical_Products

It has been a while since I’ve set up the Pharm Disp module but an error about a missing drug ID sounds like it could be a problem in the template for a particular dosage, or in the inventory’s tracking mechanism where they monitor stock levels of a medication on hand.

Good luck and feel free to come back with more detailed questions.

  • Harley