|
@@ -114,29 +114,26 @@ public class VerifyCaseFrontSheet {
|
|
|
if (StringUtil.invalidValue(info.getMarriage())) {
|
|
|
array.add(new CodeName("marriage","患者婚姻状况不能为空!"));
|
|
|
}
|
|
|
- if (null == info.getStandardAddress() || info.getStandardAddress().length == 0 || null == info.getStandardAddress()[0]) {
|
|
|
- array.add(new CodeName("livePlace1","患者现住址(省/市/区)不能为空!"));
|
|
|
- }
|
|
|
if (StringUtil.invalidValue(info.getLivePlace())) {
|
|
|
- array.add(new CodeName("livePlace2","患者现住址(街道/小区/乡镇)不能为空!"));
|
|
|
- }
|
|
|
- if (info.isDoctorPrint() && null != info.getAddressMember() && StringUtil.notBlank(info.getLivePlace())) {
|
|
|
- String liveAddress = info.getLivePlace();
|
|
|
- StandardAddressMember member = info.getAddressMember();
|
|
|
- if (liveAddress.contains(member.getProvinceName()) || liveAddress.contains(member.getCityName()) ||
|
|
|
- liveAddress.contains(member.getDistrictName())) {
|
|
|
- array.add(new CodeName("livePlace2","患者现住址有冗余重复!"));
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- try {
|
|
|
- byte[] livePlaceBytes = info.getLivePlace().getBytes("GBK");
|
|
|
- if (livePlaceBytes.length > 32) {
|
|
|
- array.add(new CodeName("livePlace", "患者现住址不能超过32个字节,当前字节数为" + livePlaceBytes.length + "(1汉字=2字节,1字母或数字=1字节)!"));
|
|
|
- }
|
|
|
- } catch (Exception e) {
|
|
|
- log.error("分析患者现住址长度出现异常", e);
|
|
|
- }
|
|
|
+ array.add(new CodeName("livePlace","患者现住址不能为空!"));
|
|
|
+ }
|
|
|
+// if (info.isDoctorPrint() && null != info.getAddressMember() && StringUtil.notBlank(info.getLivePlace())) {
|
|
|
+// String liveAddress = info.getLivePlace();
|
|
|
+// StandardAddressMember member = info.getAddressMember();
|
|
|
+// if (liveAddress.contains(member.getProvinceName()) || liveAddress.contains(member.getCityName()) ||
|
|
|
+// liveAddress.contains(member.getDistrictName())) {
|
|
|
+// array.add(new CodeName("livePlace2","患者现住址有冗余重复!"));
|
|
|
+// }
|
|
|
+// }
|
|
|
+//
|
|
|
+// try {
|
|
|
+// byte[] livePlaceBytes = info.getLivePlace().getBytes("GBK");
|
|
|
+// if (livePlaceBytes.length > 32) {
|
|
|
+// array.add(new CodeName("livePlace", "患者现住址不能超过32个字节,当前字节数为" + livePlaceBytes.length + "(1汉字=2字节,1字母或数字=1字节)!"));
|
|
|
+// }
|
|
|
+// } catch (Exception e) {
|
|
|
+// log.error("分析患者现住址长度出现异常", e);
|
|
|
+// }
|
|
|
if (StringUtil.invalidValue(info.getPhone())) {
|
|
|
array.add(new CodeName("phone","患者电话不能为空!"));
|
|
|
}
|