public void OpenPatient() { try { var document = DocumentManager.Get <PatientBiographyDocument>(_selectedProfile.PatientProfileRef); if (document == null) { document = new PatientBiographyDocument(_selectedProfile, this.Host.DesktopWindow); document.Open(); } else { document.Open(); } } catch (Exception e) { ExceptionHandler.Report(e, this.Host.DesktopWindow); } }