Spaces:
Sleeping
Sleeping
neerajkalyank
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -98,9 +98,8 @@ with gr.Blocks() as app:
|
|
98 |
address = gr.Textbox(label="Address", placeholder="Enter full address", lines=2, elem_id="address_field")
|
99 |
|
100 |
register_button = gr.Button("Register Patient", elem_id="register_button")
|
101 |
-
registration_output = gr.
|
102 |
|
103 |
-
# Link button click to registration interface function
|
104 |
register_button.click(registration_interface, [name, father_name, age, gender, phone, address], registration_output)
|
105 |
|
106 |
with gr.Tab("Tests"):
|
@@ -111,10 +110,11 @@ with gr.Blocks() as app:
|
|
111 |
label="Select Test Categories"
|
112 |
)
|
113 |
available_tests = gr.CheckboxGroup(label="Available Tests")
|
114 |
-
confirm_button = gr.Button("Confirm Tests")
|
115 |
-
|
|
|
|
|
116 |
|
117 |
-
# Update available tests based on selected categories
|
118 |
categories.change(test_interface, inputs=categories, outputs=available_tests)
|
119 |
confirm_button.click(confirm_tests_interface, [patient_id_test, available_tests], test_output)
|
120 |
|
@@ -122,9 +122,13 @@ with gr.Blocks() as app:
|
|
122 |
gr.Markdown("<h2>Billing Information</h2>")
|
123 |
patient_id_bill = gr.Textbox(label="Patient ID", placeholder="Enter Patient ID for Billing")
|
124 |
fetch_button = gr.Button("Fetch Billing Details")
|
125 |
-
|
|
|
|
|
|
|
126 |
fetch_button.click(billing_interface, [patient_id_bill], billing_output)
|
127 |
|
|
|
128 |
# Custom CSS styling
|
129 |
app.css = """
|
130 |
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');
|
|
|
98 |
address = gr.Textbox(label="Address", placeholder="Enter full address", lines=2, elem_id="address_field")
|
99 |
|
100 |
register_button = gr.Button("Register Patient", elem_id="register_button")
|
101 |
+
registration_output = gr.Markdown(label="Registration Output", elem_id="registration_output")
|
102 |
|
|
|
103 |
register_button.click(registration_interface, [name, father_name, age, gender, phone, address], registration_output)
|
104 |
|
105 |
with gr.Tab("Tests"):
|
|
|
110 |
label="Select Test Categories"
|
111 |
)
|
112 |
available_tests = gr.CheckboxGroup(label="Available Tests")
|
113 |
+
confirm_button = gr.Button("Confirm Selected Tests")
|
114 |
+
|
115 |
+
# Use Markdown for Test Selection Output to allow for auto-expanding content
|
116 |
+
test_output = gr.Markdown(label="Test Selection Output", elem_id="test_output")
|
117 |
|
|
|
118 |
categories.change(test_interface, inputs=categories, outputs=available_tests)
|
119 |
confirm_button.click(confirm_tests_interface, [patient_id_test, available_tests], test_output)
|
120 |
|
|
|
122 |
gr.Markdown("<h2>Billing Information</h2>")
|
123 |
patient_id_bill = gr.Textbox(label="Patient ID", placeholder="Enter Patient ID for Billing")
|
124 |
fetch_button = gr.Button("Fetch Billing Details")
|
125 |
+
|
126 |
+
# Use Markdown for Billing Output to allow for auto-expanding content
|
127 |
+
billing_output = gr.Markdown(label="Billing Information", elem_id="billing_output")
|
128 |
+
|
129 |
fetch_button.click(billing_interface, [patient_id_bill], billing_output)
|
130 |
|
131 |
+
|
132 |
# Custom CSS styling
|
133 |
app.css = """
|
134 |
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');
|