Пример #1
0
        public List <Specialities> Get()
        {
            var response = ApiConsumerHelper.GetResponseString("api/Speciallities");
            var result   = JsonConvert.DeserializeObject <List <Specialities> >(response);

            return(result);
        }
Пример #2
0
        public IEnumerable <PatientFileType> GetPatientFileTypes()
        {
            var response = ApiConsumerHelper.GetResponseString("api/getFileTypes");
            var result   = JsonConvert.DeserializeObject <IEnumerable <PatientFileType> >(response);

            return(result);
        }
Пример #3
0
        public List <GetPatientConditions> LoadHealthConditions(long pid)
        {
            var response = ApiConsumerHelper.GetResponseString("api/getPatienConditions/?patientID=" + pid);
            var result   = JsonConvert.DeserializeObject <List <GetPatientConditions> >(response);

            return(result);
        }
Пример #4
0
        public List <DoctorTimingsModel> GetListByDoctorId(long doctorId)
        {
            var response = ApiConsumerHelper.GetResponseString("api/DoctorTimings?doctorId=" + doctorId);
            var result   = JsonConvert.DeserializeObject <List <DoctorTimingsModel> >(response);

            return(result);
        }
Пример #5
0
        public string GetDoctorTimeZoneID(long doctorId)
        {
            var response = ApiConsumerHelper.GetResponseString("api/getDoctorTimeZoneID?doctorId=" + doctorId);
            var result   = JsonConvert.DeserializeObject <string>(response);

            return(result);
        }
Пример #6
0
        public DoctorTimingsModel GetById(long id)
        {
            var response = ApiConsumerHelper.GetResponseString("api/DoctorTimings/" + id);
            var result   = JsonConvert.DeserializeObject <DoctorTimingsModel>(response);

            return(result);
        }
Пример #7
0
        public ApiResultModel DeletePatientFile(long fileID)
        {
            var response = ApiConsumerHelper.PostData("api/deletePatientFile?fileID=" + fileID, "");
            var result   = JsonConvert.DeserializeObject <ApiResultModel>(response);

            return(result);
        }
Пример #8
0
        public List <Frequency> GetFrequency()
        {
            var response = ApiConsumerHelper.GetResponseString("api/getFrequency");
            var result   = JsonConvert.DeserializeObject <List <Frequency> >(response);

            return(result);
        }
Пример #9
0
        public List <PSurgeries> LoadPatientSurgeries(long patientID)
        {
            var response = ApiConsumerHelper.GetResponseString("api/getPatienSurgeries/?patientID=" + patientID);
            var result   = JsonConvert.DeserializeObject <List <PSurgeries> >(response);

            return(result);
        }
Пример #10
0
        public ApiResultModel DeletePatientAllergy(long id)
        {
            var response = ApiConsumerHelper.PostData("api/deletePatientAllergy/?allergyID=" + id, "");
            var result   = JsonConvert.DeserializeObject <ApiResultModel>(response);

            return(result);
        }
Пример #11
0
        public List <ReactionModel> GetReactions()
        {
            var response = ApiConsumerHelper.GetResponseString("api/getReaction");
            var result   = JsonConvert.DeserializeObject <List <ReactionModel> >(response);

            return(result);
        }
Пример #12
0
        public List <AllergiesModel> GetAllergies(string prefix)
        {
            var response = ApiConsumerHelper.GetResponseString("api/getAllergy/?search=" + prefix);
            var result   = JsonConvert.DeserializeObject <List <AllergiesModel> >(response);

            return(result);
        }
Пример #13
0
        public long GetId(string userId)
        {
            var response = ApiConsumerHelper.GetResponseString("api/Doctors/Id?userId=" + userId, false);
            var result   = JsonConvert.DeserializeObject <long>(response);

            return(result);
        }
Пример #14
0
        public List <SensitivityModel> GetSensitivities()
        {
            var response = ApiConsumerHelper.GetResponseString("api/getSensitivity");
            var result   = JsonConvert.DeserializeObject <List <SensitivityModel> >(response);

            return(result);
        }
Пример #15
0
        public Language GetByUserId(string userId)
        {
            var response = ApiConsumerHelper.GetResponseString("api/Languages?userId=" + userId);
            var result   = JsonConvert.DeserializeObject <Language>(response);

            return(result);
        }
Пример #16
0
        public DoctorModel GetByUserId(string userId)
        {
            var response = ApiConsumerHelper.GetResponseString("api/Doctors?userId=" + userId, false);
            var result   = JsonConvert.DeserializeObject <DoctorModel>(response);

            return(result);
        }
Пример #17
0
        public List <SurgeriesModel> AutocompleteSurgery(string prefix)
        {
            var response = ApiConsumerHelper.GetResponseString("api/getAutoCompleteSurgeries/?search=" + prefix);
            var result   = JsonConvert.DeserializeObject <List <SurgeriesModel> >(response);

            return(result);
        }
Пример #18
0
        public List <MedicineModel> GetMedicines(string search)
        {
            var response = ApiConsumerHelper.GetResponseString("api/getMedicines/?search=" + search);
            var result   = JsonConvert.DeserializeObject <List <MedicineModel> >(response);

            return(result);
        }
Пример #19
0
        public IEnumerable <GetPatientUserFiles> GetPatientFiles(long patientID)
        {
            var response = ApiConsumerHelper.GetResponseString("api/getPatientFiles?patientID=" + patientID);
            var result   = JsonConvert.DeserializeObject <IEnumerable <GetPatientUserFiles> >(response);

            return(result);
        }
Пример #20
0
        public IEnumerable <AppFiles> GetAppFiles(long appID)
        {
            var response = ApiConsumerHelper.GetResponseString("api/getAppFiles?appID=" + appID);
            var result   = JsonConvert.DeserializeObject <IEnumerable <AppFiles> >(response);

            return(result);
        }
Пример #21
0
        public IQueryable <Language> GetLanguages(long langId)
        {
            var response = ApiConsumerHelper.GetResponseString("api/Languages?languageId=" + langId);
            var result   = JsonConvert.DeserializeObject <IQueryable <Language> >(response);

            return(result);
        }
Пример #22
0
        public GetPatientUserFiles GetDoctorAppointmentFile(long fileId)
        {
            var response = ApiConsumerHelper.GetResponseString("api/getDoctorAppointmentFile?fileId=" + fileId);
            var result   = JsonConvert.DeserializeObject <GetPatientUserFiles>(response);

            return(result);
        }
Пример #23
0
        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);
        }
Пример #24
0
        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);
        }
Пример #25
0
        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);
        }
Пример #26
0
        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);
        }
Пример #27
0
        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);
        }
Пример #28
0
        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);
        }
Пример #29
0
        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);
        }
Пример #30
0
        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);
        }