public MicroserviceSearchAppointmentDto(int id, MicroserviceDoctorDto doctor, string date, string roomId, List <MicroserviceReferralDto> referrals) { Id = id; Doctor = doctor; Date = date; RoomId = roomId; Referrals = referrals; }
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); }
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; }
/// <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)); }
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; }