|
|
@ -54,9 +54,9 @@ public class ShunDePeopleServiceImpl implements ShunDePeopleService {
|
|
|
|
String respBody = this.sendPost(url, requestParam);
|
|
|
|
String respBody = this.sendPost(url, requestParam);
|
|
|
|
log.info("查询检查报告请求成功,响应参数:{}", respBody);
|
|
|
|
log.info("查询检查报告请求成功,响应参数:{}", respBody);
|
|
|
|
TimeUnit.MILLISECONDS.sleep(sdRyReportQueryConfig.getReportQueryInspectInterval());
|
|
|
|
TimeUnit.MILLISECONDS.sleep(sdRyReportQueryConfig.getReportQueryInspectInterval());
|
|
|
|
return respBody;
|
|
|
|
return respBody;
|
|
|
|
} catch (Exception ex) {
|
|
|
|
} catch (Exception ex) {
|
|
|
|
log.error("查询检查报告失败:"+ex.getMessage(), ex);
|
|
|
|
log.error("查询检查报告失败:" + ex.getMessage(), ex);
|
|
|
|
return "";
|
|
|
|
return "";
|
|
|
|
} finally {
|
|
|
|
} finally {
|
|
|
|
INSPECT_REPORT_LOCK.unlock();
|
|
|
|
INSPECT_REPORT_LOCK.unlock();
|
|
|
@ -73,9 +73,9 @@ public class ShunDePeopleServiceImpl implements ShunDePeopleService {
|
|
|
|
String respBody = this.sendPost(url, requestParam);
|
|
|
|
String respBody = this.sendPost(url, requestParam);
|
|
|
|
log.info("查询LIS检验报告请求成功,响应参数:{}", respBody);
|
|
|
|
log.info("查询LIS检验报告请求成功,响应参数:{}", respBody);
|
|
|
|
TimeUnit.MILLISECONDS.sleep(sdRyReportQueryConfig.getReportQueryLisInterval());
|
|
|
|
TimeUnit.MILLISECONDS.sleep(sdRyReportQueryConfig.getReportQueryLisInterval());
|
|
|
|
return respBody;
|
|
|
|
return respBody;
|
|
|
|
} catch (Exception ex) {
|
|
|
|
} catch (Exception ex) {
|
|
|
|
log.error("查询LIS检验报告失败:"+ex.getMessage(), ex);
|
|
|
|
log.error("查询LIS检验报告失败:" + ex.getMessage(), ex);
|
|
|
|
return "";
|
|
|
|
return "";
|
|
|
|
} finally {
|
|
|
|
} finally {
|
|
|
|
LIS_REPORT_LOCK.unlock();
|
|
|
|
LIS_REPORT_LOCK.unlock();
|
|
|
@ -83,17 +83,36 @@ public class ShunDePeopleServiceImpl implements ShunDePeopleService {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public List<String> getSdRyReportJxIds(String sdRyIndex) {
|
|
|
|
public List<String> getSdRyMzReportJxIds(String sdRyIndex) {
|
|
|
|
List<String> indexes = new ArrayList<>();
|
|
|
|
List<String> indexes = new ArrayList<>();
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
String zyParam = organizationQuerySdRyReportIndexParam(sdRyIndex, 3);
|
|
|
|
|
|
|
|
String mzParam = organizationQuerySdRyReportIndexParam(sdRyIndex, 1);
|
|
|
|
String mzParam = organizationQuerySdRyReportIndexParam(sdRyIndex, 1);
|
|
|
|
String[] zyParams = {"HIP1179", zyParam};
|
|
|
|
|
|
|
|
String[] mzParams = {"HIP1179", mzParam};
|
|
|
|
String[] mzParams = {"HIP1179", mzParam};
|
|
|
|
List<String> zyIndex = getIndex(zyParams);
|
|
|
|
return getSdRyReportJxIds(mzParams);
|
|
|
|
|
|
|
|
} catch (Exception ex) {
|
|
|
|
|
|
|
|
log.error(ex.getMessage(), ex);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return indexes;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
|
|
|
public List<String> getSdRyZyReportJxIds(String sdRyIndex) {
|
|
|
|
|
|
|
|
List<String> indexes = new ArrayList<>();
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
|
|
|
String zyParam = organizationQuerySdRyReportIndexParam(sdRyIndex, 3);
|
|
|
|
|
|
|
|
String[] zyParams = {"HIP1179", zyParam};
|
|
|
|
|
|
|
|
return getSdRyReportJxIds(zyParams);
|
|
|
|
|
|
|
|
} catch (Exception ex) {
|
|
|
|
|
|
|
|
log.error(ex.getMessage(), ex);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return indexes;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private List<String> getSdRyReportJxIds(String[] qrIndexParams) {
|
|
|
|
|
|
|
|
List<String> indexes = new ArrayList<>();
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
|
|
|
List<String> zyIndex = getIndex(qrIndexParams);
|
|
|
|
indexes.addAll(zyIndex);
|
|
|
|
indexes.addAll(zyIndex);
|
|
|
|
List<String> mzIndex = getIndex(mzParams);
|
|
|
|
|
|
|
|
indexes.addAll(mzIndex);
|
|
|
|
|
|
|
|
} catch (Exception ex) {
|
|
|
|
} catch (Exception ex) {
|
|
|
|
log.error(ex.getMessage(), ex);
|
|
|
|
log.error(ex.getMessage(), ex);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -140,13 +159,14 @@ public class ShunDePeopleServiceImpl implements ShunDePeopleService {
|
|
|
|
+ "&creationTime=" + Func.format(new Date(), DateUtil.PATTERN_DATETIME_MINI);
|
|
|
|
+ "&creationTime=" + Func.format(new Date(), DateUtil.PATTERN_DATETIME_MINI);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private String organizationQuerySdRyInspectReportParam(SdJxReportDto dto) {
|
|
|
|
private String organizationQuerySdRyInspectReportParam(SdJxReportDto dto) {
|
|
|
|
String patientId = dto.getPatientId();
|
|
|
|
String patientId = dto.getPatientId();
|
|
|
|
if("1".equals(dto.getPatentTypeCode())){
|
|
|
|
if ("1".equals(dto.getPatentTypeCode())) {
|
|
|
|
patientId="m"+patientId;
|
|
|
|
patientId = "m" + patientId;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if("3".equals(dto.getPatentTypeCode())){
|
|
|
|
if ("3".equals(dto.getPatentTypeCode())) {
|
|
|
|
patientId="z"+patientId;
|
|
|
|
patientId = "z" + patientId;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
HashMap<Object, Object> map = new HashMap<>(7);
|
|
|
|
HashMap<Object, Object> map = new HashMap<>(7);
|
|
|
|
map.put("isPage", dto.isPage());
|
|
|
|
map.put("isPage", dto.isPage());
|
|
|
@ -170,11 +190,11 @@ public class ShunDePeopleServiceImpl implements ShunDePeopleService {
|
|
|
|
|
|
|
|
|
|
|
|
private String organizationQuerySdRyLisReportParam(SdJxReportDto dto) {
|
|
|
|
private String organizationQuerySdRyLisReportParam(SdJxReportDto dto) {
|
|
|
|
String patientId = dto.getPatientId();
|
|
|
|
String patientId = dto.getPatientId();
|
|
|
|
if("1".equals(dto.getPatentTypeCode())){
|
|
|
|
if ("1".equals(dto.getPatentTypeCode())) {
|
|
|
|
patientId="m"+patientId;
|
|
|
|
patientId = "m" + patientId;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if("3".equals(dto.getPatentTypeCode())){
|
|
|
|
if ("3".equals(dto.getPatentTypeCode())) {
|
|
|
|
patientId="z"+patientId;
|
|
|
|
patientId = "z" + patientId;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
HashMap<Object, Object> map = new HashMap<>(7);
|
|
|
|
HashMap<Object, Object> map = new HashMap<>(7);
|
|
|
|
map.put("isPage", dto.isPage());
|
|
|
|
map.put("isPage", dto.isPage());
|
|
|
@ -189,8 +209,6 @@ public class ShunDePeopleServiceImpl implements ShunDePeopleService {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private String getPdfReportBase64InputString(String examNo, String reportNo, SdPacsServerConfig config) {
|
|
|
|
private String getPdfReportBase64InputString(String examNo, String reportNo, SdPacsServerConfig config) {
|
|
|
|
return "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" +
|
|
|
|
return "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" +
|
|
|
|
"<!-- PDF报告请求消息 -->\n" +
|
|
|
|
"<!-- PDF报告请求消息 -->\n" +
|
|
|
|