Find Avalaible not Working

pfindan wrote on Wednesday, February 01, 2012:

Hi!

On my new install of OpenEMR 4.1.0, when I try to click on " Find Available " it does nothing… The button is dead…

Anyone know how to fix this???

Thanks in advance

yehster wrote on Wednesday, February 01, 2012:

Did you setup events for “in office/out of office” for the provider?  If not, that’s why Find Available doesn’t work.
I think you are honestly better off just navigating the calendar and visual inspecting for times rather than using that function.

pfindan wrote on Wednesday, February 01, 2012:

I have set it up but only for one provider on one day. Would it make a difference if I added it for all of the providers. The reason I want this is we schedule appointments for a year or two in advance all of the time, and I cant find an easy way to jump between the years in the calendar view without clicking next month 12 - 24 times. Do you have an easier way?

Thanks! 

yehster wrote on Wednesday, February 01, 2012:

If you click the month in the small calendar that will let you select a month in the future directly, it only displays the next 12 months, but if you need to change that you can modify your system to display more.
Right now, you would need to edit some php code to make that change.
In the file 
openemr\interface\main\calendar\modules\PostCalendar\pntemplates\default\views\monthSelector.php
on line 46 you’ll see code that looks like this:

$tdClasses = "tdDatePicker tdMonthName-small";
for($idx=0;$idx<13;$idx++)

Change the 25 and it’ll show you all the months for the next 2 years.

juggernautsei wrote on Friday, March 23, 2012:

Hello all,

I have this same problem with two of the installs. I think is has something to do with the database and how it records the in and out times. It happened when I truncated the database to make the calendar load faster. We reset the in and out times but now the Find Available is not working at all. The database where I did the truncating and put back all the original data is working just fine. I was going to ask if anyone know the calls this function makes so I wouldn’t have to spend the next week combing through the code.

Thanks

Sherwin   

sunsetsystems wrote on Friday, March 23, 2012:

The code is in interface/main/calendar/find_appt_popup.php.

But… “truncated the database”?  That may be problematic, depending on what you did.

Rod
www.sunsetsystems.com

kevmccor wrote on Thursday, March 29, 2012:

We use “find available” all the time and I really like it, even though it could obviously be improved.  One issue I have is the times are shown for 24 hours.   Is there a way to limit the available times to the office hours?

Thanks

pfindan wrote on Monday, April 09, 2012:

Hi, thanks for the reply. I cannot click on the month in the small calendar to directly move to another month. Why is this the case? How can I fix it?

Thanks!

yehster wrote on Monday, April 09, 2012:

When you load the calendar, check your error log for a message like this:
    error_log(“Creation of month drop down failed:”.PHP_EOL.“Do you have php-xml installed?”);

If so, that would explain your problem.

pfindan wrote on Monday, April 09, 2012:

Thanks for the reply. It turns out that this feature was new in a Patch for 4.1, I had no patches installed, after installing patch 9 it is working now.

Thanks for your help.