|
@@ -0,0 +1,61 @@
|
|
|
+package com.lantone.qc.kernel.catalogue.firstcourserecord;
|
|
|
+
|
|
|
+import com.lantone.qc.kernel.catalogue.QCCatalogue;
|
|
|
+import com.lantone.qc.kernel.util.CatalogueUtil;
|
|
|
+import com.lantone.qc.pub.model.InputInfo;
|
|
|
+import com.lantone.qc.pub.model.OutputInfo;
|
|
|
+import com.lantone.qc.pub.model.doc.FirstCourseRecordDoc;
|
|
|
+import org.apache.commons.lang3.StringUtils;
|
|
|
+import org.springframework.stereotype.Component;
|
|
|
+
|
|
|
+import java.util.Map;
|
|
|
+
|
|
|
+/**
|
|
|
+ * @ClassName : FIRC0084
|
|
|
+ * @Description : 首程记录内容不可写同上
|
|
|
+ * @Author : 楼辉荣
|
|
|
+ * @Date: 2020-03-06 17:28
|
|
|
+ */
|
|
|
+@Component
|
|
|
+public class FIRC0084 extends QCCatalogue {
|
|
|
+ public void start(InputInfo inputInfo, OutputInfo outputInfo) {
|
|
|
+ status = "0";
|
|
|
+ FirstCourseRecordDoc firstCourseRecordDoc = inputInfo.getFirstCourseRecordDoc();
|
|
|
+ if(firstCourseRecordDoc != null){
|
|
|
+ Map<String, String> courseRecordDocStructureMap = firstCourseRecordDoc.getStructureMap();
|
|
|
+ if(courseRecordDocStructureMap != null){
|
|
|
+ String identify_diag = courseRecordDocStructureMap.get("鉴别诊断");
|
|
|
+ String characteristic = courseRecordDocStructureMap.get("病例特点");
|
|
|
+ String initDiags = courseRecordDocStructureMap.get("初步诊断");
|
|
|
+ String condition = courseRecordDocStructureMap.get("诊断依据");
|
|
|
+ String pacs = courseRecordDocStructureMap.get("辅助检查");
|
|
|
+ String tretment_plan = courseRecordDocStructureMap.get("诊疗计划");
|
|
|
+ if(StringUtils.isNotEmpty(tretment_plan)){
|
|
|
+ if(CatalogueUtil.removeSpecialChar(tretment_plan).equals("同上")){
|
|
|
+ status = "-1";
|
|
|
+ }
|
|
|
+ }else if(StringUtils.isNotEmpty(identify_diag)){
|
|
|
+ if(CatalogueUtil.removeSpecialChar(identify_diag).equals("同上")){
|
|
|
+ status = "-1";
|
|
|
+ }
|
|
|
+ }else if(StringUtils.isNotEmpty(characteristic)){
|
|
|
+ if(CatalogueUtil.removeSpecialChar(characteristic).equals("同上")){
|
|
|
+ status = "-1";
|
|
|
+ }
|
|
|
+ }else if(StringUtils.isNotEmpty(initDiags)){
|
|
|
+ if(CatalogueUtil.removeSpecialChar(initDiags).equals("同上")){
|
|
|
+ status = "-1";
|
|
|
+ }
|
|
|
+ }else if(StringUtils.isNotEmpty(condition)){
|
|
|
+ if(CatalogueUtil.removeSpecialChar(condition).equals("同上")){
|
|
|
+ status = "-1";
|
|
|
+ }
|
|
|
+ }else if(StringUtils.isNotEmpty(pacs)){
|
|
|
+ if(CatalogueUtil.removeSpecialChar(pacs).equals("同上")){
|
|
|
+ status = "-1";
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|