File size: 1,831 Bytes
776c96a
b087fcb
 
 
 
 
 
 
 
 
776c96a
 
b087fcb
776c96a
 
b087fcb
776c96a
 
b087fcb
776c96a
 
b087fcb
776c96a
 
b087fcb
776c96a
 
b087fcb
776c96a
 
b087fcb
776c96a
 
b087fcb
06c5bd6
 
b087fcb
776c96a
 
 
06c5bd6
 
cef0236
776c96a
cef0236
776c96a
cef0236
776c96a
cef0236
776c96a
cef0236
776c96a
cef0236
776c96a
cef0236
776c96a
cef0236
776c96a
 
 
06c5bd6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
import gradio as gr
from modules import register_patient
from modules import book_appointment
from modules import consultation
from modules import view_consultation
from modules import view_appointments
from modules import add_reports
from modules import view_patient_reports
from modules import connect_doctor
from modules import multi_tenant_login

def register_patient_page():
    return register_patient.create_gradio_interface()

def book_appointment_page():
    return book_appointment.create_gradio_interface()

def consultation_page():
    return consultation.create_gradio_interface()

def view_consultation_page():
    return view_consultation.create_gradio_interface()

def view_appointments_page():
    return view_appointments.create_gradio_interface()

def add_reports_page():
    return add_reports.create_gradio_interface()

def view_patient_reports_page():
    return view_patient_reports.create_gradio_interface()

def connect_doctor_page():
    return connect_doctor.create_gradio_interface()

def multi_tenant_login_page():
    return multi_tenant_login.create_gradio_interface()

with gr.Blocks() as app:
    gr.Markdown("## Patient Management App")
    with gr.Tab("Multi-Tenant Login"):
        multi_tenant_login_page()
    with gr.Tab("Register Patient"):
        register_patient_page()
    with gr.Tab("Book Appointment"):
        book_appointment_page()
    with gr.Tab("Consultation"):
        consultation_page()
    with gr.Tab("View Consultation"):
        view_consultation_page()
    with gr.Tab("View Appointments"):
        view_appointments_page()
    with gr.Tab("Add Reports"):
        add_reports_page()
    with gr.Tab("View Patient Reports"):
        view_patient_reports_page()
    with gr.Tab("Connect Doctor"):
        connect_doctor_page()

if __name__ == "__main__":
    app.launch()