While scheduling an appointment, after entering the patient, if I hit save button twice, two appointments was scheduled for the same patient, is there any way to avoid this?

While scheduling an appointment, after entering the patient, if I hit save button twice, two appointments was scheduled for the same patient, is there any way to avoid this?

Thanks in advance!!

I have this as well. But the good news it creates one encounter only!

Also make sure to enter each provider working schedule, so it can ask you that the provider is not available.

File a bug issue on github and someone will work on it when they’ve got time, or sponsor one of the developers to fix it and contribute it back to OpenEMR if its a high priority, or you can fix it yourself and contribute it back :slight_smile:

Thanks for using OpenEMR and welcome to the community!

looks like this bug was the result of this fix and one hack would be to move the $('#form_save').attr('disabled', false); in the find_available() function to the final line of that script, after the dlgopen(). That’s because if nothing is selected from the find available popup then you end up back in the add appt popup and can still choose an appt and then save it.

1 Like