neerajkalyank commited on
Commit
f5394cc
1 Parent(s): 2150015

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -82,11 +82,12 @@ def test_interface(categories):
82
  return gr.update(choices=available_tests) # Update dropdown with available tests
83
 
84
  def confirm_tests_interface(patient_id, selected_tests):
85
- data = load_data()
86
- response = select_tests(patient_id, selected_tests, data)
87
- save_data(data)
88
  return response
89
 
 
90
  # Billing Tab
91
  def billing_interface(patient_id):
92
  data = load_data()
 
82
  return gr.update(choices=available_tests) # Update dropdown with available tests
83
 
84
  def confirm_tests_interface(patient_id, selected_tests):
85
+ patients, last_sequence = load_data() # Load both patients and last_sequence
86
+ response = select_tests(patient_id, selected_tests, patients) # Update patients directly
87
+ save_data(patients, last_sequence) # Save both patients and last_sequence
88
  return response
89
 
90
+
91
  # Billing Tab
92
  def billing_interface(patient_id):
93
  data = load_data()