// 22.5hv2 Software Engineering II // Unit 4 exercise 3 #include #include #include "patient.h" ostream& operator<<(ostream& ostr, const Patient& p) { ostr << endl << "Personal details:" << endl; ostr << setw(7) << "Name: " << p.name << endl; if (p.sex == 'm') ostr << setw(7) << "Sex: " << "male" << endl; else ostr << setw(7) << "Sex: " << "female" << endl; ostr << setw(7) << "dob: " << p.dob << endl; ostr << endl << "Admission: " << p.admission << endl; ostr << endl << "Doctor: " << p.doctor << endl; return ostr; }