watch(toolGroup, (toolGroup) => {
// deep mort+list
scoreGroup.yishiScore = toolGroup.yishiValue.value;
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
if (toolGroup.huxisValue! > 8 && toolGroup.huxisValue! < 21) {
scoreGroup.huxisScore = 0;
}
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
if (toolGroup.huxisValue! > 20 && toolGroup.huxisValue! < 31) {
scoreGroup.huxisScore = 2;
}
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
if (toolGroup.huxisValue! > 4 && toolGroup.huxisValue! < 9) {
scoreGroup.huxisScore = 3;
}
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
if (toolGroup.huxisValue! > 30 && toolGroup.huxisValue! < 36) {
scoreGroup.huxisScore = 3;
}
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
if (toolGroup.huxisValue! > 34 || toolGroup.huxisValue! < 6) {
scoreGroup.huxisScore = 5;
}
//
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
if (toolGroup.xueyaValue! > 99 && toolGroup.xueyaValue! < 180) {
scoreGroup.xueyaScore = 0;
}
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
if (toolGroup.xueyaValue! > 89 && toolGroup.xueyaValue! < 100) {
scoreGroup.xueyaScore = 1;
}
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
if (toolGroup.xueyaValue! > 79 && toolGroup.xueyaValue! < 90) {
scoreGroup.xueyaScore = 2;
}
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
if (toolGroup.xueyaValue! > 179) {
scoreGroup.xueyaScore = 2;
}
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
if (toolGroup.xueyaValue! > 69 && toolGroup.xueyaValue! < 80) {
scoreGroup.xueyaScore = 3;
}
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
if (toolGroup.xueyaValue! < 71) {
scoreGroup.xueyaScore = 5;
}
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
if (toolGroup.heartValue! > 49 && toolGroup.heartValue! < 101) {
scoreGroup.heartScore = 0;
}
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
if (toolGroup.heartValue! > 100 && toolGroup.heartValue! < 111) {
scoreGroup.heartScore = 1;
}
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
if (toolGroup.heartValue! > 110 && toolGroup.heartValue! < 130) {
scoreGroup.heartScore = 2;
}
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
if (toolGroup.heartValue! > 39 && toolGroup.heartValue! < 50) {
scoreGroup.heartScore = 3;
}
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
if (toolGroup.heartValue! > 129) {
scoreGroup.heartScore = 3;
}
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
if (toolGroup.heartValue! < 41) {
scoreGroup.heartScore = 5;
}
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
if (toolGroup.tempsValue! > 34.9 && toolGroup.tempsValue! < 38.5) {
scoreGroup.tempsScore = 0;
}
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
if (toolGroup.tempsValue! > 38.4 || toolGroup.tempsValue! < 35.1) {
scoreGroup.tempsScore = 2;
}
},
// {
// deep: true
// }
);
export function transBp(value) {
if (value < 70) {
return 5
}
if (value > 69 && value < 80) {
return 3
}
if (value > 79 && value < 90) {
return 2
}
if (value > 89 && value < 100) {
return 1
}
if (value > 99 && value < 181) {
return 0
}
if (value > 180) {
return 2
}
}
export function transHr(value) {
if (value < 40) {
return 5
}
if (value > 39 && value < 50) {
return 3
}
if (value > 110 && value < 130) {
return 2
}
if (value > 100 && value < 111) {
return 1
}
if (value > 49 && value < 101) {
return 0
}
if (value > 129) {
return 3
}
}
export function transRr (value) {
if (value < 5) {
return 5
}
if (value > 35) {
return 5
}
if (value > 30 && value < 36) {
return 3
}
if (value > 20 && value < 31) {
return 2
}
if (value > 100 && value < 111) {
return 1
}
if (value > 8 && value < 21) {
return 0
}
}
export function transTw(value) {
if (value == null) {
return 0
}
if (value > 38.4) {
return 2
}
if (value < 35.0) {
return 2
}
if (value > 34.9 && value < 38.5) {
return 0
}
}
export function transSpo(value) {
if (value > 95) {
return 0
}
if (value < 92) {
return 3
}
if (value > 93 && value < 96) {
return 1
}
if (value > 91 && value < 94) {
return 2
}
}
export function alertJudge(current) {
const alertValue = [
current.bpvalue,
current.hrvalue,
current.rrvalue,
current.ysvalue,
current.spovalue
]
console.log(alertValue)
return alertValue.some(i => {
return i == 5
}) ?
‘alert5’ :
alertValue.some(i => {
return i == 3
}) || current.tolvalue > 6 ?
‘alert4’ :
current.tolvalue == 5 || current.tolvalue == 6 ?
‘alert3’ :
alertValue.some(i => {
return i == 2
}) ||
(current.tolvalue == 4 ?
‘alert2’ :
current.tolvalue !== 0 ?
‘alert1’ :
‘alert0’)
}
学术交流文章,不做为临床依据,特此声明。发布者:Chu,转转请注明出处:https://www.icu.cn/?p=3863