|
@@ -93,76 +93,77 @@ public class THR0125 extends QCCatalogue {
|
|
}
|
|
}
|
|
|
|
|
|
/* 如果存在手术记录,判断主刀医生是否为主治医生 */
|
|
/* 如果存在手术记录,判断主刀医生是否为主治医生 */
|
|
- String operatorName = "";
|
|
|
|
- List<OperationDoc> operationDocs = inputInfo.getOperationDocs();
|
|
|
|
- if (operationDocs != null) {
|
|
|
|
- for (OperationDoc operationDoc : operationDocs) {
|
|
|
|
- if (operationDoc.getOperationRecordDoc() != null) {
|
|
|
|
- Map<String, String> operationDocStructureMap = operationDoc.getOperationRecordDoc().getStructureMap();
|
|
|
|
- if (StringUtil.isBlank(operatorName)) {
|
|
|
|
- operatorName = operationDocStructureMap.get("主刀医师");
|
|
|
|
- if (StringUtil.isBlank(operatorName) && StringUtil.isNotBlank(operationDocStructureMap.get("手术者及助手名称"))) {
|
|
|
|
- operatorName = operationDocStructureMap.get("手术者及助手名称").split("、")[0];
|
|
|
|
- if (operatorName.contains("主刀:") && operatorName.split(":").length > 1) {
|
|
|
|
- operatorName = operatorName.split(":")[1];
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- List<ThreeLevelWardDoc> allDoctorWradDocs = threeLevelWardDoc.getAllDoctorWradDocs();
|
|
|
|
- for (ThreeLevelWardDoc threeLevelWard : allDoctorWradDocs) {
|
|
|
|
- Map<String, String> structureMap = threeLevelWard.getStructureMap();
|
|
|
|
- String wardDateStr = structureMap.get("查房日期");
|
|
|
|
- if (!CatalogueUtil.compareTime(StringUtil.parseDateTime(admisTime), StringUtil.parseDateTime(wardDateStr), 72 * 60L)) {
|
|
|
|
- String makeTitle = structureMap.get("查房标题");
|
|
|
|
- String pathography = structureMap.get("病情记录");
|
|
|
|
- //判断标题
|
|
|
|
- visitingPhysicianHouse(operatorName, makeTitle);
|
|
|
|
- //判断病情记录
|
|
|
|
- visitingPhysicianHouse(operatorName, pathography);
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+// String operatorName = "";
|
|
|
|
+// List<OperationDoc> operationDocs = inputInfo.getOperationDocs();
|
|
|
|
+// if (operationDocs != null) {
|
|
|
|
+// for (OperationDoc operationDoc : operationDocs) {
|
|
|
|
+// if (operationDoc.getOperationRecordDoc() != null) {
|
|
|
|
+// Map<String, String> operationDocStructureMap = operationDoc.getOperationRecordDoc().getStructureMap();
|
|
|
|
+// if (StringUtil.isBlank(operatorName)) {
|
|
|
|
+// operatorName = operationDocStructureMap.get("主刀医师");
|
|
|
|
+// if (StringUtil.isBlank(operatorName) && StringUtil.isNotBlank(operationDocStructureMap.get("手术者及助手名称"))) {
|
|
|
|
+// operatorName = operationDocStructureMap.get("手术者及助手名称").split("、")[0];
|
|
|
|
+// if (operatorName.contains("主刀:") && operatorName.split(":").length > 1) {
|
|
|
|
+// operatorName = operatorName.split(":")[1];
|
|
|
|
+// }
|
|
|
|
+// }
|
|
|
|
+// }
|
|
|
|
+// }
|
|
|
|
+// }
|
|
|
|
+//
|
|
|
|
+// List<ThreeLevelWardDoc> allDoctorWradDocs = threeLevelWardDoc.getAllDoctorWradDocs();
|
|
|
|
+// for (ThreeLevelWardDoc threeLevelWard : allDoctorWradDocs) {
|
|
|
|
+// Map<String, String> structureMap = threeLevelWard.getStructureMap();
|
|
|
|
+// String wardDateStr = structureMap.get("查房日期");
|
|
|
|
+// if (!CatalogueUtil.compareTime(StringUtil.parseDateTime(admisTime), StringUtil.parseDateTime(wardDateStr), 72 * 60L)) {
|
|
|
|
+// String makeTitle = structureMap.get("查房标题");
|
|
|
|
+// String pathography = structureMap.get("病情记录");
|
|
|
|
+// //判断标题
|
|
|
|
+// visitingPhysicianHouse(operatorName, makeTitle);
|
|
|
|
+// //判断病情记录
|
|
|
|
+// visitingPhysicianHouse(operatorName, pathography);
|
|
|
|
+// }
|
|
|
|
+// }
|
|
|
|
+// }
|
|
|
|
+// }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- /**
|
|
|
|
- * 判断查房记录是否含有主任医师查房
|
|
|
|
- *
|
|
|
|
- * @param operatorName 主刀医师
|
|
|
|
- * @param titlePathography 查房标题或病情记录
|
|
|
|
- */
|
|
|
|
- private void visitingPhysicianHouse(String operatorName, String titlePathography) {
|
|
|
|
- if (StringUtil.isNotBlank(titlePathography)) {
|
|
|
|
- if (titlePathography.contains("主任")) {
|
|
|
|
- status.set("0");
|
|
|
|
- return;
|
|
|
|
- } else if (StringUtil.isNotBlank(operatorName) && (titlePathography.contains(operatorName) || titlePathography.contains("主刀"))) {
|
|
|
|
- String operationProfessor = getCourseProfessor(operatorName);
|
|
|
|
- if (operationProfessor.contains("主任")) {
|
|
|
|
- status.set("0");
|
|
|
|
- return;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+// /**
|
|
|
|
+// * 判断查房记录是否含有主任医师查房
|
|
|
|
+// *
|
|
|
|
+// * @param operatorName 主刀医师
|
|
|
|
+// * @param titlePathography 查房标题或病情记录
|
|
|
|
+// */
|
|
|
|
+// private void visitingPhysicianHouse(String operatorName, String titlePathography) {
|
|
|
|
+// if (StringUtil.isNotBlank(titlePathography)) {
|
|
|
|
+// if (titlePathography.contains("主任")) {
|
|
|
|
+// status.set("0");
|
|
|
|
+// return;
|
|
|
|
+// } else if (StringUtil.isNotBlank(operatorName) && (titlePathography.contains(operatorName) || titlePathography.contains("主刀"))) {
|
|
|
|
+// String operationProfessor = getCourseProfessor(operatorName);
|
|
|
|
+// if (operationProfessor.contains("主任")) {
|
|
|
|
+// status.set("0");
|
|
|
|
+// return;
|
|
|
|
+// }
|
|
|
|
+// }
|
|
|
|
+// }
|
|
|
|
+// }
|
|
|
|
|
|
- private String getCourseProfessor(String operatorName) {
|
|
|
|
- String professor = "";
|
|
|
|
- if (StringUtil.isBlank(operatorName)) {
|
|
|
|
- return professor;
|
|
|
|
- }
|
|
|
|
- SpecialStorageUtil specialStorageUtil = SpringContextUtil.getBean("specialStorageUtil");
|
|
|
|
- Map<String, Object> surgeon = specialStorageUtil.getJsonStringValue(KernelConstants.HOSPITAL_DOCTOR_MAP);
|
|
|
|
- if (surgeon != null) {
|
|
|
|
- Map<String, String> doctor = (Map) surgeon.get(operatorName);
|
|
|
|
- if (doctor != null) {
|
|
|
|
- professor = doctor.get("professor");
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- }
|
|
|
|
- return professor;
|
|
|
|
- }
|
|
|
|
|
|
+// private String getCourseProfessor(String operatorName) {
|
|
|
|
+// String professor = "";
|
|
|
|
+// if (StringUtil.isBlank(operatorName)) {
|
|
|
|
+// return professor;
|
|
|
|
+// }
|
|
|
|
+// SpecialStorageUtil specialStorageUtil = SpringContextUtil.getBean("specialStorageUtil");
|
|
|
|
+// Map<String, Object> surgeon = specialStorageUtil.getJsonStringValue(KernelConstants.HOSPITAL_DOCTOR_MAP);
|
|
|
|
+// if (surgeon != null) {
|
|
|
|
+// Map<String, String> doctor = (Map) surgeon.get(operatorName);
|
|
|
|
+// if (doctor != null) {
|
|
|
|
+// professor = doctor.get("professor");
|
|
|
|
+// }
|
|
|
|
+//
|
|
|
|
+// }
|
|
|
|
+// return professor;
|
|
|
|
+// }
|
|
}
|
|
}
|