/// <summary> /// 3、 用户-PI/医生/病人/列表 之 获取医院PI列表 /// </summary> /// <param name="token"></param> /// <param name="hospitalid"></param> /// <param name="page"></param> /// <param name="q"></param> public HospitalUserProfileResponse SearchHospitalPi(string token, string hospitalid, string q) { try { string ApiResponse = string.Empty; HospitalUserProfileResponse hospitalUserProfileResponse = new HospitalUserProfileResponse(); Dictionary <string, string> sPara = new Dictionary <string, string>(); sPara.Add("hospitalid", hospitalid); sPara.Add("q", q); ApiResponse = F8YLSubmit.BuildGetRequest(sPara, "ucenter/user/search/pi?token=" + token); if (!ApiResponse.Contains("[]")) { hospitalUserProfileResponse = JsonHelper.DeserializeJsonToObject <HospitalUserProfileResponse>(ApiResponse); } return(hospitalUserProfileResponse); } catch (Exception) { throw; } }
/// <summary> /// 41、 获取项目的医生列表 /// </summary> /// <param name="token">token</param> /// <param name="hospitalid">医院id[通常不用]</param> /// <param name="projectid">项目id</param> /// <param name="piid">对应的PI id</param> /// <param name="username">医生名字(模糊)</param> /// <param name="page">分页id</param> /// <returns></returns> public ProjectDoctorListResponse DoctorList(string token, string hospitalid, string projectid, string piid, string username, string page) { ProjectDoctorListResponse projectDoctorListResponse = new ProjectDoctorListResponse(); try { string ApiResponse = string.Empty; Dictionary <string, string> sPara = new Dictionary <string, string>(); sPara.Add("hospitalid", hospitalid); sPara.Add("projectid", projectid); sPara.Add("piid", piid); sPara.Add("username", username); sPara.Add("page", page.ToString()); ApiResponse = F8YLSubmit.BuildGetRequest(sPara, "project/doctor/list?token=" + token); projectDoctorListResponse = JsonHelper.DeserializeJsonToObject <ProjectDoctorListResponse>(ApiResponse); } catch (Exception ex) { AppLog.Instance.Write("DoctorList", AppLog.LogMessageType.Error, ex); } return(projectDoctorListResponse); }
/// <summary> /// 43、 获取项目的模板列表 /// </summary> /// <param name="projectid">项目id</param> /// <param name="name">模板名称(模糊)</param> /// <param name="page">分页id</param> /// Gerry Ge /// 请求方式:GET /// <returns></returns> public ProjectTplListResponse ProjectTplList(string token, string projectid, string name, int page = 1) { string strResponse = string.Empty; ProjectTplListResponse apiResponse = new ProjectTplListResponse(); try { Dictionary <string, string> sPara = new Dictionary <string, string>(); sPara.Add("projectid", projectid.ToString()); sPara.Add("name", name.ToString()); sPara.Add("page", page.ToString()); strResponse = F8YLSubmit.BuildGetRequest(sPara, "project/tpl/list?token=" + token); if (!strResponse.Contains("[]")) { apiResponse = JsonHelper.DeserializeJsonToObject <ProjectTplListResponse>(strResponse); } } catch (Exception ex) { AppLog.Instance.Write("ProjectTplList", AppLog.LogMessageType.Error, ex); } return(apiResponse); }
/// <summary> /// 30、 项目详情 /// </summary> /// <param name="id">项目id</param> /// <returns></returns> /// Jerry Shi public ProjectDetailResponse detail(string token, string id) { ProjectDetailResponse projectDetailResponse = new ProjectDetailResponse(); try { string ApiResponse = string.Empty; Dictionary <string, string> sPara = new Dictionary <string, string>(); sPara.Add("id", id); ApiResponse = F8YLSubmit.BuildGetRequest(sPara, "project/detail?token=" + token); if (!ApiResponse.Contains("[]")) { projectDetailResponse = JsonHelper.DeserializeJsonToObject <ProjectDetailResponse>(ApiResponse); } } catch (Exception ex) { AppLog.Instance.Write("detail", AppLog.LogMessageType.Error, ex); } return(projectDetailResponse); }
/// <summary> /// 16、 模板列表 /// </summary> /// <param name="token">token</param> /// <param name="kindid">模板分类id</param> /// <param name="page">分页id</param> /// <returns></returns> /// Jerry Shi public TplListResponse TplList(string token, string kindid, string page) { try { string ApiResponse = string.Empty; TplListResponse tplListResponse = new TplListResponse(); Dictionary <string, string> sPara = new Dictionary <string, string>(); //不需要传,不可以为空 if (!string.IsNullOrEmpty(kindid)) { sPara.Add("kindid", kindid); } //sPara.Add("page", page); ApiResponse = F8YLSubmit.BuildGetRequest(sPara, "tpl/list?token=" + token); tplListResponse = JsonHelper.DeserializeJsonToObject <TplListResponse>(ApiResponse); return(tplListResponse); } catch (Exception) { throw; } }
/// <summary> /// 49、 获取病人加入的项目 /// </summary> /// <param name="page"></param> /// <returns></returns> /// Gerry Ge /// 请求方式:GET public string Joined(string token, int page = 1) { string strResponse = string.Empty; UserJoinedResponse apiResponse = new UserJoinedResponse(); try { Dictionary <string, string> sPara = new Dictionary <string, string>(); sPara.Add("page", page.ToString()); strResponse = F8YLSubmit.BuildGetRequest(sPara, "ucenter/user/joined?token=" + token); } catch (Exception) { } return(strResponse); }
/// <summary> /// 60 获取项目相关用户/PI/医生/病人 列表 /// </summary> /// <param name="projectid">项目id</param> /// <param name="patientid">病人userid</param> /// <returns></returns> public string relativePatient(string token, string projectid, string hospitalid) { string apiResponse = string.Empty; try { Dictionary <string, string> sPara = new Dictionary <string, string>(); sPara.Add("projectid", projectid); sPara.Add("hospitalid", hospitalid); apiResponse = F8YLSubmit.BuildGetRequest(sPara, "project/relative/patient?token=" + token); } catch (Exception ex) { AppLog.Instance.Write("relativePatient", AppLog.LogMessageType.Error, ex); } return(apiResponse); }
/// <summary> /// 56、 56、 获取当前用户所参与的项目 /// </summary> /// <param name="token">token</param> /// <returns></returns> public ProjectJoined Joined(string token, string status) { string apiResponse = string.Empty; ProjectJoined projectJoined = new ProjectJoined(); try { Dictionary <string, string> sPara = new Dictionary <string, string>(); sPara.Add("status", status); apiResponse = F8YLSubmit.BuildGetRequest(sPara, "project/joined?token=" + token); projectJoined = JsonHelper.DeserializeJsonToObject <ProjectJoined>(apiResponse); } catch (Exception ex) { AppLog.Instance.Write("Joined", AppLog.LogMessageType.Error, ex); } return(projectJoined); }
/// <summary> /// 3、 用户-PI/医生/病人/列表 之 获取医院病人列表 /// </summary> /// <param name="token"></param> /// <param name="hospitalid"></param> /// <param name="page"></param> /// <param name="q"></param> public string getSearchHospitalPatient(string token, string hospitalid, string q) { try { string ApiResponse = string.Empty; HospitalUserProfileResponse hospitalUserProfileResponse = new HospitalUserProfileResponse(); Dictionary <string, string> sPara = new Dictionary <string, string>(); sPara.Add("hospitalid", hospitalid); sPara.Add("q", q); ApiResponse = F8YLSubmit.BuildGetRequest(sPara, "ucenter/user/search/patient?token=" + token); return(ApiResponse); } catch (Exception) { throw; } }
/// <summary> /// 4、用户详情设置与获取 get /// </summary> /// <param name="token"></param> /// <param name="username"></param> /// <param name="truename"></param> /// <param name="deptid"></param> /// <param name="avatar"></param> /// <param name="age"></param> /// <returns></returns> /// Jack Ding public string getProfile(string token, string userid) { try { string ApiResponse = string.Empty; UserProfileResponse userProfileResponse = new UserProfileResponse(); Dictionary <string, string> sPara = new Dictionary <string, string>(); sPara.Add("userid", userid); ApiResponse = F8YLSubmit.BuildGetRequest(sPara, "ucenter/user/profile?token=" + token); return(ApiResponse); } catch (Exception) { throw; } }
/// <summary> /// 23、 模板分类列表 /// </summary> /// <param name="token">token</param> /// <param name="page">分页id(未启用)</param> /// <returns></returns> /// Jerry Shi public TplKindListResponse TplKindList(string token, string page) { try { string ApiResponse = string.Empty; TplKindListResponse tplKindListResponse = new TplKindListResponse(); Dictionary <string, string> sPara = new Dictionary <string, string>(); sPara.Add("page", page); ApiResponse = F8YLSubmit.BuildGetRequest(sPara, "tpl/kind/list?token=" + token); tplKindListResponse = JsonHelper.DeserializeJsonToObject <TplKindListResponse>(ApiResponse); return(tplKindListResponse); } catch { throw; } }
/// <summary> /// 2、 登出(下线) /// </summary> /// <param name="token">token</param> /// <returns></returns> /// Jerry Shi public string Logout(string token) { string strResponse = string.Empty; try { //if (!string.IsNullOrEmpty(F8YLConfig.Token)) //{ Dictionary <string, string> sPara = new Dictionary <string, string>(); //sPara.Add("token", token); //strResponse = F8YLSubmit.BuildRequest(sPara, "get", "auth/logout", "", new Byte[] { }, "", 0); strResponse = F8YLSubmit.BuildGetRequest(sPara, "auth/logout?token=" + token); //} } catch (Exception) { throw; } return(strResponse); }
public string TplReportListString(string token, string tplid, string patientid) { try { string ApiResponse = string.Empty; TplReportListResponse response = new TplReportListResponse(); Dictionary <string, string> sPara = new Dictionary <string, string>(); sPara.Add("tplid", tplid); sPara.Add("patientid", patientid); ApiResponse = F8YLSubmit.BuildGetRequest(sPara, "tpl/report/list?token=" + token); return(ApiResponse); } catch { throw; } }
/// <summary> /// 10、 医院详情 /// </summary> /// <param name="token">token</param> /// <param name="id">指标id</param> /// <returns></returns> /// Jack Ding public HospitalDetailResponse Detail(string token, int id) { string strResponse = string.Empty; HospitalDetailResponse response = new HospitalDetailResponse(); try { Dictionary <string, string> sPara = new Dictionary <string, string>(); sPara.Add("id", id.ToString()); strResponse = F8YLSubmit.BuildGetRequest(sPara, "hospital/detail?token=" + token); response = JsonHelper.DeserializeJsonToObject <HospitalDetailResponse>(strResponse); return(response); } catch { throw; } }
/// <summary> /// 29、 项目列表 /// </summary> /// <param name="token"></param> /// <param name="hospitalid">医院id</param> /// <param name="status">状态(0:进行中,1:已归档)</param> /// <param name="userid">创建项目的用户id</param> /// <returns></returns> /// Jerry Shi public string getProjectList(string token, string hospitalid, int status, string userid) { string ApiResponse = string.Empty; try { ProjectListResponse projectListResponse = new ProjectListResponse(); Dictionary <string, string> sPara = new Dictionary <string, string>(); sPara.Add("hospitalid", hospitalid.ToString()); sPara.Add("status", status.ToString()); sPara.Add("userid", userid); ApiResponse = F8YLSubmit.BuildGetRequest(sPara, "project/list?token=" + token); } catch (Exception ex) { AppLog.Instance.Write("getProjectList", AppLog.LogMessageType.Error, ex); } return(ApiResponse); }
public TplReportDetailResponse TplReportDetailByIdObject(string token, string id) { try { string ApiResponse = string.Empty; TplReportDetailResponse response = new TplReportDetailResponse(); Dictionary <string, string> sPara = new Dictionary <string, string>(); sPara.Add("id", id); ApiResponse = F8YLSubmit.BuildGetRequest(sPara, "tpl/report/detail?token=" + token); response = JsonHelper.DeserializeJsonToObject <TplReportDetailResponse>(ApiResponse); return(response); } catch { throw; } }
/// <summary> /// 26、 模板的指标的分片列表 /// </summary> /// <param name="token"></param> /// <param name="tplid">模板id</param> /// <returns></returns> public TplSharpListResponse TplSharpList(string token, int tplid) { try { string ApiResponse = string.Empty; TplSharpListResponse response = new TplSharpListResponse(); Dictionary <string, string> sPara = new Dictionary <string, string>(); sPara.Add("tplid", tplid.ToString()); ApiResponse = F8YLSubmit.BuildGetRequest(sPara, "tpl/sharp/list?token=" + token); response = JsonHelper.DeserializeJsonToObject <TplSharpListResponse>(ApiResponse); return(response); } catch { throw; } }
/// <summary> /// 4、用户详情设置与获取 get /// </summary> /// <param name="userid">如果为空返回当前用户</param> /// <returns></returns> /// Jerry Shi public UserProfileResponse profile(string token, string userid) { UserProfileResponse userProfileResponse = new UserProfileResponse(); try { string ApiResponse = string.Empty; Dictionary <string, string> sPara = new Dictionary <string, string>(); sPara.Add("userid", userid.ToString()); ApiResponse = F8YLSubmit.BuildGetRequest(sPara, "ucenter/user/profile?token=" + token); userProfileResponse = JsonHelper.DeserializeJsonToObject <UserProfileResponse>(ApiResponse); } catch (Exception ex) { //AppLog.Instance.Write("UserProfileResponse", AppLog.LogMessageType.Error, ex); } return(userProfileResponse); }
/// <summary> /// 21、 模板报告-详情 /// </summary> /// <param name="token"></param> /// <param name="id">报告id</param> /// <returns></returns> /// Jack Ding public string TplReportDetail(string token, string tplId, string periodId) { try { string ApiResponse = string.Empty; //TplReportDetailResponse response = new TplReportDetailResponse(); Dictionary <string, string> sPara = new Dictionary <string, string>(); sPara.Add("tplid", tplId); sPara.Add("periodid", periodId); ApiResponse = F8YLSubmit.BuildGetRequest(sPara, "tpl/report/detail?token=" + token); //response = JsonHelper.DeserializeJsonToObject<TplReportDetailResponse>(ApiResponse); return(ApiResponse); } catch { throw; } }
/// <summary> /// 18、 获取模板详情 /// </summary> /// <param name="token">token</param> /// <param name="id">要查询的模板id</param> /// <returns></returns> public TplDetailResponse TplDetail(string token, string id) { try { string ApiResponse = string.Empty; TplDetailResponse tplDetailResponse = new TplDetailResponse(); Dictionary <string, string> sPara = new Dictionary <string, string>(); sPara.Add("id", id); ApiResponse = F8YLSubmit.BuildGetRequest(sPara, "tpl/detail?token=" + token); tplDetailResponse = JsonHelper.DeserializeJsonToObject <TplDetailResponse>(ApiResponse); //tplDetailResponse = Newtonsoft.Json.JsonConvert.DeserializeObject<TplDetailResponse>(ApiResponse); return(tplDetailResponse); } catch (Exception ex) { throw; } }
/// <summary> /// 20、 模板报告-列表 /// </summary> /// <param name="token"></param> /// <param name="tplid">模板id</param> /// <param name="page">分页id</param> /// <returns></returns> /// Jack Ding public TplReportListResponse TplReportList(string token, string tplid, string patientid) { try { string ApiResponse = string.Empty; TplReportListResponse response = new TplReportListResponse(); Dictionary <string, string> sPara = new Dictionary <string, string>(); sPara.Add("tplid", tplid); sPara.Add("patientid", patientid); ApiResponse = F8YLSubmit.BuildGetRequest(sPara, "tpl/report/list?token=" + token); response = JsonHelper.DeserializeJsonToObject <TplReportListResponse>(ApiResponse); return(response); } catch { throw; } }
/// <summary> /// 18、 get方式获取模板详情 /// </summary> /// <param name="token">token</param> /// <param name="id">要查询的模板id</param> /// <returns></returns> public string getTplDetail(string token, string id) { try { string ApiResponse = string.Empty; TplDetailResponse tplDetailResponse = new TplDetailResponse(); Dictionary <string, string> sPara = new Dictionary <string, string>(); sPara.Add("id", id); ApiResponse = F8YLSubmit.BuildGetRequest(sPara, "tpl/detail?token=" + token); //ApiResponse = "{\"code\": \"0\", \"message\": null, \"data\": {\"id\": \"11\", \"userid\": \"12\", \"hospitalid\": \"9951480\", \"name\": \"检查\", \"period\": \"0\", \"freqs\": \"1\", \"kindid\": \"20\", \"editbypat\": \"0\", \"remark\": \"随访模板\", \"ctime\": \"2015-11-17 17:11:44\", \"utime\": \"2015-11-18 10:45:18\", \"tpl_detail\": [{\"id\": \"32\", \"tplid\": \"11\", \"sharpid\": \"7\", \"sharpid2\": \"9\", \"termid\": \"20\", \"sorter\": \"0\", \"term\": {\"id\": \"20\", \"cateid\": \"0\", \"hospitalid\": \"0\", \"userid\": \"0\", \"name\": \"癌胚抗原\", \"itype\": \"10\", \"vtype\": \"2\", \"unit\": \"\", \"editbypat\": \"0\", \"term_val\": [{\"id\": \"52\", \"termid\": \"20\", \"val\": \"1000000\", \"desc\": \"\", \"sorter\": \"126\"}, {\"id\": \"51\", \"termid\": \"20\", \"val\": \"0\", \"desc\": \"\", \"sorter\": \"127\"}]}}, {\"id\": \"35\", \"tplid\": \"11\", \"sharpid\": \"7\", \"sharpid2\": \"10\", \"termid\": \"20\", \"sorter\": \"0\", \"term\": {\"id\": \"20\", \"cateid\": \"0\", \"hospitalid\": \"0\", \"userid\": \"0\", \"name\": \"癌胚抗原\", \"itype\": \"10\", \"vtype\": \"2\", \"unit\": \"\", \"editbypat\": \"0\", \"term_val\": [{\"id\": \"52\", \"termid\": \"20\", \"val\": \"1000000\", \"desc\": \"\", \"sorter\": \"126\"}, {\"id\": \"51\", \"termid\": \"20\", \"val\": \"0\", \"desc\": \"\", \"sorter\": \"127\"}]}}, {\"id\": \"36\", \"tplid\": \"11\", \"sharpid\": \"7\", \"sharpid2\": \"10\", \"termid\": \"15\", \"sorter\": \"127\", \"term\": {\"id\": \"15\", \"cateid\": \"0\", \"hospitalid\": \"0\", \"userid\": \"0\", \"name\": \"CA125\", \"itype\": \"10\", \"vtype\": \"2\", \"unit\": \"U/ml\", \"editbypat\": \"0\", \"term_val\": [{\"id\": \"31\", \"termid\": \"15\", \"val\": \"0\", \"desc\": \"\", \"sorter\": \"127\"}, {\"id\": \"32\", \"termid\": \"15\", \"val\": \"1000000\", \"desc\": \"\", \"sorter\": \"126\"}]}}, {\"id\": \"43\", \"tplid\": \"11\", \"sharpid\": \"8\", \"sharpid2\": \"12\", \"termid\": \"16\", \"sorter\": \"127\", \"term\": {\"id\": \"16\", \"cateid\": \"0\", \"hospitalid\": \"0\", \"userid\": \"0\", \"name\": \"白细胞计数\", \"itype\": \"10\", \"vtype\": \"2\", \"unit\": \"109/L\", \"editbypat\": \"0\", \"term_val\": [{\"id\": \"33\", \"termid\": \"16\", \"val\": \"0\", \"desc\": \"\", \"sorter\": \"127\"}, {\"id\": \"34\", \"termid\": \"16\", \"val\": \"1000000\", \"desc\": \"\", \"sorter\": \"126\"}]}}, {\"id\": \"44\", \"tplid\": \"11\", \"sharpid\": \"8\", \"sharpid2\": \"12\", \"termid\": \"24\", \"sorter\": \"125\", \"term\": {\"id\": \"24\", \"cateid\": \"0\", \"hospitalid\": \"0\", \"userid\": \"0\", \"name\": \"淋巴细胞绝对值\", \"itype\": \"10\", \"vtype\": \"2\", \"unit\": \"109/L\", \"editbypat\": \"0\", \"term_val\": [{\"id\": \"59\", \"termid\": \"24\", \"val\": \"0\", \"desc\": \"\", \"sorter\": \"127\"}, {\"id\": \"60\", \"termid\": \"24\", \"val\": \"100000\", \"desc\": \"\", \"sorter\": \"126\"}]}}], \"sharp\": {\"7\": {\"id\": \"7\", \"name\": \"肿瘤标记物\", \"parentid\": \"0\"}, \"8\": {\"id\": \"8\", \"name\": \"血生化\", \"parentid\": \"0\"}, \"9\": {\"id\": \"9\", \"name\": \"术前肿瘤标志物\", \"parentid\": \"7\"}, \"10\": {\"id\": \"10\", \"name\": \"术后、随访肿瘤标志物\", \"parentid\": \"7\"}, \"11\": {\"id\": \"11\", \"name\": \"入院时、术前一天血生化\", \"parentid\": \"8\"}, \"12\": {\"id\": \"12\", \"name\": \"术后一天、术后七天血生化\", \"parentid\": \"8\"}}}}"; //ApiResponse = "1234"; return(ApiResponse); } catch (Exception) { throw; } }
/// <summary> /// 9、 搜索医院 /// </summary> /// <param name="q">关系字</param> /// <param name="page">分页id</param> /// <param name="name">指标名称(糊糊)</param> /// <param name="token">token</param> /// <returns></returns> /// Jack Ding public HospitalSearchResponse Search(string token, int page, string name) { string strResponse = string.Empty; HospitalSearchResponse response = new HospitalSearchResponse(); try { Dictionary <string, string> sPara = new Dictionary <string, string>(); //sPara.Add("q", q.ToString()); sPara.Add("page", page.ToString()); sPara.Add("name", name); strResponse = F8YLSubmit.BuildGetRequest(sPara, "hospital/search?token=" + token); response = JsonHelper.DeserializeJsonToObject <HospitalSearchResponse>(strResponse); return(response); } catch { throw; } }
/// <summary> /// 50、 获取与某人(好友)之间的消息记录 /// </summary> /// <param name="id">好友userid,如果为空表示获取当前用户的消息 [ id不传是获取好友发给自己的消息; 传就是我发给这个人的]</param> /// <param name="page">分页id</param> /// <returns></returns> /// Jerry Shi public ChatResponse Chat(string token, string id) { try { string ApiResponse = string.Empty; ChatResponse chatResponse = new ChatResponse(); Dictionary <string, string> sPara = new Dictionary <string, string>(); if (id != string.Empty) { sPara.Add("id", id); } ApiResponse = F8YLSubmit.BuildGetRequest(sPara, "message/chat?token=" + token); if (!ApiResponse.Contains("[]")) { chatResponse = JsonHelper.DeserializeJsonToObject <ChatResponse>(ApiResponse); } return(chatResponse); } catch (Exception) { throw; } }
/// <summary> /// 42、 获取项目的病人列表 /// </summary> /// <param name="hospitalid">医院id[通常不用]</param> /// <param name="projectid">项目id</param> /// <param name="doctorid">对应的医生id</param> /// <param name="username">病人名字(模糊)</param> /// <param name="page">分页id</param> /// Gerry Ge /// 请求方式:GET /// <returns></returns> public string PatientList(string token, int hospitalid, int projectid, int doctorid, string username, int page = 1) { string strResponse = string.Empty; PatientListResponse apiResponse = new PatientListResponse(); try { Dictionary <string, string> sPara = new Dictionary <string, string>(); sPara.Add("hospitalid", hospitalid.ToString()); sPara.Add("projectid", projectid.ToString()); sPara.Add("doctorid", doctorid.ToString()); sPara.Add("username", username.ToString()); sPara.Add("page", page.ToString()); strResponse = F8YLSubmit.BuildGetRequest(sPara, "project/patient/list?token=" + token); } catch (Exception ex) { AppLog.Instance.Write("PatientList", AppLog.LogMessageType.Error, ex); } return(strResponse); }
/// <summary> /// 49、 接收消息 获取别人发给当前用户的所有消息 用于获取别人发给自己的消息 /// </summary> /// <param name="type">消息类型</param> /// <param name="date">查询起始时间;默认值:上月一号</param> /// <returns></returns> /// Jerry Shi public RecvResponse Recv(string token, string type, string date, string targetid) { try { string ApiResponse = string.Empty; RecvResponse recvResponse = new RecvResponse(); Dictionary <string, string> sPara = new Dictionary <string, string>(); sPara.Add("type", type); sPara.Add("date", date); if (targetid != string.Empty) { sPara.Add("targetid", targetid); } ApiResponse = F8YLSubmit.BuildGetRequest(sPara, "message/recv?token=" + token); recvResponse = JsonHelper.DeserializeJsonToObject <RecvResponse>(ApiResponse); return(recvResponse); } catch (Exception) { throw; } }
public string ProjectRelativePatient(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/patient?token=" + token); //projectRelativeUserResponse = JsonHelper.DeserializeJsonToObject<ProjectRelativeUserResponse>(apiResponse); } catch (Exception ex) { AppLog.Instance.Write("ex", AppLog.LogMessageType.Error, ex); } return(apiResponse); }