Changing Background Color of Out Event

Help
fsgl
2013-11-05
2014-02-20
  • fsgl
    fsgl
    2013-11-05

    In 4.1.2 (2) it was possible to change the cinnamon color of the Out Event in interface/themes/ajax.calendar.css, line 339.

    With patch 3, this is no longer possible.

    Is the color selection controlled in interface/main/calendar/modules/PostCalendar/ pntemplates/default/views/day/ajax_template.html? If so, where and what is the code change? If not there, then where?

    Not a problem of mythic proportions, merely a small matter of aesthetics.

     
    Last edit: fsgl 2013-11-05
  • Kevin Yeh
    Kevin Yeh
    2013-11-05

    It should still be possible to change the color in the .css file. No code was modified between patch 2 and 3 that would affect that. However, when you applied the patch, it blew away your "custom" version of ajax_calendar.css. I'm assuming you re-did the change, but if not, that would explain the issue.

    If you did re-apply your custom color and it's not working, then perhaps your browser is caching a old version of the .css file. Suggest trying your force a "FRAME" reload with right click and the appropriate popup menu option depending on your browser choice.

     
  • fsgl
    fsgl
    2013-11-05

    2nd suggestion worked. Thank you, Kevin.

    To clear the cached web content in Firefox; Options/Advanced/Network, click Clear Now and OK. See attachment.

    Cinnamon out, Mint Green in.

    Now on to the task of understanding what precisely happened.

     
    Last edit: fsgl 2013-11-05
    Attachments
  • Stephen Waite
    Stephen Waite
    2014-02-17

    what about the default facility color that is set in administration->facilities?

    i'm not having any luck even after clearing cache and frame reload

    due to an existing bug where you can't view the alternate facilities after selecting them in the dropdown under the month view i'm now unable to differentiate separate facilities

     
  • fsgl
    fsgl
    2014-02-18

    Hi Stephen,

    I was able to change the color for the Great Clinic from green to periwinkle and add a secondary facility with aquamarine in the 4.1.2 (3) Demo. To schedule appointment there, I had to assign Dr. Welby only to the OK Ophthalmic Clinic.

    The Facility Specific User Information bug is longstanding as you are well aware.

     
  • Stephen Waite
    Stephen Waite
    2014-02-18

    thanks fsgl, unfortunate time for sourceforge to be down and try to keep up with your help on the demo...

    i appreciate your advice but i can't assign the sole provider to just one of the facilities

    if you go to the demo now you'll see that phil belfords appts show up with the same color eventhough one is at great clinic and the other is at test

    also, i don't see the color showing up on the calendar for booked appointments for either clinic

     
    Last edit: Stephen Waite 2014-02-18
  • fsgl
    fsgl
    2014-02-18

    I re-arranged things a bit for clarity in the 2107 Demo.

    In the first attachment, Great Clinic is periwinkle blue, while test is mint green in the left sidebar.

    Because of the bug that you pointed out in "Calendar Misbehaving", each facility must have its own set of practitioners. If a practitioner needs to see patients in both Great Clinic and test, the name of the user has to be altered slightly. It's Billy Smith in Great Clinic, but the same guy is William Smith in test.

    The color of the appointments can be changed in Calendar Categories. The baby blue color has been assigned to the In Event. The facility color is not the same as the appointment colors. See attachment 2 for the second facility.

    You can certainly have different appointment colors for test by creating new Calendar Categories. Alternatively you can have baby blue as the facility color for Great Clinic and keep it as the In Event color. Appointments in test be changed to mint green.

    Another thought, have the In Event as white, appointments in Great Clinic in periwinkle blue while appointments in test in mint green.

     
    Last edit: fsgl 2014-02-18
    Attachments
  • Stephen Waite
    Stephen Waite
    2014-02-19

    thanks once again fsgl for your workaround, i will certainly put this into use although i'm a little uncomfortable creating another user for the same individual who happens to see patients at the other clinic

    what then is the purpose of administration-> facilities color, where you pick some color that is stored as an hexadecimal value? to just see the facilities' name in that color under the calendar is somewhat satisfying ;)

    this is different functionality than 4.1.1(14)

     
    Last edit: Stephen Waite 2014-02-19
  • fsgl
    fsgl
    2014-02-19

    Creating alias for the same practitioner can cause a problem billing insurance if the names are very different. So in real life, it would be Billy Smith, Billy A. Smith, Billy Smith, M.D. and Billy A. Smith, M.D. if Billy sees patients in 4 different facilities. The NPI for Billy will not change, but the first name and the surname should be the same despite my example above.

    Until the bug is fixed, we'll have to go through these contortions.

    The facility color is probably a visual aid to staff as they toggle between locations. This concept is carried further by appointment customization in Calendar Categories.

    If I remember correctly, prior to 4.1.1 (12), my secondary facility was yellow and the appointments there were lime green. I don't ever recall that the appointment colors matching that of the facility at any point in time.

     
  • Stephen Waite
    Stephen Waite
    2014-02-19

    hi fsgl, i loaded a backup of 4.1.1 in my test system and confirmed that the color that you choose under administration->facilities was applied to a properly set up calendar (with the in and out provider times)

    so now we have two bugs in the calendar; i'll keep researching and see if i can track the code that has changed under interface/themes/ajax*

    from another thread i have this clue:

    https://github.com/openemr/openemr/commit/58ac288337d2242b2605db51e1c5b6eea73f1f4e#commitcomment-5397150

     
  • fsgl
    fsgl
    2014-02-19

    Brady's post announcing the release of patch 2 for 4.1.2 mentioned a bug fix for the Out Event contributed by Robert Down. I don't recall the exact problem addressed by Robert but I do remember it gave us the Halloween orange color for the Out Event.

    Fooled around in the 4.1.1 (14) Demo. There was no match between the facility color and the appointment color, therefore the mismatch may have happened around the time of 4.1.1 (12).

    This may remain an enigma because the developers' attention is focused on MU2 certification and Brady is enmeshed in Linux Mint conversion.

     
  • Stephen Waite
    Stephen Waite
    2014-02-19

    hi fsgl, i went to my demo which was just plain 4.1.1 and upgraded one patch at a time from (11) thru (14) and there was no change in behaviour

    then, i upgraded to 4.1.2 and voila, the ancillary facility color has been replaced with the default facility color

    kevin has responded on github to my requests for code help

    will keep you posted

     
  • Stephen Waite
    Stephen Waite
    2014-02-19

    would you like me to push a commit? my contribution grid on github is btw a rock and a hard place....

     
  • fsgl
    fsgl
    2014-02-19

    So we're snug as a bug in a rug. Time for pizza.

     
  • fsgl
    fsgl
    2014-02-19

    Three cheers for Stephen!!!

     
  • Stephen Waite
    Stephen Waite
    2014-02-20

    still toying around, just found new setting,well new to me anyways, admin->globals->calendar->appointment/event color

    no joy until it had was enabled on my git cloned dev (4.1.3) version