|
@@ -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) {
|