|
@@ -58,7 +58,7 @@ public class VerifyCaseFrontSheet {
|
|
|
if (DateUtil.daysBetween(sheet.getQualityControlDate(), sheet.getDismissDate()) > 7) {
|
|
|
array.add(new CodeName("qualityControlDate", "质控日期不能大于出院7天!"));
|
|
|
}
|
|
|
- return connectedVerify(array, sheet);
|
|
|
+ return connectedVerify(array, sheet, 1);
|
|
|
}
|
|
|
|
|
|
public List<CodeName> adviseVerification(String socialNo) {
|
|
@@ -72,7 +72,7 @@ public class VerifyCaseFrontSheet {
|
|
|
return array;
|
|
|
}
|
|
|
|
|
|
- public List<CodeName> printVerify(CaseFrontsheetMain info) {
|
|
|
+ public List<CodeName> printVerify(CaseFrontsheetMain info, Integer opType) {
|
|
|
List<CodeName> array = new ArrayList<>();
|
|
|
if (StringUtil.invalidValue(info.getName())) {
|
|
|
array.add(new CodeName("name", "患者姓名不能为空!"));
|
|
@@ -305,10 +305,10 @@ public class VerifyCaseFrontSheet {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- return connectedVerify(array, info);
|
|
|
+ return connectedVerify(array, info, opType);
|
|
|
}
|
|
|
|
|
|
- private List<CodeName> connectedVerify(List<CodeName> array, CaseFrontsheetMain info) {
|
|
|
+ private List<CodeName> connectedVerify(List<CodeName> array, CaseFrontsheetMain info, Integer opType) {
|
|
|
if (StringUtil.notBlank(info.getZyDismissWay())) {
|
|
|
if ("1".equals(info.getZyDismissWay()) || "2".equals(info.getZyDismissWay())) {
|
|
|
if (StringUtil.invalidValue(info.getDismissDestination())) {
|
|
@@ -359,7 +359,7 @@ public class VerifyCaseFrontSheet {
|
|
|
(StringUtil.invalidValue(info.getHurtReasonName()) || StringUtil.invalidValue(info.getHurtReasonCode()))) {
|
|
|
array.add(new CodeName("hurtReasonName","根据患者出院主要诊断,损伤中毒诊断不能为空!"));
|
|
|
}
|
|
|
- if (StringUtil.notBlank(info.getBloodType()) && !"5".equals(info.getBloodType())) {
|
|
|
+ if (null != opType && opType != 2 && StringUtil.notBlank(info.getBloodType()) && !"5".equals(info.getBloodType())) {
|
|
|
if (!"1".equals(info.getRh()) && !"2".equals(info.getRh())) {
|
|
|
array.add(new CodeName("rh","患者血型确定时,Rh血型应为阴或阳!"));
|
|
|
}
|