90 likes | 276 Views
example. doctor’s office. Object-Oriented Problem Analysis. Visitation. Person. patient. visitDate. firstname. diagnosis. surname. address. birthDate. age. doctor. Doctor. specialization. Object-Oriented Implementation. 1. patient. Visitation. Person. Visitations. Patients.
E N D
example doctor’s office
Object-Oriented Problem Analysis Visitation Person patient visitDate firstname diagnosis surname address birthDate age doctor Doctor specialization
Object-Oriented Implementation 1 patient Visitation Person Visitations Patients visitDate firstname diagnosis surname address birthDate age doctor * 1 Doctor Doctors visitations specialization
New Datasegment and User Creation DataCurator: UserProfile newWithUserId: #demo password: ’xyz’ defaultSegment: Education privileges: #( ) inGroups: #(#StandardUser)
Class and Method Programming in VW and GS Visitation willComeToday ^nextVisitDate = Date today
Doctors select: {:d | d.visitations.*.patient.surname = 'Smith'}. Doctors select: {:d | d.visitations.*.patient.surname = d.surname}. (Doctors select: {:d | d.visitations.*.diagnosis = 'tonsilitis'} )project: #(name specialization). | d | d := Doctors select: {:d | d.visitations.*.diagnosis = 'tonsilitis'}. d project: #(name specialization). ( (Doctors select: {:d | d.specialization = 'surgeon'}) collect: {:d | d.visitations} ) flatten.