import datetime def register_patient(name, father_name, age, phone, address, pincode): today = datetime.datetime.now() patient_id = f"{today.year}{today.month:02d}{today.day:02d}{phone[-5:]}" return patient_id