private TableCell GetSelectCell(StudyListPageObject studyList) { TableCell cell = new TableCell(); cell.CssClass = "dataCellWhite"; if (studyList.StatusId == Constants.StudyStatusTypes.Qaed) { cell.Text = "<input type='checkbox' value='" + studyList.StudyId + "' name='releaseToRad'/>"; } else { cell.Text = " "; } return cell; }
private StudyListPageObject GetStudyListPageObject(SqlDataReader reader) { StudyListPageObject studyList = new StudyListPageObject(); studyList.PatientRecordCount = (int)reader["PatRecCount"]; studyList.StudyId = (int)reader["StudyId"]; studyList.StatusId = (int)reader["StudyStatusId"]; studyList.Status = reader["Status"].ToString(); studyList.StudyDate = reader["StudyDate"].ToString(); studyList.StudyTimeStamp = (DateTime)reader["StudyTimeStamp"]; if (reader.IsDBNull(reader.GetOrdinal("FindingId")) == false) { studyList.FindingId = (int)reader["FindingId"]; } if (reader.IsDBNull(reader.GetOrdinal("AccessionNumber")) == false) { studyList.AccessionNumber = (string)reader["AccessionNumber"]; } else { studyList.AccessionNumber = null; } studyList.PatientId = reader["ExternalPatientId"].ToString(); studyList.PatientName = reader["PatientName"].ToString(); studyList.Modality = reader["Modality"].ToString(); studyList.Procedure = reader["ProcedureName"].ToString(); studyList.Radiologist = reader["RadiologistName"].ToString(); int radiologistIdOrdinal = reader.GetOrdinal("RadiologistId"); if(reader.IsDBNull(radiologistIdOrdinal) == false) { studyList.RadiologistId = reader.GetInt32(radiologistIdOrdinal); } if (reader.IsDBNull(reader.GetOrdinal("ReferringPhysicianName"))) { studyList.Physician = "(None)"; } else { studyList.Physician = reader["ReferringPhysicianName"].ToString(); } if (reader.IsDBNull(reader.GetOrdinal("IsManual")) == false) { studyList.IsManual = (string)reader["IsManual"]; } else { studyList.IsManual = "N"; } if (reader.IsDBNull(reader.GetOrdinal("TechComments")) || reader["TechComments"].ToString().Trim().Length == 0) { studyList.TechComments = "[N/A]"; } else { studyList.TechComments = (string)reader["TechComments"]; } return studyList; }
private TableCell GetReportCell(StudyListPageObject studyList) { StringBuilder url = new StringBuilder(); url.Append(PagesFactory.GetUrl(PagesFactory.Pages.FindingReportPage)); url.Append("?"); url.Append(ParameterNames.Request.StudyId); url.Append("="); url.Append(studyList.StudyId); TableCell cell = new TableCell(); cell.CssClass = "dataCellWhite"; if (studyList.StatusId == Constants.StudyStatusTypes.PendingVerification) { cell.Text = "<img class='linkImage' onclick=\"window.open('" + url + "','Report','menubar=1,resizable=1,scrollbars=1,status=1,titlebar=1,toolbar=0');\" src='../Images/doc_red_36.png' alt='Click to view un-verified report' title='Click to view un-verified report'/>"; } else if (studyList.StatusId == Constants.StudyStatusTypes.Verified) { cell.Text = "<img class='linkImage' onclick=\"window.open('" + url + "','Report','menubar=1,resizable=1,scrollbars=1,status=1,titlebar=1,toolbar=0');\" src='../Images/doc_green_36.png' alt='Click to view verified report' title='Click to view verified report'/>"; } else { cell.Text = " "; } return cell; }
private string GetRepPopupText(string url, string windowName, string text,StudyListPageObject studyList) { StringBuilder sb = new StringBuilder(); sb.Append("<table style='width:100%' CellPadding='0' CellSpacing='0'><tr><td class='imageColumn' style='width:50%;text-align:left'>"); if (studyList.AccessionNumber != null && studyList.AccessionNumber.Length > 0) { sb.Append("<img class='linkImage' onclick='invokeEFilm(\"").Append(studyList.PatientId).Append("\",\"").Append(studyList.AccessionNumber).Append("\");' src='../Images/efilm_36.png' alt='View exam in eFilm' title='View exam in eFilm'/>"); } else { sb.Append("<img class='linkImage' src='../Images/eFilm_gray.JPG' alt='Incomplete data to invoke eFilm' title='Incomplete data to invoke eFilm'/>"); } sb.Append("<img class='linkImage' src='../Images/radscaper.jpg' alt='View exam in Radscaper' title='View exam in Radscaper' onclick=\"openRadscaper('").Append(studyList.StudyId).Append("');\" />"); if (studyList.StatusId == Constants.StudyStatusTypes.PendingVerification) { sb.Append("</td><td style='width:50%;text-align:left'>"); sb.Append("<img class='linkImage' onclick=\"window.open('").Append(url).Append("','").Append(windowName).Append("','menubar=1,resizable=1,scrollbars=1,status=1,titlebar=1,toolbar=0');\" src='../Images/doc_red_36.png' alt='Print Non-Verified Report' title='Print Non-Verified Report'/>"); ; } else if (studyList.StatusId == Constants.StudyStatusTypes.Verified) { sb.Append("</td><td style='width:50%;text-align:left'>"); sb.Append("<img class='linkImage' onclick=\"window.open('").Append(url).Append("','").Append(windowName).Append("','menubar=1,resizable=1,scrollbars=1,status=1,titlebar=1,toolbar=0');\" src='../Images/doc_green_36.png' alt='Print Verified Report' title='Print Verified Report'/>"); ; } else { sb.Append(" "); } sb.Append("</td></tr></table>"); return sb.ToString(); }
private TableCell GetRadscaperCell(StudyListPageObject studyList) { TableCell cell = new TableCell(); cell.CssClass = "dataCellWhite"; cell.Text = "<img class='linkImage' src='../Images/edoc_36.png' alt='Click to view Non-diagnostic image(s)' title='Click to view Non-diagnostic image(s)' onclick=\"openRadscaper('" + studyList.StudyId + "');\" >"; return cell; }
private TableCell GetRejectionCell(StudyListPageObject studyList, int currentRow) { TableCell cell = new TableCell(); cell.CssClass = "dataCell"; cell.Text = cell.Text = "<img class='linkImage' src='../Images/delete.png' alt='Click to Reject this exam' title='Click to Reject this exam' onclick=\"openRejectionWindow(" + studyList.StudyId + "," + currentRow + ");\" />"; return cell; }
private string GetPatientNameText(StudyListPageObject studyList) { if (loggedInUserRoleId == Constants.Roles.Radiologist) { StringBuilder text = new StringBuilder(); text.Append("<a href=\"#\" onclick=\"invokeEFilm('"); text.Append(studyList.PatientId).Append("','").Append(studyList.AccessionNumber).Append("');\">"); text.Append(studyList.PatientName); text.Append("</a>"); return text.ToString(); } else { return studyList.PatientName; } }
private TableCell GetPhysicianCell(StudyListPageObject studyList) { TableCell cell = new TableCell(); cell.CssClass = "dataCell"; string physician = null; if (studyList.Physician == null) { physician = "(None)"; } else { physician = studyList.Physician; } if (loggedInUserRoleId == Constants.Roles.Technologist) { StringBuilder url = new StringBuilder(); url.Append(PagesFactory.GetUrl(PagesFactory.Pages.AddStudyGroupPage)); url.Append("?"); url.Append(ParameterNames.Request.StudyId); url.Append("="); url.Append(studyList.StudyId); HyperLink hl = new HyperLink(); hl.Text = physician; hl.NavigateUrl = url.ToString(); cell.Controls.Add(hl); } else { cell.Text = physician; } return cell; }
private TableCell GetMultiRecordCell(StudyListPageObject studyList) { TableCell cell = new TableCell(); cell.CssClass = "dataCellWhite"; if (studyList.PatientRecordCount > 1) { cell.Text = "<img class='linkImage' onclick=\"searchPatient('" + studyList.PatientId + "');\" src='../Images/plus.gif' alt='Click to view all exams of " + studyList.PatientName + "' title='Click to view all exams of " + studyList.PatientName + "' />"; } else { cell.Text = " "; } return cell; }
private TableCell GetPatientNameCell(StudyListPageObject studyList,int currentRow) { TableCell cell = new TableCell(); cell.CssClass = "dataCell"; StringBuilder text = new StringBuilder(); text.Append("<script language=\"javascript\" type=\"text/javascript\">"); text.Append("studyList[").Append(currentRow).Append("] = eval("); JsonUtilities.WriteObjectToJSON(studyList, text); //text.Append("hello';"); text.Append(");</script>"); text.Append(GetPatientNameText(studyList)); cell.Text = text.ToString(); return cell; }
private TableCell GetIndexCell(StudyListPageObject studyList) { TableCell cell = new TableCell(); cell.CssClass = "dataCell"; cell.VerticalAlign = VerticalAlign.Middle; StringBuilder url = new StringBuilder(); url.Append(PagesFactory.GetUrl(PagesFactory.Pages.FindingReportPage)); url.Append("?"); url.Append(ParameterNames.Request.StudyId); url.Append("="); url.Append(studyList.StudyId); cell.Text = GetRepPopupText(url.ToString(), "Report", "R", studyList); return cell; }
private string GetFindingText(StudyListPageObject studyList,int currentRow) { StringBuilder data = new StringBuilder(); data.Append(ParameterNames.Request.StudyId); data.Append("="); data.Append(studyList.StudyId); data.Append("&"); data.Append(ParameterNames.Request.FindingId); data.Append("="); data.Append(studyList.FindingId); StringBuilder text = new StringBuilder(); text.Append("<a href=\"#\" onclick=\"showFindingDialog("); text.Append(currentRow); text.Append(",'"); text.Append(data); text.Append("');\">"); text.Append(studyList.PatientName); text.Append("</a>"); return text.ToString(); }
private TableCell GetEditCell(StudyListPageObject studyList,int currentRow) { TableCell cell = new TableCell(); cell.CssClass = "dataCellWhite"; cell.Text = "<img class='linkImage' src='../Images/edit.png' alt='Click to add/edit notes information' title='Click to add/edit notes information' onclick=\"openStudyEditWindow(" + studyList.StudyId + "," + currentRow + ");\" />"; return cell; }
private TableCell GetDisplayStudyCell(StudyListPageObject studyList) { TableCell cell = new TableCell(); cell.CssClass = "dataCell"; string physician = null; if (studyList.Physician == null) { physician = "(None)"; } else { physician = studyList.Physician; } StringBuilder url = new StringBuilder(); url.Append(PagesFactory.GetUrl(PagesFactory.Pages.DisplayStudyPage)); url.Append("?"); url.Append(ParameterNames.Request.StudyId); url.Append("="); url.Append(studyList.StudyId); cell.Text = GetPopupText(url.ToString(), "AddStudyGroup", physician); return cell; }
private TableCell GetDicationCell(StudyListPageObject studyList,int currentRow) { StringBuilder data = new StringBuilder(); data.Append(ParameterNames.Request.StudyId); data.Append("="); data.Append(studyList.StudyId); data.Append("&"); data.Append(ParameterNames.Request.FindingId); data.Append("="); data.Append(studyList.FindingId); TableCell cell = new TableCell(); cell.CssClass = "dataCellWhite"; cell.Text = "<img class='linkImage' onclick='showFindingDialog(" + currentRow + ",\"" + data.ToString() + "\");' alt='Click to Dictate' title='Click to Dictate' src='../Images/dictation_36.png'"; return cell; }