|
@@ -31,10 +31,13 @@ public class THR0125 extends QCCatalogue {
|
|
status.set("0");
|
|
status.set("0");
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- if (inputInfo.getLeaveHospitalDoc() != null && inputInfo.getLeaveHospitalDoc().getStructureMap() != null) {
|
|
|
|
- Map<String, String> leaveHospitalStructureMap = inputInfo.getLeaveHospitalDoc().getStructureMap();
|
|
|
|
- String admisTime = leaveHospitalStructureMap.get("入院日期");
|
|
|
|
- String dischargeTime = leaveHospitalStructureMap.get("出院日期");
|
|
|
|
|
|
+ String admisTime = null, dischargeTime = null;
|
|
|
|
+ if (inputInfo.getLeaveHospitalDoc() != null) {
|
|
|
|
+ if (inputInfo.getMedicalRecordInfoDoc() != null) {
|
|
|
|
+ Map<String, String> structureMap = inputInfo.getMedicalRecordInfoDoc().getStructureMap();
|
|
|
|
+ admisTime = structureMap.get("behospitalDate");
|
|
|
|
+ dischargeTime = structureMap.get("leaveHospitalDate");
|
|
|
|
+ }
|
|
if (CatalogueUtil.isEmpty(admisTime)) {
|
|
if (CatalogueUtil.isEmpty(admisTime)) {
|
|
status.set("0");
|
|
status.set("0");
|
|
return;
|
|
return;
|
|
@@ -48,7 +51,7 @@ public class THR0125 extends QCCatalogue {
|
|
}
|
|
}
|
|
if (inputInfo.getBeHospitalizedDoc() != null) {
|
|
if (inputInfo.getBeHospitalizedDoc() != null) {
|
|
Map<String, String> beHospitalStructureMap = inputInfo.getBeHospitalizedDoc().getStructureMap();
|
|
Map<String, String> beHospitalStructureMap = inputInfo.getBeHospitalizedDoc().getStructureMap();
|
|
- String admisTime = beHospitalStructureMap.get("入院日期");
|
|
|
|
|
|
+ admisTime = beHospitalStructureMap.get("入院日期");
|
|
if (CatalogueUtil.isEmpty(admisTime)) {
|
|
if (CatalogueUtil.isEmpty(admisTime)) {
|
|
status.set("0");
|
|
status.set("0");
|
|
return;
|
|
return;
|
|
@@ -56,7 +59,7 @@ public class THR0125 extends QCCatalogue {
|
|
if (!CatalogueUtil.compareTime(
|
|
if (!CatalogueUtil.compareTime(
|
|
StringUtil.parseDateTime(admisTime),
|
|
StringUtil.parseDateTime(admisTime),
|
|
StringUtil.parseDateTime(DateUtil.nowString()),
|
|
StringUtil.parseDateTime(DateUtil.nowString()),
|
|
- Long.valueOf(72 * 60))) {//如果入院未超过72小时,规则不判断
|
|
|
|
|
|
+ 72 * 60L)) {//如果入院未超过72小时,规则不判断
|
|
status.set("0");
|
|
status.set("0");
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
@@ -126,12 +129,10 @@ public class THR0125 extends QCCatalogue {
|
|
if (StringUtil.isNotBlank(titlePathography)) {
|
|
if (StringUtil.isNotBlank(titlePathography)) {
|
|
if (titlePathography.contains("主任")) {
|
|
if (titlePathography.contains("主任")) {
|
|
status.set("0");
|
|
status.set("0");
|
|
- return;
|
|
|
|
} else if (StringUtil.isNotBlank(operatorName) && (titlePathography.contains(operatorName) || titlePathography.contains("主刀"))) {
|
|
} else if (StringUtil.isNotBlank(operatorName) && (titlePathography.contains(operatorName) || titlePathography.contains("主刀"))) {
|
|
String operationProfessor = getCourseProfessor(operatorName);
|
|
String operationProfessor = getCourseProfessor(operatorName);
|
|
if (operationProfessor.contains("主任")) {
|
|
if (operationProfessor.contains("主任")) {
|
|
status.set("0");
|
|
status.set("0");
|
|
- return;
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|