lims / patient_registration.py
neerajkalyank's picture
Update patient_registration.py
932ac06 verified
raw
history blame contribute delete
224 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