1. Check to see if Radiology Appointment is cancellable. Check made when cancelling radiology appointment.
2. Prevent user from copying radiology appointment to clipboard.

DAL:
1. Added CanCancelRadExam entry point to support change in CGView above.

Updated exes and dlls.
This commit is contained in:
sam 2011-05-16 11:31:39 +00:00
parent 58ccfb449e
commit 303881fbef
5 changed files with 29 additions and 1 deletions

View File

@ -2215,7 +2215,16 @@ namespace IndianHealthService.ClinicalScheduling
Debug.Assert(a.RadiologyExamIEN.HasValue); Debug.Assert(a.RadiologyExamIEN.HasValue);
//Prior to making expensive db calls, tell the grid nothing is selected anymore so nobody would try to pick it up //Can we cancel the appointment?
bool _canCancel = CGDocumentManager.Current.DAL.CanCancelRadExam(a.RadiologyExamIEN.Value);
if (!_canCancel)
{
MessageBox.Show(this,"You cannot cancel this request. It has either been discontinued, or registered for an examination");
return;
}
//Prior to making expensive db calls, tell the grid nothing is selected anymore so nobody would try to pick it up later
this.calendarGrid1.SelectedAppointment = 0; this.calendarGrid1.SelectedAppointment = 0;
//Now, Cancel the appointment //Now, Cancel the appointment
@ -2227,6 +2236,7 @@ namespace IndianHealthService.ClinicalScheduling
//redraw the grid to display new set of appointments after this appt was removed. //redraw the grid to display new set of appointments after this appt was removed.
this.UpdateArrays(); this.UpdateArrays();
//Tell other instances that this schedule has been updated
RaiseRPMSEvent("BSDX SCHEDULE", a.Resource); RaiseRPMSEvent("BSDX SCHEDULE", a.Resource);
} }
@ -3469,6 +3479,13 @@ namespace IndianHealthService.ClinicalScheduling
{ {
return; return;
} }
if (a.RadiologyExamIEN.HasValue)
{
MessageBox.Show("Cannot move a radiology appointment to the clipboard");
return;
}
m_ClipList.AddAppointment(a); m_ClipList.AddAppointment(a);
lstClip.Items.Add(a); lstClip.Items.Add(a);
} }

View File

@ -233,6 +233,17 @@ namespace IndianHealthService.ClinicalScheduling
return result == "1" ? true : false; return result == "1" ? true : false;
} }
/// <summary>
/// Can we Cancel an Exam appointment? Exams that are discontinued, Active or Complete cannot be discontinued
/// </summary>
/// <param name="examIEN">IEN of exam in 75.1 (RAD/NUC MED ORDERS) file</param>
/// <returns>true or false</returns>
public bool CanCancelRadExam(int examIEN)
{
string result = _thisConnection.bmxNetLib.TransmitRPC("BSDX CAN HOLD RAD EXAM", examIEN.ToString());
return result == "1" ? true : false;
}
/// <summary> /// <summary>
/// Save User Preference in DB For Printing Routing Slip /// Save User Preference in DB For Printing Routing Slip
/// Uses Parameter BSDX AUTO PRINT RS /// Uses Parameter BSDX AUTO PRINT RS