|
@@ -11,6 +11,7 @@ import com.lantone.qc.pub.model.label.DiagLabel;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.stereotype.Component;
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
|
|
+import java.util.ArrayList;
|
|
import java.util.List;
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
import java.util.Map;
|
|
|
|
|
|
@@ -25,7 +26,11 @@ public class FIRC0096 extends QCCatalogue {
|
|
@Autowired
|
|
@Autowired
|
|
private RedisUtil redisUtil;
|
|
private RedisUtil redisUtil;
|
|
public void start(InputInfo inputInfo, OutputInfo outputInfo) {
|
|
public void start(InputInfo inputInfo, OutputInfo outputInfo) {
|
|
- status.set("0");
|
|
|
|
|
|
+ if(inputInfo.getFirstCourseRecordDoc() == null){
|
|
|
|
+ status.set("0");
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ List<String> diags_out = new ArrayList<>();
|
|
Map<String, String> hostpital_standDiag = redisUtil.getJsonStringValue(KernelConstants.HOSPITAL_DIAG_MAP);
|
|
Map<String, String> hostpital_standDiag = redisUtil.getJsonStringValue(KernelConstants.HOSPITAL_DIAG_MAP);
|
|
FirstCourseRecordDoc firstCourseRecordDoc = inputInfo.getFirstCourseRecordDoc();
|
|
FirstCourseRecordDoc firstCourseRecordDoc = inputInfo.getFirstCourseRecordDoc();
|
|
if(firstCourseRecordDoc != null){
|
|
if(firstCourseRecordDoc != null){
|
|
@@ -35,12 +40,19 @@ public class FIRC0096 extends QCCatalogue {
|
|
if(diags != null && diags.size()>0){
|
|
if(diags != null && diags.size()>0){
|
|
for (Diag diag:diags
|
|
for (Diag diag:diags
|
|
) {
|
|
) {
|
|
- String hospitalDiagName = diag.getHospitalDiagName();
|
|
|
|
|
|
+ String hospitalDiagName = diag.getHospitalDiagName().replace("待查","");
|
|
if(!hostpital_standDiag.containsKey(hospitalDiagName)){
|
|
if(!hostpital_standDiag.containsKey(hospitalDiagName)){
|
|
- status.set("-1");
|
|
|
|
|
|
+ diags_out.add(hospitalDiagName);
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ if(diags_out.size()>0){
|
|
|
|
+ info.set(diags_out.toString().replace("[","").replace("]",""));
|
|
|
|
+ }else {
|
|
|
|
+ status.set("0");
|
|
|
|
+ }
|
|
|
|
+ }else {
|
|
|
|
+ status.set("0");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|