netflypsb commited on
Commit
3152d54
·
verified ·
1 Parent(s): a17abe9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -74,7 +74,7 @@ if action == "Select Patient":
74
  "Gender": patient_data.iloc[0]['Gender'],
75
  "Medical History": patient_data.iloc[0]['Medical History'],
76
  "Allergies": patient_data.iloc[0]['Allergies'],
77
- "Visit Date": new_visit_date,
78
  "Complaint": complaint,
79
  "Physical Examination": physical_exam,
80
  "Systolic BP": systolic_bp,
@@ -130,7 +130,7 @@ elif action == "Create New Patient":
130
  new_patient = {
131
  "Patient ID": new_patient_id,
132
  "Patient Name": new_patient_name,
133
- "Date of Birth": new_dob,
134
  "Age": new_age,
135
  "Gender": new_gender,
136
  "Medical History": new_med_history,
 
74
  "Gender": patient_data.iloc[0]['Gender'],
75
  "Medical History": patient_data.iloc[0]['Medical History'],
76
  "Allergies": patient_data.iloc[0]['Allergies'],
77
+ "Visit Date": pd.to_datetime(new_visit_date).strftime('%Y-%m-%d'),
78
  "Complaint": complaint,
79
  "Physical Examination": physical_exam,
80
  "Systolic BP": systolic_bp,
 
130
  new_patient = {
131
  "Patient ID": new_patient_id,
132
  "Patient Name": new_patient_name,
133
+ "Date of Birth": pd.to_datetime(new_dob).strftime('%Y-%m-%d'),
134
  "Age": new_age,
135
  "Gender": new_gender,
136
  "Medical History": new_med_history,