public List <Specialities> Get() { var response = ApiConsumerHelper.GetResponseString("api/Speciallities"); var result = JsonConvert.DeserializeObject <List <Specialities> >(response); return(result); }
public IEnumerable <PatientFileType> GetPatientFileTypes() { var response = ApiConsumerHelper.GetResponseString("api/getFileTypes"); var result = JsonConvert.DeserializeObject <IEnumerable <PatientFileType> >(response); return(result); }
public List <GetPatientConditions> LoadHealthConditions(long pid) { var response = ApiConsumerHelper.GetResponseString("api/getPatienConditions/?patientID=" + pid); var result = JsonConvert.DeserializeObject <List <GetPatientConditions> >(response); return(result); }
public List <DoctorTimingsModel> GetListByDoctorId(long doctorId) { var response = ApiConsumerHelper.GetResponseString("api/DoctorTimings?doctorId=" + doctorId); var result = JsonConvert.DeserializeObject <List <DoctorTimingsModel> >(response); return(result); }
public string GetDoctorTimeZoneID(long doctorId) { var response = ApiConsumerHelper.GetResponseString("api/getDoctorTimeZoneID?doctorId=" + doctorId); var result = JsonConvert.DeserializeObject <string>(response); return(result); }
public DoctorTimingsModel GetById(long id) { var response = ApiConsumerHelper.GetResponseString("api/DoctorTimings/" + id); var result = JsonConvert.DeserializeObject <DoctorTimingsModel>(response); return(result); }
public ApiResultModel DeletePatientFile(long fileID) { var response = ApiConsumerHelper.PostData("api/deletePatientFile?fileID=" + fileID, ""); var result = JsonConvert.DeserializeObject <ApiResultModel>(response); return(result); }
public List <Frequency> GetFrequency() { var response = ApiConsumerHelper.GetResponseString("api/getFrequency"); var result = JsonConvert.DeserializeObject <List <Frequency> >(response); return(result); }
public List <PSurgeries> LoadPatientSurgeries(long patientID) { var response = ApiConsumerHelper.GetResponseString("api/getPatienSurgeries/?patientID=" + patientID); var result = JsonConvert.DeserializeObject <List <PSurgeries> >(response); return(result); }
public ApiResultModel DeletePatientAllergy(long id) { var response = ApiConsumerHelper.PostData("api/deletePatientAllergy/?allergyID=" + id, ""); var result = JsonConvert.DeserializeObject <ApiResultModel>(response); return(result); }
public List <ReactionModel> GetReactions() { var response = ApiConsumerHelper.GetResponseString("api/getReaction"); var result = JsonConvert.DeserializeObject <List <ReactionModel> >(response); return(result); }
public List <AllergiesModel> GetAllergies(string prefix) { var response = ApiConsumerHelper.GetResponseString("api/getAllergy/?search=" + prefix); var result = JsonConvert.DeserializeObject <List <AllergiesModel> >(response); return(result); }
public long GetId(string userId) { var response = ApiConsumerHelper.GetResponseString("api/Doctors/Id?userId=" + userId, false); var result = JsonConvert.DeserializeObject <long>(response); return(result); }
public List <SensitivityModel> GetSensitivities() { var response = ApiConsumerHelper.GetResponseString("api/getSensitivity"); var result = JsonConvert.DeserializeObject <List <SensitivityModel> >(response); return(result); }
public Language GetByUserId(string userId) { var response = ApiConsumerHelper.GetResponseString("api/Languages?userId=" + userId); var result = JsonConvert.DeserializeObject <Language>(response); return(result); }
public DoctorModel GetByUserId(string userId) { var response = ApiConsumerHelper.GetResponseString("api/Doctors?userId=" + userId, false); var result = JsonConvert.DeserializeObject <DoctorModel>(response); return(result); }
public List <SurgeriesModel> AutocompleteSurgery(string prefix) { var response = ApiConsumerHelper.GetResponseString("api/getAutoCompleteSurgeries/?search=" + prefix); var result = JsonConvert.DeserializeObject <List <SurgeriesModel> >(response); return(result); }
public List <MedicineModel> GetMedicines(string search) { var response = ApiConsumerHelper.GetResponseString("api/getMedicines/?search=" + search); var result = JsonConvert.DeserializeObject <List <MedicineModel> >(response); return(result); }
public IEnumerable <GetPatientUserFiles> GetPatientFiles(long patientID) { var response = ApiConsumerHelper.GetResponseString("api/getPatientFiles?patientID=" + patientID); var result = JsonConvert.DeserializeObject <IEnumerable <GetPatientUserFiles> >(response); return(result); }
public IEnumerable <AppFiles> GetAppFiles(long appID) { var response = ApiConsumerHelper.GetResponseString("api/getAppFiles?appID=" + appID); var result = JsonConvert.DeserializeObject <IEnumerable <AppFiles> >(response); return(result); }
public IQueryable <Language> GetLanguages(long langId) { var response = ApiConsumerHelper.GetResponseString("api/Languages?languageId=" + langId); var result = JsonConvert.DeserializeObject <IQueryable <Language> >(response); return(result); }
public GetPatientUserFiles GetDoctorAppointmentFile(long fileId) { var response = ApiConsumerHelper.GetResponseString("api/getDoctorAppointmentFile?fileId=" + fileId); var result = JsonConvert.DeserializeObject <GetPatientUserFiles>(response); return(result); }
public ApiResultModel AddPatientAllergy(PatientAllergies_Custom allergy) { var strContent = JsonConvert.SerializeObject(allergy); var response = ApiConsumerHelper.PostData("api/addPatientAllergy", strContent); var result = JsonConvert.DeserializeObject <ApiResultModel>(response); return(result); }
public ApiResultModel UpdateFavourite(FavouriteDoctorModel model) { var strContent = JsonConvert.SerializeObject(model); var response = ApiConsumerHelper.PostData("api/unfavouriteDoctor", strContent); var result = JsonConvert.DeserializeObject <ApiResultModel>(response); return(result); }
public ApiResultModel AddPharmacy(PatientPharmacy_Custom pharmacy) { var strContent = JsonConvert.SerializeObject(pharmacy); var response = ApiConsumerHelper.PostData("api/addupdatePatientPharmacy", strContent); var result = JsonConvert.DeserializeObject <ApiResultModel>(response); return(result); }
public ApiResultModel EditPatientAllergy(long allergiesID, PatientAllergies_Custom condition) { var strContent = JsonConvert.SerializeObject(condition); var response = ApiConsumerHelper.PostData("api/editPatientAllergy?allergyID=" + allergiesID, strContent); var result = JsonConvert.DeserializeObject <ApiResultModel>(response); return(result); }
public Language Add(Language t) { var strContent = JsonConvert.SerializeObject(t); var response = ApiConsumerHelper.PostData("api/Languages", strContent); var result = JsonConvert.DeserializeObject <Language>(response); return(result); }
public List <Languages> Get() { var response = ApiConsumerHelper.GetResponseString("api/Languages"); var result = JsonConvert.DeserializeObject <List <Languages> >(response); // var result = JsonConvert.DeserializeObject<Language>(response); return(result); }
public ApiResultModel AddDoctorNotesPlans(long consultId, string plans) { var request = ApiConsumerHelper.PostData("api/addDoctorNotesPlans?consultId=" + consultId + "&plans=" + plans, ""); var result = JsonConvert.DeserializeObject <ApiResultModel>(request); return(result); }
public DoctorTimingsModel Put(long id, DoctorTimingsModel t) { var strContent = JsonConvert.SerializeObject(t); var response = ApiConsumerHelper.PutData("api/DoctorTimings/" + id, strContent); var result = JsonConvert.DeserializeObject <DoctorTimingsModel>(response); return(result); }