mRecist标准bug修复
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
2676ff4295
commit
e3313edefd
|
@ -25,7 +25,7 @@
|
|||
v-if="selectArr.includes(s.VisitTaskId) && s.StudyList.length > 0"
|
||||
:ref="s.VisitTaskId"
|
||||
:visit-task-info="s"
|
||||
:markedSeriesIds="markedSeriesIds"
|
||||
:marked-series-ids="markedSeriesIds"
|
||||
@activeSeries="activeSeries"
|
||||
@showMultiFrame="showMultiFrame"
|
||||
/>
|
||||
|
@ -366,9 +366,9 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<!-- 自定义调窗 -->
|
||||
<el-dialog
|
||||
v-if="customWwc.visible"
|
||||
|
@ -691,7 +691,7 @@ export default {
|
|||
} else {
|
||||
this.tools = getTools(this.criterionType)
|
||||
}
|
||||
|
||||
|
||||
this.trialId = this.$route.query.trialId
|
||||
this.readingTaskState = this.taskInfo.ReadingTaskState
|
||||
if (!this.taskInfo.IsBaseLine && this.taskInfo.IsReadingTaskViewInOrder !== 0) {
|
||||
|
@ -742,14 +742,14 @@ export default {
|
|||
}
|
||||
if (item.IsCurrentTask) {
|
||||
this.markedSeriesIds = []
|
||||
annotations.map(i=> {
|
||||
annotations.map(i => {
|
||||
if (i.MeasureData && i.MeasureData.seriesId) {
|
||||
this.markedSeriesIds.push(i.MeasureData.seriesId)
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
this.visitTaskList.push({
|
||||
...item,
|
||||
StudyList: studyList,
|
||||
|
@ -783,7 +783,7 @@ export default {
|
|||
let keySeriesIndex = -1
|
||||
// const arr = [res1.Result[0]]
|
||||
const arr = res1.Result
|
||||
arr.forEach((study, studyIndex) => {
|
||||
arr.forEach((study, studyIndex) => {
|
||||
study.SeriesList.forEach((series, seriesIndex) => {
|
||||
const imageIds = []
|
||||
const stack = []
|
||||
|
@ -839,7 +839,7 @@ export default {
|
|||
// 获取标注信息
|
||||
let res2 = null
|
||||
if (this.criterionType === 0) {
|
||||
res2 = await getCustomTag({visitTaskId: taskId})
|
||||
res2 = await getCustomTag({ visitTaskId: taskId })
|
||||
} else {
|
||||
res2 = await getTableAnswerRowInfoList(taskId)
|
||||
}
|
||||
|
@ -916,7 +916,7 @@ export default {
|
|||
// 初始化加载器
|
||||
async initLoader() {
|
||||
await initLibraries()
|
||||
cache.setMaxCacheSize(6 * 1024 * 1024 * 1024);
|
||||
cache.setMaxCacheSize(6 * 1024 * 1024 * 1024)
|
||||
let renderingEngine = getRenderingEngine(renderingEngineId)
|
||||
if (!renderingEngine) {
|
||||
renderingEngine = new RenderingEngine(renderingEngineId)
|
||||
|
@ -1157,9 +1157,9 @@ export default {
|
|||
console.log(arr)
|
||||
},
|
||||
annotationAddedListener(e) {
|
||||
|
||||
|
||||
},
|
||||
|
||||
|
||||
annotationCompletedListener(e) {
|
||||
console.log('Completed')
|
||||
if (this.readingTaskState === 2) return
|
||||
|
@ -1177,12 +1177,12 @@ export default {
|
|||
annotation.sliceThickness = series.SliceThickness
|
||||
annotation.numberOfFrames = isNaN(parseInt(params.frame)) ? null : parseInt(params.frame)
|
||||
annotation.markTool = annotation.metadata.toolName
|
||||
|
||||
|
||||
// this.$refs['ecrf'].setAnnotation({ annotation, toolName: annotation.metadata.toolName })
|
||||
this.$refs[`ecrf_${this.lastViewportTaskId}`][0].setAnnotation({ annotation, toolName: annotation.metadata.toolName })
|
||||
this.markedSeriesIds.push(series.Id)
|
||||
}
|
||||
|
||||
|
||||
this.setToolsPassive()
|
||||
},
|
||||
annotationModifiedListener(e) {
|
||||
|
@ -1227,22 +1227,21 @@ export default {
|
|||
annotation.numberOfFrames = isNaN(parseInt(params.frame)) ? null : parseInt(params.frame)
|
||||
annotation.markTool = annotation.metadata.toolName
|
||||
this.markedSeriesIds.push(series.Id)
|
||||
let markName = await this.customPrompt()
|
||||
const markName = await this.customPrompt()
|
||||
if (markName) {
|
||||
annotation.data.label = markName
|
||||
this.saveCustomAnnotation(annotation)
|
||||
} else {
|
||||
this.removeAnnotation(annotation)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
this.setToolsPassive()
|
||||
},
|
||||
async saveCustomAnnotation(annotation) {
|
||||
try {
|
||||
let measureData = Object.assign({}, annotation)
|
||||
let params = {}
|
||||
const measureData = Object.assign({}, annotation)
|
||||
const params = {}
|
||||
params.VisitTaskId = annotation.visitTaskId
|
||||
params.StudyId = annotation.studyId
|
||||
params.SeriesId = annotation.seriesId
|
||||
|
@ -1250,10 +1249,10 @@ export default {
|
|||
params.Id = annotation.id ? annotation.id : ''
|
||||
params.MeasureData = JSON.stringify(measureData)
|
||||
params.NumberOfFrames = annotation.numberOfFrames
|
||||
let res = await submitCustomTag(params)
|
||||
const res = await submitCustomTag(params)
|
||||
annotation.id = res.Result
|
||||
console.log(res)
|
||||
} catch(e) {
|
||||
} catch (e) {
|
||||
console.log(e)
|
||||
}
|
||||
},
|
||||
|
@ -1298,7 +1297,7 @@ export default {
|
|||
// 获取标注信息
|
||||
let res = null
|
||||
if (this.criterionType === 0) {
|
||||
res = await getCustomTag({visitTaskId: visitTaskId})
|
||||
res = await getCustomTag({ visitTaskId: visitTaskId })
|
||||
} else {
|
||||
res = await getTableAnswerRowInfoList(visitTaskId)
|
||||
}
|
||||
|
@ -1324,7 +1323,7 @@ export default {
|
|||
// 获取标注信息
|
||||
let res = null
|
||||
if (this.criterionType === 0) {
|
||||
res = await getCustomTag({visitTaskId: visitTaskId})
|
||||
res = await getCustomTag({ visitTaskId: visitTaskId })
|
||||
} else {
|
||||
res = await getTableAnswerRowInfoList(visitTaskId)
|
||||
}
|
||||
|
@ -1345,6 +1344,13 @@ export default {
|
|||
cornerstoneTools.annotation.state.removeAnnotation(i.annotationUID)
|
||||
}
|
||||
})
|
||||
annotations.map(i => {
|
||||
if (i.MeasureData) {
|
||||
const annotation = i.MeasureData
|
||||
cornerstoneTools.annotation.state.addAnnotation(annotation)
|
||||
this.markedSeriesIds.push(annotation.seriesId)
|
||||
}
|
||||
})
|
||||
const renderingEngine = getRenderingEngine(renderingEngineId)
|
||||
for (let i = 0; i < this.cells.length; i++) {
|
||||
const viewportId = `viewport-${i}`
|
||||
|
@ -1774,9 +1780,9 @@ export default {
|
|||
bindHotKey() {
|
||||
const container = this.$refs['container']
|
||||
container.addEventListener('keydown', event => {
|
||||
let idx = this.hotKeyList.findIndex(i => i.code === event.code && i.ctrlKey === event.ctrlKey && i.shiftKey === event.shiftKey && i.altKey === event.altKey)
|
||||
const idx = this.hotKeyList.findIndex(i => i.code === event.code && i.ctrlKey === event.ctrlKey && i.shiftKey === event.shiftKey && i.altKey === event.altKey)
|
||||
if (idx === -1) return
|
||||
let shortcutKeyEnum = this.hotKeyList[idx].shortcutKeyEnum
|
||||
const shortcutKeyEnum = this.hotKeyList[idx].shortcutKeyEnum
|
||||
|
||||
if (shortcutKeyEnum === 1) {
|
||||
// 前一图像视口
|
||||
|
@ -1869,7 +1875,6 @@ export default {
|
|||
fitToType(forceFitToWindow) {
|
||||
this.forceFitToWindow = !forceFitToWindow
|
||||
this.$refs[`viewport-${this.activeViewportIndex}`][0].resize(forceFitToWindow)
|
||||
|
||||
},
|
||||
// 切换全屏
|
||||
toggleFullScreen(e, index) {
|
||||
|
@ -2575,7 +2580,7 @@ export default {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.personal_config {
|
||||
::v-deep .el-tabs__content{
|
||||
height: 450px;
|
||||
|
|
|
@ -1306,11 +1306,10 @@ export default {
|
|||
this.activeName = ''
|
||||
}
|
||||
loading.close()
|
||||
} catch(e) {
|
||||
} catch (e) {
|
||||
console.log(e)
|
||||
loading.close()
|
||||
}
|
||||
|
||||
},
|
||||
// 上传截图
|
||||
async uploadScreenshots(fileName, file) {
|
||||
|
@ -1619,9 +1618,17 @@ export default {
|
|||
let lesionLength = null
|
||||
let lesionShort = null
|
||||
if (innerForm.MeasureData) {
|
||||
// 有标记时保留标记(标记需要修改标注名称)、短径、长径的值
|
||||
lesionLength = innerForm.LesionLength ? innerForm.LesionLength : null
|
||||
lesionShort = innerForm.LesionShort ? innerForm.LesionShort : null
|
||||
if (innerForm.MeasureData.metadata.toolName === 'Length') {
|
||||
const referencedImageId = innerForm.MeasureData.metadata.referencedImageId
|
||||
const length = innerForm.MeasureData.data.cachedStats[`imageId:${referencedImageId}`].length
|
||||
lesionLength = length ? parseFloat(length).toFixed(this.digitPlaces) : length
|
||||
} else if (innerForm.MeasureData.metadata.toolName === 'Bidirectional') {
|
||||
const referencedImageId = innerForm.MeasureData.metadata.referencedImageId
|
||||
const length = innerForm.MeasureData.data.cachedStats[`imageId:${referencedImageId}`].length
|
||||
lesionLength = length ? parseFloat(length).toFixed(this.digitPlaces) : length
|
||||
const short = innerForm.MeasureData.data.cachedStats[`imageId:${referencedImageId}`].width
|
||||
lesionShort = short ? parseFloat(short).toFixed(this.digitPlaces) : short
|
||||
}
|
||||
this.$emit('setMarkName', {
|
||||
annotationUID: innerForm.MeasureData.annotationUID,
|
||||
name: answer.LesionName
|
||||
|
|
|
@ -110,10 +110,10 @@ import {
|
|||
utilities as csUtils
|
||||
} from '@cornerstonejs/core'
|
||||
import * as cornerstoneTools from '@cornerstonejs/tools'
|
||||
import cornerstoneDICOMImageLoader from '@cornerstonejs/dicom-image-loader';
|
||||
const {
|
||||
ToolGroupManager
|
||||
} = cornerstoneTools
|
||||
import cornerstoneDICOMImageLoader from '@cornerstonejs/dicom-image-loader'
|
||||
// const {
|
||||
// ToolGroupManager
|
||||
// } = cornerstoneTools
|
||||
import { vec3 } from 'gl-matrix'
|
||||
export default {
|
||||
name: 'ImageViewport',
|
||||
|
@ -312,7 +312,7 @@ export default {
|
|||
newImageIdIndex = numImages - 1
|
||||
}
|
||||
// viewport.setImageIdIndex(newImageIdIndex)
|
||||
csUtils.jumpToSlice(viewport.element, {imageIndex: newImageIdIndex})
|
||||
csUtils.jumpToSlice(viewport.element, { imageIndex: newImageIdIndex })
|
||||
cornerstoneTools.utilities.cine.stopClip(viewport.element)
|
||||
},
|
||||
setZoom(ratio) {
|
||||
|
@ -338,7 +338,6 @@ export default {
|
|||
viewport.setZoom(1)
|
||||
viewport.render()
|
||||
}
|
||||
|
||||
},
|
||||
async prefetchMetadataInformation(imageIdsToPrefetch) {
|
||||
let taskPromises = []
|
||||
|
@ -363,10 +362,9 @@ export default {
|
|||
await viewport.setStack(this.series.Stack, obj.SliceIndex)
|
||||
// cornerstoneTools.utilities.stackContextPrefetch.enable(viewport.element)
|
||||
viewport.render()
|
||||
} catch(e) {
|
||||
} catch (e) {
|
||||
console.log(e)
|
||||
}
|
||||
|
||||
},
|
||||
cornerstoneToolsMouseMove(e) {
|
||||
const { currentPoints } = e.detail
|
||||
|
@ -408,7 +406,7 @@ export default {
|
|||
this.viewportId
|
||||
)
|
||||
// viewport.setImageIdIndex(sliceIdx)
|
||||
csUtils.jumpToSlice(viewport.element, {imageIndex: sliceIdx})
|
||||
csUtils.jumpToSlice(viewport.element, { imageIndex: sliceIdx })
|
||||
viewport.render()
|
||||
},
|
||||
sliderMouseup(e) {
|
||||
|
@ -438,7 +436,7 @@ export default {
|
|||
this.viewportId
|
||||
)
|
||||
// viewport.setImageIdIndex(sliceIdx)
|
||||
csUtils.jumpToSlice(viewport.element, {imageIndex: sliceIdx})
|
||||
csUtils.jumpToSlice(viewport.element, { imageIndex: sliceIdx })
|
||||
viewport.render()
|
||||
},
|
||||
sliderMouseleave(e) {
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
:label="$t('trials:reading:tabTitle:review')"
|
||||
name="read"
|
||||
>
|
||||
<read-page ref="readPage"/>
|
||||
<read-page ref="readPage" />
|
||||
</el-tab-pane>
|
||||
<!-- 报告 -->
|
||||
<el-tab-pane
|
||||
|
@ -17,12 +17,12 @@
|
|||
:label="$t('trials:reading:tabTitle:report')"
|
||||
name="report"
|
||||
>
|
||||
<report-page
|
||||
v-if="activeName === 'report' && taskInfo.CriterionType !== 0"
|
||||
<report-page
|
||||
v-if="activeName === 'report' && taskInfo.CriterionType !== 0"
|
||||
@setReadingTaskState="setReadingTaskState"
|
||||
/>
|
||||
<customize-report-page
|
||||
v-if="activeName === 'report' && taskInfo.CriterionType === 0"
|
||||
<customize-report-page
|
||||
v-if="activeName === 'report' && taskInfo.CriterionType === 0"
|
||||
@setReadingTaskState="setReadingTaskState"
|
||||
/>
|
||||
</el-tab-pane>
|
||||
|
|
|
@ -832,9 +832,27 @@ export default {
|
|||
async saveLesion(table, rowIndex) {
|
||||
const valid = await this.$refs[`${table.Id}_${rowIndex}`][0].validate()
|
||||
if (!valid) return
|
||||
const loading = this.$loading({ fullscreen: true })
|
||||
let loading = null
|
||||
try {
|
||||
const innerForm = this.innerFormData[`${table.Id}_${rowIndex}`]
|
||||
if (table.LesionType === 0 && this.isBaseLineTask && !innerForm.IsLymphNodes && !innerForm.IntrahepaticLesion) {
|
||||
const arr = Object.values(this.innerFormData).filter(
|
||||
obj => !obj.IntrahepaticLesion && (obj.LesionOrgan === '肝脏' || obj.LesionOrgan === 'Liver') && obj.LesionType === 0 && obj.SaveTypeEnum === 2
|
||||
)
|
||||
|
||||
if (arr.length === 0) {
|
||||
const confirm = await this.$confirm(
|
||||
this.$t('trials:mRecist:warnning:msg7'),
|
||||
{
|
||||
type: 'warning',
|
||||
distinguishCancelAndClose: true
|
||||
}
|
||||
)
|
||||
if (confirm !== 'confirm') return
|
||||
}
|
||||
}
|
||||
|
||||
loading = this.$loading({ fullscreen: true })
|
||||
const measureData = innerForm.MeasureData
|
||||
const lesionState = innerForm.LesionState
|
||||
let lesionLength = innerForm.LesionLength
|
||||
|
@ -842,6 +860,7 @@ export default {
|
|||
const lymphNodes = innerForm.IsLymphNodes
|
||||
const lesionType = table.LesionType
|
||||
const lesionPart = innerForm.LesionPart
|
||||
const intrahepaticLesion = innerForm.IntrahepaticLesion
|
||||
if (this.isBaseLineTask) {
|
||||
// 基线
|
||||
// 靶病灶且状态为存在(0)
|
||||
|
@ -1174,6 +1193,16 @@ export default {
|
|||
}
|
||||
} else {
|
||||
// 非淋巴结非靶病灶 直径测量工具、箭头工具
|
||||
if (intrahepaticLesion && !(measureData && measureData.markTool === 'Length')) {
|
||||
// 评估状态为存在的非淋巴结新病灶需使用直径测量工具添加标记!
|
||||
this.$confirm(this.$t('trials:mRecist:warnning:msg6'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => {}
|
||||
})
|
||||
loading.close()
|
||||
return
|
||||
}
|
||||
if (!(measureData && (measureData.markTool === 'Length' || measureData.markTool === 'ArrowAnnotate'))) {
|
||||
// 评估状态为存在的非淋巴结新病灶需使用直径测量工具或箭头工具添加标记!
|
||||
this.$confirm(this.$t('trials:reading:warnning:msg40'), {
|
||||
|
@ -1212,6 +1241,16 @@ export default {
|
|||
return
|
||||
}
|
||||
} else {
|
||||
if (innerForm.IntrahepaticLesion && !(measureData && (measureData.markTool === 'Length'))) {
|
||||
// `评估状态为疑似的非淋巴结新病灶需使用直径测量工具添加标记!`
|
||||
this.$confirm(this.$t('trials:mRecist:warnning:msg6'), {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => {}
|
||||
})
|
||||
loading.close()
|
||||
return
|
||||
}
|
||||
// 非淋巴结非靶病灶 直径测量工具、箭头工具
|
||||
if (!(measureData && (measureData.markTool === 'Length' || measureData.markTool === 'ArrowAnnotate'))) {
|
||||
// `评估状态为疑似的非淋巴结新病灶需使用直径测量工具或箭头工具添加标记!`
|
||||
|
@ -1356,7 +1395,9 @@ export default {
|
|||
loading.close()
|
||||
} catch (e) {
|
||||
console.log(e)
|
||||
loading.close()
|
||||
if (loading) {
|
||||
loading.close()
|
||||
}
|
||||
}
|
||||
},
|
||||
// 上传截图
|
||||
|
@ -1704,9 +1745,17 @@ export default {
|
|||
let lesionLength = null
|
||||
let lesionShort = null
|
||||
if (innerForm.MeasureData) {
|
||||
// 有标记时保留标记(标记需要修改标注名称)、短径、长径的值
|
||||
lesionLength = innerForm.LesionLength ? innerForm.LesionLength : null
|
||||
lesionShort = innerForm.LesionShort ? innerForm.LesionShort : null
|
||||
if (innerForm.MeasureData.metadata.toolName === 'Length') {
|
||||
const referencedImageId = innerForm.MeasureData.metadata.referencedImageId
|
||||
const length = innerForm.MeasureData.data.cachedStats[`imageId:${referencedImageId}`].length
|
||||
lesionLength = length ? parseFloat(length).toFixed(this.digitPlaces) : length
|
||||
} else if (innerForm.MeasureData.metadata.toolName === 'Bidirectional') {
|
||||
const referencedImageId = innerForm.MeasureData.metadata.referencedImageId
|
||||
const length = innerForm.MeasureData.data.cachedStats[`imageId:${referencedImageId}`].length
|
||||
lesionLength = length ? parseFloat(length).toFixed(this.digitPlaces) : length
|
||||
const short = innerForm.MeasureData.data.cachedStats[`imageId:${referencedImageId}`].width
|
||||
lesionShort = short ? parseFloat(short).toFixed(this.digitPlaces) : short
|
||||
}
|
||||
this.$emit('setMarkName', {
|
||||
annotationUID: innerForm.MeasureData.annotationUID,
|
||||
name: answer.LesionName
|
||||
|
@ -1816,6 +1865,7 @@ export default {
|
|||
const rowIndex = this.activeName.split('_')[1]
|
||||
const innerForm = this.innerFormData[`${tableId}_${rowIndex}`]
|
||||
const isLymphNodes = innerForm.IsLymphNodes
|
||||
const intrahepaticLesion = innerForm.IntrahepaticLesion
|
||||
if (!innerForm.MeasureData) {
|
||||
if (this.isBaseLineTask) {
|
||||
if (innerForm.LesionType === 0 && isLymphNodes === 1 && toolName !== 'Bidirectional') {
|
||||
|
@ -1851,6 +1901,10 @@ export default {
|
|||
} else if (innerForm.LesionType === 2 && isLymphNodes === 1 && toolName !== 'Bidirectional' && toolName !== 'ArrowAnnotate') {
|
||||
// 淋巴结新病灶需使用长短径测量工具或箭头工具
|
||||
return { isCanActiveTool: false, reason: this.$t('trials:reading:warnning:msg12') }
|
||||
} else if (innerForm.LesionType === 2 && isLymphNodes === 0 && toolName !== 'Length' && intrahepaticLesion) {
|
||||
// 非淋巴结新病灶且是典型肝内病灶需使用直径测量工具
|
||||
// 请使用直径测量工具进行非淋巴结新病灶的标记。
|
||||
return { isCanActiveTool: false, reason: this.$t('trials:mRecist:warnning:msg5') }
|
||||
} else if (innerForm.LesionType === 2 && isLymphNodes === 0 && toolName !== 'Length' && toolName !== 'ArrowAnnotate') {
|
||||
// 非淋巴结新病灶需使用直径测量工具或箭头工具
|
||||
return { isCanActiveTool: false, reason: this.$t('trials:reading:warnning:msg13') }
|
||||
|
|
|
@ -1,275 +1,275 @@
|
|||
const config = {
|
||||
"standards": [
|
||||
'standards': [
|
||||
{
|
||||
"type": 1,
|
||||
"name": "RECIST 1.1",
|
||||
"tools": [
|
||||
{
|
||||
"name": "直径测量工具",
|
||||
"icon": "length",
|
||||
"toolName": "Length",
|
||||
"i18nKey": "trials:reading:button:length",
|
||||
"isDisabled": false,
|
||||
"disabledReason": ''
|
||||
'type': 1,
|
||||
'name': 'RECIST 1.1',
|
||||
'tools': [
|
||||
{
|
||||
'name': '直径测量工具',
|
||||
'icon': 'length',
|
||||
'toolName': 'Length',
|
||||
'i18nKey': 'trials:reading:button:length',
|
||||
'isDisabled': false,
|
||||
'disabledReason': ''
|
||||
},
|
||||
{
|
||||
"name": "长短径测量工具",
|
||||
"icon": "bidirection",
|
||||
"toolName": "Bidirectional",
|
||||
"i18nKey": "trials:reading:button:bidirectional",
|
||||
"isDisabled": false,
|
||||
"disabledReason": ''
|
||||
{
|
||||
'name': '长短径测量工具',
|
||||
'icon': 'bidirection',
|
||||
'toolName': 'Bidirectional',
|
||||
'i18nKey': 'trials:reading:button:bidirectional',
|
||||
'isDisabled': false,
|
||||
'disabledReason': ''
|
||||
},
|
||||
{
|
||||
"name": "矩形工具",
|
||||
"icon": "rectangle",
|
||||
"toolName": "RectangleROI",
|
||||
"i18nKey": "trials:reading:button:rectangle",
|
||||
"isDisabled": false,
|
||||
"disabledReason": ''
|
||||
{
|
||||
'name': '矩形工具',
|
||||
'icon': 'rectangle',
|
||||
'toolName': 'RectangleROI',
|
||||
'i18nKey': 'trials:reading:button:rectangle',
|
||||
'isDisabled': false,
|
||||
'disabledReason': ''
|
||||
},
|
||||
{
|
||||
"name": "箭头工具",
|
||||
"icon": "arrow",
|
||||
"toolName": "ArrowAnnotate",
|
||||
"i18nKey": "trials:reading:button:arrowAnnotate",
|
||||
"isDisabled": false,
|
||||
"disabledReason": ''
|
||||
{
|
||||
'name': '箭头工具',
|
||||
'icon': 'arrow',
|
||||
'toolName': 'ArrowAnnotate',
|
||||
'i18nKey': 'trials:reading:button:arrowAnnotate',
|
||||
'isDisabled': false,
|
||||
'disabledReason': ''
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": 2,
|
||||
"name": "Lugano 2014",
|
||||
"tools": [
|
||||
{
|
||||
"name": "直径测量工具",
|
||||
"icon": "length",
|
||||
"toolName": "Length",
|
||||
"i18nKey": "trials:reading:button:length",
|
||||
"isDisabled": false,
|
||||
"disabledReason": ''
|
||||
'type': 2,
|
||||
'name': 'Lugano 2014',
|
||||
'tools': [
|
||||
{
|
||||
'name': '直径测量工具',
|
||||
'icon': 'length',
|
||||
'toolName': 'Length',
|
||||
'i18nKey': 'trials:reading:button:length',
|
||||
'isDisabled': false,
|
||||
'disabledReason': ''
|
||||
},
|
||||
{
|
||||
"name": "长短径测量工具",
|
||||
"icon": "bidirection",
|
||||
"toolName": "Bidirectional",
|
||||
"i18nKey": "trials:reading:button:bidirectional",
|
||||
"isDisabled": false,
|
||||
"disabledReason": ''
|
||||
{
|
||||
'name': '长短径测量工具',
|
||||
'icon': 'bidirection',
|
||||
'toolName': 'Bidirectional',
|
||||
'i18nKey': 'trials:reading:button:bidirectional',
|
||||
'isDisabled': false,
|
||||
'disabledReason': ''
|
||||
},
|
||||
{
|
||||
"name": "矩形工具",
|
||||
"icon": "rectangle",
|
||||
"toolName": "RectangleROI",
|
||||
"i18nKey": "trials:reading:button:rectangle",
|
||||
"isDisabled": false,
|
||||
"disabledReason": ''
|
||||
{
|
||||
'name': '矩形工具',
|
||||
'icon': 'rectangle',
|
||||
'toolName': 'RectangleROI',
|
||||
'i18nKey': 'trials:reading:button:rectangle',
|
||||
'isDisabled': false,
|
||||
'disabledReason': ''
|
||||
},
|
||||
{
|
||||
"name": "箭头工具",
|
||||
"icon": "arrow",
|
||||
"toolName": "ArrowAnnotate",
|
||||
"i18nKey": "trials:reading:button:arrowAnnotate",
|
||||
"isDisabled": false,
|
||||
"disabledReason": ''
|
||||
{
|
||||
'name': '箭头工具',
|
||||
'icon': 'arrow',
|
||||
'toolName': 'ArrowAnnotate',
|
||||
'i18nKey': 'trials:reading:button:arrowAnnotate',
|
||||
'isDisabled': false,
|
||||
'disabledReason': ''
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": 3,
|
||||
"name": "iRECIST",
|
||||
"tools": [
|
||||
{
|
||||
"name": "直径测量工具",
|
||||
"icon": "length",
|
||||
"toolName": "Length",
|
||||
"i18nKey": "trials:reading:button:length",
|
||||
"isDisabled": false,
|
||||
"disabledReason": ''
|
||||
'type': 3,
|
||||
'name': 'iRECIST',
|
||||
'tools': [
|
||||
{
|
||||
'name': '直径测量工具',
|
||||
'icon': 'length',
|
||||
'toolName': 'Length',
|
||||
'i18nKey': 'trials:reading:button:length',
|
||||
'isDisabled': false,
|
||||
'disabledReason': ''
|
||||
},
|
||||
{
|
||||
"name": "长短径测量工具",
|
||||
"icon": "bidirection",
|
||||
"toolName": "Bidirectional",
|
||||
"i18nKey": "trials:reading:button:bidirectional",
|
||||
"isDisabled": false,
|
||||
"disabledReason": ''
|
||||
{
|
||||
'name': '长短径测量工具',
|
||||
'icon': 'bidirection',
|
||||
'toolName': 'Bidirectional',
|
||||
'i18nKey': 'trials:reading:button:bidirectional',
|
||||
'isDisabled': false,
|
||||
'disabledReason': ''
|
||||
},
|
||||
{
|
||||
"name": "矩形工具",
|
||||
"icon": "rectangle",
|
||||
"toolName": "RectangleROI",
|
||||
"i18nKey": "trials:reading:button:rectangle",
|
||||
"isDisabled": false,
|
||||
"disabledReason": ''
|
||||
{
|
||||
'name': '矩形工具',
|
||||
'icon': 'rectangle',
|
||||
'toolName': 'RectangleROI',
|
||||
'i18nKey': 'trials:reading:button:rectangle',
|
||||
'isDisabled': false,
|
||||
'disabledReason': ''
|
||||
},
|
||||
{
|
||||
"name": "箭头工具",
|
||||
"icon": "arrow",
|
||||
"toolName": "ArrowAnnotate",
|
||||
"i18nKey": "trials:reading:button:arrowAnnotate",
|
||||
"isDisabled": false,
|
||||
"disabledReason": ''
|
||||
{
|
||||
'name': '箭头工具',
|
||||
'icon': 'arrow',
|
||||
'toolName': 'ArrowAnnotate',
|
||||
'i18nKey': 'trials:reading:button:arrowAnnotate',
|
||||
'isDisabled': false,
|
||||
'disabledReason': ''
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": 7,
|
||||
"name": "mRECIST HCC",
|
||||
"tools": [
|
||||
{
|
||||
"name": "直径测量工具",
|
||||
"icon": "length",
|
||||
"toolName": "Length",
|
||||
"i18nKey": "trials:reading:button:length",
|
||||
"isDisabled": false,
|
||||
"disabledReason": ''
|
||||
'type': 7,
|
||||
'name': 'mRECIST HCC',
|
||||
'tools': [
|
||||
{
|
||||
'name': '直径测量工具',
|
||||
'icon': 'length',
|
||||
'toolName': 'Length',
|
||||
'i18nKey': 'trials:reading:button:length',
|
||||
'isDisabled': false,
|
||||
'disabledReason': ''
|
||||
},
|
||||
{
|
||||
"name": "长短径测量工具",
|
||||
"icon": "bidirection",
|
||||
"toolName": "Bidirectional",
|
||||
"i18nKey": "trials:reading:button:bidirectional",
|
||||
"isDisabled": false,
|
||||
"disabledReason": ''
|
||||
{
|
||||
'name': '长短径测量工具',
|
||||
'icon': 'bidirection',
|
||||
'toolName': 'Bidirectional',
|
||||
'i18nKey': 'trials:reading:button:bidirectional',
|
||||
'isDisabled': false,
|
||||
'disabledReason': ''
|
||||
},
|
||||
{
|
||||
"name": "矩形工具",
|
||||
"icon": "rectangle",
|
||||
"toolName": "RectangleROI",
|
||||
"i18nKey": "trials:reading:button:rectangle",
|
||||
"isDisabled": false,
|
||||
"disabledReason": ''
|
||||
{
|
||||
'name': '矩形工具',
|
||||
'icon': 'rectangle',
|
||||
'toolName': 'RectangleROI',
|
||||
'i18nKey': 'trials:reading:button:rectangle',
|
||||
'isDisabled': false,
|
||||
'disabledReason': ''
|
||||
},
|
||||
{
|
||||
"name": "箭头工具",
|
||||
"icon": "arrow",
|
||||
"toolName": "ArrowAnnotate",
|
||||
"i18nKey": "trials:reading:button:arrowAnnotate",
|
||||
"isDisabled": false,
|
||||
"disabledReason": ''
|
||||
{
|
||||
'name': '箭头工具',
|
||||
'icon': 'arrow',
|
||||
'toolName': 'ArrowAnnotate',
|
||||
'i18nKey': 'trials:reading:button:arrowAnnotate',
|
||||
'isDisabled': false,
|
||||
'disabledReason': ''
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": 10,
|
||||
"name": "PCWG3",
|
||||
"tools": [
|
||||
{
|
||||
"name": "矩形工具",
|
||||
"icon": "rectangle",
|
||||
"toolName": "RectangleROI",
|
||||
"i18nKey": "trials:reading:button:rectangle",
|
||||
"isDisabled": false,
|
||||
"disabledReason": ''
|
||||
'type': 10,
|
||||
'name': 'PCWG3',
|
||||
'tools': [
|
||||
{
|
||||
'name': '矩形工具',
|
||||
'icon': 'rectangle',
|
||||
'toolName': 'RectangleROI',
|
||||
'i18nKey': 'trials:reading:button:rectangle',
|
||||
'isDisabled': false,
|
||||
'disabledReason': ''
|
||||
},
|
||||
{
|
||||
"name": "箭头工具",
|
||||
"icon": "arrow",
|
||||
"toolName": "ArrowAnnotate",
|
||||
"i18nKey": "trials:reading:button:arrowAnnotate",
|
||||
"isDisabled": false,
|
||||
"disabledReason": ''
|
||||
{
|
||||
'name': '箭头工具',
|
||||
'icon': 'arrow',
|
||||
'toolName': 'ArrowAnnotate',
|
||||
'i18nKey': 'trials:reading:button:arrowAnnotate',
|
||||
'isDisabled': false,
|
||||
'disabledReason': ''
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": 17,
|
||||
"name": "PCWG3",
|
||||
"tools": [
|
||||
{
|
||||
"name": "直径测量工具",
|
||||
"icon": "length",
|
||||
"toolName": "Length",
|
||||
"i18nKey": "trials:reading:button:length",
|
||||
"isDisabled": false,
|
||||
"disabledReason": ''
|
||||
'type': 17,
|
||||
'name': 'PCWG3',
|
||||
'tools': [
|
||||
{
|
||||
'name': '直径测量工具',
|
||||
'icon': 'length',
|
||||
'toolName': 'Length',
|
||||
'i18nKey': 'trials:reading:button:length',
|
||||
'isDisabled': false,
|
||||
'disabledReason': ''
|
||||
},
|
||||
{
|
||||
"name": "矩形工具",
|
||||
"icon": "rectangle",
|
||||
"toolName": "RectangleROI",
|
||||
"i18nKey": "trials:reading:button:rectangle",
|
||||
"isDisabled": false,
|
||||
"disabledReason": ''
|
||||
{
|
||||
'name': '矩形工具',
|
||||
'icon': 'rectangle',
|
||||
'toolName': 'RectangleROI',
|
||||
'i18nKey': 'trials:reading:button:rectangle',
|
||||
'isDisabled': false,
|
||||
'disabledReason': ''
|
||||
},
|
||||
{
|
||||
"name": "箭头工具",
|
||||
"icon": "arrow",
|
||||
"toolName": "ArrowAnnotate",
|
||||
"i18nKey": "trials:reading:button:arrowAnnotate",
|
||||
"isDisabled": false,
|
||||
"disabledReason": ''
|
||||
{
|
||||
'name': '箭头工具',
|
||||
'icon': 'arrow',
|
||||
'toolName': 'ArrowAnnotate',
|
||||
'i18nKey': 'trials:reading:button:arrowAnnotate',
|
||||
'isDisabled': false,
|
||||
'disabledReason': ''
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": 19,
|
||||
"name": "IVUS定量评估",
|
||||
"tools": []
|
||||
'type': 19,
|
||||
'name': 'IVUS定量评估',
|
||||
'tools': []
|
||||
},
|
||||
{
|
||||
"type": 20,
|
||||
"name": "OCT定量评估",
|
||||
"tools": []
|
||||
'type': 20,
|
||||
'name': 'OCT定量评估',
|
||||
'tools': []
|
||||
},
|
||||
{
|
||||
"type": 21,
|
||||
"name": "MRI-PDFF",
|
||||
"tools": [
|
||||
{
|
||||
"name": "圆形测量",
|
||||
"icon": "oval",
|
||||
"toolName": "Probe",
|
||||
"i18nKey": "trials:reading:button:circle",
|
||||
"isDisabled": false,
|
||||
"disabledReason": ''
|
||||
'type': 21,
|
||||
'name': 'MRI-PDFF',
|
||||
'tools': [
|
||||
{
|
||||
'name': '圆形测量',
|
||||
'icon': 'oval',
|
||||
'toolName': 'Probe',
|
||||
'i18nKey': 'trials:reading:button:circle',
|
||||
'isDisabled': false,
|
||||
'disabledReason': ''
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"customizeStandards": [
|
||||
{
|
||||
"name": "直径测量工具",
|
||||
"icon": "length",
|
||||
"toolName": "Length",
|
||||
"i18nKey": "trials:reading:button:length",
|
||||
"isDisabled": false,
|
||||
"disabledReason": ''
|
||||
'customizeStandards': [
|
||||
{
|
||||
'name': '直径测量工具',
|
||||
'icon': 'length',
|
||||
'toolName': 'Length',
|
||||
'i18nKey': 'trials:reading:button:length',
|
||||
'isDisabled': false,
|
||||
'disabledReason': ''
|
||||
},
|
||||
{
|
||||
"name": "长短径测量工具",
|
||||
"icon": "bidirection",
|
||||
"toolName": "Bidirectional",
|
||||
"i18nKey": "trials:reading:button:bidirectional",
|
||||
"isDisabled": false,
|
||||
"disabledReason": ''
|
||||
{
|
||||
'name': '长短径测量工具',
|
||||
'icon': 'bidirection',
|
||||
'toolName': 'Bidirectional',
|
||||
'i18nKey': 'trials:reading:button:bidirectional',
|
||||
'isDisabled': false,
|
||||
'disabledReason': ''
|
||||
},
|
||||
{
|
||||
"name": "矩形工具",
|
||||
"icon": "rectangle",
|
||||
"toolName": "RectangleROI",
|
||||
"i18nKey": "trials:reading:button:rectangle",
|
||||
"isDisabled": false,
|
||||
"disabledReason": ''
|
||||
{
|
||||
'name': '矩形工具',
|
||||
'icon': 'rectangle',
|
||||
'toolName': 'RectangleROI',
|
||||
'i18nKey': 'trials:reading:button:rectangle',
|
||||
'isDisabled': false,
|
||||
'disabledReason': ''
|
||||
},
|
||||
{
|
||||
"name": "箭头工具",
|
||||
"icon": "arrow",
|
||||
"toolName": "ArrowAnnotate",
|
||||
"i18nKey": "trials:reading:button:arrowAnnotate",
|
||||
"isDisabled": false,
|
||||
"disabledReason": ''
|
||||
{
|
||||
'name': '箭头工具',
|
||||
'icon': 'arrow',
|
||||
'toolName': 'ArrowAnnotate',
|
||||
'i18nKey': 'trials:reading:button:arrowAnnotate',
|
||||
'isDisabled': false,
|
||||
'disabledReason': ''
|
||||
}
|
||||
]
|
||||
}
|
||||
const getTools = (criterionType) => {
|
||||
const standard = config.standards.find(s => s.type === criterionType);
|
||||
return standard?.tools || [];
|
||||
};
|
||||
const standard = config.standards.find(s => s.type === criterionType)
|
||||
return standard?.tools || []
|
||||
}
|
||||
const getCustomizeStandardsTools = (toolNames) => {
|
||||
const filteredTools =config.customizeStandards.filter(item => toolNames.includes(item.toolName));
|
||||
return filteredTools || [];
|
||||
};
|
||||
export {config, getTools, getCustomizeStandardsTools}
|
||||
const filteredTools = config.customizeStandards.filter(item => toolNames.includes(item.toolName))
|
||||
return filteredTools || []
|
||||
}
|
||||
export { config, getTools, getCustomizeStandardsTools }
|
||||
|
|
Loading…
Reference in New Issue