Skip to content

Commit

Permalink
Merge pull request #103 from IntelliSOFT-Consulting/revert-102-userFo…
Browse files Browse the repository at this point in the history
…rmsByRoles

Revert "Added consulatation forms according to user roles"
  • Loading branch information
daviemukungi authored Feb 8, 2021
2 parents edc2fc1 + df9695d commit 35f43cd
Showing 1 changed file with 1 addition and 37 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,43 +82,7 @@ angular.module('bahmni.clinical')
allTemplates.splice(i, 1);
}
}
}
else if ((currentuserRoleName == "PMTCT") && (currentuserRoleName != "superman")){
for (var i = allTemplates.length - 1; i >= 0; i--) {
if (allTemplates[i].uuid == endoffollowupform || allTemplates[i].uuid == anccard || allTemplates[i].uuid == maternityform || allTemplates[i].uuid == personalhist || allTemplates[i].uuid == familyhistdata) {
allTemplates.splice(i, 1);
}
}
}
else if ((currentuserRoleName == "PMTCT (HEI)") && (currentuserRoleName != "superman")){
for (var i = allTemplates.length - 1; i >= 0; i--) {
if (allTemplates[i].uuid == arthistoryclinical || allTemplates[i].uuid == arttreatmentform || allTemplates[i].uuid == artandhivfollowup || allTemplates[i].uuid == endoffollowupform || allTemplates[i].uuid == anccard || allTemplates[i].uuid == viralload || allTemplates[i].uuid == maternityform || allTemplates[i].uuid == personalhist || allTemplates[i].uuid == familyhistdata) {
allTemplates.splice(i, 1);
}
}
}
else if ((currentuserRoleName == "EAC") && (currentuserRoleName != "superman")){
for (var i = allTemplates.length - 1; i >= 0; i--) {
if (allTemplates[i].uuid == arthistoryclinical || allTemplates[i].uuid == arttreatmentform || allTemplates[i].uuid == artandhivfollowup || allTemplates[i].uuid == endoffollowupform || allTemplates[i].uuid == anccard || allTemplates[i].uuid == viralload || allTemplates[i].uuid == tbscreeningform || allTemplates[i].uuid == maternityform || allTemplates[i].uuid == personalhist || allTemplates[i].uuid == familyhistdata) {
allTemplates.splice(i, 1);
}
}
}
else if ((currentuserRoleName == "CLINICIAN") && (currentuserRoleName != "superman")){
for (var i = allTemplates.length - 1; i >= 0; i--) {
if ( allTemplates[i].uuid == arttreatmentform || allTemplates[i].uuid == endoffollowupform || allTemplates[i].uuid == anccard || allTemplates[i].uuid == eacforms || allTemplates[i].uuid == maternityform) {
allTemplates.splice(i, 1);
}
}
}
else if ((currentuserRoleName == "MATERNITY") && (currentuserRoleName != "superman")){
for (var i = allTemplates.length - 1; i >= 0; i--) {
if (allTemplates[i].uuid == arthistoryclinical || allTemplates[i].uuid == arttreatmentform || allTemplates[i].uuid == artandhivfollowup || allTemplates[i].uuid == endoffollowupform || allTemplates[i].uuid == viralload || allTemplates[i].uuid == tbscreeningform || allTemplates[i].uuid == eacforms || allTemplates[i].uuid == personalhist || allTemplates[i].uuid == familyhistdata) {
allTemplates.splice(i, 1);
}
}
}
else {
} else {
for (var i = allTemplates.length - 1; i >= 0; i--) {
if (allTemplates[i].uuid == personalhist || allTemplates[i].uuid == familyhistdata) {
allTemplates.splice(i, 1);
Expand Down

0 comments on commit 35f43cd

Please sign in to comment.