CGView:
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:
parent
58ccfb449e
commit
303881fbef
|
@ -2215,7 +2215,16 @@ namespace IndianHealthService.ClinicalScheduling
|
|||
|
||||
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;
|
||||
|
||||
//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.
|
||||
this.UpdateArrays();
|
||||
|
||||
//Tell other instances that this schedule has been updated
|
||||
RaiseRPMSEvent("BSDX SCHEDULE", a.Resource);
|
||||
}
|
||||
|
||||
|
@ -3469,6 +3479,13 @@ namespace IndianHealthService.ClinicalScheduling
|
|||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (a.RadiologyExamIEN.HasValue)
|
||||
{
|
||||
MessageBox.Show("Cannot move a radiology appointment to the clipboard");
|
||||
return;
|
||||
}
|
||||
|
||||
m_ClipList.AddAppointment(a);
|
||||
lstClip.Items.Add(a);
|
||||
}
|
||||
|
|
|
@ -232,6 +232,17 @@ namespace IndianHealthService.ClinicalScheduling
|
|||
string result = _thisConnection.bmxNetLib.TransmitRPC("BSDX HOLD RAD EXAM", string.Format("{0}^{1}", DFN, examIEN));
|
||||
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>
|
||||
/// Save User Preference in DB For Printing Routing Slip
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue