The assumption is that there will always be just one active order per orderable. Therefore, for a given order, care setting and concept that is being discontinued, we cannot have more than one active order. The moment I get a matching active order, the loop breaks. 
Now, if there are multiple active orders for a given concept and care setting, that is an error condition. I am not catching this condition here. Should we do that and throw an exception for this scenario?