Neha, Banka | #233 | Changed the drugorder api to consider active visits if input flag is set.