Skip to content

Commit

Permalink
Fix new vl order NPE
Browse files Browse the repository at this point in the history
  • Loading branch information
makombe committed May 9, 2024
1 parent 406e78f commit 1ba7233
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public CalculationResultMap evaluate(Collection<Integer> cohort, Map<String, Obj
if (vlOrders.size() > 0) {
Integer latestVlOrder = Collections.max(vlOrders);
if (dueForVl.contains(ptId) && orderService.getOrder(latestVlOrder).isVoided()
&& (orderService.getOrder(latestVlOrder).getVoidReason().equalsIgnoreCase("Sample not taken")
&& orderService.getOrder(latestVlOrder).getVoidReason() != null && (orderService.getOrder(latestVlOrder).getVoidReason().equalsIgnoreCase("Sample not taken")
|| orderService.getOrder(latestVlOrder).getVoidReason().equalsIgnoreCase("Collect new sample")
|| orderService.getOrder(latestVlOrder).getVoidReason().equalsIgnoreCase("Sample rejected")
|| orderService.getOrder(latestVlOrder).getVoidReason().equalsIgnoreCase("No reagents"))) {
Expand Down

0 comments on commit 1ba7233

Please sign in to comment.