<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
Hi Cécile,
<div class=""><br class="">
</div>
<div class="">I did used the script for deleting images given an uploadId. I haven’t done any manual deletion. <span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class="">Happy to show you the state of the database if this is helpful.</span></div>
<div class=""><br class="">
</div>
<div class="">I will try deleting from the tarchive table and let you know.</div>
<div class=""><br class="">
</div>
<div class="">Best,</div>
<div class="">Alfredo.<br class="">
<div><br class="">
<blockquote type="cite" class="">
<div class="">On Nov 2, 2021, at 2:02 PM, Cecile Madjar <<a href="mailto:cecile.madjar@mcin.ca" class="">cecile.madjar@mcin.ca</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<p style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">
<span style="padding: 3px 10px; border-top-left-radius: 5px; border-top-right-radius: 5px; border-bottom-right-radius: 5px; border-bottom-left-radius: 5px; color: rgb(255, 255, 255); font-weight: bold; display: inline-block; background-color: rgb(255, 0, 0);" class="">        External
 Email - Use Caution        </span></p>
<div style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">
<br class="webkit-block-placeholder">
</div>
<div dir="ltr" style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">
Hi Alfredo,
<div class=""><br class="">
</div>
<div class="">How come there is no upload associated with this scan? I don't see how it is possible for a DICOM study unless you did some manual deletion instead of running the delete script?</div>
<div class=""><br class="">
</div>
<div class="">You could always manually delete the entry for the mislabelled scan in the tarchive table. Usually, deleting from tarchive will also delete the attached entries present in tarchive_series and tarchive_files.</div>
<div class=""><br class="">
</div>
<div class="">Hope this helps,</div>
<div class=""><br class="">
</div>
<div class="">Cécile</div>
</div>
<br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">
<div class="gmail_quote" style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;">
<div dir="ltr" class="gmail_attr">On Mon, Nov 1, 2021 at 2:10 PM Morales Pinzon, Alfredo <<a href="mailto:AMORALESPINZON@bwh.harvard.edu" class="">AMORALESPINZON@bwh.harvard.edu</a>> wrote:<br class="">
</div>
<blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); padding-left: 1ex;">
Dear LorisDev team,<br class="">
<br class="">
I uploaded some MRI visits to a dataset using the wrong combination of PSCID and CandId. LORIS detected this, and put the scans in the "MRI Violated Scans" with this comment "PSCID and CandID of the image mismatch”.<span class="Apple-converted-space"> </span><br class="">
<br class="">
I would like to remove this MRI visit but I cannot remove them so that I can reupload them. On one side I don't see an uploadId that I can get to remove the scans. On the other hand, I resolved the problem using the "rejected option" but I cannot re-upload
 the visits. When re-uploading I am getting the following error:<br class="">
<br class="">
===<br class="">
The user 'lorisadmin' has already inserted this study.<span class="Apple-converted-space"> </span><br class="">
The unique study ID is '1.2.826.0.2.202387.200189250087163090034121192183204101173055193'.<br class="">
This is the information retained from the first time the study was inserted:<br class="">
<br class="">
* Taken from dir                   :    /tmp/ImagingUpload-17-33-ica8OF<br class="">
* Archive target location          :    /xxx/loris_data/xxx/data/tarchive/DCM__ImagingUpload-17-33-ica8OF.tar<br class="">
* Name of creating host            :    1xx.xxx.xxx.49<br class="">
* Name of host OS                  :    Linux<br class="">
* Created by user                  :    lorisadmin<br class="">
* Archived on                      :    2021-10-21 17:36:20<br class="">
* dicomSummary version             :    1<span class="Apple-converted-space"> </span><br class="">
* dicomTar version                 :    1 <span class="Apple-converted-space"> </span><br class="">
* md5sum for DICOM tarball         :    aeb2fb07433d5ee6bd1fdf43f653c236  ImagingUpload-17-33-ica8OF.tar<span class="Apple-converted-space"> </span><br class="">
* md5sum for DICOM tarball gzipped :    670ce2246efc599566344d0a4101eb50  ImagingUpload-17-33-ica8OF.tar.gz<span class="Apple-converted-space"> </span><br class="">
* md5sum for complete archive      :    47953dd83530d53b670e12ec98494dbb  DCM__ImagingUpload-17-33-ica8OF.tar<br class="">
===<br class="">
<br class="">
How can I remove those scans so that I can reupload them.<br class="">
<br class="">
Best,<br class="">
Alfredo.<br class="">
The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Mass General Brigham Compliance HelpLine at<span class="Apple-converted-space"> </span><a href="http://secure-web.cisco.com/1dC3022UrfJ1Tg4EQfcDedkjYirxCoHF6HZar8-G92PVZPaA0r43-PnuZauOvSLmGxVnuN5coWnJ7ax3PrArgWYLkH-sZwar_zx8ONPDJFqykzweHRMor5eXjWL4zV_-CkYmzTSv0ebTNoV1jGd4UfAEL6RodxIPuF1csrsrBG0M9TJuewXyi7mArjQ45PRjgN21P--ZbUycg57B9Hr1rAYqloMdQRASjGwlc_I7HhDRWwqZMUsrMr8EViNSu5adlKzbb2G9aE--MVh4uZKojyA/http%3A%2F%2Fwww.massgeneralbrigham.org%2Fcomplianceline" rel="noreferrer" target="_blank" class="">http://www.massgeneralbrigham.org/complianceline</a><span class="Apple-converted-space"> </span>.
 If the e-mail was sent to you in error but does not contain patient information, please contact the sender and properly dispose of the e-mail.<br class="">
Please note that this e-mail is not secure (encrypted).  If you do not wish to continue communication over unencrypted e-mail, please notify the sender of this message immediately.  Continuing to send or respond to e-mail after receiving this message means
 you understand and accept this risk and wish to continue to communicate over unencrypted e-mail.<span class="Apple-converted-space"> </span><br class="">
<br class="">
_______________________________________________<br class="">
Loris-dev mailing list<br class="">
<a href="mailto:Loris-dev@bic.mni.mcgill.ca" target="_blank" class="">Loris-dev@bic.mni.mcgill.ca</a><br class="">
<a href="https://secure-web.cisco.com/1UBngX2kYVGkdtEtcFhhJw-t0DrdD5T0rRSFU3jMMntPxUciuera8xIAbOWnhiE4Jqvb3vJOT4KRVEE72dzjNmDqxVgIOALEuoxH8l9Eo0cooEakq8xqzmOg4qINyyQZyoy1w040f0Krd6QV2UB3l6Oz7zIsIcoi268BTr9mbI-NlhIQMgvVHam41L7La6x7ijTZeQZeJfrvt4NddWX6uOUzL9MF9WyXApCqlzLC7EH8fANEyq9aRIK-StN-GMPOO3r5_f02EEItUWuLpcjY3Vw/https%3A%2F%2Fmailman.bic.mni.mcgill.ca%2Fmailman%2Flistinfo%2Floris-dev" rel="noreferrer" target="_blank" class="">https://mailman.bic.mni.mcgill.ca/mailman/listinfo/loris-dev</a></blockquote>
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
<div>The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Mass General Brigham Compliance HelpLine at http://www.massgeneralbrigham.org/complianceline . If the e-mail was sent to you in error but does not contain patient information, please contact the sender and properly dispose of the e-mail.</div><br>
<p class="MsoNormal">Please note that this e-mail is not secure
(encrypted).  If you do not wish to continue communication over
unencrypted e-mail, please notify the sender of this message immediately.  Continuing to send or respond to e-mail after receiving this message means you
understand and accept this risk and wish to continue to communicate over
unencrypted e-mail.  </p></body>
</html>