if (!isNewTestOrder(testOrder)) {
return openMRSTestOrder.getConcept();
}
EncounterTransaction.Concept concept = testOrder.getConcept();
Concept conceptByUuid = conceptService.getConceptByUuid(concept.getUuid());
<BUG>if(conceptByUuid == null){
</BUG>
throw new APIException("No such Concept : " + testOrder.getConcept().getName());
}
return conceptByUuid;

if (!isNewTestOrder(testOrder)) {
return openMRSTestOrder.getConcept();
}
EncounterTransaction.Concept concept = testOrder.getConcept();
Concept conceptByUuid = conceptService.getConceptByUuid(concept.getUuid());
if (conceptByUuid == null) {
throw new APIException("No such Concept : " + testOrder.getConcept().getName());
}
return conceptByUuid;
