If I create a lab procedure order for a patient accidentally and then delete it,
the pending review still shows the tests.
From the mysql log, I can see that it is only updating the forms table and is setting deleted=1 when I delete the order, but it is not removing the entries from any of the procedure_ tables.
Is there any way to delete the required rows from the procedure_ tables so the tests don’t show up in the pending review page?
Hello Jyotsna
Following is the code change to delete the related procedure order under ‘Peding Review’ screen, once the procedure form in encounter screen is deleted. Do find the changes in this commit link.
It would be better to fix orders_results.php so that it checks the forms.deleted flag. Setting that flag (not physical deletion) is the normal way to delete any encounter form.
Hello Rod
As suggested, the orders_results.php file has been handled to skip the deleted order, instead of deleting the procedure from the table. Changes can be find in this commit link.