Popup editor for calendar events

sunsetsystems wrote on Sunday, July 03, 2005:

For the past couple of days I’ve been hacking away on a popup window and some supporting logic for adding and editing calendar events.  You can see a screenshot here:

  http://www.refercare.org/openemr/events.jpg

The main thing I’m trying to do is simplify the process of adding appointments and other calendar items.  For example now you can click on a time slot in the calendar and the event window pops up, then you can select a patient and fill in the other fields and click Save.  All done - no hassle getting back to where you were in the calendar.

The other thing I’m doing is getting rid of a big chunk of nasty PostCalendar/Smarty code.

This is a pretty big change, so I’d like to get your comments and suggestions before I start checking in the new stuff.  Thanks!

– Rod <rod at sunsetsystems dot com>

tekknogenius wrote on Sunday, July 03, 2005:

As usual, it looks good. One question: does the window say "on top" or is it just a pop up window, ie if you accidently click on the window under it, the popup window disappears leaving the popup window "orphaned"?

Also, with this change can one at least display the appointment type also, not just the patient. I think that would be an improvement over the current functionality, at least that way, one can see at a glance who and what type of appointment it is.

sunsetsystems wrote on Sunday, July 03, 2005:

Browsers do not have general-purpose support for “modal” dialogs.  There are some tricks you can apply towards making a popup stay on-top, but they don’t work completely.  I’ll see what I can do (or do you have any suggestions?).

I’m not sure what you mean by “appointment type”.  There is an event category which by default can be “office visit”, “new patient” or “established patient”.  There are also customizable title and description fields.  But all that was there before… can you be more specific as to what you’d like?

– Rod <rod at sunsetsystems dot com>

jabellon wrote on Monday, July 04, 2005:

I think it looks great, IMHO.

Could you be in one patient and enter and appt. on another Pt. ?  ( ie. the clerk is entering a charge, the phone rings, another Pt. calls for appt., pull-up pop-up Pt. search window, found Pt., click Appt. Scheduler, match one with the other and presto Appt. given for that Pt. at that date and time, close pop-up window and go back to continuing entering the charge on the original Pt. ? )
TIA

Juan

tekknogenius wrote on Monday, July 04, 2005:

I didn’t think there was a modal/always on top feature, but that shouldn’t be a problem without it since that’s how the search option works when in the demographics when looking up the subscriber.

I was talking about the event category, displaying that on the calendar with the name instead of just the name alone. There is more than enough room.

sunsetsystems wrote on Monday, July 04, 2005:

I came up with some JavaScript/DOM code for an always-on-top feature that mostly works.  It’s not perfect but it’s a big improvement over doing nothing about it.  This can be plugged into other popups also.

Regarding events as they appear in the calendar, the amount of information that can be presented comfortably will depend on how many columns of docs are listed.  I guess what I’ll do is add an option for “long” and “short” event displays.

Thanks,

– Rod <rod at sunsetsystems dot com>

sunsetsystems wrote on Monday, July 04, 2005:

This would work except that you can’t get to the calendar without closing out the patient.  But I could probably add the event editor popup to the “popups” list, which should take care of it.

– Rod <rod at sunsetsystems dot com>

sunsetsystems wrote on Tuesday, July 05, 2005:

OK the new code is tentatively done, and looks very good so far.  We’ll give it a trial by fire tomorrow, and then I’ll apply any needed corrections and check it in.

– Rod <rod at sunsetsystems dot com>

sunsetsystems wrote on Tuesday, July 05, 2005:

I have checked in the following:

New:

  library/dialog.js
  library/topdialog.js
  interface/main/calendar/find_appt_popup.php
  interface/main/calendar/add_edit_event.php
  interface/main/calendar/find_patient_popup.php

Updated:

  interface/main/main_screen.php
  interface/main/authorizations/authorizations.php
  interface/main/calendar/modules/PostCalendar/pntemplates/default/views/day/default.html
  interface/main/calendar/modules/PostCalendar/pntemplates/default/views/week/default.html
  interface/patient_file/summary/summary_title.php
  interface/patient_file/patient_file.php

– Rod <rod at sunsetsystems dot com>

tekknogenius wrote on Wednesday, July 06, 2005:

Where didja put the option for long -vs- short? I checked globals.php and config.php, but didn’t see it. Maybe it’s in the works. Great job.

Thanx

sunsetsystems wrote on Wednesday, July 06, 2005:

I didn’t do that yet.  Did you want just the event title added to the long version?

– Rod <rod at sunsetsystems dot com>

tekknogenius wrote on Wednesday, July 06, 2005:

At least the event title should show. That way, at a glance, one would know what was expected for each appointment, and the scheduling person would know not to schedule two physicals at the same time. As it stands now, one would either have to remember what was on the schedule or bring up the tip for each one.

Since we can add more categories I don’t think the description is necessary in the long version since we can bring up the tool tip still to see the description. I think it wouldn’t be much more overhead to add the event category/title. BTW, is the color option per category too much to try to implement? Not having looked into it myself I’m not sure what it entails.

sunsetsystems wrote on Wednesday, July 06, 2005:

OK I will plan to add an option to include the title.  See my post under the Appointment Status thread regarding colors.

– Rod <rod at sunsetsystems dot com>