-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMedicalAppointment.vb
More file actions
58 lines (38 loc) · 1.88 KB
/
MedicalAppointment.vb
File metadata and controls
58 lines (38 loc) · 1.88 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
Namespace SimpleSchedulingExample
Public Class MedicalAppointment
Public Shared Function Create() As MedicalAppointment
Return New MedicalAppointment()
End Function
Friend Shared Function Create(ByVal startTime As Date, ByVal endTime As Date, ByVal doctorId As Integer, ByVal notes As String, ByVal location As String, ByVal categoryId As Integer, ByVal patientName As String, ByVal insuranceNumber As String, ByVal firstVisit As Boolean) As MedicalAppointment
Dim apt As MedicalAppointment = Create()
apt.StartTime = startTime
apt.EndTime = endTime
apt.DoctorId = doctorId
apt.Notes = notes
apt.Location = location
apt.CategoryId = categoryId
apt.PatientName = patientName
apt.InsuranceNumber = insuranceNumber
apt.FirstVisit = firstVisit
Return apt
End Function
Protected Sub New()
End Sub
Public Overridable Property Id As Integer
Public Overridable Property AllDay As Boolean
Public Overridable Property StartTime As Date
Public Overridable Property EndTime As Date
Public Overridable Property PatientName As String
Public Overridable Property Notes As String
Public Overridable Property Subject As String
Public Overridable Property StatusId As Integer
Public Overridable Property CategoryId As Integer
Public Overridable Property Type As Integer
Public Overridable Property Location As String
Public Overridable Property RecurrenceInfo As String
Public Overridable Property ReminderInfo As String
Public Overridable Property DoctorId As Integer?
Public Overridable Property InsuranceNumber As String
Public Overridable Property FirstVisit As Boolean
End Class
End Namespace