protected override string GetPreviewUrl(WorkflowFolder folder, ICollection <ReportingWorklistItemSummary> items) { if (items.Count != 1) { return(null); } var reportingWorklistItem = CollectionUtils.FirstElement(items); //TODO: having the client specify the step name name may not be a terribly good idea switch (reportingWorklistItem.ProcedureStepName) { case "Interpretation": case "Transcription": case "Transcription Review": case "Verification": case "Publication": return(WebResourcesSettings.Default.ReportingFolderSystemUrl); case "Protocol Assignment": case "Protocol Resolution": return(WebResourcesSettings.Default.ProtocollingFolderSystemUrl); default: return(null); } }
protected override PreviewOperationAuditData[] GetPreviewAuditData(WorkflowFolder folder, ICollection <ReportingWorklistItemSummary> items) { return(items.Select(item => new PreviewOperationAuditData("Transcription", item)).ToArray()); }
protected override string GetPreviewUrl(WorkflowFolder folder, ICollection <ReportingWorklistItemSummary> items) { return(WebResourcesSettings.Default.TranscriptionFolderSystemUrl); }
protected override PreviewOperationAuditData[] GetPreviewAuditData(WorkflowFolder folder, ICollection <RegistrationWorklistItemSummary> items) { return(items.Select(item => new PreviewOperationAuditData("Emergency", item)).ToArray()); }
protected override string GetPreviewUrl(WorkflowFolder folder, ICollection <RegistrationWorklistItemSummary> items) { return(WebResourcesSettings.Default.EmergencyFolderSystemUrl); }
protected override PreviewOperationAuditData[] GetPreviewAuditData(WorkflowFolder folder, ICollection <ExternalPractitionerSummary> items) { return(new PreviewOperationAuditData[0]); // audit not required }
protected override string GetPreviewUrl(WorkflowFolder folder, ICollection <ExternalPractitionerSummary> items) { return(WebResourcesSettings.Default.ExternalPractitionerFolderSystemUrl); }
protected override PreviewOperationAuditData[] GetPreviewAuditData(WorkflowFolder folder, ICollection <OrderNoteboxItemSummary> items) { return(items.Select(item => new PreviewOperationAuditData("Order Notes", item.Mrn, item.PatientName, item.AccessionNumber)).ToArray()); }
protected override string GetPreviewUrl(WorkflowFolder folder, ICollection <OrderNoteboxItemSummary> items) { return(WebResourcesSettings.Default.OrderNoteboxFolderSystemUrl); }
protected override PreviewOperationAuditData[] GetPreviewAuditData(WorkflowFolder folder, ICollection <ModalityWorklistItemSummary> items) { return(items.Select(item => new PreviewOperationAuditData("Performing", item)).ToArray()); }
protected override string GetPreviewUrl(WorkflowFolder folder, ICollection <ModalityWorklistItemSummary> items) { return(WebResourcesSettings.Default.PerformingFolderSystemUrl); }