Py.Cafe

noordentist/

dental-clinic-management-system

Dental Clinic Management System

DocsPricing
  • app.py
  • requirements.txt
app.py
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
63
64
65
66
67
68
69
70
71
import streamlit as st

# =============================================================================
# Modular Pages for the Dashboard
# =============================================================================
def treatment_planning_page():
    st.header("Treatment Planning")
    st.write("This section will help with planning dental treatments.")

def inventory_page():
    st.header("Inventory")
    st.write("Manage and view your inventory here.")

def scheduling_page():
    st.header("Scheduling")
    st.write("Schedule appointments and manage calendars here.")

def lab_records_page():
    st.header("Lab Records")
    st.write("Access and manage dental lab records here.")

def dashboard_page():
    st.title("Dental Clinic Dashboard")
    menu = ["Treatment Planning", "Inventory", "Scheduling", "Lab Records", "Return to Home"]
    choice = st.sidebar.radio("Navigation", menu)
    
    if choice == "Treatment Planning":
        treatment_planning_page()
    elif choice == "Inventory":
        inventory_page()
    elif choice == "Scheduling":
        scheduling_page()
    elif choice == "Lab Records":
        lab_records_page()
    elif choice == "Return to Home":
        st.session_state.current_page = "landing"
        st.rerun()

# =============================================================================
# Landing Page with Introduction and a Button to Enter Dashboard
# =============================================================================
def landing_page():
    st.title("Welcome to Our Dental Clinic")
    st.markdown("## About Our Clinic")
    st.write(
        """
        Our clinic offers comprehensive dental services including routine check-ups,
        cosmetic dentistry, orthodontics, and emergency dental care. We are committed to
        providing high-quality patient care with a focus on compassion and excellence.
        """
    )
    
    if st.button("Enter Dashboard"):
        st.session_state.current_page = "dashboard"
        st.rerun()

# =============================================================================
# Main Application Control
# =============================================================================
def main():
    if "current_page" not in st.session_state:
        st.session_state.current_page = "landing"

    if st.session_state.current_page == "dashboard":
        dashboard_page()
    else:
        landing_page()

if __name__ == "__main__":
    main()