<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="">
Dear LorisDev team,
<div class=""><br class="">
</div>
<div class="">After upgrading to Loris 23 I am not able to insert Visits using the APIs. I updated the payload for the creation of visits but I’m getting the following error:</div>
<div class=""><br class="">
</div>
<div class="">===</div>
<div class="">
<div style="color: rgb(54, 54, 54); background-color: rgb(255, 255, 255); font-family: Menlo, Monaco, "Courier New", monospace; line-height: 18px; white-space: pre;" class="">
<div class=""><span style="color: rgb(44, 44, 44);" class="">{</span></div>
<div class=""><span style="color: rgb(9, 89, 132);" class="">"error"</span><span style="color: rgb(44, 44, 44);" class="">:</span>
<span style="color: rgb(162, 86, 55);" class="">"You can`t create candidates visit for that site"</span></div>
<div class=""><span style="color: rgb(44, 44, 44);" class="">}</span></div>
</div>
</div>
<div class="">===</div>
<div class=""><br class="">
</div>
<div class="">This is my request and payload:</div>
<div class=""><br class="">
</div>
<div class="">===</div>
<div class=""><span style="color: rgb(19, 19, 19); font-family: OpenSans, Helvetica, Arial, sans-serif; font-variant-ligatures: normal; orphans: 2; white-space: pre-wrap; widows: 2; background-color: rgb(255, 255, 255);" class=""><a href="https://ipmsa-loris.bic.mni.mcgill.ca/api/v0.0.3//candidates/559153/w024" class="">https://ipmsa-loris.bic.mni.mcgill.ca/api/v0.0.3//candidates/559153/w024</a></span></div>
<div class=""><span style="color: rgb(19, 19, 19); font-family: OpenSans, Helvetica, Arial, sans-serif; font-variant-ligatures: normal; orphans: 2; white-space: pre-wrap; widows: 2; background-color: rgb(255, 255, 255);" class=""><br class="">
</span></div>
<div class=""><span style="font-variant-ligatures: normal; orphans: 2; widows: 2; background-color: rgb(255, 255, 255);" class="">
<div style="line-height: 18px;" class="">
<div style="color: rgb(54, 54, 54); font-family: Menlo, Monaco, "Courier New", monospace; white-space: pre;" class="">
<span style="color: rgb(44, 44, 44);" class="">{</span></div>
<div style="color: rgb(54, 54, 54); font-family: Menlo, Monaco, "Courier New", monospace; white-space: pre;" class="">
<span style="color: rgb(9, 89, 132);" class="">"CandID"</span><span style="color: rgb(44, 44, 44);" class="">:</span>
<span style="color: rgb(162, 86, 55);" class="">"559153"</span><span style="color: rgb(44, 44, 44);" class="">,</span>
</div>
<div style="color: rgb(54, 54, 54); font-family: Menlo, Monaco, "Courier New", monospace; white-space: pre;" class="">
<span style="color: rgb(9, 89, 132);" class="">"Visit"</span><span style="color: rgb(44, 44, 44);" class="">:</span>
<span style="color: rgb(162, 86, 55);" class="">"w024"</span><span style="color: rgb(44, 44, 44);" class="">,</span>
</div>
<div style="color: rgb(54, 54, 54); font-family: Menlo, Monaco, "Courier New", monospace; white-space: pre;" class="">
<span style="color: rgb(9, 89, 132);" class="">"Site"</span><span style="color: rgb(44, 44, 44);" class="">:</span>
<span style="color: rgb(162, 86, 55);" class="">"111-RWA-1"</span><span style="color: rgb(44, 44, 44);" class="">,</span>
</div>
<div style="color: rgb(54, 54, 54); font-family: Menlo, Monaco, "Courier New", monospace; white-space: pre;" class="">
<span style="color: rgb(9, 89, 132);" class="">"Battery"</span><span style="color: rgb(44, 44, 44);" class="">:</span>
<span style="color: rgb(162, 86, 55);" class="">"Experimental"</span><span style="color: rgb(44, 44, 44);" class="">,</span>
</div>
<div class=""><span style="color: rgb(9, 89, 132); font-family: Menlo, Monaco, "Courier New", monospace; white-space: pre;" class="">"Project"</span><span style="color: rgb(44, 44, 44); font-family: Menlo, Monaco, "Courier New", monospace; white-space: pre;" class="">:</span>
<font color="#a25637" face="Menlo, Monaco, Courier New, monospace" class=""><span style="caret-color: rgb(162, 86, 55); white-space: pre;" class="">“REMOVED</span></font><span style="color: rgb(162, 86, 55); font-family: Menlo, Monaco, "Courier New", monospace; white-space: pre;" class="">"</span></div>
<div style="color: rgb(54, 54, 54); font-family: Menlo, Monaco, "Courier New", monospace; white-space: pre;" class="">
<span style="color: rgb(44, 44, 44);" class="">}</span></div>
</div>
</span></div>
<div class="">===</div>
<div class=""><br class="">
</div>
<div class="">The user accessing this end-point was only created for that specific site. Additionally, I don’t see any logs in apache.</div>
<div class=""><br class="">
</div>
<div class="">Best,</div>
<div class="">Alfredo.</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></body>
</html>