Show undetermined study series count
This commit is contained in:
@@ -302,9 +302,20 @@ function isSeriesAnnotated(series) {
|
||||
return Boolean(annotation.skipped || asList(annotation.body_parts).length || annotation.notes || annotation.ai_model);
|
||||
}
|
||||
|
||||
function isSeriesUndetermined(series) {
|
||||
const annotation = series.annotation || {};
|
||||
if (annotation.skipped) return false;
|
||||
const parts = asList(annotation.body_parts);
|
||||
return (
|
||||
(parts.includes("upper_abdomen") && annotation.upper_abdomen_phase === "unknown") ||
|
||||
(parts.includes("chest") && annotation.chest_window === "unknown")
|
||||
);
|
||||
}
|
||||
|
||||
function refreshStudyAnnotationSummary() {
|
||||
if (!app.study || !app.series.length) return;
|
||||
const annotated = app.series.filter(isSeriesAnnotated).length;
|
||||
const undetermined = app.series.filter(isSeriesUndetermined).length;
|
||||
const total = app.series.length;
|
||||
const bodyParts = BODY_PARTS.filter((part) =>
|
||||
app.series.some((series) => asList(series.annotation?.body_parts).includes(part)),
|
||||
@@ -312,6 +323,7 @@ function refreshStudyAnnotationSummary() {
|
||||
const summary = {
|
||||
annotated_series: annotated,
|
||||
unannotated_series: Math.max(0, total - annotated),
|
||||
undetermined_series: undetermined,
|
||||
series_count: total,
|
||||
body_parts: bodyParts,
|
||||
};
|
||||
@@ -458,7 +470,7 @@ function renderStudies() {
|
||||
.map((label) => `<em title="${escapeHtml(label)}">${escapeHtml(label)}</em>`)
|
||||
.join("");
|
||||
const studyDateTime = `${fmtDate(study.study_date)} ${fmtTime(study.study_time)}`.trim() || "未记录时间";
|
||||
const annotationSummary = `${Number(study.annotated_series || 0)} 个序列已标注,${Number(study.unannotated_series || 0)} 个序列未标注`;
|
||||
const annotationSummary = `${Number(study.annotated_series || 0)} 个序列已标注,${Number(study.undetermined_series || 0)} 个序列待判别`;
|
||||
const cardTitle = [
|
||||
`检查号:${study.ct_number}`,
|
||||
`患者:${name} · ${study.patient_id || "无ID"}`,
|
||||
|
||||
Reference in New Issue
Block a user