From ce2d26ce30f60559f9c74122849e9d396862090c Mon Sep 17 00:00:00 2001 From: jhflorey Date: Fri, 3 May 2024 10:14:35 -0400 Subject: [PATCH] Set value for dataHasBeenDestroyed flag when request data destruction --- siteManagerDashboard/participantWithdrawalForm.js | 1 + 1 file changed, 1 insertion(+) diff --git a/siteManagerDashboard/participantWithdrawalForm.js b/siteManagerDashboard/participantWithdrawalForm.js index d34edfe..15c3b67 100644 --- a/siteManagerDashboard/participantWithdrawalForm.js +++ b/siteManagerDashboard/participantWithdrawalForm.js @@ -546,6 +546,7 @@ const sendResponses = async (finalOptions, retainOptions, requestedHolder, sourc if (statusConceptId === fieldMapping.destroyDataStatus) { sendRefusalData[fieldMapping.dateDataDestroyRequested] = new Date().toISOString(); sendRefusalData[fieldMapping.dataDestroyCategorical] = fieldMapping.requestedDataDestroyNotSigned; + sendRefusalData[fieldMapping.dataHasBeenDestroyed] = fieldMapping.no; updateWhoRequested(sendRefusalData, fieldMapping.whoRequestedDataDestruction, fieldMapping.whoRequestedDataDestructionOther) } if (statusConceptId === fieldMapping.revokeHIPAAOnly) {