Anyone who’s tried booking an appointment at Peking University School of Stomatology knows how difficult it is. So let’s have ChatGPT write an appointment bot. Unfortunately, the booking logic it produced is hilariously superficial — basically a no-op:

import datetime

class PekingUniversityStomatologyHospital:
    def __init__(self):
        self.departments = ["Dentistry", "Periodontics", "Oral and Maxillofacial Surgery"]
        self.doctors = {
            "Dentistry": ["Dr. Zhang", "Dr. Wang"],
            "Periodontics": ["Dr. Li", "Dr. Zhao"],
            "Oral and Maxillofacial Surgery": ["Dr. Chen", "Dr. Liu"]
        }
        self.appointment_records = []

    def get_departments(self):
        return self.departments

    def get_doctors(self, department):
        return self.doctors.get(department, [])

    def make_appointment(self, department, doctor, date, time):
        appointment_info = {
            "Department": department,
            "Doctor": doctor,
            "DateTime": datetime.datetime.strptime(f"{date} {time}", "%Y-%m-%d %H:%M"),
            "Status": "Scheduled"
        }
        self.appointment_records.append(appointment_info)
        return appointment_info

# Usage example
hospital = PekingUniversityStomatologyHospital()

# Get department list
departments_list = hospital.get_departments()
print("Departments:", departments_list)

# Get dentistry doctor list
dentistry_doctors_list = hospital.get_doctors("Dentistry")
print("Dentistry doctors:", dentistry_doctors_list)

# Make appointment
appointment_info = hospital.make_appointment("Dentistry", "Dr. Zhang", "2023-01-01", "09:00")
print("Appointment made:", appointment_info)

# View appointment records
print("Appointment records:", hospital.appointment_records)