The following code doesn't actually do anything, and some earlier changes are undone in this code. Still, if you are trying to keep up with the code, and want to make sure that the compilation works in the next section, here is how your code inside the Healthcare project should look:
Public Class Patient Dim msFirstName As String Dim PhysiciansList As New Collection() Dim miPatientID As Integer Public Property FirstName() As String Get Return msFirstName End Get Set(ByVal Value As String) msFirstName = Value End Set End Property Default Public ReadOnly Property Physicians _ (ByVal iIndex As Integer) As Physician Get Return CType(PhysiciansList(iIndex), Physician) End Get End Property Public Function Admit() As Boolean 'add patient to database, notify billing, etc. Return True End Function Event LabResult(ByVal LabType As String) Public Property PatientID() As Integer Get Return miPatientID End Get Set(ByVal Value As Integer) miPatientID = Value 'check labs database for this patient 'if there are new lab results RaiseEvent LabResult("CBC") End Set End Property End Class Public Class Physician Dim miPhysID As Integer Public Property PhysicianID() As Integer Get Return miPhysID End Get Set(ByVal Value As Integer) miPhysID = Value End Set End Property Public ReadOnly Property Age() As Single Get 'get Date of Birth (DOB) 'calculate age from DOB 'return age End Get End Property End Class
3.145.184.117