Przeglądaj źródła

Adding role as an html parameter

Andrej Studen 3 lat temu
rodzic
commit
647a5ff2c9
1 zmienionych plików z 2 dodań i 9 usunięć
  1. 2 9
      views/visit.html

+ 2 - 9
views/visit.html

@@ -53,7 +53,6 @@ function init(){
 	//update this to pick crfRef from url
 	let crfRef=searchParams.get('entryId');
 	//let formSetupQuery=searchParams.get('formSetupQuery');	
-	let registrationQueryId=searchParams.get('registrationQueryId');
 	document.getElementById("crfRefId").innerHTML=crfRef;
 
 
@@ -61,14 +60,9 @@ function init(){
 	//config is part of crfVisit.js
 	//will this change if we are in views?
 	//config.review=true;
-	config.reviewMode=searchParams.get("reviewMode");
-	if (config.reviewMode=="EDIT") delete config.reviewMode;
 
 	//where to get ParticipantId
-	config.registrationQueryId=registrationQueryId;
-	config.registrationParticipantIdField="participantCode";
 	//pick this from study properties
-	config.participantField="PatientId";
 	config.masterForm="visitForm";
 	
 	config.document=document;
@@ -76,12 +70,11 @@ function init(){
 	config.debugDiv="debugDiv";
 	config.debugId="formStatus";
 	config.crfRefId="crfRefId";
+	config.registrationParticipantIdField="participantCode";
 	config.containerPath= LABKEY.ActionURL.getContainer();
 	//config.setupQueryName=formSetupQuery;
-	config.formName=searchParams.get("formName");
 	config.formId=searchParams.get("formId");
-	config.submitReportId="submitReport";
-	
+	config.role=searchParams.get('role');	
 	
 	clear();