Example #1
0
 private void DefPulmAnnots(ref List<string> headers, ref List<string> footers, CanvasPage page, VQExam exam, Template temp)
 {
     //Update all VQ headers
     for (int i = 0; i < headers.Count; i++)
     {
         string concat = null;
         switch (headers[i])
         {
             case "Patient: ":
                 concat = exam.PtName;
                 break;
             case "ID: ":
                 concat = exam.PtID.ToString();
                 break;
             case "DOB: ":
                 concat = exam.PtDOB;
                 break;
             case "Technologist: ":
                 concat = exam.TechInitials;
                 break;
             case "Facility: ":
                 concat = DBUtil.DataSet.Facility[0].Name;
                 break;
         }
         headers[i] = headers[i] + concat;
     }
     //Update all VQ footers
     for(int i = 0; i < footers.Count; i++)
     {
         string concat = null;
         switch(footers[i])
         {
             case "Dose: ":
                 //TODO: Change the comparison string to Ventilation so that proper comparison can be done
                 //      against the template when an actual VQ image is finally obtained.
                 if(page.Name.Equals("VENTILATION"))
                 {
                     concat = exam.VentilationDose.ToString() + "mCi 133-Xenon";
                 }
                 else
                 {
                     concat = exam.PerfusionDose.ToString() + "mCi 99mTc-MAA";
                 }
                 break;
             case "Exam: ":
                 concat = page.Name;
                 break;
         }
         footers[i] = footers[i] + concat;
     }
 }
Example #2
0
 private IExam CreateExam(int examID, int patientID, ExamType type)
 {
     try
     {
         IExam exam = null;
         switch (type)
         {
             case ExamType.REVIEW:
                 exam = new Exam(examID, patientID, type);
                 break;
             case ExamType.PULMONARY:
                 exam = new VQExam(examID, patientID, type);
                 break;
         }
         return exam;
     }
     catch (Exception e) { System.Windows.MessageBox.Show("There was an error creating the exam reference: " + e.ToString()); return null; }
 }