Support for recurring appointments in the Patient Summary

epsdky wrote on Friday, July 24, 2015:

Hello Brady,

I have added code to the Patient Summary for recurring appointments here

For each recurring appointment, the first date that is >= the current date and is not an exdate is displayed.

All displayed recurring appointment dates can be edited.

The bug in the calendar for recurrtype=2 appointments (effecting days of the month 29, 30, 31) is mirrored.

Regards,

epsdky.

EDIT - I have withdrawn the link since I have found a problem that needs to be fixed.

EDIT 2 - The problem was I have a fix for the recurrtype 2 calendar bug (that effects days of the month 29, 30, 31) in my test install, but I have included this same bug in the new code (for consistency), so I was getting different results for calendar and Patient Summary because if this. I will reinstate the link as soon as I double check a bit latter.

bradymiller wrote on Saturday, July 25, 2015:

Hi epsdky,

Good to see this moving ahead. It would be nice to have the solution be “modular” since will be using the same mechanism on the patient portal appointment section.

-brady

epsdky wrote on Monday, July 27, 2015:

Hello Brady,

I have put the commit for library/appointments.inc.php here and for the Patient Summary here

Regards,

epsdky.

bradymiller wrote on Monday, August 03, 2015:

Hi,

Glad to see this is moving ahead. Just letting you know this is still in my review queue. At this time I am focusing on MU2 specific reviews, so can’t get to it yet.

Anybody else can feel free to test and review this.

-brady
OpenEMR

epsdky wrote on Tuesday, August 04, 2015:

Hello Brady,

No problem.

Regards,

epsdky.

bradymiller wrote on Sunday, August 23, 2015:

Hi epsdky,

I placed some comments on github.

-brady
OpenEMR

banaitv wrote on Monday, August 24, 2015:

Vaibhav Banait

-----Original Message-----
From: “Brady Miller” bradymiller@users.sf.net
Sent: ‎23-‎08-‎2015 06:44
To: "[openemr:discussion] " 202504@discussion.openemr.p.re.sf.net
Subject: [openemr:discussion] Support for recurring appointments in thePatient Summary

Hi epsdky,
I placed some comments on github.
-brady
OpenEMR

Support for recurring appointments in the Patient Summary

Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/openemr/discussion/202504/
To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

epsdky wrote on Monday, August 24, 2015:

Hello Brady,

I have updated the above commits.

Regards,

epsdky.

bradymiller wrote on Thursday, August 27, 2015:

Just linking your branch on github in case others want to review it:

epsdky wrote on Thursday, August 27, 2015:

(Thanks Brady)

Summary of issues dealt with and additions -

Appointment Report -

Duplicate appointments -

For all recurring appointment dates that have been edited (e.g. change of status), two representations of these dates will appear in the report.

Missing appointments -

All dates corresponding to recurring appointments set with options such as “2nd Tuesday” or “Last Friday” and on a date that is prior to the “From” date of the report will be missing from the report.

Non existant and missing appointments -

This effects same type of appointment as in prior issue. For an appointment set under following conditions -

  • In a location with a positive UTC offset
  • On the 4th occurrence of a particular weekday that has a 5th occurrence that is the end of the month
  • The “Last weekday” option is selected
  • The “From” date of the report is less than or equal to the date the appointment was set (4th weekday)

Then a non existent appointment date will appear in the appointment report (with date equal to the date the appointment was set), also the first date of the series (first (or only) last weekday) will be missing (Calendar does not have this problem).

Disageement with Calendar -

The output of the code that produces the report disagrees with the Calendar for some dates related to recurring appointments of same type as prior issue, set on 29th 30th or 31st of a month. The Calendar is getting some of these dates wrong, and the report does not.

Patient Summary -

Added support for recurring appointments.

Appearance of appointments in Patient Summary -

2015-08-06 (Thu)
10:00 am o ( ? ) CMT
Established Patient
Dr Provider

“CMT” (green font) appears when there is a comment present, mousing over displays it.

bradymiller wrote on Monday, August 31, 2015:

Hi,

Just committed this awesome fix to the codebase! Thanks epsdky!

-brady
OpenEMR