Probably in the API we could have had a convenience method like getActiveOrder(Concept).
Or you could use getOrderHistoryByConcept(patient, drug.getConcept()) and pick the first item in the list since they are sorted with latest first but you would need to check if it active