Spaces:
Sleeping
Sleeping
Create patient_registration.py
Browse files- 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
|