|
@@ -14,6 +14,7 @@ import com.lantone.qc.pub.util.SpringContextUtil;
|
|
|
import com.lantone.qc.pub.util.StringUtil;
|
|
|
import lombok.Getter;
|
|
|
import lombok.Setter;
|
|
|
+import org.apache.commons.lang3.StringUtils;
|
|
|
|
|
|
import java.text.SimpleDateFormat;
|
|
|
import java.util.ArrayList;
|
|
@@ -449,7 +450,7 @@ public class CatalogueUtil {
|
|
|
Date operatorEndDate = StringUtil.parseDateTime(operatorEndDateStr);
|
|
|
if (operatorEndDate != null) {
|
|
|
long timeDifference = timeDifference(operatorEndDate, recordDate);
|
|
|
- if (timeDifference == 0){
|
|
|
+ if (timeDifference == 0) {
|
|
|
continue;
|
|
|
}
|
|
|
if (timeDiff == 0 || timeDiff > timeDifference) {
|
|
@@ -478,6 +479,7 @@ public class CatalogueUtil {
|
|
|
|
|
|
/**
|
|
|
* 拼接info信息
|
|
|
+ *
|
|
|
* @param infoStr
|
|
|
* @param content
|
|
|
* @return
|
|
@@ -492,4 +494,50 @@ public class CatalogueUtil {
|
|
|
}
|
|
|
return infoStr;
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 获取医生职称 主治 主任......
|
|
|
+ *
|
|
|
+ * @param doctorSign
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public static String getProfessor(String doctorSign) {
|
|
|
+ String professor = "";
|
|
|
+ if (StringUtil.isBlank(doctorSign)) {
|
|
|
+ return professor;
|
|
|
+ }
|
|
|
+ SpecialStorageUtil specialStorageUtil = SpringContextUtil.getBean("specialStorageUtil");
|
|
|
+ Map<String, Map<String, String>> surgeon = specialStorageUtil.getJsonStringValue(KernelConstants.HOSPITAL_DOCTOR_MAP);
|
|
|
+ if (surgeon != null) {
|
|
|
+ Map<String, String> doctor = (Map) surgeon.get(doctorSign);
|
|
|
+ if (doctor != null) {
|
|
|
+ professor = doctor.get("professor");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return professor;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 判断医生是否是执业医师
|
|
|
+ *
|
|
|
+ * @param doctorSign
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public static boolean isOccup(String doctorSign) {
|
|
|
+ if (StringUtil.isNotBlank(doctorSign)) {
|
|
|
+ SpecialStorageUtil specialStorageUtil = SpringContextUtil.getBean("specialStorageUtil");
|
|
|
+ Map<String, Map<String, String>> surgeon = specialStorageUtil.getJsonStringValue(KernelConstants.HOSPITAL_DOCTOR_MAP);
|
|
|
+ if (surgeon != null) {
|
|
|
+ Map<String, String> doctor = (Map) surgeon.get(doctorSign);
|
|
|
+ if (doctor != null) {
|
|
|
+ String occup = doctor.get("occup");
|
|
|
+ if (StringUtils.isNotEmpty(occup) && "1".equals(occup)) {
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+
|
|
|
}
|