Ignore:
Timestamp:
Apr 12, 2011, 2:13:18 AM (14 years ago)
Author:
Sam Habiel
Message:

DRadExamsSelect: New form to let user select exam.
RadiologyExam: Class for a Radiology Exam
DAL: new DB communication methods: GetRadiologyExamsForPatientinHL and ScheduleRadiologyExam
CGView:

  1. New context menus for Radiology; context menu popup has logic for which menus to display;
  2. Helper method IsThisARadiologyResource used by ctxCalendarGrid_Popup to decide which menus to display
  3. Handler ctxCalGridMkRadAppt_Click to make the Radiology Appointment.

CGDocument:

  1. CreateAppointment now saves RadiologyExamIEN to the DB
  2. RefreshAppointments now gets RadiologyExamIEN from the DB

CGAppointment:

  1. Class completely refactored to use auto props rather than old style properties
  2. Added property RadiologyExamIEN

CalendarGrid: Class was wrongly using supposed private members of CGAppointment. Refactored to fix that as private members don't exist anymore.

Last but not least, new exe,dll

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Scheduling/branches/Radiology-Support/cs/bsdx0200GUISourceCode/DAL.cs

    r1117 r1140  
    187187
    188188        /// <summary>
     189        /// TODO
     190        /// </summary>
     191        /// <param name="DFN"></param>
     192        /// <param name="SCIEN"></param>
     193        /// <returns></returns>
     194        public List<RadiologyExam> GetRadiologyExamsForPatientinHL(int DFN, int SCIEN)
     195        {
     196            string cmd = string.Format("BSDX GET RAD EXAM FOR PT^{0}^{1}", DFN, SCIEN);
     197            DataTable tbl = RPMSDataTable(cmd, "");
     198            return (from row in tbl.AsEnumerable()
     199                    select new RadiologyExam
     200                    {
     201                        IEN = row.Field<int>("BMXIEN"),
     202                        Status = row.Field<string>("STATUS"),
     203                        Procedure = row.Field<string>("PROCEDURE"),
     204                        RequestDate = row.Field<DateTime>("REQUEST_DATE")
     205                    }).ToList();
     206        }
     207
     208        public bool ScheduleRadiologyExam(int DFN, int examIEN)
     209        {
     210            string result = _thisConnection.bmxNetLib.TransmitRPC("BSDX SCHEDULE RAD EXAM", string.Format("{0}^{1}",DFN,examIEN));
     211            return result == "1" ? true : false;
     212        }
     213
     214        /// <summary>
    189215        /// Save User Preference in DB For Printing Routing Slip
    190216        /// Uses Parameter BSDX AUTO PRINT RS
Note: See TracChangeset for help on using the changeset viewer.