コード例 #1
0
        public IActionResult GetExamination(int id)
        {
            var jmbg = HttpContext.User.FindFirst("Jmbg").Value;

            return(RequestAdapter.SendRequestWithoutBody(_serviceSettings.PatientServiceUrl,
                                                         "/api/patient/" + jmbg + "/examination/" + id,
                                                         Method.GET));
        }
コード例 #2
0
 public IActionResult GetSurveyResultAboutDoctor(string jmbg)
 {
     return(RequestAdapter.SendRequestWithoutBody(_serviceSettings.FeedbackAndSurveyServiceUrl, "/api/survey/report/doctor/" + jmbg, Method.GET));
 }
コード例 #3
0
        public ActionResult GetPermissions()
        {
            var patientJmbg = HttpContext.User.FindFirst("Jmbg").Value;

            return(RequestAdapter.SendRequestWithoutBody(_serviceSettings.FeedbackAndSurveyServiceUrl, "/api/survey/patient/" + patientJmbg + "/permission", Method.GET));
        }
コード例 #4
0
        public IActionResult GetPatientMedicalInfo()
        {
            var jmbg = HttpContext.User.FindFirst("Jmbg").Value;

            return(RequestAdapter.SendRequestWithoutBody(_serviceSettings.PatientServiceUrl, "/api/patient/" + jmbg + "/medical-info", Method.GET));
        }
コード例 #5
0
        public IActionResult GetPatientByJmbg()
        {
            var jmbg = HttpContext.User.FindFirst("Jmbg").Value;

            return(RequestAdapter.SendRequestWithoutBody(_serviceSettings.UserServiceUrl, "/api/patient/" + jmbg, Method.GET));
        }
コード例 #6
0
 public ActionResult PublishFeedback(int id)
 {
     return(RequestAdapter.SendRequestWithoutBody(_serviceSettings.FeedbackAndSurveyServiceUrl, "/api/feedback/" + id + "/publish", Method.POST));
 }
コード例 #7
0
 public IActionResult GetSpecialities()
 {
     return(RequestAdapter.SendRequestWithoutBody(_serviceSettings.UserServiceUrl, "/api/specialty", Method.GET));
 }
コード例 #8
0
 public IActionResult GetActionBenefits()
 {
     return(RequestAdapter.SendRequestWithoutBody(_serviceSettings.UserServiceUrl, "/api/action", Method.GET));
 }
コード例 #9
0
        public ActionResult ActivatePatient(string jmbg)
        {
            string decryptedJmbg = _encryptionService.DecryptString(jmbg);

            return(RequestAdapter.SendRequestWithoutBody(_serviceSettings.UserServiceUrl, "/api/patient/" + decryptedJmbg + "/activate", Method.POST));
        }
コード例 #10
0
        public ActionResult GetPreviousExaminationsByPatient()
        {
            var patientJmbg = HttpContext.User.FindFirst("Jmbg").Value;

            return(RequestAdapter.SendRequestWithoutBody(_serviceSettings.ScheduleServiceUrl, "/api/examination/finished/patient/" + patientJmbg, Method.GET));
        }
コード例 #11
0
 public ActionResult CancelExamination(int id)
 {
     return(RequestAdapter.SendRequestWithoutBody(_serviceSettings.ScheduleServiceUrl, "/api/examination/" + id + "/cancel", Method.POST));
 }
コード例 #12
0
 public ActionResult Get(int id)
 {
     return(RequestAdapter.SendRequestWithoutBody(_serviceSettings.ScheduleServiceUrl, "/api/examination/" + id, Method.GET));
 }
コード例 #13
0
 public IActionResult GetCitiesByCountryId(int countryId)
 {
     return(RequestAdapter.SendRequestWithoutBody(_serviceSettings.UserServiceUrl, "/api/city/country/" + countryId, Method.GET));
 }
コード例 #14
0
 public IActionResult GetSpecialistDoctorsBySpecialtyId(int id)
 {
     return(RequestAdapter.SendRequestWithoutBody(_serviceSettings.UserServiceUrl, "/api/doctor/specialty/" + id, Method.GET));
 }
コード例 #15
0
 public ActionResult GetAllDoctors()
 {
     return(RequestAdapter.SendRequestWithoutBody(_serviceSettings.UserServiceUrl, "/api/doctor", Method.GET));
 }
コード例 #16
0
 public IActionResult GetSurveyResultAboutHospital()
 {
     return(RequestAdapter.SendRequestWithoutBody(_serviceSettings.FeedbackAndSurveyServiceUrl, "/api/survey/report/hospital", Method.GET));
 }
コード例 #17
0
 public IActionResult GetAll()
 {
     return(RequestAdapter.SendRequestWithoutBody(_serviceSettings.EventSourcingServiceUrl, "/api/patientSchedulingEvent", Method.GET));
 }
コード例 #18
0
 public IActionResult GetMaliciousPatients()
 {
     return(RequestAdapter.SendRequestWithoutBody(_serviceSettings.UserServiceUrl, "/api/patient/malicious", Method.GET));
 }
コード例 #19
0
        public ActionResult GetTherapiesByPatient()
        {
            var patientJmbg = HttpContext.User.FindFirst("Jmbg").Value;

            return(RequestAdapter.SendRequestWithoutBody(_serviceSettings.PatientServiceUrl, "/api/patient/" + patientJmbg + "/therapy", Method.GET));
        }
コード例 #20
0
 public ActionResult BlockPatient(string jmbg)
 {
     return(RequestAdapter.SendRequestWithoutBody(_serviceSettings.UserServiceUrl, "/api/patient/" + jmbg + "/block", Method.POST));
 }
コード例 #21
0
 public IActionResult GetCountries()
 {
     return(RequestAdapter.SendRequestWithoutBody(_serviceSettings.UserServiceUrl, "/api/country", Method.GET));
 }
コード例 #22
0
 public ActionResult GetUnpublishedFeedbacks()
 {
     return(RequestAdapter.SendRequestWithoutBody(_serviceSettings.FeedbackAndSurveyServiceUrl, "/api/feedback/unpublished", Method.GET));
 }