Kod:
Dim patients As New List(Of Patient)()
Dim christoff As New Patient("Christoff")
christoff.Medications.Add(New Medication("Hydralazine", 20, New DateTime(2013, 1, 13)))
christoff.Medications.Add(New Medication("Combivent", 5, New DateTime(2013, 1, 2)))
Dim david As New Patient("David")
david.Medications.Add(New Medication("Indocin", 50, New DateTime(2013, 1, 3)))
Dim janet As New Patient("Janet")
janet.Medications.Add(New Medication("Combivent", 30, New DateTime(2013, 2, 3)))
janet.Medications.Add(New Medication("Indocin", 15, New DateTime(2013, 2, 3)))
Dim melanie As New Patient("Melanie")
melanie.Medications.Add(New Medication("Dilantin", 100, New DateTime(2013, 1, 12)))
Dim sam As New Patient("Sam")
sam.Medications.Add(New Medication("Enbrel", 20, New DateTime(2013, 1, 7)))
patients.Add(christoff)
patients.Add(david)
patients.Add(janet)
patients.Add(melanie)
patients.Add(sam)