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