Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Вивчайте Challenge: Appointment Reminder System | Healthcare Automation and Reporting
Practice
Projects
Quizzes & Challenges
Вікторини
Challenges
/
Python for Healthcare Professionals
Секція 3. Розділ 4
single

single

bookChallenge: Appointment Reminder System

Свайпніть щоб показати меню

Automating patient communication is a crucial task in modern healthcare settings, especially when it comes to appointment reminders. Missed appointments can lead to gaps in care and inefficiencies for clinics. You can use Python to streamline this process by analyzing a DataFrame containing patient names and appointment dates, then identifying which appointments are scheduled within the next 7 days. For each patient with an upcoming appointment, you can print a personalized reminder message. This approach not only saves staff time but also helps ensure that patients receive timely reminders, improving attendance rates and overall patient care.

Завдання

Swipe to start coding

Write a function get_upcoming_appointments(df) that:

  • Accepts a pandas DataFrame with columns:

    • Patient (string)
    • AppointmentDate (string in YYYY-MM-DD format)
  • Converts AppointmentDate to a datetime type.

  • Uses today’s date (datetime.date.today()) as the reference point.

  • Finds appointments scheduled from today through the next 7 days inclusive.

  • Prints one line per upcoming appointment, exactly in this format:

Reminder: [Patient Name], you have an appointment on [YYYY-MM-DD].

Rules:

  • Use only pandas and datetime (standard library).
  • Do not return anything. Only print reminders.
  • Rows with invalid dates should be ignored (no crash).
  • The order of printed reminders should follow the DataFrame row order.

Рішення

Switch to desktopПерейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів
Все було зрозуміло?

Як ми можемо покращити це?

Дякуємо за ваш відгук!

Секція 3. Розділ 4
single

single

Запитати АІ

expand

Запитати АІ

ChatGPT

Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат

some-alt