Please follow the following steps to reproduce the issue:

1) Select disease and a test and save OPD
2) Click on Delete button
3) "Medicine Dispensed , Can not Delete Data" validation appears

This validation needs to be changed since no medicines are selected and only tests are selected.