For Ex --> 4 medicines have been prescribed from OPD, and from the "regular patient tab", only 2 medicines have been dispensed and the other 2 have been kept at 0 dispense qty.
Then in the Dispense tab, only 2 dispensed medicines should show the green alert.