public bool CanCheckInProcedure(RegistrationWorklistItemKey itemKey) { if (!Thread.CurrentPrincipal.IsInRole(AuthorityTokens.Workflow.Procedure.CheckIn)) { return(false); } // the worklist item may represent a patient without an order, // in which case there are no procedures to check-in if (itemKey.OrderRef == null) { return(false); } return(GetProceduresEligibleForCheckIn(itemKey.OrderRef).Count > 0); }
public bool CanCheckInProcedure(RegistrationWorklistItemKey itemKey) { if (!Thread.CurrentPrincipal.IsInRole(AuthorityTokens.Workflow.Procedure.CheckIn)) return false; // the worklist item may represent a patient without an order, // in which case there are no procedures to check-in if (itemKey.OrderRef == null) return false; return GetProceduresEligibleForCheckIn(itemKey.OrderRef).Count > 0; }