You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// - Represents the unique identifier for the appointment.
8
-
// - This is the primary key for identifying the appointment in the system.
9
-
10
-
// 2. 'doctorId' field:
11
-
// - Type: private Long
12
-
// - Description:
13
-
// - Represents the ID of the doctor associated with the appointment.
14
-
// - This is a simplified field, capturing only the ID of the doctor (not the full Doctor object).
15
-
16
-
// 3. 'doctorName' field:
17
-
// - Type: private String
18
-
// - Description:
19
-
// - Represents the name of the doctor associated with the appointment.
20
-
// - This is a simplified field for displaying the doctor's name.
21
-
22
-
// 4. 'patientId' field:
23
-
// - Type: private Long
24
-
// - Description:
25
-
// - Represents the ID of the patient associated with the appointment.
26
-
// - This is a simplified field, capturing only the ID of the patient (not the full Patient object).
27
-
28
-
// 5. 'patientName' field:
29
-
// - Type: private String
30
-
// - Description:
31
-
// - Represents the name of the patient associated with the appointment.
32
-
// - This is a simplified field for displaying the patient's name.
33
-
34
-
// 6. 'patientEmail' field:
35
-
// - Type: private String
36
-
// - Description:
37
-
// - Represents the email of the patient associated with the appointment.
38
-
// - This is a simplified field for displaying the patient's email.
39
-
40
-
// 7. 'patientPhone' field:
41
-
// - Type: private String
42
-
// - Description:
43
-
// - Represents the phone number of the patient associated with the appointment.
44
-
// - This is a simplified field for displaying the patient's phone number.
45
-
46
-
// 8. 'patientAddress' field:
47
-
// - Type: private String
48
-
// - Description:
49
-
// - Represents the address of the patient associated with the appointment.
50
-
// - This is a simplified field for displaying the patient's address.
51
-
52
-
// 9. 'appointmentTime' field:
53
-
// - Type: private LocalDateTime
54
-
// - Description:
55
-
// - Represents the scheduled date and time of the appointment.
56
-
// - The time when the appointment is supposed to happen, stored as a LocalDateTime object.
57
-
58
-
// 10. 'status' field:
59
-
// - Type: private int
60
-
// - Description:
61
-
// - Represents the status of the appointment.
62
-
// - Status can indicate if the appointment is "Scheduled:0", "Completed:1", or other statuses (e.g., "Canceled") as needed.
63
-
64
-
// 11. 'appointmentDate' field (Custom Getter):
65
-
// - Type: private LocalDate
66
-
// - Description:
67
-
// - A derived field representing only the date part of the appointment (without the time).
68
-
// - Extracted from the 'appointmentTime' field.
69
-
70
-
// 12. 'appointmentTimeOnly' field (Custom Getter):
71
-
// - Type: private LocalTime
72
-
// - Description:
73
-
// - A derived field representing only the time part of the appointment (without the date).
74
-
// - Extracted from the 'appointmentTime' field.
75
-
76
-
// 13. 'endTime' field (Custom Getter):
77
-
// - Type: private LocalDateTime
78
-
// - Description:
79
-
// - A derived field representing the end time of the appointment.
80
-
// - Calculated by adding 1 hour to the 'appointmentTime' field.
81
-
82
-
// 14. Constructor:
83
-
// - The constructor accepts all the relevant fields for the AppointmentDTO, including simplified fields for the doctor and patient (ID, name, etc.).
84
-
// - It also calculates custom fields: 'appointmentDate', 'appointmentTimeOnly', and 'endTime' based on the 'appointmentTime' field.
85
-
86
-
// 15. Getters:
87
-
// - Standard getter methods are provided for all fields: id, doctorId, doctorName, patientId, patientName, patientEmail, patientPhone, patientAddress, appointmentTime, status, appointmentDate, appointmentTimeOnly, and endTime.
88
-
// - These methods allow access to the values of the fields in the AppointmentDTO object.
0 commit comments