CGView:
- Changed the parameters required for checkin. - Removed references to PCC+ and Stop Code processing, as they don't apply in VISTA. CGDocument: - Changed RPC call parameters to check in an appointment (BSDX CHECKIN APPOINTMENT). - Date passed to BSDX Checkin Appointment is now an FM Date. - Both necessitated server side changes. DCheckIn: - Removed processing for PCC+ and Stop Codes. CGDocumentManager - Removed Clinic Stop Code table loading.
This commit is contained in:
parent
8522afbe6a
commit
1232289af5
|
@ -813,20 +813,13 @@ namespace IndianHealthService.ClinicalScheduling
|
|||
}
|
||||
}
|
||||
|
||||
public void CheckInAppointment(int nApptID, DateTime dCheckIn,
|
||||
string ClinicStopIEN,
|
||||
string ProviderIEN,
|
||||
string PrintRouteSlip,
|
||||
string PCCClinicIEN,
|
||||
string PCCFormIEN,
|
||||
string PCCOutGuide
|
||||
)
|
||||
public void CheckInAppointment(int nApptID, DateTime dCheckIn)
|
||||
{
|
||||
string sCheckIn = dCheckIn.ToString("M-d-yyyy@HH:mm");
|
||||
string sCheckIn = FMDateTime.Create(dCheckIn).FMDateString;
|
||||
|
||||
string sSql = "BSDX CHECKIN APPOINTMENT^" + nApptID.ToString() + "^" + sCheckIn + "^";
|
||||
sSql += ClinicStopIEN + "^" + ProviderIEN + "^" + PrintRouteSlip + "^";
|
||||
sSql += PCCClinicIEN + "^" + PCCFormIEN + "^" + PCCOutGuide;
|
||||
string sSql = "BSDX CHECKIN APPOINTMENT^" + nApptID.ToString() + "^" + sCheckIn; // +"^";
|
||||
//sSql += ClinicStopIEN + "^" + ProviderIEN + "^" + PrintRouteSlip + "^";
|
||||
//sSql += PCCClinicIEN + "^" + PCCFormIEN + "^" + PCCOutGuide;
|
||||
|
||||
System.Data.DataTable dtAppt = m_DocManager.RPMSDataTable(sSql, "CheckInAppointment");
|
||||
|
||||
|
|
|
@ -292,15 +292,13 @@ namespace IndianHealthService.ClinicalScheduling
|
|||
threadSplash.Name = "Splash Thread";
|
||||
threadSplash.Start(m_ds); // pass form as parameter.
|
||||
|
||||
//There are 20 steps to load the application. That's max for the progress bar.
|
||||
setMaxProgressDelegate(20);
|
||||
//There are 19 steps to load the application. That's max for the progress bar.
|
||||
setMaxProgressDelegate(19);
|
||||
|
||||
// smh--not used: System.Configuration.ConfigurationManager.GetSection("appSettings");
|
||||
|
||||
setStatusDelegate("Connecting to VISTA");
|
||||
|
||||
bool bRetry = true;
|
||||
|
||||
//Try to connect using supplied values for Server and Port
|
||||
//Why am I doing this? The library BMX net uses prompts for access and verify code
|
||||
//whether you can connect or not. Not good. So I test first whether
|
||||
|
@ -322,6 +320,8 @@ namespace IndianHealthService.ClinicalScheduling
|
|||
}
|
||||
|
||||
|
||||
bool bRetry = true;
|
||||
|
||||
// Do block is Log-in logic
|
||||
do
|
||||
{
|
||||
|
@ -469,7 +469,9 @@ namespace IndianHealthService.ClinicalScheduling
|
|||
dcKeys[0] = dcKey;
|
||||
dtGroups.PrimaryKey = dcKeys;
|
||||
|
||||
//Get Access Group Types (??)
|
||||
//Get Access Group Types (Combines Access Types and Groups)
|
||||
//Optimization Note: Can eliminate Access type and Access Group Table
|
||||
// But they are heavily referenced throughout the code.
|
||||
// Table #7
|
||||
setProgressDelegate(7);
|
||||
setStatusDelegate(statusConst + " Access Group Types");
|
||||
|
@ -490,12 +492,14 @@ namespace IndianHealthService.ClinicalScheduling
|
|||
|
||||
//ResourceGroup Table (Resource Groups by User)
|
||||
// Table #8
|
||||
// What shows up on the tree. The groups the user has access to.
|
||||
setProgressDelegate(8);
|
||||
setStatusDelegate(statusConst + " Resource Groups By User");
|
||||
LoadResourceGroupTable();
|
||||
|
||||
//Resources by user
|
||||
// Table #9
|
||||
// Individual Resources
|
||||
setProgressDelegate(9);
|
||||
setStatusDelegate(statusConst + " Resources By User");
|
||||
LoadBSDXResourcesTable();
|
||||
|
@ -507,6 +511,7 @@ namespace IndianHealthService.ClinicalScheduling
|
|||
|
||||
//GroupResources table
|
||||
// Table #10
|
||||
// Resource Groups and Indivdual Resources together
|
||||
setProgressDelegate(10);
|
||||
setStatusDelegate(statusConst + " Group Resources");
|
||||
LoadGroupResourcesTable();
|
||||
|
@ -558,6 +563,7 @@ namespace IndianHealthService.ClinicalScheduling
|
|||
|
||||
//Build ResourceUser table
|
||||
//Table #13
|
||||
//Acess to Resources by [this] User
|
||||
setProgressDelegate(13);
|
||||
setStatusDelegate(statusConst + " Resource User");
|
||||
this.LoadResourceUserTable();
|
||||
|
@ -576,24 +582,16 @@ namespace IndianHealthService.ClinicalScheduling
|
|||
|
||||
//Build active provider table
|
||||
//Table #14
|
||||
//TODO: Lazy load the provider table; no need to load in advance.
|
||||
setProgressDelegate(14);
|
||||
setStatusDelegate(statusConst + " Providers");
|
||||
sCommandText = "SELECT BMXIEN, NAME FROM NEW_PERSON WHERE INACTIVE_DATE = '' AND BMXIEN > 1";
|
||||
ConnectInfo.RPMSDataTable(sCommandText, "Provider", m_dsGlobal);
|
||||
Debug.Write("LoadGlobalRecordsets -- Provider loaded\n");
|
||||
|
||||
//Build the CLINIC_STOP table
|
||||
//Build the HOLIDAY table
|
||||
//Table #15
|
||||
setProgressDelegate(15);
|
||||
setStatusDelegate(statusConst + " Clinic Stops");
|
||||
// sCommandText = "SELECT BMXIEN, CODE, NAME FROM CLINIC_STOP"; //SMH
|
||||
sCommandText = "SELECT BMXIEN, AMIS_REPORTING_STOP_CODE, NAME FROM CLINIC_STOP";
|
||||
ConnectInfo.RPMSDataTable(sCommandText, "ClinicStop", m_dsGlobal);
|
||||
Debug.Write("LoadGlobalRecordsets -- ClinicStop loaded\n");
|
||||
|
||||
//Build the HOLIDAY table
|
||||
//Table #16
|
||||
setProgressDelegate(16);
|
||||
setStatusDelegate(statusConst + " Holiday");
|
||||
sCommandText = "SELECT NAME, DATE FROM HOLIDAY WHERE DATE > '" + DateTime.Today.ToShortDateString() + "'";
|
||||
ConnectInfo.RPMSDataTable(sCommandText, "HOLIDAY", m_dsGlobal);
|
||||
|
@ -612,17 +610,17 @@ namespace IndianHealthService.ClinicalScheduling
|
|||
#endif
|
||||
// Event Subsriptions
|
||||
setStatusDelegate("Subscribing to Server Events");
|
||||
//Table #17
|
||||
setProgressDelegate(17);
|
||||
//Table #16
|
||||
setProgressDelegate(16);
|
||||
_current.m_ConnectInfo.SubscribeEvent("BSDX SCHEDULE");
|
||||
//Table #17
|
||||
setProgressDelegate(17);
|
||||
_current.m_ConnectInfo.SubscribeEvent("BSDX CALL WORKSTATIONS");
|
||||
//Table #18
|
||||
setProgressDelegate(18);
|
||||
_current.m_ConnectInfo.SubscribeEvent("BSDX CALL WORKSTATIONS");
|
||||
_current.m_ConnectInfo.SubscribeEvent("BSDX ADMIN MESSAGE");
|
||||
//Table #19
|
||||
setProgressDelegate(19);
|
||||
_current.m_ConnectInfo.SubscribeEvent("BSDX ADMIN MESSAGE");
|
||||
//Table #20
|
||||
setProgressDelegate(20);
|
||||
_current.m_ConnectInfo.SubscribeEvent("BSDX ADMIN SHUTDOWN");
|
||||
|
||||
_current.m_ConnectInfo.EventPollingInterval = 5000; //in milliseconds
|
||||
|
|
|
@ -1940,7 +1940,7 @@ namespace IndianHealthService.ClinicalScheduling
|
|||
|
||||
private void AppointmentCheckIn()
|
||||
{
|
||||
bool bDeleted = false;
|
||||
|
||||
int nApptID = this.calendarGrid1.SelectedAppointment;
|
||||
Debug.Assert(nApptID != 0);
|
||||
|
||||
|
@ -1948,7 +1948,6 @@ namespace IndianHealthService.ClinicalScheduling
|
|||
|
||||
try
|
||||
{
|
||||
|
||||
bool bAlreadyCheckedIn = false;
|
||||
if (a.CheckInTime.Ticks > 0)
|
||||
bAlreadyCheckedIn = true;
|
||||
|
@ -1978,41 +1977,17 @@ namespace IndianHealthService.ClinicalScheduling
|
|||
Debug.Write("CGView.AppointmentCheckIn Error: " + ex.Message);
|
||||
}
|
||||
|
||||
|
||||
string sProv = "";
|
||||
string sProvReqd = "NO";
|
||||
string sPCC = "NO";
|
||||
string sMultCodes = "NO";
|
||||
string sStopCode = "";
|
||||
bool bProvReqd = false;
|
||||
bool bPCC = false;
|
||||
bool bMultCodes = false;
|
||||
|
||||
if (nHospLoc > 0)
|
||||
{
|
||||
DataRow dr = drv.Row;
|
||||
DataRow drHL = dr.GetParentRow(m_DocManager.GlobalDataSet.Relations["HospitalLocationResource"]);
|
||||
sProv = drHL["DEFAULT_PROVIDER"].ToString();
|
||||
sStopCode = drHL["STOP_CODE_NUMBER"].ToString();
|
||||
|
||||
|
||||
//TODO: Remove this. This doesn't exist in VISTA.
|
||||
/*
|
||||
DataRow[] draCS = drHL.GetChildRows(m_DocManager.GlobalDataSet.Relations["HospitalLocationClinic"]);
|
||||
if (draCS.GetLength(0) > 0)
|
||||
{
|
||||
DataRow drCS = draCS[0];
|
||||
sProvReqd = drCS["VISIT_PROVIDER_REQUIRED"].ToString();
|
||||
sPCC = drCS["GENERATE_PCCPLUS_FORMS?"].ToString();
|
||||
sMultCodes = drCS["MULTIPLE_CLINIC_CODES_USED?"].ToString();
|
||||
}
|
||||
bProvReqd = (sProvReqd == "YES")?true:false;
|
||||
bPCC = (sPCC == "YES")?true:false;
|
||||
bMultCodes = (sMultCodes == "YES")?true:false;
|
||||
*/
|
||||
}
|
||||
|
||||
DCheckIn dlgCheckin = new DCheckIn();
|
||||
dlgCheckin.InitializePage(a, this.m_DocManager, sProv, bProvReqd, bPCC, bMultCodes, sStopCode, nHospLoc);
|
||||
dlgCheckin.InitializePage(a, this.m_DocManager, sProv, nHospLoc);
|
||||
calendarGrid1.CGToolTip.Active = false;
|
||||
if (dlgCheckin.ShowDialog(this) != DialogResult.OK)
|
||||
{
|
||||
|
@ -2026,21 +2001,9 @@ namespace IndianHealthService.ClinicalScheduling
|
|||
|
||||
DateTime dtCheckIn = dlgCheckin.CheckInTime;
|
||||
|
||||
/*
|
||||
* Need to pass Provider, ClinicStop, PrintRouteSlip,
|
||||
* PCC Clinic, PCC Form, Print OutGuide
|
||||
*/
|
||||
|
||||
this.Document.CheckInAppointment(nApptID, dtCheckIn,
|
||||
dlgCheckin.ClinicStopIEN,
|
||||
dlgCheckin.ProviderIEN,
|
||||
dlgCheckin.PrintRouteSlip,
|
||||
dlgCheckin.PCCClinicIEN,
|
||||
dlgCheckin.PCCFormIEN,
|
||||
dlgCheckin.PCCOutGuide
|
||||
);
|
||||
this.Document.CheckInAppointment(nApptID, dtCheckIn);
|
||||
//smh new code
|
||||
if (dlgCheckin.PrintRouteSlip == "true") //TODO: strange that we use a string for a boolean value??
|
||||
if (dlgCheckin.PrintRouteSlip)
|
||||
this.printRoutingSlip.Print();
|
||||
// end new code
|
||||
|
||||
|
@ -2051,18 +2014,6 @@ namespace IndianHealthService.ClinicalScheduling
|
|||
MessageBox.Show("Error checking in patient: " + ex.Message, "Clinical Scheduling");
|
||||
}
|
||||
|
||||
if (bDeleted == true)
|
||||
{
|
||||
try
|
||||
{
|
||||
RaiseRPMSEvent("BSDX SCHEDULE" , m_Document.DocName);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Debug.Write(ex.Message);
|
||||
}
|
||||
this.calendarGrid1.Invalidate();
|
||||
}
|
||||
}
|
||||
|
||||
private void AppointmentAddWalkin()
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
<RemoteDebugMachine>
|
||||
</RemoteDebugMachine>
|
||||
<StartAction>Project</StartAction>
|
||||
<StartArguments>/s=192.168.56.101 /p=9260 /a=shabiel12 /v=catdog.66</StartArguments>
|
||||
<StartArguments>/s=172.16.16.108 /p=9250 /a=abeer12 /v=abc,4321</StartArguments>
|
||||
<StartPage>
|
||||
</StartPage>
|
||||
<StartProgram>C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\IEExec.exe</StartProgram>
|
||||
|
|
Binary file not shown.
|
@ -43,22 +43,12 @@ namespace IndianHealthService.ClinicalScheduling
|
|||
private System.Windows.Forms.Label lblPatientName;
|
||||
private System.Windows.Forms.Label label2;
|
||||
private System.Windows.Forms.ComboBox cboProvider;
|
||||
private System.Windows.Forms.ComboBox cboStopCode;
|
||||
private System.Windows.Forms.Label lblStopCode;
|
||||
private System.Windows.Forms.CheckBox chkRoutingSlip;
|
||||
private System.Windows.Forms.GroupBox grpPCCPlus;
|
||||
private System.Windows.Forms.ComboBox cboPCCPlusClinic;
|
||||
private System.Windows.Forms.Label label4;
|
||||
private System.Windows.Forms.ComboBox cboPCCPlusForm;
|
||||
private System.Windows.Forms.Label label5;
|
||||
private System.Windows.Forms.CheckBox chkPCCOutGuide;
|
||||
|
||||
private string m_sPatientName;
|
||||
private DateTime m_dCheckIn;
|
||||
private string m_sProvider;
|
||||
private string m_sProviderIEN;
|
||||
private string m_sStopCode;
|
||||
private string m_sStopCodeIEN;
|
||||
private CGDocumentManager m_DocManager;
|
||||
private DataSet m_dsGlobal;
|
||||
private DataTable m_dtProvider;
|
||||
|
@ -70,16 +60,7 @@ namespace IndianHealthService.ClinicalScheduling
|
|||
private DataView m_dvForm;
|
||||
private bool m_bInit;
|
||||
public bool m_bPrintRouteSlip;
|
||||
private DateTime m_dAuxTime;
|
||||
|
||||
/*
|
||||
* PCC Variables
|
||||
*/
|
||||
private bool m_bPCC;
|
||||
private string m_sPCCClinicIEN;
|
||||
private string m_sPCCFormIEN;
|
||||
private ToolTip toolTip1;
|
||||
private bool m_bPCCOutGuide;
|
||||
|
||||
#endregion Fields
|
||||
|
||||
|
@ -96,60 +77,14 @@ namespace IndianHealthService.ClinicalScheduling
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns string representation of IEN of Clinic in VEN EHP CLINIC file
|
||||
/// </summary>
|
||||
public string PCCClinicIEN
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.m_sPCCClinicIEN;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns string representation of IEN of template entry in VEN PCC TEMPLATE
|
||||
/// </summary>
|
||||
public string PCCFormIEN
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_sPCCFormIEN;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns 'true' if outguide to be printed; otherwise returns 'false'
|
||||
/// </summary>
|
||||
public string PCCOutGuide
|
||||
{
|
||||
get
|
||||
{
|
||||
string sRet = (this.m_bPCCOutGuide == true) ? "true" : "false";
|
||||
return sRet;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns string representation of IEN of CLINIC STOP
|
||||
/// </summary>
|
||||
public string ClinicStopIEN
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.m_sStopCodeIEN;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns 'true' if routing slip to be printed; otherwise 'false'
|
||||
/// </summary>
|
||||
public string PrintRouteSlip
|
||||
public bool PrintRouteSlip
|
||||
{
|
||||
get
|
||||
{
|
||||
string sRet = (this.m_bPrintRouteSlip == true) ? "true" : "false";
|
||||
return sRet;
|
||||
return m_bPrintRouteSlip;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -168,20 +103,6 @@ namespace IndianHealthService.ClinicalScheduling
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Appointment end time
|
||||
/// </summary>
|
||||
public DateTime AuxTime
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_dAuxTime;
|
||||
}
|
||||
set
|
||||
{
|
||||
m_dAuxTime = value;
|
||||
}
|
||||
}
|
||||
#endregion Properties
|
||||
|
||||
#region Methods
|
||||
|
@ -192,22 +113,14 @@ namespace IndianHealthService.ClinicalScheduling
|
|||
/// <param name="a">Appointment</param>
|
||||
/// <param name="docManager">Document Manager</param>
|
||||
/// <param name="sDefaultProvider">Default provider</param>
|
||||
/// <param name="bProviderRequired">not used</param>
|
||||
/// <param name="bGeneratePCCPlus">not used</param>
|
||||
/// <param name="bMultCodes">not used</param>
|
||||
/// <param name="sStopCode">Stop Code</param>
|
||||
public void InitializePage(CGAppointment a, CGDocumentManager docManager,
|
||||
string sDefaultProvider, bool bProviderRequired, bool bGeneratePCCPlus,
|
||||
bool bMultCodes, string sStopCode, int nHospLoc)
|
||||
string sDefaultProvider, int nHospLoc)
|
||||
{
|
||||
m_bInit = true;
|
||||
m_DocManager = docManager;
|
||||
m_dsGlobal = m_DocManager.GlobalDataSet;
|
||||
int nFind = 0;
|
||||
|
||||
//Provider processing
|
||||
m_bProviderRequired = bProviderRequired; //not used in VISTA --remove
|
||||
|
||||
//smh new code
|
||||
//if the resource is linked to a valid hospital location, grab this locations providers
|
||||
//from the provider multiple and put them in the combo box.
|
||||
|
@ -238,11 +151,6 @@ namespace IndianHealthService.ClinicalScheduling
|
|||
if (nRow.Length > 0) nFind = m_dtProvider.Rows.IndexOf(nRow[0]);
|
||||
cboProvider.SelectedIndex = nFind;
|
||||
|
||||
//an experiment (doesn't work yet, but leaving for future enlightenment): LINQ
|
||||
var defProv = from Provider in m_dtProvider.AsEnumerable()
|
||||
where Provider.Field<string>("DEFAULT") == "YES"
|
||||
select Provider;
|
||||
|
||||
}
|
||||
//otherwise, just use the default provider table
|
||||
else
|
||||
|
@ -265,42 +173,6 @@ namespace IndianHealthService.ClinicalScheduling
|
|||
}
|
||||
|
||||
|
||||
//Stop code processing
|
||||
//TODO: Remove... not in VISTA.
|
||||
this.lblStopCode.Visible = false;
|
||||
this.cboStopCode.Visible = false;
|
||||
m_dvCS = new DataView(m_dsGlobal.Tables["ClinicStop"]);
|
||||
m_dvCS.Sort = "NAME ASC";
|
||||
m_sStopCode = sStopCode;
|
||||
m_sStopCodeIEN = "";
|
||||
if (m_sStopCode != "")
|
||||
{
|
||||
//Get the IEN of the clinic stop code
|
||||
nFind = m_dvCS.Find((string)m_sStopCode);
|
||||
Debug.Assert(nFind > -1);
|
||||
if (nFind > -1)
|
||||
{
|
||||
m_sStopCodeIEN = m_dvCS[nFind].Row["BMXIEN"].ToString();
|
||||
}
|
||||
}
|
||||
|
||||
if (bMultCodes == true)
|
||||
{
|
||||
this.lblStopCode.Visible = true;
|
||||
this.cboStopCode.Visible = true;
|
||||
cboStopCode.DataSource = m_dvCS;
|
||||
cboStopCode.DisplayMember = "NAME";
|
||||
cboStopCode.ValueMember = "BMXIEN";
|
||||
if (m_sStopCode != "")
|
||||
{
|
||||
nFind = m_dvCS.Find((string)m_sStopCode);
|
||||
cboStopCode.SelectedIndex = nFind;
|
||||
}
|
||||
}
|
||||
|
||||
m_bPCC = bGeneratePCCPlus;
|
||||
PCCPlus();
|
||||
|
||||
m_sPatientName = a.PatientName;
|
||||
if (a.CheckInTime.Ticks != 0)
|
||||
{
|
||||
|
@ -313,68 +185,11 @@ namespace IndianHealthService.ClinicalScheduling
|
|||
{
|
||||
m_dCheckIn = DateTime.Now;
|
||||
}
|
||||
|
||||
UpdateDialogData(true);
|
||||
m_bInit = false;
|
||||
|
||||
//Synchronize PCCForm with Clinic
|
||||
if (m_bPCC == true)
|
||||
{
|
||||
cboPCCPlusClinic_SelectedIndexChanged(this, new System.EventArgs());
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Not used in VISTA. Needs to be removed
|
||||
/// <remarks>Not used in VISTA.</remarks>
|
||||
/// </summary>
|
||||
private void PCCPlus()
|
||||
{
|
||||
//PCCPlus processing
|
||||
/*Can't do PCCPlus if no stop code
|
||||
* or if PRINT PCC PLUS FORM field in CLINIC SETUP PARAMETERS is false
|
||||
*/
|
||||
if ((m_bPCC == false) || (m_sStopCode == ""))
|
||||
{
|
||||
grpPCCPlus.Enabled = false;
|
||||
return;
|
||||
}
|
||||
else
|
||||
{
|
||||
grpPCCPlus.Enabled = true;
|
||||
//Populate combo box with recordset of clinics based on m_sStopCode
|
||||
string sCmd = "SELECT BMXIEN, NAME, DEPARTMENT, DEFAULT_ENCOUNTER_FORM, NEVER_PRINT_OUTGUIDE FROM VEN_EHP_CLINIC WHERE DEPARTMENT = '" + m_sStopCode + "'";
|
||||
m_dtClinic = m_DocManager.ConnectInfo.RPMSDataTable(sCmd, "CLINIC");
|
||||
m_dvClinic = new DataView(m_dtClinic);
|
||||
m_dvClinic.Sort = "NAME ASC";
|
||||
|
||||
cboPCCPlusClinic.DataSource = m_dvClinic;
|
||||
cboPCCPlusClinic.DisplayMember = "NAME";
|
||||
cboPCCPlusClinic.ValueMember = "BMXIEN";
|
||||
|
||||
|
||||
//Populate combo box with recordset of all forms
|
||||
sCmd = "SELECT BMXIEN, TEMPLATE FROM VEN_EHP_EF_TEMPLATES";
|
||||
m_dtForm = m_DocManager.ConnectInfo.RPMSDataTable(sCmd, "FORM");
|
||||
m_dvForm = new DataView(m_dtForm);
|
||||
m_dvForm.Sort = "TEMPLATE ASC";
|
||||
|
||||
cboPCCPlusForm.DataSource = m_dvForm;
|
||||
cboPCCPlusForm.DisplayMember = "TEMPLATE";
|
||||
cboPCCPlusForm.ValueMember = "BMXIEN";
|
||||
|
||||
if ((m_dtClinic.Rows.Count == 0) || (m_dtForm.Rows.Count == 0))
|
||||
{
|
||||
//No PCCPlus clinics for current stop code
|
||||
//or no forms available
|
||||
grpPCCPlus.Enabled = false;
|
||||
return;
|
||||
}
|
||||
|
||||
cboPCCPlusClinic.SelectedIndex = 0;
|
||||
cboPCCPlusClinic_SelectedIndexChanged(this, new System.EventArgs());
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// If b is true, moves member vars into control data
|
||||
|
@ -390,48 +205,9 @@ namespace IndianHealthService.ClinicalScheduling
|
|||
}
|
||||
else //Move data to member variables from dialog controls
|
||||
{
|
||||
|
||||
/*
|
||||
* Need to return Provider, ClinicStop, PrintRouteSlip,
|
||||
* PCC Clinic, PCC Form, Print OutGuide
|
||||
*/
|
||||
|
||||
m_dCheckIn = this.dtpCheckIn.Value;
|
||||
m_sProviderIEN = this.cboProvider.SelectedValue.ToString();
|
||||
m_bPrintRouteSlip = chkRoutingSlip.Checked;
|
||||
|
||||
/*
|
||||
* Don't get value from CLINIC STOP combo since
|
||||
* it may not be enabled, and
|
||||
* it updates the member variable whenever the selection changes
|
||||
*/
|
||||
|
||||
/*
|
||||
* PCCPlus
|
||||
*/
|
||||
|
||||
if (grpPCCPlus.Enabled == false)
|
||||
{
|
||||
m_bPCC = false;
|
||||
m_sPCCClinicIEN = "";
|
||||
m_sPCCFormIEN = "";
|
||||
m_bPCCOutGuide = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
m_bPCC = true;
|
||||
m_sPCCClinicIEN = this.cboPCCPlusClinic.SelectedValue.ToString();
|
||||
m_sPCCFormIEN = this.cboPCCPlusForm.SelectedValue.ToString();
|
||||
if (chkPCCOutGuide.Enabled == false)
|
||||
{
|
||||
m_bPCCOutGuide = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
m_bPCCOutGuide = this.chkPCCOutGuide.Checked;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -459,7 +235,6 @@ namespace IndianHealthService.ClinicalScheduling
|
|||
private void InitializeComponent()
|
||||
{
|
||||
this.components = new System.ComponentModel.Container();
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(DCheckIn));
|
||||
this.pnlPageBottom = new System.Windows.Forms.Panel();
|
||||
this.cmdCancel = new System.Windows.Forms.Button();
|
||||
this.cmdOK = new System.Windows.Forms.Button();
|
||||
|
@ -473,20 +248,11 @@ namespace IndianHealthService.ClinicalScheduling
|
|||
this.lblPatientName = new System.Windows.Forms.Label();
|
||||
this.cboProvider = new System.Windows.Forms.ComboBox();
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.cboStopCode = new System.Windows.Forms.ComboBox();
|
||||
this.lblStopCode = new System.Windows.Forms.Label();
|
||||
this.chkRoutingSlip = new System.Windows.Forms.CheckBox();
|
||||
this.grpPCCPlus = new System.Windows.Forms.GroupBox();
|
||||
this.chkPCCOutGuide = new System.Windows.Forms.CheckBox();
|
||||
this.label4 = new System.Windows.Forms.Label();
|
||||
this.cboPCCPlusClinic = new System.Windows.Forms.ComboBox();
|
||||
this.cboPCCPlusForm = new System.Windows.Forms.ComboBox();
|
||||
this.label5 = new System.Windows.Forms.Label();
|
||||
this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
|
||||
this.pnlPageBottom.SuspendLayout();
|
||||
this.pnlDescription.SuspendLayout();
|
||||
this.grpDescriptionResourceGroup.SuspendLayout();
|
||||
this.grpPCCPlus.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// pnlPageBottom
|
||||
|
@ -494,7 +260,7 @@ namespace IndianHealthService.ClinicalScheduling
|
|||
this.pnlPageBottom.Controls.Add(this.cmdCancel);
|
||||
this.pnlPageBottom.Controls.Add(this.cmdOK);
|
||||
this.pnlPageBottom.Dock = System.Windows.Forms.DockStyle.Bottom;
|
||||
this.pnlPageBottom.Location = new System.Drawing.Point(0, 360);
|
||||
this.pnlPageBottom.Location = new System.Drawing.Point(0, 203);
|
||||
this.pnlPageBottom.Name = "pnlPageBottom";
|
||||
this.pnlPageBottom.Size = new System.Drawing.Size(520, 40);
|
||||
this.pnlPageBottom.TabIndex = 5;
|
||||
|
@ -522,7 +288,7 @@ namespace IndianHealthService.ClinicalScheduling
|
|||
//
|
||||
this.pnlDescription.Controls.Add(this.grpDescriptionResourceGroup);
|
||||
this.pnlDescription.Dock = System.Windows.Forms.DockStyle.Bottom;
|
||||
this.pnlDescription.Location = new System.Drawing.Point(0, 288);
|
||||
this.pnlDescription.Location = new System.Drawing.Point(0, 131);
|
||||
this.pnlDescription.Name = "pnlDescription";
|
||||
this.pnlDescription.Size = new System.Drawing.Size(520, 72);
|
||||
this.pnlDescription.TabIndex = 6;
|
||||
|
@ -545,7 +311,8 @@ namespace IndianHealthService.ClinicalScheduling
|
|||
this.lblDescriptionResourceGroup.Name = "lblDescriptionResourceGroup";
|
||||
this.lblDescriptionResourceGroup.Size = new System.Drawing.Size(514, 53);
|
||||
this.lblDescriptionResourceGroup.TabIndex = 0;
|
||||
this.lblDescriptionResourceGroup.Text = resources.GetString("lblDescriptionResourceGroup.Text");
|
||||
this.lblDescriptionResourceGroup.Text = "Use this panel to check in an appointment. A patient may only be checked-in once." +
|
||||
"";
|
||||
//
|
||||
// label1
|
||||
//
|
||||
|
@ -583,7 +350,7 @@ namespace IndianHealthService.ClinicalScheduling
|
|||
this.label3.Name = "label3";
|
||||
this.label3.Size = new System.Drawing.Size(80, 16);
|
||||
this.label3.TabIndex = 7;
|
||||
this.label3.Text = "CheckIn Time:";
|
||||
this.label3.Text = "Check-in Time:";
|
||||
//
|
||||
// lblPatientName
|
||||
//
|
||||
|
@ -608,91 +375,20 @@ namespace IndianHealthService.ClinicalScheduling
|
|||
this.label2.TabIndex = 7;
|
||||
this.label2.Text = "Visit Provider:";
|
||||
//
|
||||
// cboStopCode
|
||||
//
|
||||
this.cboStopCode.Location = new System.Drawing.Point(96, 128);
|
||||
this.cboStopCode.Name = "cboStopCode";
|
||||
this.cboStopCode.Size = new System.Drawing.Size(240, 21);
|
||||
this.cboStopCode.TabIndex = 13;
|
||||
this.cboStopCode.SelectedIndexChanged += new System.EventHandler(this.cboStopCode_SelectedIndexChanged);
|
||||
//
|
||||
// lblStopCode
|
||||
//
|
||||
this.lblStopCode.Location = new System.Drawing.Point(16, 128);
|
||||
this.lblStopCode.Name = "lblStopCode";
|
||||
this.lblStopCode.Size = new System.Drawing.Size(80, 16);
|
||||
this.lblStopCode.TabIndex = 7;
|
||||
this.lblStopCode.Text = "Stop Code:";
|
||||
//
|
||||
// chkRoutingSlip
|
||||
//
|
||||
this.chkRoutingSlip.Location = new System.Drawing.Point(368, 88);
|
||||
this.chkRoutingSlip.Location = new System.Drawing.Point(380, 93);
|
||||
this.chkRoutingSlip.Name = "chkRoutingSlip";
|
||||
this.chkRoutingSlip.Size = new System.Drawing.Size(128, 16);
|
||||
this.chkRoutingSlip.TabIndex = 14;
|
||||
this.chkRoutingSlip.Text = "Print Routing Slip";
|
||||
this.toolTip1.SetToolTip(this.chkRoutingSlip, "Prints routing slip to the Windows Default Printer");
|
||||
//
|
||||
// grpPCCPlus
|
||||
//
|
||||
this.grpPCCPlus.Controls.Add(this.chkPCCOutGuide);
|
||||
this.grpPCCPlus.Controls.Add(this.label4);
|
||||
this.grpPCCPlus.Controls.Add(this.cboPCCPlusClinic);
|
||||
this.grpPCCPlus.Controls.Add(this.cboPCCPlusForm);
|
||||
this.grpPCCPlus.Controls.Add(this.label5);
|
||||
this.grpPCCPlus.Location = new System.Drawing.Point(8, 168);
|
||||
this.grpPCCPlus.Name = "grpPCCPlus";
|
||||
this.grpPCCPlus.Size = new System.Drawing.Size(488, 104);
|
||||
this.grpPCCPlus.TabIndex = 15;
|
||||
this.grpPCCPlus.TabStop = false;
|
||||
this.grpPCCPlus.Text = "PCC Plus";
|
||||
//
|
||||
// chkPCCOutGuide
|
||||
//
|
||||
this.chkPCCOutGuide.Location = new System.Drawing.Point(360, 24);
|
||||
this.chkPCCOutGuide.Name = "chkPCCOutGuide";
|
||||
this.chkPCCOutGuide.Size = new System.Drawing.Size(96, 16);
|
||||
this.chkPCCOutGuide.TabIndex = 15;
|
||||
this.chkPCCOutGuide.Text = "Print Outguide";
|
||||
//
|
||||
// label4
|
||||
//
|
||||
this.label4.Location = new System.Drawing.Point(8, 24);
|
||||
this.label4.Name = "label4";
|
||||
this.label4.Size = new System.Drawing.Size(72, 16);
|
||||
this.label4.TabIndex = 8;
|
||||
this.label4.Text = "PCC+ Clinic:";
|
||||
//
|
||||
// cboPCCPlusClinic
|
||||
//
|
||||
this.cboPCCPlusClinic.Location = new System.Drawing.Point(88, 24);
|
||||
this.cboPCCPlusClinic.Name = "cboPCCPlusClinic";
|
||||
this.cboPCCPlusClinic.Size = new System.Drawing.Size(240, 21);
|
||||
this.cboPCCPlusClinic.TabIndex = 0;
|
||||
this.cboPCCPlusClinic.SelectedIndexChanged += new System.EventHandler(this.cboPCCPlusClinic_SelectedIndexChanged);
|
||||
//
|
||||
// cboPCCPlusForm
|
||||
//
|
||||
this.cboPCCPlusForm.Location = new System.Drawing.Point(88, 64);
|
||||
this.cboPCCPlusForm.Name = "cboPCCPlusForm";
|
||||
this.cboPCCPlusForm.Size = new System.Drawing.Size(240, 21);
|
||||
this.cboPCCPlusForm.TabIndex = 0;
|
||||
//
|
||||
// label5
|
||||
//
|
||||
this.label5.Location = new System.Drawing.Point(8, 64);
|
||||
this.label5.Name = "label5";
|
||||
this.label5.Size = new System.Drawing.Size(72, 16);
|
||||
this.label5.TabIndex = 8;
|
||||
this.label5.Text = "PCC+ Form:";
|
||||
//
|
||||
// DCheckIn
|
||||
//
|
||||
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
|
||||
this.ClientSize = new System.Drawing.Size(520, 400);
|
||||
this.Controls.Add(this.grpPCCPlus);
|
||||
this.ClientSize = new System.Drawing.Size(520, 243);
|
||||
this.Controls.Add(this.chkRoutingSlip);
|
||||
this.Controls.Add(this.cboStopCode);
|
||||
this.Controls.Add(this.cboProvider);
|
||||
this.Controls.Add(this.lblPatientName);
|
||||
this.Controls.Add(this.lblAlready);
|
||||
|
@ -702,7 +398,6 @@ namespace IndianHealthService.ClinicalScheduling
|
|||
this.Controls.Add(this.pnlPageBottom);
|
||||
this.Controls.Add(this.label3);
|
||||
this.Controls.Add(this.label2);
|
||||
this.Controls.Add(this.lblStopCode);
|
||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
|
||||
this.Name = "DCheckIn";
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
|
||||
|
@ -710,7 +405,6 @@ namespace IndianHealthService.ClinicalScheduling
|
|||
this.pnlPageBottom.ResumeLayout(false);
|
||||
this.pnlDescription.ResumeLayout(false);
|
||||
this.grpDescriptionResourceGroup.ResumeLayout(false);
|
||||
this.grpPCCPlus.ResumeLayout(false);
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
@ -723,45 +417,6 @@ namespace IndianHealthService.ClinicalScheduling
|
|||
this.UpdateDialogData(false);
|
||||
}
|
||||
|
||||
private void cboStopCode_SelectedIndexChanged(object sender, System.EventArgs e)
|
||||
{
|
||||
/*
|
||||
* Whenever the stop code changes, the set of PCCPlus Clinic Selections change
|
||||
* except during init.
|
||||
*/
|
||||
if (m_bInit == true)
|
||||
return;
|
||||
|
||||
//Change the value of m_sStopCode
|
||||
DataRowView drv = (DataRowView)this.cboStopCode.SelectedItem;
|
||||
string sStopCode = drv.Row["NAME"].ToString();
|
||||
m_sStopCode = sStopCode;
|
||||
m_sStopCodeIEN = drv.Row["BMXIEN"].ToString();
|
||||
PCCPlus();
|
||||
}
|
||||
|
||||
private void cboPCCPlusClinic_SelectedIndexChanged(object sender, System.EventArgs e)
|
||||
{
|
||||
/*
|
||||
* Whenever the PCCPlus Clinic changes, the default EF TEMPLATE changes
|
||||
*/
|
||||
if (m_bInit == true)
|
||||
return;
|
||||
|
||||
if (this.cboPCCPlusClinic.SelectedItem == null)
|
||||
return;
|
||||
|
||||
DataRowView drv = (DataRowView)this.cboPCCPlusClinic.SelectedItem;
|
||||
string sDefaultForm = drv.Row["DEFAULT_ENCOUNTER_FORM"].ToString();
|
||||
|
||||
int nFind = this.m_dvForm.Find(sDefaultForm);
|
||||
if (nFind > -1)
|
||||
{
|
||||
this.cboPCCPlusForm.SelectedIndex = nFind;
|
||||
}
|
||||
}
|
||||
#endregion Events
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -117,9 +117,6 @@
|
|||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<data name="lblDescriptionResourceGroup.Text" xml:space="preserve">
|
||||
<value>Use this panel to check in an appointment. A PCC visit will automatically be created for this patient at the check in date and time if the clinic is set up to create a visit at checkin. A patient may only be checked-in once.</value>
|
||||
</data>
|
||||
<metadata name="toolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
|
|
Loading…
Reference in New Issue