public string SearchHospitalUsers(string searchContext)

        {
            var token = Session["token"] == null ? "XXXXXXX" : Session["token"].ToString();
            var currentUserId = Session["CurrentUserID"] == null ? "-1" : Session["CurrentUserID"].ToString();
            var currentUserHospitalID = Session["CurrentUserHospitalID"] == null ? "-1" : Session["CurrentUserHospitalID"].ToString();
            var currentUserRole = Session["role"] == null ? "XXXXXXX" : Session["role"].ToString();
            //UserProfileResponse user = userRequest.profile(token, "");

            //获取所有用户
            //HospitalUserProfileResponse hospitalUsers = new HospitalUserProfileResponse();
            //hospitalUsers = userRequest.SearchUsers(token, currentUserHospitalID, searchContext);
            //ProjectRelativeUserResponse projectRelativeUserResponse = new ProjectRelativeUserResponse();
            ProjectRelativeUserResponse projectRelativeUserResponse = new ProjectRelativeUserResponse();

            projectRelativeUserResponse = projectRequest.ProjectRelativeUsers(token, "", searchContext);
            //FilterBusersByCurrentUserRole(projectRelativeUserResponse, currentUserRole, currentUserId);
            string jsonResponse = JsonHelper.SerializeObject(projectRelativeUserResponse);
            return jsonResponse;
        }
        public ProjectRelativeUserResponse ProjectRelativeUsers(string token, string hospitalid, string q)
        {
            string apiResponse = string.Empty;
            ProjectRelativeUserResponse projectRelativeUserResponse = new ProjectRelativeUserResponse();
            try
            {
                Dictionary<string, string> sPara = new Dictionary<string, string>();

                if (hospitalid != string.Empty)
                {
                    sPara.Add("hospitalid", hospitalid);
                }
                sPara.Add("q", q);

                apiResponse = F8YLSubmit.BuildGetRequest(sPara, "project/relative/user?token=" + token);
                projectRelativeUserResponse = JsonHelper.DeserializeJsonToObject<ProjectRelativeUserResponse>(apiResponse);
            }
            catch (Exception ex)
            {
                AppLog.Instance.Write("ProjectRelativeUsers", AppLog.LogMessageType.Error, ex);
            }
            return projectRelativeUserResponse;
        }