xxxxxxxxxx
78
//WELCOME TO THE CS UNIVERSITY COMMUNITY HEALTH SYSTEM
//A Class has already been created to track patient information and is currently in a trial run. This Class creates an object for each patient. Each object has the following properties:
// name
// age
// weight
// height
// bloodType
// school
// vaccines
// doctor
// concern
// nextAppointment
//To preserve the confidentiality of each patient, the variables made to hold their information are named the following (they already exist for you to access):
// patient1
// patient2
// patient3
// patient4
// patient5
// Use this information to work through the code along and challenges below - try to practice the skills we are discussing so that you are able to use them later!
// 1. patient5's name has a typo, it is supposed to say "Miranda". Print their name to the console, update spelling and check it is corrected by printing again.
// 2. Learn the names of the other 4 patients using console.log()
// 3. Two of the patients are the same age - console.log() the ages of all 5 patients and then leave your answer as to which two are the same as a comment!
// 4. Two of the patients have the same blood type. console.log() the bloodType of all 5 patients and then leave your answer as to which two are the same as a comment!
// 5. patient3 comes in for a checkup and it turns out she has lost 5 pounds. Update her weight and then console.log it to make sure it is correct.
// 6. patient2 comes in with a sprained ankle. Update her concern to 'Sprained ankle' and then console.log it to make sure it is correct.
// 7. patient2 also needs a follow up appointment to check on her ankle - update nextAppointment to March 17th, then console.log it to make sure it's correct.
// 8. patient4 has requested to move their primary care clinic to the location across campus (it's closer to their dorm) and so her doctor will change to Candice Fraser. Update her doctor and console.log it to make sure it's correct.
// 9. patient5 will be completing a study abroad at CS University's Toronto Campus. Update their school to 'CS University - Toronto' and console.log it to make sure it's correct.
//SPICY🌶 CHALLENGE
// 10. patient2 and patient3 are Education Majors and will be completing their student teaching this year - that makes them eligible for a COVID 19 vaccine.
//Vaccines are currently stored as a list. Use the .push() method to add the Moderna vaccine to patient2's vaccine list and the Pfizer vaccine to patient3's vaccine list.
//console.log both when you are done to make sure they include the new vaccine!