修改PET 5PS评分自动计算规则

uat_us
caiyiling 2024-01-16 11:14:39 +08:00
parent e7409e2647
commit 0f7f2d2098
2 changed files with 8 additions and 7 deletions

View File

@ -5,6 +5,7 @@ public
dist
# src/*
src/App.vue
src/views/trials/trials-panel/reading/global-review/*
src/views/dictionary/checkConfig/*
src/views/trials/trials-panel/trial-summary/*

View File

@ -422,24 +422,24 @@ export default {
console.log('setpet5PS')
// 1
// x
const maxSUVmax = !isNaN(parseFloat(this.questionForm[this.suvmaxId])) ? parseFloat(this.questionForm[this.suvmaxId]) : 0
const maxSUVmax = !isNaN(parseFloat(this.questionForm[this.suvmaxId])) ? parseFloat(this.questionForm[this.suvmaxId]) : null
// SUVmax
const liverSUVmax = !isNaN(parseFloat(this.questionForm[this.liverSuvmaxId])) ? parseFloat(this.questionForm[this.liverSuvmaxId]) : 0
const liverSUVmax = !isNaN(parseFloat(this.questionForm[this.liverSuvmaxId])) ? parseFloat(this.questionForm[this.liverSuvmaxId]) : null
// SUVmax
const lungSUVmax = !isNaN(parseFloat(this.questionForm[this.lungSuvmaxId])) ? parseFloat(this.questionForm[this.lungSuvmaxId]) : 0
if (maxSUVmax > liverSUVmax * 2) {
const lungSUVmax = !isNaN(parseFloat(this.questionForm[this.lungSuvmaxId])) ? parseFloat(this.questionForm[this.lungSuvmaxId]) : null
if (maxSUVmax !== null && liverSUVmax !== null && maxSUVmax > liverSUVmax * 2) {
// 访 max SUVmax>2*SUVmax 5
// this.questionForm[this.pet5PSId] = '5'
return '5'
} else if (maxSUVmax > liverSUVmax) {
} else if (maxSUVmax !== null && liverSUVmax !== null && maxSUVmax > liverSUVmax) {
// 访SUVmax>SUVmax 4
// this.questionForm[this.pet5PSId] = '4'
return '4'
} else if (maxSUVmax > lungSUVmax && maxSUVmax <= liverSUVmax) {
} else if (maxSUVmax !== null && liverSUVmax !== null && lungSUVmax !== null && maxSUVmax > lungSUVmax && maxSUVmax <= liverSUVmax) {
// SUVmax<访max SUVmax1*SUVmax 3
// this.questionForm[this.pet5PSId] = '3'
return '3'
} else if (maxSUVmax < lungSUVmax) {
} else if (maxSUVmax !== null && lungSUVmax !== null && maxSUVmax < lungSUVmax) {
// 访SUVmax<SUVmax 2
// this.questionForm[this.pet5PSId] = '2'
return '2'