|
@@ -23,27 +23,28 @@ import java.util.Map;
|
|
public class FIRP03038 extends QCCatalogue {
|
|
public class FIRP03038 extends QCCatalogue {
|
|
@Autowired
|
|
@Autowired
|
|
private SpecialStorageUtil specialStorageUtil;
|
|
private SpecialStorageUtil specialStorageUtil;
|
|
|
|
+
|
|
public void start(InputInfo inputInfo, OutputInfo outputInfo) {
|
|
public void start(InputInfo inputInfo, OutputInfo outputInfo) {
|
|
status.set("0");
|
|
status.set("0");
|
|
if (inputInfo.getFirstPageRecordDoc() == null) {
|
|
if (inputInfo.getFirstPageRecordDoc() == null) {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- Map<String, Map<String,String>> hostpital_standDiag = specialStorageUtil.getJsonStringValue(KernelConstants.HOSPITAL_DIAG_MAP);
|
|
|
|
|
|
+ Map<String, Map<String, String>> hostpital_standDiag = specialStorageUtil.getJsonStringValue(KernelConstants.HOSPITAL_DIAG_MAP);
|
|
if (inputInfo.getFirstPageRecordDoc().getStructureMap() != null) {
|
|
if (inputInfo.getFirstPageRecordDoc().getStructureMap() != null) {
|
|
Map<String, Object> firstpageStructureMap = inputInfo.getFirstPageRecordDoc().getStructureExtMap();
|
|
Map<String, Object> firstpageStructureMap = inputInfo.getFirstPageRecordDoc().getStructureExtMap();
|
|
- JSONArray out_diag = (JSONArray)firstpageStructureMap.get("出院诊断");
|
|
|
|
|
|
+ JSONArray out_diag = (JSONArray) firstpageStructureMap.get("出院诊断");
|
|
if (out_diag.size() > 0) {
|
|
if (out_diag.size() > 0) {
|
|
- for (int i=0;i<out_diag.size();i++) {
|
|
|
|
|
|
+ for (int i = 0; i < out_diag.size(); i++) {
|
|
JSONObject jsonObject = out_diag.getJSONObject(i);
|
|
JSONObject jsonObject = out_diag.getJSONObject(i);
|
|
- String diag_code = (String)jsonObject.get("诊断编码");
|
|
|
|
|
|
+ String diag_code = (String) jsonObject.get("诊断编码");
|
|
String diag_name = (String) jsonObject.get("诊断名称");
|
|
String diag_name = (String) jsonObject.get("诊断名称");
|
|
- if(StringUtils.isNotBlank(diag_code) && hostpital_standDiag.containsKey(diag_name)){
|
|
|
|
- Map<String,String> s = hostpital_standDiag.get(diag_name);
|
|
|
|
- if(s != null){
|
|
|
|
|
|
+ if (StringUtils.isNotBlank(diag_code) && hostpital_standDiag.containsKey(diag_name)) {
|
|
|
|
+ Map<String, String> s = hostpital_standDiag.get(diag_name);
|
|
|
|
+ if (s != null) {
|
|
String icd10 = s.get("icd10");
|
|
String icd10 = s.get("icd10");
|
|
- if(StringUtils.isNotBlank(icd10) && icd10.equals(diag_code)){
|
|
|
|
|
|
+ if (StringUtils.isNotBlank(icd10) && icd10.equals(diag_code)) {
|
|
status.set("0");
|
|
status.set("0");
|
|
- }else {
|
|
|
|
|
|
+ } else {
|
|
status.set("-1");
|
|
status.set("-1");
|
|
return;
|
|
return;
|
|
}
|
|
}
|