Problem with Report (Appointments)

jointas wrote on Wednesday, April 13, 2011:

OpenEMR v4.0
Where is a problem with Report -> Visits -> Appointments.
When you select “Show Available Times” - report is incorrect
(incorrect, when doctor working time is different on all week days).

sorry for my english :slight_smile:

kchapple wrote on Wednesday, April 13, 2011:

Hi, I’d be glad to help, but I’m having trouble reproducing the bug.  Please list the steps to reproduce the problem you are seeing.  For example, for one week, please tell me what you input for a doctor’s schedule.  The following is what I did to attempt to reproduce your problem:

1- On Monday, use the calendar to select times.  Input “In office” at 9AM and “Out Of Office” at 2PM.
2- On Tuesday, input “In Office” at 10 AM and “Out of Office” at 5PM.
3- On Wednesday, input “In Office” at 8AM and “Out of Office” at 4PM.
4- Create an “Office Visit” appointment for this provider on Monday at 9AM, and 10AM
5- Create an “Office Visit” appointment for this provider on Tuesday at 11AM.
6- Browse to appointment report and select the 3 days for which I have filled in events Monday through Wednesday, also check the box “Show Available Slots.”
7- Run the report and examine the times.  You should see that the first available time on Monday is 9:15 because there is a 9AM Office Visit, etc …

The “Available Slots” shows available slots in 15 minute increments (or your default appointment increment value.)  An available slot is a slot within the range of “In Office” and “Out Of Office” events, where the provider has no other appointments, or events scheduled.

Thanks,
Ken
http://www.mi-squared.com/

jointas wrote on Wednesday, April 13, 2011:

hi,

I’m  create an user “Report Test” in demo 4.0.0: http://opensourceemr.com:2098/openemr/
Example:
Monday (2011-04-11): In officce 9.00 AM (reapeats every week until 2012-04-30), Out 11 am…;
Tuesday (2011-04-12): In office 8.00 AM (reapeats every week until 2012-04-30), out 11 am… ;
Wednesday (2011-04-13): In office 9.00 AM (reapeats every week until 2012-04-30), out 11 am… ;

And if you generate appointment report for wednesday (2011-04-13) - you get available times from 8.00 AM (should be from 9.00 AM!!!)

kchapple wrote on Wednesday, April 13, 2011:

Thanks,

I’m able to reproduce this bug now.  We’ll submit a fix when we figure out what’s going on.

Thanks for your help!

Ken
http://www.mi-squared.com/

jointas wrote on Wednesday, April 13, 2011:

thank you.

and 1 more in ‘Reports - Appointments’: facility filtering didn’t work anymore (like in 3.2.0)?

kchapple wrote on Wednesday, April 13, 2011:

Posted fixes for both or these issues.  Thanks for your help jointas.

https://github.com/kchapple/openemr/commit/1d6257fba37e8161ab8a32908420534d16dd3244

Ken
http://www.mi-squared.com/

bradymiller wrote on Thursday, April 14, 2011:

hey,
Just committed Ken’s fix to sourceforge (master branch). Will plan to include it in the next 4.0 patch.
thanks,
-brady

jointas wrote on Thursday, April 14, 2011:

hi, Ken
your fix works great, thank you.

But about “facility filtering”: in 3.2.0 when you select facility - in the list-box apears only Providers who work in that facility…

kchapple wrote on Tuesday, April 19, 2011:

I have added this bug to my backlog.  I will submit a fix once we get the CDR reporting module completed.  Thanks!

kchapple wrote on Friday, May 27, 2011:

Hi All,

I’m looking into the facility filtering issue, but I’m having trouble adding additional facilities in the master branch.  I browse to Administration -> Facilities -> Add, and I can add a new facility, and I can see my list of facilities.  However, when I add a user, there is only one facility in the dropdown for default facility, and when I try to create an appointment, there is only that one facility.  Is anyone else experiencing this problem?

Thanks,
Ken
http://www.mi-squared.com/