@djazayeri , @bmamlin i was suggesting that the order below should be rejected:

Order order = new Order();
//where orderType.javaClassName is DrugOrder.class.name
order.setOrderType(OrderService.getOrderTypeByName("Drug order"));