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