Beispiel #1
0
 public MicroserviceSearchAppointmentDto(int id, MicroserviceDoctorDto doctor, string date, string roomId, List <MicroserviceReferralDto> referrals)
 {
     Id        = id;
     Doctor    = doctor;
     Date      = date;
     RoomId    = roomId;
     Referrals = referrals;
 }
Beispiel #2
0
        public static async Task <MicroserviceDoctorDto> GetDoctorByIdAsync(int id)
        {
            var responseString = await client.GetAsync($"{usersServiceUrl}api/doctor/{id}");

            MicroserviceDoctorDto doc = await responseString.Content.ReadAsAsync <MicroserviceDoctorDto>();

            return(doc);
        }
Beispiel #3
0
 public MicroserviceSurveyDoctorAverageDto(MicroserviceDoctorDto doctor, double doctorAverage, double doctorsProfessionalismAverage, double doctorsPolitenessAverage, double doctorsTechnicalityAverage, double doctorsSkillAverage, double doctorsKnowledgeAverage, double doctorsWorkingPaceAverage)
 {
     Doctor        = doctor;
     DoctorAverage = doctorAverage;
     DoctorsProfessionalismAverage = doctorsProfessionalismAverage;
     DoctorsPolitenessAverage      = doctorsPolitenessAverage;
     DoctorsTechnicalityAverage    = doctorsTechnicalityAverage;
     DoctorsSkillAverage           = doctorsSkillAverage;
     DoctorsKnowledgeAverage       = doctorsKnowledgeAverage;
     DoctorsWorkingPaceAverage     = doctorsWorkingPaceAverage;
 }
Beispiel #4
0
        /// <summary>This method creates <c>OperationDto</c> from provided <paramref name="operation"/>.</summary>
        /// <param name="operation"><c>operation</c> is <c>Operatiion</c> that contains doctor's first name and surname, <c>OperationReferral</c> and <c>Date</c>.</param>
        /// <returns> Created <c>OperationDto</c>. </returns>
        public OperationDto OperationToOperationDto(Operation operation)
        {
            MicroserviceDoctorDto doctor = Utility.HttpRequests.GetDoctorByIdAsync(operation.DoctorUserId).Result;

            return(new OperationDto(doctor.Name + " " + doctor.Surname, operation.OperationReferral, operation.Date));
        }
Beispiel #5
0
 public MicroservicePrescriptionDto(MicroserviceDoctorDto doctor, int id, int patientsid, List <PrescribedMedicine> medicines, bool isUsed, string comment, int doctorId, int appointmentId) : base(id, patientsid, medicines, isUsed, comment, doctorId, appointmentId)
 {
     Doctor = doctor;
 }