Application Name: Platform Version Number: 2.0.1
Question: Hi! I’m very new to OpenMRS and as the title suggests I encountered the following error: The method getAllOrderTypes() is undefined for the type OrderService from the code
for (OrderType ot : orderService.getAllOrderTypes()) { if(ot.getName().equalsIgnoreCase(DrugOrderConcepts.ORDER_TYPE_DRUG_ORDER.getConceptName())) { orderType = ot; break; } }
I checked and I have the openmrs-web-2.0.1.jar in my build path. Am I missing something else?
P.S. I also tried using getOrderTypes(true)
instead and it worked but I’m aware that it’s already deprecated.