/// <summary> /// Set to true if site status matches an item in ActiveRecruitmentStatuses /// </summary> /// <param name="site">Study site</param> private bool IsActivelyRecruiting(ClinicalTrial.StudySite site) { return(CTSConstants.ActiveRecruitmentStatuses.Any(status => status.ToLower() == site.RecruitmentStatus.ToLower())); }
/// <summary> /// Determines if a study site has Contact Information /// </summary> /// <param name="site"></param> /// <returns></returns> public static bool HasContact(this ClinicalTrial.StudySite site) { return(!String.IsNullOrWhiteSpace(site.ContactEmail) || !String.IsNullOrWhiteSpace(site.ContactName) || !String.IsNullOrWhiteSpace(site.ContactPhone)); }
/// <summary> /// Wrapper around site Extension method /// </summary> /// <param name="site"></param> /// <returns></returns> public bool SiteHasContact(ClinicalTrial.StudySite site) { return(site.HasContact()); }