Ignore:
Timestamp:
Jan 9, 2011, 7:13:00 AM (13 years ago)
Author:
Sam Habiel
Message:

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.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Scheduling/trunk/cs/bsdx0200GUISourceCode/CGView.cs

    r1027 r1062  
    19411941                private void AppointmentCheckIn()
    19421942                {
    1943                         bool bDeleted = false;
     1943                       
    19441944                        int nApptID = this.calendarGrid1.SelectedAppointment;
    19451945                        Debug.Assert(nApptID != 0);
     
    19491949                        try
    19501950                        {
    1951 
    19521951                                bool bAlreadyCheckedIn = false;
    19531952                                if (a.CheckInTime.Ticks > 0)
     
    19781977                                        Debug.Write("CGView.AppointmentCheckIn Error: " + ex.Message);
    19791978                                }
    1980 
    19811979                               
    19821980                                string sProv = "";
    1983                                 string sProvReqd = "NO";
    1984                                 string sPCC = "NO";
    1985                                 string sMultCodes = "NO";
    1986                                 string sStopCode = "";
    1987                                 bool bProvReqd = false;
    1988                                 bool bPCC = false;
    1989                                 bool bMultCodes = false;
     1981
    19901982                                if (nHospLoc > 0)
    19911983                                {
     
    19931985                                        DataRow drHL = dr.GetParentRow(m_DocManager.GlobalDataSet.Relations["HospitalLocationResource"]);
    19941986                                        sProv = drHL["DEFAULT_PROVIDER"].ToString();
    1995                                         sStopCode = drHL["STOP_CODE_NUMBER"].ToString();
    1996 
    1997                                        
    1998                     //TODO: Remove this. This doesn't exist in VISTA.
    1999                     /*
    2000                     DataRow[] draCS = drHL.GetChildRows(m_DocManager.GlobalDataSet.Relations["HospitalLocationClinic"]);
    2001                                         if (draCS.GetLength(0) > 0)
    2002                                         {
    2003                                                 DataRow drCS = draCS[0];
    2004                                                 sProvReqd = drCS["VISIT_PROVIDER_REQUIRED"].ToString();
    2005                                                 sPCC = drCS["GENERATE_PCCPLUS_FORMS?"].ToString();
    2006                                                 sMultCodes = drCS["MULTIPLE_CLINIC_CODES_USED?"].ToString();
    2007                                         }
    2008                                         bProvReqd = (sProvReqd == "YES")?true:false;
    2009                                         bPCC = (sPCC == "YES")?true:false;
    2010                                         bMultCodes = (sMultCodes == "YES")?true:false;
    2011                      */
    20121987                                }
    20131988
    20141989                                DCheckIn dlgCheckin = new DCheckIn();
    2015                                 dlgCheckin.InitializePage(a, this.m_DocManager, sProv, bProvReqd, bPCC, bMultCodes, sStopCode, nHospLoc);
     1990                                dlgCheckin.InitializePage(a, this.m_DocManager, sProv, nHospLoc);
    20161991                                calendarGrid1.CGToolTip.Active = false;
    20171992                                if (dlgCheckin.ShowDialog(this) != DialogResult.OK)
     
    20272002                                DateTime dtCheckIn = dlgCheckin.CheckInTime;
    20282003
    2029                                 /*
    2030                                  * Need to pass Provider, ClinicStop, PrintRouteSlip,
    2031                                  * PCC Clinic, PCC Form, Print OutGuide
    2032                                  */
    2033 
    2034                                 this.Document.CheckInAppointment(nApptID, dtCheckIn,
    2035                          dlgCheckin.ClinicStopIEN,
    2036                          dlgCheckin.ProviderIEN,
    2037                          dlgCheckin.PrintRouteSlip,
    2038                          dlgCheckin.PCCClinicIEN,
    2039                          dlgCheckin.PCCFormIEN,
    2040                          dlgCheckin.PCCOutGuide
    2041                                         );
     2004                                this.Document.CheckInAppointment(nApptID, dtCheckIn);
    20422005                //smh new code
    2043                 if (dlgCheckin.PrintRouteSlip == "true") //TODO: strange that we use a string for a boolean value??
     2006                if (dlgCheckin.PrintRouteSlip)
    20442007                    this.printRoutingSlip.Print();
    20452008                // end new code
     
    20522015                        }
    20532016
    2054                         if (bDeleted == true)
    2055                         {
    2056                                 try
    2057                                 {
    2058                                         RaiseRPMSEvent("BSDX SCHEDULE" , m_Document.DocName);
    2059                                 }
    2060                                 catch (Exception ex)
    2061                                 {
    2062                                         Debug.Write(ex.Message);
    2063                                 }
    2064                                 this.calendarGrid1.Invalidate();
    2065                         }               
    20662017                }
    20672018
Note: See TracChangeset for help on using the changeset viewer.