|
@@ -32,7 +32,13 @@ public class THR03117 extends QCCatalogue {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
for (DoctorAdviceDoc dad : doctorAdviceDocs) {
|
|
for (DoctorAdviceDoc dad : doctorAdviceDocs) {
|
|
- String name = dad.getStructureMap().get("医嘱项目名称");
|
|
|
|
|
|
+ Map<String, String> dadStructureMap = dad.getStructureMap();
|
|
|
|
+ String state = dadStructureMap.get("医嘱状态判别");
|
|
|
|
+ if(StringUtil.isEmpty(state)){
|
|
|
|
+ continue;
|
|
|
|
+ }
|
|
|
|
+ if(state.equals("在用")) {
|
|
|
|
+ String name = dadStructureMap.get("医嘱项目名称");
|
|
if (name.contains("非手术") || name.contains("手术室") || (name.contains("手术") && name.contains("取消")) || (name.contains("暂停") && name.contains("手术")) || name.contains("静脉穿刺置管术") || name.startsWith("停") || name.contains("前一次")
|
|
if (name.contains("非手术") || name.contains("手术室") || (name.contains("手术") && name.contains("取消")) || (name.contains("暂停") && name.contains("手术")) || name.contains("静脉穿刺置管术") || name.startsWith("停") || name.contains("前一次")
|
|
|| name.contains("特殊病人手术使用一次性卫生材料") || name.contains("人免疫缺陷病毒抗体检测免费")) {
|
|
|| name.contains("特殊病人手术使用一次性卫生材料") || name.contains("人免疫缺陷病毒抗体检测免费")) {
|
|
continue;
|
|
continue;
|
|
@@ -41,24 +47,31 @@ public class THR03117 extends QCCatalogue {
|
|
for (DoctorAdviceDoc doctorAdviceDoc : doctorAdviceDocs) {
|
|
for (DoctorAdviceDoc doctorAdviceDoc : doctorAdviceDocs) {
|
|
String adviceDocName = doctorAdviceDoc.getStructureMap().get("医嘱项目名称");
|
|
String adviceDocName = doctorAdviceDoc.getStructureMap().get("医嘱项目名称");
|
|
if (adviceDocName.contains("病理")) {
|
|
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");
|
|
|
|
|
|
+ status.set("-1");
|
|
|
|
+ //查房记录查找病理报告
|
|
|
|
+ ThreeLevelWardDoc threeLevelWardDoc = inputInfo.getThreeLevelWardDocs().get(0);
|
|
|
|
+ //所有查房记录
|
|
|
|
+ List<ThreeLevelWardDoc> allDoctorWradDocs = threeLevelWardDoc.getAllDoctorWradDocs();
|
|
|
|
+ if(ListUtil.isEmpty(allDoctorWradDocs)){
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ for (ThreeLevelWardDoc allDoctorWradDoc : allDoctorWradDocs) {
|
|
|
|
+ String pathographyStr = allDoctorWradDoc.getStructureMap().get("病情记录");
|
|
|
|
+ if(pathographyStr.contains("病理报告")){
|
|
|
|
+ status.set("0");
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- String pathologyMoneyStr = firstPageRecordDoc.getStructureMap().get("病理诊断费");
|
|
|
|
- String operationMoneyStr = firstPageRecordDoc.getStructureMap().get("手术费");
|
|
|
|
|
|
+ Map<String, String> structureMap = firstPageRecordDoc.getStructureMap();
|
|
|
|
+ String pathologyMoneyStr = structureMap.get("病理诊断费");
|
|
|
|
+ String operationMoneyStr = structureMap.get("手术费");
|
|
if(StringUtil.isEmpty(pathologyMoneyStr)||StringUtil.isEmpty(operationMoneyStr)){
|
|
if(StringUtil.isEmpty(pathologyMoneyStr)||StringUtil.isEmpty(operationMoneyStr)){
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
@@ -68,20 +81,18 @@ public class THR03117 extends QCCatalogue {
|
|
double a = Double.parseDouble(pathologyMoneyStr);
|
|
double a = Double.parseDouble(pathologyMoneyStr);
|
|
double b = Double.parseDouble(operationMoneyStr);
|
|
double b = Double.parseDouble(operationMoneyStr);
|
|
if (a > Content.pathologicalFee && b > 0) {
|
|
if (a > Content.pathologicalFee && b > 0) {
|
|
|
|
+ status.set("-1");
|
|
//查房记录查找病理报告
|
|
//查房记录查找病理报告
|
|
ThreeLevelWardDoc threeLevelWardDoc = inputInfo.getThreeLevelWardDocs().get(0);
|
|
ThreeLevelWardDoc threeLevelWardDoc = inputInfo.getThreeLevelWardDocs().get(0);
|
|
//所有查房记录
|
|
//所有查房记录
|
|
List<ThreeLevelWardDoc> allDoctorWradDocs = threeLevelWardDoc.getAllDoctorWradDocs();
|
|
List<ThreeLevelWardDoc> allDoctorWradDocs = threeLevelWardDoc.getAllDoctorWradDocs();
|
|
if(ListUtil.isEmpty(allDoctorWradDocs)){
|
|
if(ListUtil.isEmpty(allDoctorWradDocs)){
|
|
- status.set("-1");
|
|
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
for (ThreeLevelWardDoc allDoctorWradDoc : allDoctorWradDocs) {
|
|
for (ThreeLevelWardDoc allDoctorWradDoc : allDoctorWradDocs) {
|
|
String pathographyStr = allDoctorWradDoc.getStructureMap().get("病情记录");
|
|
String pathographyStr = allDoctorWradDoc.getStructureMap().get("病情记录");
|
|
if(pathographyStr.contains("病理报告")){
|
|
if(pathographyStr.contains("病理报告")){
|
|
- return;
|
|
|
|
- }else {
|
|
|
|
- status.set("-1");
|
|
|
|
|
|
+ status.set("0");
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
}
|
|
}
|