|
@@ -6,6 +6,7 @@ import com.lantone.qc.pub.Content;
|
|
|
import com.lantone.qc.pub.model.InputInfo;
|
|
|
import com.lantone.qc.pub.model.OutputInfo;
|
|
|
import com.lantone.qc.pub.model.doc.ThreeLevelWardDoc;
|
|
|
+import com.lantone.qc.pub.util.ListUtil;
|
|
|
import com.lantone.qc.pub.util.StringUtil;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
@@ -14,7 +15,7 @@ import java.util.Map;
|
|
|
|
|
|
/**
|
|
|
* @ClassName : THR0140
|
|
|
- * @Description : 危重患者、疑难患者、抢救患者查房记录无主任医师/科主任签名
|
|
|
+ * @Description : 查房记录无医师签名
|
|
|
* @Author : 胡敬
|
|
|
* @Date: 2020-03-19 19:20
|
|
|
*/
|
|
@@ -22,15 +23,24 @@ import java.util.Map;
|
|
|
public class THR0140 extends QCCatalogue {
|
|
|
public void start(InputInfo inputInfo, OutputInfo outputInfo) {
|
|
|
status.set("0");
|
|
|
- if (inputInfo.getThreeLevelWardDocs().size() == 0) {
|
|
|
+ List<ThreeLevelWardDoc> threeLevelWardDocs = inputInfo.getThreeLevelWardDocs();
|
|
|
+ if (ListUtil.isEmpty(threeLevelWardDocs)) {
|
|
|
return;
|
|
|
}
|
|
|
- if (inputInfo.getDifficultCaseDiscussDocs().size() > 0) {
|
|
|
- processSign(inputInfo, "疑难患者");
|
|
|
- }
|
|
|
- if (inputInfo.getRescueDocs().size() > 0) {
|
|
|
- processSign(inputInfo, "抢救患者");
|
|
|
+ for (ThreeLevelWardDoc threeLevelWardDoc : threeLevelWardDocs) {
|
|
|
+ Map<String, String> threeLevelWardDocStructureMap = threeLevelWardDoc.getStructureMap();
|
|
|
+ String recordDoctor = threeLevelWardDocStructureMap.get("记录医师");
|
|
|
+ if (CatalogueUtil.isEmpty(recordDoctor)) {
|
|
|
+ status.set("-1");
|
|
|
+ break;
|
|
|
+ }
|
|
|
}
|
|
|
+// if (inputInfo.getDifficultCaseDiscussDocs().size() > 0) {
|
|
|
+// processSign(inputInfo, "疑难患者");
|
|
|
+// }
|
|
|
+// if (inputInfo.getRescueDocs().size() > 0) {
|
|
|
+// processSign(inputInfo, "抢救患者");
|
|
|
+// }
|
|
|
}
|
|
|
|
|
|
private void processSign(InputInfo inputInfo, String message) {
|