|
@@ -40,24 +40,30 @@ public class MEDI03116 extends QCCatalogue {
|
|
|
return;
|
|
|
}
|
|
|
for (DoctorAdviceDoc dad : doctorAdviceDocs) {
|
|
|
- String name = dad.getStructureMap().get("医嘱项目名称");
|
|
|
- if (name.contains("非手术") || name.contains("手术室") || (name.contains("手术") && name.contains("取消")) || (name.contains("暂停") && name.contains("手术")) || name.contains("静脉穿刺置管术") || name.startsWith("停") || name.contains("前一次")
|
|
|
- || name.contains("特殊病人手术使用一次性卫生材料") || name.contains("人免疫缺陷病毒抗体检测免费")) {
|
|
|
+ Map<String, String> structureMap = dad.getStructureMap();
|
|
|
+ String state = structureMap.get("医嘱状态判别");
|
|
|
+ if(StringUtil.isEmpty(state)){
|
|
|
continue;
|
|
|
}
|
|
|
- if (name.contains("手术")) {
|
|
|
- for (DoctorAdviceDoc doctorAdviceDoc : doctorAdviceDocs) {
|
|
|
- String adviceDocName = doctorAdviceDoc.getStructureMap().get("医嘱项目名称");
|
|
|
- if (adviceDocName.contains("病理")) {
|
|
|
- List<PacsDoc> pacsDocs = inputInfo.getPacsDocs();
|
|
|
- for (PacsDoc pacsDoc : pacsDocs) {
|
|
|
- Map<String, String> pacsDocStructureMap = pacsDoc.getStructureMap();
|
|
|
- String pacsDocStr = pacsDocStructureMap.get("报告名称");
|
|
|
- if (pacsDocStr.contains("病理")) {
|
|
|
- return;
|
|
|
- } else {
|
|
|
- status.set("-1");
|
|
|
- return;
|
|
|
+ if(state.equals("在用")) {
|
|
|
+ String name = structureMap.get("医嘱项目名称");
|
|
|
+ if (name.contains("非手术") || name.contains("手术室") || (name.contains("手术") && name.contains("取消")) || (name.contains("暂停") && name.contains("手术")) || name.contains("静脉穿刺置管术") || name.startsWith("停") || name.contains("前一次")
|
|
|
+ || name.contains("特殊病人手术使用一次性卫生材料") || name.contains("人免疫缺陷病毒抗体检测免费")) {
|
|
|
+ continue;
|
|
|
+ }
|
|
|
+ if (name.contains("手术")) {
|
|
|
+ for (DoctorAdviceDoc doctorAdviceDoc : doctorAdviceDocs) {
|
|
|
+ String adviceDocName = doctorAdviceDoc.getStructureMap().get("医嘱项目名称");
|
|
|
+ if (adviceDocName.contains("病理")) {
|
|
|
+ status.set("-1");
|
|
|
+ List<PacsDoc> pacsDocs = inputInfo.getPacsDocs();
|
|
|
+ for (PacsDoc pacsDoc : pacsDocs) {
|
|
|
+ Map<String, String> pacsDocStructureMap = pacsDoc.getStructureMap();
|
|
|
+ String pacsDocStr = pacsDocStructureMap.get("报告名称");
|
|
|
+ if (pacsDocStr.contains("病理")) {
|
|
|
+ status.set("0");
|
|
|
+ return;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -65,8 +71,9 @@ public class MEDI03116 extends QCCatalogue {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- String pathologyMoneyStr = firstPageRecordDoc.getStructureMap().get("病理诊断费");
|
|
|
- String operationMoneyStr = firstPageRecordDoc.getStructureMap().get("手术费");
|
|
|
+ Map<String, String> firstPageRecordDocStructureMap = firstPageRecordDoc.getStructureMap();
|
|
|
+ String pathologyMoneyStr = firstPageRecordDocStructureMap.get("病理诊断费");
|
|
|
+ String operationMoneyStr = firstPageRecordDocStructureMap.get("手术费");
|
|
|
if(StringUtil.isEmpty(pathologyMoneyStr)||StringUtil.isEmpty(operationMoneyStr)){
|
|
|
return;
|
|
|
}
|
|
@@ -76,14 +83,13 @@ public class MEDI03116 extends QCCatalogue {
|
|
|
double a = Double.parseDouble(pathologyMoneyStr);
|
|
|
double b = Double.parseDouble(operationMoneyStr);
|
|
|
if (a > Content.pathologicalFee && b > 0) {
|
|
|
+ status.set("-1");
|
|
|
List<PacsDoc> pacsDocs = inputInfo.getPacsDocs();
|
|
|
for (PacsDoc pacsDoc : pacsDocs) {
|
|
|
Map<String, String> pacsDocStructureMap = pacsDoc.getStructureMap();
|
|
|
String pacsDocStr = pacsDocStructureMap.get("报告名称");
|
|
|
if (pacsDocStr.contains("病理")) {
|
|
|
- return;
|
|
|
- } else {
|
|
|
- status.set("-1");
|
|
|
+ status.set("0");
|
|
|
return;
|
|
|
}
|
|
|
|