translate the sequence diagram into c++ code and provide me with the updated domain model, if necessary
Medical Lab Automation System General Overview: As mentioned earlier, the patient can book an appointment online and selects the desired medical test he wants to perform. To book an appointment, the patient must register on the system by entering his full name, address, phone number, email, and password. In case the user is already registered in the system, he can log in to the system directly using his username and password. After that, he should make a new appointment by selecting the desired date and time. The patient can then select from the different types of available medical tests and add them to the booked appointment. The user can add multiple tests to the booked appointment. Once the patient finishes adding the desired tests, he can check out to complete his booking. The system calculates the total cost of the added tests and displays the total to the patient. After that, the system sends a message to the patient's phone number to confirm the booked appointment. Given the above problem description, you are required to come up with the sequence diagram for booking an appointment. Below, you can find our initial domain model. Feel free to update the domain model as needed to design your solution. -for -has TestResult -result: double MedicalTest -name: string -price: double -unit: string -lowsetValue: double -highestValue: double for 1 1 1 -has -has -for Appointment -appointment Date: Date appointmnetTime : Date Payment value 1 for CashPayment Online Payment 1 has Patient -fullName : string address : string phoneNumer : string email : string password: string Patients Login Receptor Reception Database Database Medical Lab registrant data) addoDatabase already registered login(username, password) check Logged in skocessfully newAppointment datetime) cheekabo ab pable ask for medical tests Total costs of added tests confirming booking through sendings Patients Login Reception Database Database Medical Labi 1 register patient data) addToDatabase already registered login(username password) checkDatabase logged in successfully newAppointment(date, time) checklabo lab is available ask for medical tests tests total costs of added tests confirming booking through sendirlo sms - 1 1 log invalid username or password ---- Dointment(date, time) | 1 1