Update: this feature is not needed in OSCAR 9.12 and on as the screen automatically adjusts to the size of the screen.
When you have more than three to five columns of providers in the appointments page, the patient's names become shortened. This is frustrating if you have a large display as there is plenty of space but the names won't display.
This fix changes the length of the names displayed in the appointments page.
sudo vi $CATALINA_HOME/usr/share/tomcat5.5/webapps/oscar/provider/appointmentprovideradminday.jsp
#update the values here:
int lenLimitedL=11, lenLimitedS=11; //L - long, S - short
if(numProvider >= 5) {lenLimitedL = 2; lenLimitedS = 3; }
Restart tomcat.
Saturday, January 23, 2010
OSCAR Mods: Nurse Clinics
Nurses don't appear as providers on the appointments screen, and you can't set them as having a schedule.
One work around is to change them to 'doctor' in the provider section, set a schedule for them, and then change them back.
However, this is cumbersome - especially if you have a large clinic with lots of nurse clinics as we do.
To ensure nurses show up in the schedule section edit the following file:
sudo vi $CATALINA_BASE/webapps/oscar/schedule/scheduletemplatesetting.jsp
Search for both instances of the following text:
param = "receptionist";
and replace them each with:
param = "nurse";
Restart tomcat and that's it!
One work around is to change them to 'doctor' in the provider section, set a schedule for them, and then change them back.
However, this is cumbersome - especially if you have a large clinic with lots of nurse clinics as we do.
To ensure nurses show up in the schedule section edit the following file:
sudo vi $CATALINA_BASE/webapps/oscar/schedule/scheduletemplatesetting.jsp
Search for both instances of the following text:
param = "receptionist";
and replace them each with:
param = "nurse";
Restart tomcat and that's it!
OSCAR Mods: Advanced Access Appointment Features
We use an advanced access system to ensure that the waits for appointments are not too great.
To do this, we have a proportion of our appointments marked as 'W' and 'E'.
W appointments can only be booked within one week of the appointment date, and 'E' appointments (for emergency) can only be booked on the day of the appointment.
OSCAR allows us to select 'confirm' to check we want to book such an appointment,
but even the best staff (including doctors!) under pressure to give out appointments frequently ignore this.
So I want a feature that blocks the appointment from being booked at all outside these dates. Such a feature exists in the Scottish GPASS clinical system and is very effective.
To implement it in OSCAR, we need to update the following file on the server (backup the file first in case you want to revert to the original version):
sudo vi $CATALINA_BASE/webapps/oscar/provider/appointmentprovideradminday.jsp
After the line 'String strDay=day>9?(""+day):("0"+day); ' add this code:
Calendar apptDate = Calendar.getInstance();
apptDate.set(year, month-1 , day);
Calendar minDate = Calendar.getInstance();
minDate.set( minDate.get(Calendar.YEAR), minDate.get(Calendar.MONTH), minDate.get(Calendar.DATE) );
String allowDay = "";
if (apptDate.equals(minDate)) {
allowDay = "Yes";
}
else {
allowDay = "No";
}
minDate.add(Calendar.DATE, 7);
String allowWeek = "";
if (apptDate.before(minDate)) {
allowWeek = "Yes";
}
else {
allowWeek = "No";
}
Update this line to add the text in bold:
<a href=# onClick="confirmPopupPage(400,780,'../appointment/addappointment.jsp?provider_no=<%=curProvider_no[nProvider]%>&bFirstDisp=<%=true%>&year=<%=strYear%>&month=<%=strMonth%>&day=<%=strDay%>&start_time=<%=(hourCursor>9?(""+hourCursor):("0"+hourCursor))+":"+ (minuteCursor<10?"0":"") +minuteCursor %>&end_time=<%=(hourCursor>9?(""+hourCursor):("0"+hourCursor))+":"+(minuteCursor+depth-1)%>&duration=<%=dateTimeCodeBean.get("duration"+hourmin.toString())%>','<%= dateTimeCodeBean.get("confirm"+hourmin.toString()) %>','<%= allowDay %>','<%= allowWeek %>');return false;"
Then replace the following code:
function confirmPopupPage(height, width, queryString, doConfirm){
...
}
with this code:
function confirmPopupPage(height, width, queryString, doConfirm, allowDay, allowWeek){
if (doConfirm == "Yes") {
if (confirm("Are you sure you want to book this appointment?")){
popupPage(height, width, queryString);
}
}
else if (doConfirm == "Day"){
if (allowDay == "No") {
alert("ADVANCED ACCESS - RESTRICTED APPOINTMENT WARNING!\n\nSorry, this appointment can only be booked on the same day.");
}
else {
popupPage(height, width, queryString);
}
}
else if (doConfirm == "Wk"){
if (allowWeek == "No") {
alert("ADVANCED ACCESS - RESTRICTED APPOINTMENT WARNING!\n\nSorry, this appointment can only be booked within one week of the appointment time.");
}
else {
popupPage(height, width, queryString);
}
}
else {
popupPage(height, width, queryString);
}
}
Then restart your tomcat server for the changes to take effect:
sudo /etc/init.d/tomcat5.5 restart
To make this work properly, you will need to manually set the confirmation codes on the database (replacing 'E' and 'W' with the codes for your same day and one week appointments on your templates):
mysql> update scheduletemplatecode set confirm='Wk' where code='W';
mysql> update scheduletemplatecode set confirm='Day' where code='E';
(You could re-write the templates page to accept a text input, but I can't be bothered!)
To do this, we have a proportion of our appointments marked as 'W' and 'E'.
W appointments can only be booked within one week of the appointment date, and 'E' appointments (for emergency) can only be booked on the day of the appointment.
OSCAR allows us to select 'confirm' to check we want to book such an appointment,
but even the best staff (including doctors!) under pressure to give out appointments frequently ignore this.
So I want a feature that blocks the appointment from being booked at all outside these dates. Such a feature exists in the Scottish GPASS clinical system and is very effective.
To implement it in OSCAR, we need to update the following file on the server (backup the file first in case you want to revert to the original version):
sudo vi $CATALINA_BASE/webapps/oscar/provider/appointmentprovideradminday.jsp
After the line 'String strDay=day>9?(""+day):("0"+day); ' add this code:
Calendar apptDate = Calendar.getInstance();
apptDate.set(year, month-1 , day);
Calendar minDate = Calendar.getInstance();
minDate.set( minDate.get(Calendar.YEAR), minDate.get(Calendar.MONTH), minDate.get(Calendar.DATE) );
String allowDay = "";
if (apptDate.equals(minDate)) {
allowDay = "Yes";
}
else {
allowDay = "No";
}
minDate.add(Calendar.DATE, 7);
String allowWeek = "";
if (apptDate.before(minDate)) {
allowWeek = "Yes";
}
else {
allowWeek = "No";
}
Update this line to add the text in bold:
<a href=# onClick="confirmPopupPage(400,780,'../appointment/addappointment.jsp?provider_no=<%=curProvider_no[nProvider]%>&bFirstDisp=<%=true%>&year=<%=strYear%>&month=<%=strMonth%>&day=<%=strDay%>&start_time=<%=(hourCursor>9?(""+hourCursor):("0"+hourCursor))+":"+ (minuteCursor<10?"0":"") +minuteCursor %>&end_time=<%=(hourCursor>9?(""+hourCursor):("0"+hourCursor))+":"+(minuteCursor+depth-1)%>&duration=<%=dateTimeCodeBean.get("duration"+hourmin.toString())%>','<%= dateTimeCodeBean.get("confirm"+hourmin.toString()) %>','<%= allowDay %>','<%= allowWeek %>');return false;"
Then replace the following code:
function confirmPopupPage(height, width, queryString, doConfirm){
...
}
with this code:
function confirmPopupPage(height, width, queryString, doConfirm, allowDay, allowWeek){
if (doConfirm == "Yes") {
if (confirm("Are you sure you want to book this appointment?")){
popupPage(height, width, queryString);
}
}
else if (doConfirm == "Day"){
if (allowDay == "No") {
alert("ADVANCED ACCESS - RESTRICTED APPOINTMENT WARNING!\n\nSorry, this appointment can only be booked on the same day.");
}
else {
popupPage(height, width, queryString);
}
}
else if (doConfirm == "Wk"){
if (allowWeek == "No") {
alert("ADVANCED ACCESS - RESTRICTED APPOINTMENT WARNING!\n\nSorry, this appointment can only be booked within one week of the appointment time.");
}
else {
popupPage(height, width, queryString);
}
}
else {
popupPage(height, width, queryString);
}
}
Then restart your tomcat server for the changes to take effect:
sudo /etc/init.d/tomcat5.5 restart
To make this work properly, you will need to manually set the confirmation codes on the database (replacing 'E' and 'W' with the codes for your same day and one week appointments on your templates):
mysql> update scheduletemplatecode set confirm='Wk' where code='W';
mysql> update scheduletemplatecode set confirm='Day' where code='E';
(You could re-write the templates page to accept a text input, but I can't be bothered!)
Subscribe to:
Posts (Atom)
