neerajkalyank commited on
Commit
61f0279
·
verified ·
1 Parent(s): 2295b8f

Create patient_registration.py

Browse files
Files changed (1) hide show
  1. patient_registration.py +6 -0
patient_registration.py ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ import datetime
2
+
3
+ def register_patient(name, father_name, age, phone, address, pincode):
4
+ today = datetime.datetime.now()
5
+ patient_id = f"{today.year}{today.month:02d}{today.day:02d}{phone[-5:]}"
6
+ return patient_id