Ignore:
Timestamp:
Apr 12, 2011, 2:13:18 AM (13 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/CGAppointment.cs

    r1111 r1140  
    44    using System.Drawing;
    55    /// <summary>
    6     /// Data Structuer to Represent an Appointment
    7     ///
     6    /// Data Structure to Represent an Appointment
    87    /// </summary>
    98    [Serializable]
    109    public class CGAppointment
    1110    {
    12         private bool m_bAccessBlock;
    13         private bool m_bNoShow;
    14         private bool m_bSelected = false;
    15         private bool m_bWalkIn;
    16         public DateTime m_dAuxTime;
    17         public DateTime m_dCheckIn;
    18         private DateTime m_EndTime;
    19         public int m_nAccessTypeID = -1;
    20         private int m_nColumn;
    21         public int m_nKey;
    22         private string m_Note;
    23         public int m_nPatientID;
    24         public int m_nSlots;
    25         private Rectangle m_rectangle;
    26         public string m_sAccessTypeName;
    27         private string m_sHRN = "";
    28         private string m_sPatientName;
    29         public string m_sResource;
    30         private DateTime m_StartTime;
    31         private string m_Text;
     11        public int AccessTypeID { get; set; }
     12        public string AccessTypeName { get; set; }
     13
     14        public int AppointmentKey { get; set; }
     15
     16        public DateTime AuxTime { get; set; }
     17        public DateTime CheckInTime { get; set; }
     18        public DateTime EndTime { get; set; }
     19        public DateTime StartTime { get; set; }
     20
     21        public int GridColumn { get; set; }
     22        public Rectangle GridRectangle { get; set; }
     23       
     24        public bool IsAccessBlock { get; set; }
     25
     26        public bool NoShow { get; set; }
     27
     28        public string Note { get; set; }
     29
     30        public int PatientID { get; set; }
     31        public string PatientName { get; set; }
     32        public string Resource { get; set; }
     33        public string HealthRecordNumber { get; set; }
     34       
     35        public bool Selected { get; set; }
     36
     37        public int Slots { get; set; }
     38
     39        public bool WalkIn { get; set; }
     40
     41        public Patient Patient { get; set; }
     42        public Provider Provider { get; set; }
     43
     44        public int? RadiologyExamIEN { get; set; }
     45
     46
     47        public CGAppointment()
     48        {
     49            AccessTypeID = -1;
     50            Selected = false;
     51            HealthRecordNumber = "";
     52        }
    3253
    3354        public void CreateAppointment(DateTime StartTime, DateTime EndTime, string Note, int Key, string sResource)
    3455        {
    35             this.m_StartTime = StartTime;
    36             this.m_EndTime = EndTime;
    37             this.m_Note = Note;
    38             this.m_nKey = Key;
    39             this.m_sResource = sResource;
     56            this.StartTime = StartTime;
     57            this.EndTime = EndTime;
     58            this.Note = Note;
     59            this.AppointmentKey = Key;
     60            this.Resource = sResource;
     61        }
     62
     63        public int Duration
     64        {
     65            get
     66            {
     67                TimeSpan span = (TimeSpan) (this.EndTime - this.StartTime);
     68                return (int) span.TotalMinutes;
     69            }
    4070        }
    4171
    4272        public override string ToString()
    4373        {
    44             //StringFormat sf = new StringFormat();
    45             //sf.SetDigitSubstitution(System.Threading.Thread.CurrentThread.CurrentCulture.LCID, StringDigitSubstitute.National);
    4674            string patientName = "";
    47             if (this.m_bAccessBlock)
     75            if (this.IsAccessBlock)
    4876            {
    4977                string str2 = (this.Slots == 1) ? " Slot, " : " Slots, ";
     
    5785            return (patientName + " " + this.Note);
    5886        }
    59 
    60         public int AccessTypeID
    61         {
    62             get
    63             {
    64                 return this.m_nAccessTypeID;
    65             }
    66             set
    67             {
    68                 this.m_nAccessTypeID = value;
    69             }
    70         }
    71 
    72         public string AccessTypeName
    73         {
    74             get
    75             {
    76                 return this.m_sAccessTypeName;
    77             }
    78             set
    79             {
    80                 this.m_sAccessTypeName = value;
    81             }
    82         }
    83 
    84         public int AppointmentKey
    85         {
    86             get
    87             {
    88                 return this.m_nKey;
    89             }
    90             set
    91             {
    92                 this.m_nKey = value;
    93             }
    94         }
    95 
    96         public DateTime AuxTime
    97         {
    98             get
    99             {
    100                 return this.m_dAuxTime;
    101             }
    102             set
    103             {
    104                 this.m_dAuxTime = value;
    105             }
    106         }
    107 
    108         public DateTime CheckInTime
    109         {
    110             get
    111             {
    112                 return this.m_dCheckIn;
    113             }
    114             set
    115             {
    116                 this.m_dCheckIn = value;
    117             }
    118         }
    119 
    120         public int Duration
    121         {
    122             get
    123             {
    124                 TimeSpan span = (TimeSpan) (this.EndTime - this.StartTime);
    125                 return (int) span.TotalMinutes;
    126             }
    127         }
    128 
    129         public DateTime EndTime
    130         {
    131             get
    132             {
    133                 return this.m_EndTime;
    134             }
    135             set
    136             {
    137                 this.m_EndTime = value;
    138             }
    139         }
    140 
    141         public int GridColumn
    142         {
    143             get
    144             {
    145                 return this.m_nColumn;
    146             }
    147             set
    148             {
    149                 this.m_nColumn = value;
    150             }
    151         }
    152 
    153         public Rectangle GridRectangle
    154         {
    155             get
    156             {
    157                 return this.m_rectangle;
    158             }
    159             set
    160             {
    161                 this.m_rectangle = value;
    162             }
    163         }
    164 
    165         public string HealthRecordNumber
    166         {
    167             get
    168             {
    169                 return this.m_sHRN;
    170             }
    171             set
    172             {
    173                 this.m_sHRN = value;
    174             }
    175         }
    176 
    177         public bool IsAccessBlock
    178         {
    179             get
    180             {
    181                 return this.m_bAccessBlock;
    182             }
    183             set
    184             {
    185                 this.m_bAccessBlock = value;
    186             }
    187         }
    188 
    189         public bool NoShow
    190         {
    191             get
    192             {
    193                 return this.m_bNoShow;
    194             }
    195             set
    196             {
    197                 this.m_bNoShow = value;
    198             }
    199         }
    200 
    201         public string Note
    202         {
    203             get
    204             {
    205                 return this.m_Note;
    206             }
    207             set
    208             {
    209                 this.m_Note = value;
    210             }
    211         }
    212 
    213         public int PatientID
    214         {
    215             get
    216             {
    217                 return this.m_nPatientID;
    218             }
    219             set
    220             {
    221                 this.m_nPatientID = value;
    222             }
    223         }
    224 
    225         public string PatientName
    226         {
    227             get
    228             {
    229                 return this.m_sPatientName;
    230             }
    231             set
    232             {
    233                 this.m_sPatientName = value;
    234             }
    235         }
    236 
    237         public string Resource
    238         {
    239             get
    240             {
    241                 return this.m_sResource;
    242             }
    243             set
    244             {
    245                 this.m_sResource = value;
    246             }
    247         }
    248 
    249         public bool Selected
    250         {
    251             get
    252             {
    253                 return this.m_bSelected;
    254             }
    255             set
    256             {
    257                 this.m_bSelected = value;
    258             }
    259         }
    260 
    261         public int Slots
    262         {
    263             get
    264             {
    265                 return this.m_nSlots;
    266             }
    267             set
    268             {
    269                 this.m_nSlots = value;
    270             }
    271         }
    272 
    273         public DateTime StartTime
    274         {
    275             get
    276             {
    277                 return this.m_StartTime;
    278             }
    279             set
    280             {
    281                 this.m_StartTime = value;
    282             }
    283         }
    284 
    285         public string Text
    286         {
    287             get
    288             {
    289                 this.m_Text = this.m_sPatientName;
    290                 return this.m_Text;
    291             }
    292         }
    293 
    294         public bool WalkIn
    295         {
    296             get
    297             {
    298                 return this.m_bWalkIn;
    299             }
    300             set
    301             {
    302                 this.m_bWalkIn = value;
    303             }
    304         }
    305 
    306         public Patient Patient { get; set; }
    307         public Provider Provider { get; set; }
    30887    }
    30988}
Note: See TracChangeset for help on using the changeset viewer.