24. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 7/17/2018 6:16:28 PM Eastern Daylight Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.

24.1 Files compared

# Location File Last Modified
1 RAMS-2.3.0.zip\RAMS-2.3.0\SiteAssets\js rams-environment.js Mon May 14 01:50:48 2018 UTC
2 RAMS-2.3.0.zip\RAMS-2.3.0\SiteAssets\js rams-environment.js Tue Jul 17 20:55:04 2018 UTC

24.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 8 392
Changed 7 26
Inserted 0 0
Removed 0 0

24.3 Comparison options

Whitespace
Character case Differences in character case are significant
Line endings Differences in line endings (CR and LF characters) are ignored
CR/LF characters Not shown in the comparison detail

24.4 Active regular expressions

No regular expressions were active.

24.5 Comparison detail

  1   /**
  2    * @fileOv erview ram s-environm ent provid es common  environmen t variable s used by  many pages  and scrip ts.
  3    * @versio n 2.3.0
  4    */
  5  
  6   // JSHINT  {var} is d efined but  never use d.
  7   // jshint  -W098
  8   var protoc ol = "http s://";
  9   var port =  " PORT ";
  10  
  11   var report sServerNam e = "";
  12   var mySite sServerNam e = "";
  13   var consol eLoggingEn abled = fa lse;
  14  
  15   var RAMSVe rsion = "2 .3.0";
  16   var RAMSCo pyright =  " © 2 016-2018 V A RAMS (v"  + RAMSVer sion + ")  ";
  17   var RAMSAp p = "RAMS- " + RAMSVe rsion;
  18   var env =  window.loc ation.host name;
  19   var siteCo llection =  "/sites/I RBApplicat ions/";
  20  
  21   var dynami cSharepoin tURL = "";
  22   var dynami cWebServic eURL = "";
  23  
  24   var dynami cReportURL  = "";
  25   var RAMS =  {};
  26   var Roles  =  [ "Inve stigator",
  27                   "Co-I nvestigato r", "Sub-I nvestigato r", "Biost atistician ", "Clinic al Coordin ator", "Co llaborator ",
  28                   "CSP  Program Ma nager", "D ata Manage r", "Lab M anager", " Lab Techni cian", "Na tional Stu dy Coordin ator",
  29                   "Nurs e Assessor ", "Pharma cist", "Ph armacy Tec hnician",  "Regulator y Coordina tor", "Res earch Assi stant",
  30                   "Rese arch Nurse ", "Statis tician", " Study Coor dinator"];
  31  
  32  
  33   if ((env.i ndexOf("id ev") !== - 1) || (env .indexOf(" itst") !==  -1)) {
  34      protoco l = "https ://";
  35      port =  "8888";
  36      dynamic Sharepoint URL = prot ocol + env  + siteCol lection;
  37      dynamic WebService URL = prot ocol + env  + ":" + p ort + "/"  + RAMSApp  + "/";
  38   } else {
  39      dynamic Sharepoint URL = prot ocol + env  + siteCol lection;
  40      dynamic WebService URL = prot ocol + env  + ":" + p ort + "/"  + RAMSApp  + "/";
  41   }
  42  
  43   if (env.in dexOf("ide v") !== -1 ) {
  44        reportsSer verName =  " URL ;
  45        mySitesSer verName =  protocol +  " DNS ";
  46      console LoggingEna bled = tru e;
  47   } else if  (env.index Of("itst")  !== -1) {
  48        reportsSer verName =  " DNS ";
  49        mySitesSer verName =  protocol +  " DNS ";
  50      console LoggingEna bled = tru e;
  51   } else if  (env.index Of("sqa")  !== -1) {
  52        reportsSer verName =  " DNS ";
  53        mySitesSer verName =  protocol +  " DNS ";
  54      console LoggingEna bled = tru e;
  55   } else if  (env.index Of("ppd")  !== -1) {
  56        reportsSer verName =  " DNS ";
  57        mySitesSer verName =  protocol +  " DNS ";
  58   } else {
  59        reportsSer verName =  " DNS ";
  60        mySitesSer verName =  protocol +  " DNS ";
  61   }
  62  
  63   dynamicRep ortURL = p rotocol +  reportsSer verName +  "/Reports/ Pages/Fold er.aspx?It emPath=%2f RAMS+Repor ts&ViewMod e=List";
  64  
  65   // Define  environmen tal consta nts for RA MS web-app s.
  66   window.RAM S = window .RAMS || { };
  67   RAMS.Envir onment = {
  68      SharePo int : {
  69         URL  : dynamicS harepointU RL,
  70         Cent ralIRBSite  : "Centra l IRB",
  71         List  : {}
  72      // Colu mn mapping s defined  below.
  73      },
  74      WebServ ice : {
  75         URL  : dynamicW ebServiceU RL
  76      // Form  mappings  defined be low.
  77      },
  78      Reports  : {
  79         URL  : dynamicR eportURL
  80      },
  81      cirbRep orts : {
  82         URL  : dynamicS harepointU RL + "Site Assets/CIR B_Reports. html"
  83      },
  84  
  85      TMS : {
  86           tmsusernam e : "
A I ",
  87         tmsp wd : "AI"
  88      }
  89  
  90   };
  91  
  92   // /////// /////////
  93   // REPLACE  HERE //
  94   // /////// /////////
  95   RAMS.Envir onment.Sha rePoint.Li st.Applica tion = {
  96      Facilit iesLookupI d : "Facil itiesLooku pId",
  97      SiteLoo kupId : "S iteLookupI d",
  98      LinkToA pplication  : "Linkto Applicatio n",
  99      StudyId  : "Study_ ID",
  100      Princip alInvestig atorId : " PrincipalI nvestigato rId",
  101      CoPrinc ipalInvest igatorId :  "CoPIId",
  102      Primary ReviewersI d : "Prima ryReviewer sId",
  103      LocalSi teLiaisons Id : "Part icipatingS iteLiaison Id",
  104      Expedit edCategori es : [ "Dr ugs/Device s without  need for I ND/IDE", " Minimal dr aw of bloo d samples" ,
  105         "Non -invasivel y collecte d biologic al specime ns", "Non- invasively  collected  data from  clinical  practice",
  106         "Dat a/document s collecte d for non- research",  "Voice/vi deo/image  for resear ch",
  107         "Beh avioral ch aracterist ics or sur vey/interv iew/progra m evaluati on/QA"
  108      ],
  109      ExemptC ategories  : [ "Educa tional Set tings", "E ducational  Tests", " Public Off icials", " Existing D ata",
  110         "Dem onstration ", "Food"
  111      ],
  112      Offsite WaiverRequ ests : "Of fsiteWaive rRequests" ,
  113      Adverse Reportable Event : "A dverseRepo rtableEven t",
  114      Deviati onReportab leEvent :  "Deviation Reportable Event",
  115      IACUCRe viewRequir ed : "IACU CReviewReq uired",
  116      IRBRevi ewRequired  : "IRBRev iewRequire d",
  117      RDCRevi ewRequired  : "RDCRev iewRequire d",
  118      SRSRevi ewRequired  : "SRSRev iewRequire d",
  119      SC1Revi ewRequired  : "SC1Rev iewRequire d",
  120      SC2Revi ewRequired  : "SC2Rev iewRequire d",
  121      SC3Revi ewRequired  : "SC3Rev iewRequire d"
  122   };
  123  
  124   RAMS.Envir onment.Sha rePoint.Li st.Committ eeStatus =  {
  125      APPROVE D: 1,
  126      APPROVE DWITHMAJOR MODIFICATI ONS: 2,
  127      APPROVE DWITHMINOR MODIFICATI ONS: 3,
  128      AWAITIN GREVISIONS : 4,
  129      CLOSED:  5,
  130      DISAPPR OVED: 6,
  131      DRAFT:  7,
  132      SUBMITT ED: 8,
  133      SUSPEND ED: 9,
  134      UNDERRE VIEW: 10,
  135      APPROVE DCHOICE: " Approved",
  136      APPROVE DWITHMAJOR MODIFICATI ONSCHOICE:  "Approved  with Majo r Modifica tions",
  137      APPROVE DWITHMINOR MODIFICATI ONSCHOICE:  "Approved  with Mino r Modifica tions",
  138      AWAITIN GREVISIONS CHOICE: "A waiting Re visions",
  139      CLOSEDC HOICE: "Cl osed",
  140      DISAPPR OVEDCHOICE : "Disappr oved",
  141      DRAFTCH OICE: "Dra ft",
  142      SUBMITT EDCHOICE:  "Submitted ",
  143      SUSPEND EDCHOICE:  "Suspended ",
  144      UNDERRE VIEWCHOICE : "Under R eview"
  145   };
  146  
  147   // The RAM S.Environm ent.WebSer vice.Form  represents  the curre nt active  forms used  by the RA MS applica tion. Thes e are the
  148   // forms t hat will b e created  when submi tting a ne w study ap plication  or creatin g a child  applicatio n.
  149   RAMS.Envir onment.Web Service.Fo rm = {
  150      Parent  : 59,
  151      59 : "P arent",
  152      Local :  60,
  153      60 : "L ocal",
  154      Adverse  : 61,
  155      61 : "A dverse",
  156      ContRev iew : 62,
  157      62 : "C ontReview" ,
  158      Closeou t : 63,
  159      63 : "C loseout",
  160      Adminis trativeUpd ate : 64,
  161      64 : "A dministrat iveUpdate"
  162   };
  163  
  164   // /////// /////////
  165   // REPLACE  HERE //
  166   // /////// /////////
  167  
  168   /**
  169    * This is  a common  function u sed to san itize data  entered b y users on  HTML page s. It make s sure tha t data ent ered by
  170    * the use r that has  "<" or "> " symbols,  indicatin g a "<scri pt>" or ht ml, is pro perly esca ped so tha t it is no t
  171    * executa ble.
  172    * 
  173    * @param  {json} the  json stri ng to be s anitized.  IT can con tain any n umber of f ields in t he json st ring and a ll will be
  174    *            sanitiz ed.
  175    */
  176   function g etFixedStr ing(json)  {
  177      var jso nString =  "";
  178  
  179      if (typ eof json ! == "undefi ned") {
  180         json String = J SON.string ify(json,  replacer);
  181         retu rn JSON.pa rse(jsonSt ring);
  182      } else  {
  183         retu rn json;
  184      }
  185   }
  186  
  187   /**
  188    * verifie s that the  val is a  string and  replaces  "<" with " &lt;" and  ">" with " &gt;"
  189    * @param  name Strin g the name  if the fi eld to be  sanitized
  190    * @param  val String  the value  to be san itized and  returned
  191    * @return s val Stri ng the san itized val ue
  192    */
  193   function r eplacer(na me, val) {
  194      // conv ert javasc ript or ht ml special  character s to strin g
  195      if (typ eof val == = "string"  && (val.i ndexOf("<" ) !== -1 | | val.inde xOf(">") ! == -1)) {
  196         val  = val.repl ace(/</g,  "&lt;");
  197         val  = val.repl ace(/>/g,  "&gt;");
  198         retu rn val;
  199      } else  {
  200         retu rn val; //  return as  is
  201      }
  202   }
  203  
  204   /**
  205    * used to  display t he RAMS ve rsion numb er from th e version  link in th e footer. 
  206    */
  207   function d isplayVers ion() {
  208      alert(" The RAMS a pplication  version i s " + RAMS Version +  ".");
  209   }