Calendar: Show category colors for availability / free slots before booking an appointment

Title: Calendar: Show category colors for availability / free slots before booking an appointment

Body:

I want to glance at a provider’s day and instantly see availability by color, not just booked appointments.

Current behavior

  • Calendar Categories (Admin → Other → Calendar → Categories) have colors that only appear on booked appointments.

  • Free slots and In-Office blocks use default/transparent or limited coloring.

Desired behavior
Pre-populate the calendar with colored availability blocks (e.g., green = open morning, blue = open afternoon, yellow = limited slots) using the same category color system. When booking, replace the availability block with the real appointment category.

What I’ve tried

  • Creating extra categories and recurring In-Office events (works but clunky to manage/replace).

  • No core setting or module found for dynamic free-slot coloring.

OpenEMR version: 8.0.0 (3)

Question:

  1. Is there a built-in or module way to do this cleanly in current versions?

  2. If not, what is the cleanest customization path (CSS/JS override, PostCalendar template edit, or custom module)?

Happy to test patches or contribute if someone has a starting point.

Thanks!

Can you post a screenshot markup of what you want to happen? But to my knowledge, that does not exist, and no one has posted a module to do what you are asking.

Specifically, I simply want to be able to color code the 15 min blocks with one of the following patient types:
Green - NP New Patients, or IPO Initial Post Op
Blue - EPN Existing Patient New Condition
Yellow - Post Op
Brown - FU Follow Up
Red - EC Emergency Condition

These patient types are only a suggestion for the scheduler, however, and any patient type can be scheduled.

I am working on some code, now, and will post it if/when I get it to work.

There is a bug in the calendar code. Explore the template files to find it.