修改脾脏状态自动计算缺陷
parent
8d3d7c6db9
commit
bd843fd186
|
@ -4,7 +4,8 @@ src/utils/*
|
||||||
public
|
public
|
||||||
dist
|
dist
|
||||||
|
|
||||||
src/*
|
# src/*
|
||||||
|
src/views/trials/trials-panel/reading/global-review/*
|
||||||
src/views/dictionary/checkConfig/*
|
src/views/dictionary/checkConfig/*
|
||||||
src/views/trials/trials-panel/trial-summary/*
|
src/views/trials/trials-panel/trial-summary/*
|
||||||
src/main.js
|
src/main.js
|
||||||
|
|
|
@ -344,9 +344,8 @@ export default {
|
||||||
// if (parseInt(v) !== 5) {
|
// if (parseInt(v) !== 5) {
|
||||||
// return
|
// return
|
||||||
// }
|
// }
|
||||||
if(question.QuestionType === 49){
|
if (question.QuestionType === 49) {
|
||||||
console.log(question,v)
|
this.$emit('setFormItemData', { key: question.Id, val: v })
|
||||||
this.$emit('setFormItemData', {key:question.Id,val:v})
|
|
||||||
}
|
}
|
||||||
if (question.Childrens.length > 0) {
|
if (question.Childrens.length > 0) {
|
||||||
this.resetChild(question.Childrens)
|
this.resetChild(question.Childrens)
|
||||||
|
|
|
@ -33,7 +33,7 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
// import { uploadPrintscreen } from '@/api/reading'
|
// import { uploadPrintscreen } from '@/api/reading'
|
||||||
import { saveImageQuality, getSplenicState,getSplenicVerify } from '@/api/trials'
|
import { saveImageQuality, getSplenicState, getSplenicVerify } from '@/api/trials'
|
||||||
import QuestionItem from './QuestionItem'
|
import QuestionItem from './QuestionItem'
|
||||||
import DicomEvent from './DicomEvent'
|
import DicomEvent from './DicomEvent'
|
||||||
import { mapGetters } from 'vuex'
|
import { mapGetters } from 'vuex'
|
||||||
|
@ -63,7 +63,7 @@ export default {
|
||||||
isQulityIssues: {
|
isQulityIssues: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: true
|
default: true
|
||||||
},
|
}
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
@ -76,11 +76,11 @@ export default {
|
||||||
measurements: [],
|
measurements: [],
|
||||||
spleenStatusId: '',
|
spleenStatusId: '',
|
||||||
spleenLengthId: '',
|
spleenLengthId: '',
|
||||||
spleenCommentsId:'',
|
spleenCommentsId: '',
|
||||||
isBaseLineTask: false,
|
isBaseLineTask: false,
|
||||||
criterionType: null,
|
criterionType: null,
|
||||||
spleenInfo:null,
|
spleenInfo: null,
|
||||||
calculateSpleenStatus:''
|
calculateSpleenStatus: ''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
@ -91,7 +91,7 @@ export default {
|
||||||
deep: true,
|
deep: true,
|
||||||
immediate: false,
|
immediate: false,
|
||||||
handler(v) {
|
handler(v) {
|
||||||
if(this.isQulityIssues){
|
if (this.isQulityIssues) {
|
||||||
DicomEvent.$emit('questionFormChange', true)
|
DicomEvent.$emit('questionFormChange', true)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -119,7 +119,6 @@ export default {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
async getQuestions(visitTaskId) {
|
async getQuestions(visitTaskId) {
|
||||||
console.log('getQuestions')
|
|
||||||
this.visitTaskId = visitTaskId
|
this.visitTaskId = visitTaskId
|
||||||
// const loading = this.$loading({ fullscreen: true })
|
// const loading = this.$loading({ fullscreen: true })
|
||||||
var idx = this.visitTaskList.findIndex(i => i.VisitTaskId === visitTaskId)
|
var idx = this.visitTaskList.findIndex(i => i.VisitTaskId === visitTaskId)
|
||||||
|
@ -136,12 +135,12 @@ export default {
|
||||||
}
|
}
|
||||||
this.measurements.push(i)
|
this.measurements.push(i)
|
||||||
})
|
})
|
||||||
if(this.readingTaskState < 2 && !this.isBaseLineTask && !this.spleenInfo){
|
if (this.readingTaskState < 2 && !this.isBaseLineTask && !this.spleenInfo) {
|
||||||
const { Result } = await getSplenicVerify(visitTaskId)
|
const { Result } = await getSplenicVerify(visitTaskId)
|
||||||
this.spleenInfo = Result
|
this.spleenInfo = Result
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for (var i = 0; i < questions.length; i++) {
|
for (var i = 0; i < questions.length; i++) {
|
||||||
var v = questions[i]
|
var v = questions[i]
|
||||||
v.IsBaseLineTask = this.isBaseLineTask
|
v.IsBaseLineTask = this.isBaseLineTask
|
||||||
|
@ -161,8 +160,8 @@ export default {
|
||||||
// 脾脏长度
|
// 脾脏长度
|
||||||
this.spleenLengthId = v.Id
|
this.spleenLengthId = v.Id
|
||||||
}
|
}
|
||||||
if(v.QuestionType === 58){
|
if (v.QuestionType === 58) {
|
||||||
//修改脾脏状态备注
|
// 修改脾脏状态备注
|
||||||
this.spleenCommentsId = v.Id
|
this.spleenCommentsId = v.Id
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -173,7 +172,7 @@ export default {
|
||||||
}
|
}
|
||||||
// this.questions = questions
|
// this.questions = questions
|
||||||
}
|
}
|
||||||
if(this.spleenLengthId){
|
if (this.spleenLengthId) {
|
||||||
this.calculateSpleenStatus = this.setSpleenStatus(this.questionForm[this.spleenLengthId])
|
this.calculateSpleenStatus = this.setSpleenStatus(this.questionForm[this.spleenLengthId])
|
||||||
this.setSpleenCommentDisplay()
|
this.setSpleenCommentDisplay()
|
||||||
}
|
}
|
||||||
|
@ -196,10 +195,9 @@ export default {
|
||||||
if (i.QuestionType === 48) {
|
if (i.QuestionType === 48) {
|
||||||
// 脾脏长度
|
// 脾脏长度
|
||||||
this.spleenLengthId = i.Id
|
this.spleenLengthId = i.Id
|
||||||
|
|
||||||
}
|
}
|
||||||
if(i.QuestionType === 58){
|
if (i.QuestionType === 58) {
|
||||||
//修改脾脏状态备注
|
// 修改脾脏状态备注
|
||||||
this.spleenCommentsId = i.Id
|
this.spleenCommentsId = i.Id
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -221,14 +219,14 @@ export default {
|
||||||
if (currentSpleenLength && currentSpleenStatus === 5) {
|
if (currentSpleenLength && currentSpleenStatus === 5) {
|
||||||
// '脾脏状态为不可评估,不需要添加标记!'
|
// '脾脏状态为不可评估,不需要添加标记!'
|
||||||
this.$alert(this.$t('trials:lugano:message:validSpleen1'), this.$t('trials:lugano:fusionDialog:warning'), {
|
this.$alert(this.$t('trials:lugano:message:validSpleen1'), this.$t('trials:lugano:fusionDialog:warning'), {
|
||||||
callback: _ => {}
|
callback: _ => {}
|
||||||
})
|
})
|
||||||
}else if(currentSpleenLength === 5 && idx> -1 && this.measurements[idx].MeasureData){
|
} else if (currentSpleenLength === 5 && idx > -1 && this.measurements[idx].MeasureData) {
|
||||||
// 若有标记,状态不可为“无法评估”
|
// 若有标记,状态不可为“无法评估”
|
||||||
this.$alert(this.$t('trials:lugano:message:validSpleen1'), this.$t('trials:lugano:fusionDialog:warning'), {
|
this.$alert(this.$t('trials:lugano:message:validSpleen1'), this.$t('trials:lugano:fusionDialog:warning'), {
|
||||||
callback: _ => {}
|
callback: _ => {}
|
||||||
})
|
})
|
||||||
}else{
|
} else {
|
||||||
this.saveQuestionsList()
|
this.saveQuestionsList()
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
@ -274,7 +272,7 @@ export default {
|
||||||
await store.dispatch('reading/refreshDicomReadingQuestionAnswer', { trialId: trialId, visitTaskId: this.visitTaskId })
|
await store.dispatch('reading/refreshDicomReadingQuestionAnswer', { trialId: trialId, visitTaskId: this.visitTaskId })
|
||||||
this.getQuestions(this.visitTaskId)
|
this.getQuestions(this.visitTaskId)
|
||||||
this.loading = false
|
this.loading = false
|
||||||
if(this.isQulityIssues){
|
if (this.isQulityIssues) {
|
||||||
DicomEvent.$emit('questionFormChange', false)
|
DicomEvent.$emit('questionFormChange', false)
|
||||||
}
|
}
|
||||||
DicomEvent.$emit('getReportInfo', true)
|
DicomEvent.$emit('getReportInfo', true)
|
||||||
|
@ -296,14 +294,14 @@ export default {
|
||||||
this.loading = false
|
this.loading = false
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
setSpleenCommentDisplay(){
|
setSpleenCommentDisplay() {
|
||||||
if( this.spleenCommentsId && this.spleenStatusId ){
|
if (this.spleenCommentsId && this.spleenStatusId) {
|
||||||
for (let i = 0; i < this.questions[0].Childrens.length; i++) {
|
for (let i = 0; i < this.questions[0].Childrens.length; i++) {
|
||||||
if (this.questions[0].Childrens[i].QuestionType === 58) {
|
if (this.questions[0].Childrens[i].QuestionType === 58) {
|
||||||
if(this.calculateSpleenStatus && this.calculateSpleenStatus !== this.questionForm[this.spleenStatusId]){
|
if (this.calculateSpleenStatus && this.calculateSpleenStatus !== this.questionForm[this.spleenStatusId]) {
|
||||||
this.questions[0].Childrens[i].ShowQuestion = 0
|
this.questions[0].Childrens[i].ShowQuestion = 0
|
||||||
this.questions[0].Childrens[i].IsRequired = 0
|
this.questions[0].Childrens[i].IsRequired = 0
|
||||||
}else{
|
} else {
|
||||||
this.questions[0].Childrens[i].ShowQuestion = 2
|
this.questions[0].Childrens[i].ShowQuestion = 2
|
||||||
this.questions[0].Childrens[i].IsRequired = 3
|
this.questions[0].Childrens[i].IsRequired = 3
|
||||||
this.questionForm[this.spleenCommentsId] = ''
|
this.questionForm[this.spleenCommentsId] = ''
|
||||||
|
@ -391,7 +389,7 @@ export default {
|
||||||
var idx = this.measurements.findIndex(i => i.QuestionId === Id)
|
var idx = this.measurements.findIndex(i => i.QuestionId === Id)
|
||||||
if (idx === -1) return
|
if (idx === -1) return
|
||||||
this.$set(this.questionForm, Id, '')
|
this.$set(this.questionForm, Id, '')
|
||||||
if (this.measurements[idx].QuestionType === 48){
|
if (this.measurements[idx].QuestionType === 48) {
|
||||||
this.$set(this.questionForm, this.spleenStatusId, '')
|
this.$set(this.questionForm, this.spleenStatusId, '')
|
||||||
}
|
}
|
||||||
await store.dispatch('reading/removeNonTargetMeasuredData', { visitTaskId: this.visitTaskId, measureData: this.measurements[idx].MeasureData, questionId: Id })
|
await store.dispatch('reading/removeNonTargetMeasuredData', { visitTaskId: this.visitTaskId, measureData: this.measurements[idx].MeasureData, questionId: Id })
|
||||||
|
@ -446,12 +444,12 @@ export default {
|
||||||
if (measurement.type === 'Length') {
|
if (measurement.type === 'Length') {
|
||||||
const length = measurement.data.length ? measurement.data.length : null
|
const length = measurement.data.length ? measurement.data.length : null
|
||||||
this.$set(this.questionForm, this.measurements[idx].QuestionId, length || null)
|
this.$set(this.questionForm, this.measurements[idx].QuestionId, length || null)
|
||||||
if (this.measurements[idx].QuestionType === 48){
|
if (this.measurements[idx].QuestionType === 48) {
|
||||||
var status = this.setSpleenStatus(length)
|
var status = this.setSpleenStatus(length)
|
||||||
this.$set(this.questionForm, this.spleenStatusId, status)
|
this.$set(this.questionForm, this.spleenStatusId, status)
|
||||||
this.calculateSpleenStatus = status
|
this.calculateSpleenStatus = status
|
||||||
}
|
}
|
||||||
|
|
||||||
// if (this.measurements[idx].QuestionType === 48 && length <= 130 && this.isBaseLineTask) {
|
// if (this.measurements[idx].QuestionType === 48 && length <= 130 && this.isBaseLineTask) {
|
||||||
// // 脾脏状态设置默认值为正常
|
// // 脾脏状态设置默认值为正常
|
||||||
// this.$set(this.questionForm, this.spleenStatusId, '1')
|
// this.$set(this.questionForm, this.spleenStatusId, '1')
|
||||||
|
@ -462,34 +460,34 @@ export default {
|
||||||
// }
|
// }
|
||||||
}
|
}
|
||||||
store.dispatch('reading/addOrUpdateNonTargetMeasuredData', { visitTaskId: this.visitTaskId, data: data })
|
store.dispatch('reading/addOrUpdateNonTargetMeasuredData', { visitTaskId: this.visitTaskId, data: data })
|
||||||
if(this.isQulityIssues){
|
if (this.isQulityIssues) {
|
||||||
DicomEvent.$emit('questionFormChange', true)
|
DicomEvent.$emit('questionFormChange', true)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
setSpleenStatus(length){
|
setSpleenStatus(length) {
|
||||||
var status = ''
|
var status = ''
|
||||||
if(length){
|
if (length) {
|
||||||
if(this.isBaseLineTask){
|
if (this.isBaseLineTask) {
|
||||||
// 直径≤130mm时,系统默认脾脏状态为“正常”
|
// 直径≤130mm时,系统默认脾脏状态为“正常”
|
||||||
if(length <= 130){
|
if (length <= 130) {
|
||||||
// this.$set(this.questionForm, this.spleenStatusId, '1')
|
// this.$set(this.questionForm, this.spleenStatusId, '1')
|
||||||
// this.calculateSpleenStatus = '1'
|
// this.calculateSpleenStatus = '1'
|
||||||
status = '1'
|
status = '1'
|
||||||
}
|
}
|
||||||
// 直径>130mm时,系统默认脾脏状态为“肿大”
|
// 直径>130mm时,系统默认脾脏状态为“肿大”
|
||||||
if(length > 130){
|
if (length > 130) {
|
||||||
// this.$set(this.questionForm, this.spleenStatusId, '6')
|
// this.$set(this.questionForm, this.spleenStatusId, '6')
|
||||||
// this.calculateSpleenStatus = '6'
|
// this.calculateSpleenStatus = '6'
|
||||||
status = '6'
|
status = '6'
|
||||||
}
|
}
|
||||||
}else{
|
} else {
|
||||||
// 与基线相比脾垂直径变化值
|
// 与基线相比脾垂直径变化值
|
||||||
var diffFromBaseline = length - this.spleenInfo.BaseLineSpleenLength
|
var diffFromBaseline = length - this.spleenInfo.BaseLineSpleenLength
|
||||||
var percentFormBaseline = 0
|
var percentFormBaseline = 0
|
||||||
if(this.spleenInfo.BaseLineSpleenLength){
|
if (this.spleenInfo.BaseLineSpleenLength) {
|
||||||
percentFormBaseline = length * 100 / (this.spleenInfo.BaseLineSpleenLength - 130)
|
percentFormBaseline = diffFromBaseline * 100 / (this.spleenInfo.BaseLineSpleenLength - 130)
|
||||||
}
|
}
|
||||||
if(this.spleenInfo.BaseLineSpleenLength > 130 && diffFromBaseline >= 10 && percentFormBaseline > 50){
|
if (this.spleenInfo.BaseLineSpleenLength > 130 && diffFromBaseline >= 10 && percentFormBaseline > 50) {
|
||||||
// 1、基线 垂直径>130 mm
|
// 1、基线 垂直径>130 mm
|
||||||
// 2、与基线相比脾垂直径变化值≥10 mm
|
// 2、与基线相比脾垂直径变化值≥10 mm
|
||||||
// 3、与基线相比脾肿大增加的百分比>50%
|
// 3、与基线相比脾肿大增加的百分比>50%
|
||||||
|
@ -497,7 +495,7 @@ export default {
|
||||||
// this.$set(this.questionForm, this.spleenStatusId, '4')
|
// this.$set(this.questionForm, this.spleenStatusId, '4')
|
||||||
// this.calculateSpleenStatus = '4'
|
// this.calculateSpleenStatus = '4'
|
||||||
status = '4'
|
status = '4'
|
||||||
}else if( this.spleenInfo.BaseLineSpleenLength <= 130 && diffFromBaseline >= 20 && length > 130){
|
} else if (this.spleenInfo.BaseLineSpleenLength <= 130 && diffFromBaseline >= 20 && length > 130) {
|
||||||
// 1、基线垂直径≤130mm
|
// 1、基线垂直径≤130mm
|
||||||
// 2、与基线相比脾垂直径变化值≥20 mm
|
// 2、与基线相比脾垂直径变化值≥20 mm
|
||||||
// 3、当前垂直径>130 mm
|
// 3、当前垂直径>130 mm
|
||||||
|
@ -505,7 +503,7 @@ export default {
|
||||||
// this.$set(this.questionForm, this.spleenStatusId, '4')
|
// this.$set(this.questionForm, this.spleenStatusId, '4')
|
||||||
// this.calculateSpleenStatus = '4'
|
// this.calculateSpleenStatus = '4'
|
||||||
status = '4'
|
status = '4'
|
||||||
}else if( this.spleenInfo.BaseLineSpleenLength > 130 && this.spleenInfo.LowSpleenLength <= 130 && diffFromBaseline >= 20 && length > 130){
|
} else if (this.spleenInfo.BaseLineSpleenLength > 130 && this.spleenInfo.LowSpleenLength <= 130 && diffFromBaseline >= 20 && length > 130) {
|
||||||
// 1、基线 垂直径>130 mm
|
// 1、基线 垂直径>130 mm
|
||||||
// 2、当前访视的前面访视中 存在垂直径≤130mm
|
// 2、当前访视的前面访视中 存在垂直径≤130mm
|
||||||
// 3、与最低点相比脾脏垂直径的增加值≥20 mm
|
// 3、与最低点相比脾脏垂直径的增加值≥20 mm
|
||||||
|
@ -514,20 +512,20 @@ export default {
|
||||||
// this.$set(this.questionForm, this.spleenStatusId, '4')
|
// this.$set(this.questionForm, this.spleenStatusId, '4')
|
||||||
// this.calculateSpleenStatus = '4'
|
// this.calculateSpleenStatus = '4'
|
||||||
status = '4'
|
status = '4'
|
||||||
}else if(length < 130){
|
} else if (length < 130) {
|
||||||
// 当前访视的垂直径≤130mm
|
// 当前访视的垂直径≤130mm
|
||||||
// 系统默认脾脏状态为“正常”
|
// 系统默认脾脏状态为“正常”
|
||||||
// this.$set(this.questionForm, this.spleenStatusId, '1')
|
// this.$set(this.questionForm, this.spleenStatusId, '1')
|
||||||
// this.calculateSpleenStatus = '1'
|
// this.calculateSpleenStatus = '1'
|
||||||
status = '1'
|
status = '1'
|
||||||
}else if(this.spleenInfo.BaseLineState === '6' && percentFormBaseline < -50){
|
} else if (this.spleenInfo.BaseLineState === '6' && percentFormBaseline < -50) {
|
||||||
// 1、基线期 状态为“肿大”
|
// 1、基线期 状态为“肿大”
|
||||||
// 2、与基线相比脾肿大增加的百分比小于-50%
|
// 2、与基线相比脾肿大增加的百分比小于-50%
|
||||||
// 系统默认脾脏状态为“部分缓解”
|
// 系统默认脾脏状态为“部分缓解”
|
||||||
// this.$set(this.questionForm, this.spleenStatusId, '2')
|
// this.$set(this.questionForm, this.spleenStatusId, '2')
|
||||||
// this.calculateSpleenStatus = '2'
|
// this.calculateSpleenStatus = '2'
|
||||||
status = '2'
|
status = '2'
|
||||||
}else{
|
} else {
|
||||||
// this.$set(this.questionForm, this.spleenStatusId, '3')
|
// this.$set(this.questionForm, this.spleenStatusId, '3')
|
||||||
// this.calculateSpleenStatus = '3'
|
// this.calculateSpleenStatus = '3'
|
||||||
status = '3'
|
status = '3'
|
||||||
|
@ -548,7 +546,7 @@ export default {
|
||||||
},
|
},
|
||||||
setFormItemData(obj) {
|
setFormItemData(obj) {
|
||||||
this.questionForm[obj.key] = obj.val
|
this.questionForm[obj.key] = obj.val
|
||||||
if(obj.key === this.spleenStatusId){
|
if (obj.key === this.spleenStatusId) {
|
||||||
this.setSpleenCommentDisplay()
|
this.setSpleenCommentDisplay()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue