I have version 3.1.0 installed on an old laptop and a newer laptop. The older laptop works well in every way. The new laptop exhibits this behavior:
I have 2 authorized users, Dr 1 and Dr 2. They work from 8:00am to 5:00 pm on workdays. Their schedule are empty and set up through the end of 2010.
If select some arbitrary workday by using the calendar box ad pressing the go button I get a blank calendar. If I hit the >> or the << I get what I expect. I read in the forum how if you do not have a start and stop time for each day the calendar acts like this, so I made sure each day had a start and stop time. Some times I'll get the calendar for one Dr. and not the other.
Any thoughts?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Do you have more than one facility set up, and if so, do you see them in the facility selector?
What's your OS, php version, and mysql version?
Does the same thing happen if you use another calendar (can be changed in user settings, and need to logout/login for it to take effect)
Can you reproduce the problem on the CVS demos at oemr.org wiki, if so then how?
Seems like your and omo66 issue could be related to multi-facility bug that is only showing up in certain server environments. Hopefully with yours and omo's info can debug this thing.
-brady
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Step 4. Select All Users, Select "All Facilities"
Notice how the Facility switches immediately to "Your Clinic Name Here", even though there is only one facility defined. Now with "All Users" and "All Facilities" if you select "Today" you cause the behavior I observed. Arguable this is not using the tool right, except when you input the "all users", "all facilities", WITHOUT THE TODAY BUTTON BEING PRESSED, combination it works. But then you have to immediately put in the correct facility. Does this make sense? Why don't you add a facility to your demo program? Then you can maybe duplicate it.
Step 5 Select <<
Poof, the calendar looks right.
Step 6 Select >>
Poof again, it looks right for the day in question.
I'd say this is very possibly a user error. Really, the user should specify the facility, or maybe not. Just maybe "All Facilities" is a valid input. Think about it. Why wouldn't someone want to be able to see their schedule at multiple facilities? Physicians very frequently are at different facilities in the same day. Office and hospital for example.
At any rate, now that I know, it isn't a problem for me anymore. I would like to see a message telling the poor dumb user to select a facility.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
And then, if all this wasn't interesting enough, put in multiple facilities and set that flag to true in the globals file to support it. You will find that you can not longer select all facilities in the little box on the calendar.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Just tested this stuff out and agreed there is some multi-facility hell going on. **Things I noted:**
1) Things work great with one facility
2) With two facility the bugs appear (different bugs happen with the $GLOBALS turned off(default) and on)
3) When $GLOBALS is turned off get behavipor descirbed above by lovogler. In essence the calendar only shows what is set as 'default facility' in the users settings. If you choose the facility then that user won't be available. By choosing all facilities, it will actually show all appointments from all facilities, however the scrollbar display is confusing (shows the top item), and unable to schedule an appt at anything but in the scroll bar; this also screws up what you see when scrolling through new days.
4) When $GLOBALS is turned on, then only seems to work right if you place all facilities in the users settings 'Schedule facilities'. Then everything seems to work fine, but there is no option to view all facilities, which seems like should be an option. If you don' t place all facilities in the users 'schedule facilities', then you'll see other appointments at other disallowed facilties like they are on the selected on (not much of a bug since appointments shouldn' be scheduled on disallowed facilities anyways), however can only add to the allowed facility, which is good.
**Seems like the bug(s) really stem from three mechanisms:**
1) When choose all facilities, don't then highlight the item below it; highlight them all and that have this supported when click other buttons (moving days or adding appt)
2) With global restric\_user\_facility off (default) allow users to be scheduled at all facilities.
3) With global restric\_user\_facility on give option to show all facilties in calendar.
Hopefully above won't be to difficult to fix. Once fixed, can then put in the next 3.1.0 patch. I'll post a bug with this on the tracker.
-brady
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Just to clarify after re-reading lvogler message. In the demo and on an initial installation there is already a facility there. Since only one demo, then bypasses the facility selector and code avoiding these bugs.
-brady
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have version 3.1.0 installed on an old laptop and a newer laptop. The older laptop works well in every way. The new laptop exhibits this behavior:
I have 2 authorized users, Dr 1 and Dr 2. They work from 8:00am to 5:00 pm on workdays. Their schedule are empty and set up through the end of 2010.
If select some arbitrary workday by using the calendar box ad pressing the go button I get a blank calendar. If I hit the >> or the << I get what I expect. I read in the forum how if you do not have a start and stop time for each day the calendar acts like this, so I made sure each day had a start and stop time. Some times I'll get the calendar for one Dr. and not the other.
Any thoughts?
I have the issue see
https://sourceforge.net/projects/openemr/forums/forum/202505/topic/3435990
hey,
Which calendar are you using?
Does deleting browser cookies do anything?
Do you have more than one facility set up, and if so, do you see them in the facility selector?
What's your OS, php version, and mysql version?
Does the same thing happen if you use another calendar (can be changed in user settings, and need to logout/login for it to take effect)
Can you reproduce the problem on the CVS demos at oemr.org wiki, if so then how?
Seems like your and omo66 issue could be related to multi-facility bug that is only showing up in certain server environments. Hopefully with yours and omo's info can debug this thing.
-brady
hey,
Before going through above, does setting the users 'default facility' in administration->users help?
-brady
Try this.
Step 1. default calendar. v3.1.0
Step 2. Add a user and a facility
Step 3. Go to calendar
Step 4. Select All Users, Select "All Facilities"
Notice how the Facility switches immediately to "Your Clinic Name Here", even though there is only one facility defined. Now with "All Users" and "All Facilities" if you select "Today" you cause the behavior I observed. Arguable this is not using the tool right, except when you input the "all users", "all facilities", WITHOUT THE TODAY BUTTON BEING PRESSED, combination it works. But then you have to immediately put in the correct facility. Does this make sense? Why don't you add a facility to your demo program? Then you can maybe duplicate it.
Step 5 Select <<
Poof, the calendar looks right.
Step 6 Select >>
Poof again, it looks right for the day in question.
I'd say this is very possibly a user error. Really, the user should specify the facility, or maybe not. Just maybe "All Facilities" is a valid input. Think about it. Why wouldn't someone want to be able to see their schedule at multiple facilities? Physicians very frequently are at different facilities in the same day. Office and hospital for example.
At any rate, now that I know, it isn't a problem for me anymore. I would like to see a message telling the poor dumb user to select a facility.
And then, if all this wasn't interesting enough, put in multiple facilities and set that flag to true in the globals file to support it. You will find that you can not longer select all facilities in the little box on the calendar.
hey,
Just tested this stuff out and agreed there is some multi-facility hell going on. **Things I noted:**
1) Things work great with one facility
2) With two facility the bugs appear (different bugs happen with the $GLOBALS turned off(default) and on)
3) When $GLOBALS is turned off get behavipor descirbed above by lovogler. In essence the calendar only shows what is set as 'default facility' in the users settings. If you choose the facility then that user won't be available. By choosing all facilities, it will actually show all appointments from all facilities, however the scrollbar display is confusing (shows the top item), and unable to schedule an appt at anything but in the scroll bar; this also screws up what you see when scrolling through new days.
4) When $GLOBALS is turned on, then only seems to work right if you place all facilities in the users settings 'Schedule facilities'. Then everything seems to work fine, but there is no option to view all facilities, which seems like should be an option. If you don' t place all facilities in the users 'schedule facilities', then you'll see other appointments at other disallowed facilties like they are on the selected on (not much of a bug since appointments shouldn' be scheduled on disallowed facilities anyways), however can only add to the allowed facility, which is good.
**Seems like the bug(s) really stem from three mechanisms:**
1) When choose all facilities, don't then highlight the item below it; highlight them all and that have this supported when click other buttons (moving days or adding appt)
2) With global restric\_user\_facility off (default) allow users to be scheduled at all facilities.
3) With global restric\_user\_facility on give option to show all facilties in calendar.
Hopefully above won't be to difficult to fix. Once fixed, can then put in the next 3.1.0 patch. I'll post a bug with this on the tracker.
-brady
hey,
Just to clarify after re-reading lvogler message. In the demo and on an initial installation there is already a facility there. Since only one demo, then bypasses the facility selector and code avoiding these bugs.
-brady