From 599afb0d69cf24bac54d38a75e909dffe4af6e89 Mon Sep 17 00:00:00 2001 From: pegahtah Date: Wed, 29 Sep 2021 12:24:25 -0400 Subject: [PATCH] added the unable to obtain functionality back --- src/main/java/org/broadinstitute/dsm/route/PatchRoute.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/org/broadinstitute/dsm/route/PatchRoute.java b/src/main/java/org/broadinstitute/dsm/route/PatchRoute.java index dbd54fba0..f9615660b 100644 --- a/src/main/java/org/broadinstitute/dsm/route/PatchRoute.java +++ b/src/main/java/org/broadinstitute/dsm/route/PatchRoute.java @@ -42,6 +42,7 @@ import java.util.*; import java.util.concurrent.CopyOnWriteArrayList; + import static org.broadinstitute.ddp.db.TransactionWrapper.inTransaction; //Class needs to be refactored as soon as possible!!! @@ -522,6 +523,8 @@ else if (patch.getNameValue().getName().equals("t.tissueReturnDate")) { } } else if (patch.getNameValue().getName().equals("oD.unableToObtain") && (boolean) patch.getNameValue().getValue()) { + nameValues.add(setAdditionalValue("oD.request", new Patch(patch.getId(), PARTICIPANT_ID, + null, patch.getUser(), patch.getNameValue(), patch.getNameValues(), patch.getDdpParticipantId()), "unableToObtain")); } else if (patch.getNameValue().getName().equals("oD.unableToObtain") && !(boolean) patch.getNameValue().getValue()) { Boolean hasReceivedDate = OncHistoryDetail.hasReceivedDate(patch);