lims / patient_registration.py
neerajkalyank's picture
Create patient_registration.py
61f0279 verified
raw
history blame
223 Bytes
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