Spaces:
Running
Running
hopefully final
Browse files
app.py
CHANGED
@@ -29,6 +29,7 @@ form_fields = [
|
|
29 |
"Age",
|
30 |
"Gender",
|
31 |
"Chief complaint",
|
|
|
32 |
"Dental history",
|
33 |
"Clinical Findings",
|
34 |
"Treatment plan",
|
@@ -99,6 +100,7 @@ def fill_textboxes(context):
|
|
99 |
"Age": answers[0],
|
100 |
"Gender": answers[1],
|
101 |
"Chief complaint": answers[2],
|
|
|
102 |
"Dental history": answers[3],
|
103 |
"Clinical Findings": answers[4],
|
104 |
"Treatment plan": answers[5],
|
@@ -117,8 +119,7 @@ def main(audio, doctor_name, location):
|
|
117 |
|
118 |
answers = fill_textboxes(context)
|
119 |
answers_list = [doctor_name, location] + [""] # Initial patient name field empty
|
120 |
-
answers_list += [answers.get(field, "") for field in form_fields
|
121 |
-
answers_list.append("") # Placeholder for "Referred to"
|
122 |
|
123 |
return answers_list
|
124 |
|
|
|
29 |
"Age",
|
30 |
"Gender",
|
31 |
"Chief complaint",
|
32 |
+
"Medical history",
|
33 |
"Dental history",
|
34 |
"Clinical Findings",
|
35 |
"Treatment plan",
|
|
|
100 |
"Age": answers[0],
|
101 |
"Gender": answers[1],
|
102 |
"Chief complaint": answers[2],
|
103 |
+
"Medical history": "none", # Medical history is not part of the questions
|
104 |
"Dental history": answers[3],
|
105 |
"Clinical Findings": answers[4],
|
106 |
"Treatment plan": answers[5],
|
|
|
119 |
|
120 |
answers = fill_textboxes(context)
|
121 |
answers_list = [doctor_name, location] + [""] # Initial patient name field empty
|
122 |
+
answers_list += [answers.get(field, "") for field in form_fields]
|
|
|
123 |
|
124 |
return answers_list
|
125 |
|