Procházet zdrojové kódy

[phr] 위험 표시 조건 수정.

sjpark před 4 roky
rodič
revize
687f08b851

+ 10 - 4
src/main/java/com/lemon/lifecenter/dto/PatientPHRHistoryDTO.java

@@ -72,16 +72,22 @@ public class PatientPHRHistoryDTO {
 	public boolean getIsWarning() {
 		try {
 			if (this.phrType.equals("temperature")) {
-				return this.phrValue > 37.5;
+				return this.phrValue >= 37.5;
 			}
 			else if (this.phrType.equals("bloodPressure")) {
-				boolean highBP = this.phrValue > 140 || this.phrValue2 > 90;
-				boolean lowBP = this.phrValue < 80 || this.phrValue2 < 60;
+				boolean highBP = this.phrValue >= 149 || this.phrValue2 >= 99;
+				boolean lowBP = this.phrValue <= 90 || this.phrValue2 <= 60;
 			
 				return highBP || lowBP;
 			}
 			else if (this.phrType.equals("oxygenSaturation")) {
-				return this.phrValue < 95;
+				return this.phrValue <= 94;
+			}
+			else if (this.phrType.equals("pulseRate")) {
+				return this.phrValue <= 55 || this.phrValue >= 110;
+			}
+			else if (this.phrType.equals("bloodSugar")) {
+				return this.phrValue <= 70;
 			}
 		}
 		catch(Exception e) {

+ 4 - 4
src/main/java/com/lemon/lifecenter/dto/PatientPHRLatestDTO.java

@@ -188,20 +188,20 @@ public class PatientPHRLatestDTO {
 	public boolean getIsTemperatureWarning() {
 		if (this.temperature == null) return false;
 		
-		return this.temperature > 37.5;
+		return this.temperature >= 37.5;
 	}
 	public boolean getIsBloodPressureWarning() {
 		if (this.systolicBloodPressure == null || this.diastolicBloodPressure == null) return false;
 		
-		boolean highBP = this.systolicBloodPressure > 140 || this.diastolicBloodPressure > 90;
-		boolean lowBP = this.systolicBloodPressure < 80 || this.diastolicBloodPressure < 60;
+		boolean highBP = this.systolicBloodPressure >= 149 || this.diastolicBloodPressure >= 99;
+		boolean lowBP = this.systolicBloodPressure <= 90 || this.diastolicBloodPressure <= 60;
 		
 		return highBP || lowBP;
 	}
 	public boolean getIsOxygenSaturationeWarning() {
 		if (this.oxygenSaturation == null) return false;
 		
-		return this.oxygenSaturation < 95;
+		return this.oxygenSaturation <= 94;
 	}
 	public boolean getHasTodaySymptom() {
 		boolean ret = false;