reviewNM1.html 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. <h3>Title</h3>
  2. <table>
  3. <tr>
  4. <th id="participantField">patientCode</th>
  5. <td id="participantCode">Loading1b</td>
  6. </tr>
  7. <tr>
  8. <th id="visitField">visitCode</th>
  9. <td id="visitCode">Loading2</td>
  10. </tr>
  11. </table>
  12. <div id="organ3">
  13. <table>
  14. <tr>
  15. <td id="CT_organ3"></td>
  16. <td id="PET_organ3"></td>
  17. <td id="SUVall_organ3"></td>
  18. <td id="SUVparticipant_organ3"></td>
  19. </tr>
  20. <tr>
  21. <td id="CT_organ4"></td>
  22. <td id="PET_organ4"></td>
  23. <td id="SUVall_organ4"></td>
  24. <td id="SUVparticipant_organ4"></td>
  25. </tr>
  26. <tr>
  27. <td id="CT_organ5"></td>
  28. <td id="PET_organ5"></td>
  29. <td id="SUVall_organ5"></td>
  30. <td id="SUVparticipant_organ5"></td>
  31. </tr>
  32. </table>
  33. </div>
  34. <div id="debugDiv">
  35. <textarea id="debugCode"></textarea>
  36. </div>
  37. <script type="text/javascript">
  38. let searchParams = new URLSearchParams(window.location.search);
  39. //update this to pick crfRef from url
  40. let participantCode=searchParams.get('participantCode');
  41. let visitCode=searchParams.get('visitCode');
  42. document.getElementById("participantCode").innerHTML=participantCode;
  43. document.getElementById("visitCode").innerHTML=visitCode;
  44. let project=LABKEY.ActionURL.getContainer();
  45. document.getElementById("debugCode").value+='\n'+project;
  46. let server="https://merlin.fmf.uni-lj.si/labkey";
  47. let basePath=server+"/_webdav/";
  48. basePath+=project;
  49. basePath+="/@files/preprocessedImages/";
  50. basePath+=participantCode+"/"+visitCode+"/";
  51. document.getElementById("debugCode").value+='\n'+basePath;
  52. let studyPath=server+project;
  53. //let divImg=document.getElementById("organ3_PET");
  54. let organs=["3","4","5"];
  55. let im=["PET","CT"];
  56. for (let i=0;i<organs.length;i++){
  57. let organ=organs[i];
  58. let type="PET";
  59. let img=document.createElement('img');
  60. let imgSrc=basePath+participantCode+"-"+visitCode+"_"+type+"_"+organ+"_v5.png";
  61. img.src=imgSrc;
  62. img.width="300";
  63. document.getElementById(type+"_organ"+organ).appendChild(img);
  64. type="CT";
  65. let img1=document.createElement('img');
  66. let img1Src=basePath+participantCode+"-"+visitCode+"_"+type+"_"+organ+"_v5.png";
  67. img1.src=img1Src;
  68. img1.width="300";
  69. document.getElementById(type+"_organ"+organ).appendChild(img1);
  70. }
  71. LABKEY.requiresScript('/vis/genericChart/genericChartHelper.js',
  72. function(){LABKEY.vis.GenericChartHelper.loadVisDependencies(plotAll);});
  73. LABKEY.requiresScript('/vis/genericChart/genericChartHelper.js',
  74. function(){LABKEY.vis.GenericChartHelper.loadVisDependencies(plotParticipant);});
  75. </script>