Spaces:
Runtime error
Runtime error
import streamlit as st | |
import time | |
def display_flashcard(main_point, subpoints): | |
# Set the page configuration for a wide view | |
st.set_page_config(layout="wide") | |
# Use large fonts to display the flashcards | |
st.markdown(f"<h1 style='text-align: center;'>{main_point}</h1>", unsafe_allow_html=True) | |
for subpoint in subpoints: | |
st.markdown(f"<h2 style='text-align: center;'>{subpoint}</h2>", unsafe_allow_html=True) | |
time.sleep(10) | |
def main(): | |
# CHARMSED outline | |
outline = { | |
"Coder π»": [ | |
"Health Informatics Specialist: Manage and analyze health data to improve patient care.", | |
"Clinical Software Engineer: Design and maintain software solutions for healthcare institutions.", | |
"Medical Data Scientist: Analyze patient and clinical data for actionable insights." | |
], | |
"Humanities Expert π": [ | |
"Medical Ethicist: Address ethical issues arising in medical practice and research.", | |
"Patient Advocate: Represent and support patients' rights and interests.", | |
"Healthcare Historian: Study and interpret the history of medicine and healthcare." | |
], | |
"Analyst π€": [ | |
"Healthcare Data Analyst: Process and analyze health data for decision-making.", | |
"Epidemiologist: Study disease patterns and develop strategies for prevention.", | |
"Behavioral Health Analyst: Assess and interpret behavioral health data to guide treatment." | |
], | |
"Roleplay Expert π": [ | |
"Medical Simulation Specialist: Design and execute simulations for medical training.", | |
"Patient Experience Trainer: Educate healthcare staff on improving patient interactions.", | |
"Clinical Psychologist: Understand and address patient behaviors and mental health needs." | |
], | |
"Mathematician β": [ | |
"Biostatistician: Apply statistical methods to biological and health data.", | |
"Health Economist: Analyze the economic aspects of health and healthcare.", | |
"Medical Research Scientist: Develop and apply mathematical models in medical research." | |
], | |
"STEM Expert π¬": [ | |
"Biomedical Engineer: Design and develop medical devices and technologies.", | |
"Pharmaceutical Researcher: Study and develop new drugs for patient care.", | |
"Clinical Laboratory Scientist: Conduct tests and procedures to diagnose diseases." | |
], | |
"Extraction Expert π": [ | |
"Medical Librarian: Manage and provide access to medical literature and resources.", | |
"Clinical Documentation Specialist: Ensure the accuracy and completeness of patient records.", | |
"Medical Researcher: Extract and interpret data from medical studies to provide insights." | |
], | |
"Drafter π": [ | |
"Medical Writer: Produce clear and accurate documentation for medical research and publications.", | |
"Healthcare Educator: Develop and deliver educational content for patients and professionals.", | |
"Clinical Documentation Editor: Ensure clarity and coherence in patient records and clinical documentation." | |
] | |
} | |
# Iterate through the outline to display each flashcard | |
for main_point, subpoints in outline.items(): | |
display_flashcard(main_point, subpoints) | |
# Run the Streamlit app | |
if __name__ == "__main__": | |
main() | |