|
@@ -1,14 +1,11 @@
|
|
package com.lantone.qc.kernel.catalogue.threelevelward;
|
|
package com.lantone.qc.kernel.catalogue.threelevelward;
|
|
|
|
|
|
-import com.lantone.qc.dbanaly.util.KernelConstants;
|
|
|
|
-import com.lantone.qc.dbanaly.util.SpecialStorageUtil;
|
|
|
|
import com.lantone.qc.kernel.catalogue.QCCatalogue;
|
|
import com.lantone.qc.kernel.catalogue.QCCatalogue;
|
|
import com.lantone.qc.kernel.util.CatalogueUtil;
|
|
import com.lantone.qc.kernel.util.CatalogueUtil;
|
|
import com.lantone.qc.pub.model.InputInfo;
|
|
import com.lantone.qc.pub.model.InputInfo;
|
|
import com.lantone.qc.pub.model.OutputInfo;
|
|
import com.lantone.qc.pub.model.OutputInfo;
|
|
import com.lantone.qc.pub.model.doc.ThreeLevelWardDoc;
|
|
import com.lantone.qc.pub.model.doc.ThreeLevelWardDoc;
|
|
import com.lantone.qc.pub.model.doc.ward.AttendingDoctorWardDoc;
|
|
import com.lantone.qc.pub.model.doc.ward.AttendingDoctorWardDoc;
|
|
-import com.lantone.qc.pub.util.SpringContextUtil;
|
|
|
|
import com.lantone.qc.pub.util.StringUtil;
|
|
import com.lantone.qc.pub.util.StringUtil;
|
|
import org.springframework.stereotype.Component;
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
@@ -45,9 +42,7 @@ public class THR03017 extends QCCatalogue {
|
|
for (AttendingDoctorWardDoc attendingDoctorWardDoc : attendingDoctorWardDocs) {
|
|
for (AttendingDoctorWardDoc attendingDoctorWardDoc : attendingDoctorWardDocs) {
|
|
jlDateStr = attendingDoctorWardDoc.getStructureMap().get("记录时间");
|
|
jlDateStr = attendingDoctorWardDoc.getStructureMap().get("记录时间");
|
|
shDateStr = attendingDoctorWardDoc.getStructureMap().get("审核日期");
|
|
shDateStr = attendingDoctorWardDoc.getStructureMap().get("审核日期");
|
|
- professor = getProfessor(attendingDoctorWardDoc.getStructureMap().get("审核人"));
|
|
|
|
- if (StringUtil.isBlank(professor)
|
|
|
|
- || !professor.contains("主治")
|
|
|
|
|
|
+ if (!CatalogueUtil.isOccup(attendingDoctorWardDoc.getStructureMap().get("审核人"))
|
|
|| CatalogueUtil.compareTime(StringUtil.parseDateTime(jlDateStr), StringUtil.parseDateTime(shDateStr), 48 * 60L)) {
|
|
|| CatalogueUtil.compareTime(StringUtil.parseDateTime(jlDateStr), StringUtil.parseDateTime(shDateStr), 48 * 60L)) {
|
|
findIndications = false;
|
|
findIndications = false;
|
|
break;
|
|
break;
|
|
@@ -58,20 +53,4 @@ public class THR03017 extends QCCatalogue {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- private 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;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
}
|
|
}
|