Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@
import org.labkey.api.ehr.dataentry.WeightFormSection;
import org.labkey.api.module.Module;
import org.labkey.api.view.template.ClientDependency;
import org.labkey.security.xml.GroupEnumType;
import org.labkey.api.security.GroupManager;
import org.labkey.api.security.Group;
import org.labkey.api.security.permissions.AdminPermission;

import java.util.Arrays;
import java.util.List;
Expand Down Expand Up @@ -69,4 +73,15 @@ public Supplier<ClientDependency> getAddScheduledTreatmentWindowDependency()
{
return ClientDependency.supplierFromPath("ehr/window/AddScheduledTreatmentWindow.js");
}
//Added: 1-15-2026 R.Blasa
@Override
public boolean isVisible()
{
Group g = GroupManager.getGroup(getCtx().getContainer(), "Form Clinical Rounds SF", GroupEnumType.SITE);
if (g != null && getCtx().getUser().isInGroup(g.getUserId()) && !getCtx().getContainer().hasPermission(getCtx().getUser(), AdminPermission.class))
{
return false;
}
return super.isVisible();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,4 @@ public ClinicalRoundsFormType(DataEntryFormContext ctx, Module owner)

}

@Override
protected boolean canInsert()
{
if (!getCtx().getContainer().hasPermission(getCtx().getUser(), EHRClinicalEntryPermission.class))
return false;

return super.canInsert();
}
}