|
@@ -25,26 +25,27 @@ public class VitalRule {
|
|
|
* @return
|
|
|
*/
|
|
|
public static void compareVitalWithBill(List<Vital> inputLis, BillNeoMaxDTO billNeoMaxDTO, List<BillMsg> billMsgList, String type) {
|
|
|
- List<NodeNeoDTO> neoList = billNeoMaxDTO.getLis();
|
|
|
+ List<NodeNeoDTO> neoList = billNeoMaxDTO.getVitals();
|
|
|
if(ListUtil.isNotEmpty(neoList) && ListUtil.isNotEmpty(inputLis)){
|
|
|
for (NodeNeoDTO neo : neoList) {
|
|
|
for (Vital lis : inputLis) {
|
|
|
String val = lis.getName();
|
|
|
+ val = lis.getStandName();
|
|
|
if (StringUtil.isNotBlank(val) && val.equals(neo.getName()) && "体温".equals(val)) {
|
|
|
// String val_name = lis.getDetailName();
|
|
|
// 如果有结果数据,就不用比较数值
|
|
|
String message = "";
|
|
|
boolean flag = false;
|
|
|
- if (StringUtil.isNotBlank(lis.getValue())) {
|
|
|
- flag = CoreUtil.compareStr(neo, lis.getValue());
|
|
|
+// if (StringUtil.isNotBlank(lis.getValue())) {
|
|
|
+// flag = CoreUtil.compareStr(neo, lis.getValue());
|
|
|
+// if (flag) {
|
|
|
+// message = CoreUtil.getStrMsg(neo, val, lis.getValue());
|
|
|
+// }
|
|
|
+// } else
|
|
|
+ if (lis.getPd() != null) {
|
|
|
+ flag = CoreUtil.compareNum(neo, Double.parseDouble(lis.getPd().getValue()));
|
|
|
if (flag) {
|
|
|
- message = CoreUtil.getStrMsg(neo, val, lis.getValue());
|
|
|
- }
|
|
|
- } else
|
|
|
- if (lis.getValue() != null) {
|
|
|
- flag = CoreUtil.compareNum(neo, Double.parseDouble(lis.getValue()));
|
|
|
- if (flag) {
|
|
|
- message = CoreUtil.getNumMsg(neo, val, Double.parseDouble(lis.getValue()), lis.getPd().getUnit());
|
|
|
+ message = CoreUtil.getNumMsg(neo, val, Double.parseDouble(lis.getPd().getValue()), lis.getPd().getUnit());
|
|
|
}
|
|
|
}
|
|
|
if (flag) {
|