Quick Appointment Service
DoctorAppointment package com.cts.das.bean; import java.time.LocalDateTime; import javax.validation.constraints.NotBlank; import javax.validation.constraints.NotNull; import javax.validation.constraints.Pattern; public class DoctorAppointment { private static int appointmentId=1000; //Use validation annotations as per the requirement // add constructor and increment appointmentId by 1 @NotNull(message="Patient name is required") private String patientName; @NotNull(message="Phone number is required") @Pattern(regexp="^//d{10}$",message="Phone number should be 10 digits.") private String phoneNumber; private LocalDateTime dateOfAappointment; @NotNull(message="Email is required") private String email; @NotNull(message="Age is required") private Integer age; @NotNull(message="Gender is required") private String gender; private String problemName; private String doctorName; private String appointmentStatus; public Doc...