Exemplo n.º 1
0
 protected static void OpenPatient(WorklistItemSummaryBase worklistItem, IDesktopWindow window)
 {
     try
     {
         var document = DocumentManager.Get <PatientBiographyDocument>(worklistItem.PatientRef);
         if (document == null)
         {
             document = new PatientBiographyDocument(worklistItem, window);
             document.Open();
         }
         else
         {
             document.Open();
         }
     }
     catch (Exception e)
     {
         ExceptionHandler.Report(e, window);
     }
 }
Exemplo n.º 2
0
 protected static void OpenPatient(PatientProfileSummary patientProfile, IDesktopWindow window)
 {
     try
     {
         var document = DocumentManager.Get <PatientBiographyDocument>(patientProfile.PatientRef);
         if (document == null)
         {
             document = new PatientBiographyDocument(patientProfile, window);
             document.Open();
         }
         else
         {
             document.Open();
         }
     }
     catch (Exception e)
     {
         ExceptionHandler.Report(e, window);
     }
 }