Appts with same date grouped into sets for display in the Patient Summary

epsdky wrote on Friday, June 10, 2016:

Hello Brady,

Here is a pull request for code to group appts with same date into sets for display in the Patient Summary

When the number of appts scheduled is greater than the number of appts configured to appear in the Appointments widget the last set turns green if all appts for the corresponding date are included for display and pink if all appts are not present.

Regards,

epsdky.

teryhill wrote on Friday, June 10, 2016:

epsdky it tests good for me. no problems .

epsdky wrote on Saturday, June 11, 2016:

Thanks Terry,

bradymiller wrote on Sunday, June 12, 2016:

Hi epsdky,
Very nice. I committed this to the main codebase. Thanks for yet another very nice contribution :slight_smile:
-brady
OpenEMR

epsdky wrote on Tuesday, June 14, 2016:

Hello Brady,

Thank you. You’re welcome.

Currently appts belonging to the last set turn pink if there are more appts scheduled than are configured to appear in the Patient Summary and more appts are set for the date associated with the last set than are shown (i.e. last set is incomplete) I am thinking of adding an extra line after the last (pink) appt to emphasize this…

2016-06-14, 09:00 am (Tuesday)
Status( - ) Office Visit
Dr Provider
2016-06-14 (+) (new line)

(more appts exist starting with same date)

Perhaps a similar thing for green sets…

2016-06-16, 09:00 am (Tuesday)
Status( - ) Office Visit
Dr Provider
2016-08-06 (+)

(more appts exist starting on a different date)

Regards,

epsdky.

bradymiller wrote on Wednesday, June 15, 2016:

Hi epsdky,

Sounds like a great idea. Another thing to consider is to show the full day of appt even if it breaks the limit (perhaps could add a global to turn this type of feature on/off).

-brady
OpenEMR

epsdky wrote on Wednesday, June 15, 2016:

Hello Brady,

Thank you, I will add the extra line idea to the code.

Showing all appts for the last date was the original plan however I decided on the current model. I will add it to the code as an optional feature.

Other ideas…

Appts for the current day turn yellow.

Make colors associated with sets configurable.

Regards,

epsdky.

bradymiller wrote on Thursday, June 16, 2016:

Hi,
The sky is the limit on this kind of stuff. All your ideas sound good. Regarding the coloring, I was ok with the subtle coloring; the nice thing about the subtle coloring is that it likely won’t clash with other themes.
-brady
OpenEMR

teryhill wrote on Thursday, June 16, 2016:

I think allowing the users to select their own colors would be a positive thing to do.