61f0279
1
2
3
4
5
6
7
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