|
|
|
@ -66,7 +66,7 @@ public class HIP1009InspectionReportUpdatesHandler implements WebserviceReceiveS
|
|
|
|
|
}
|
|
|
|
|
if (sdRyReportHandledConfig.isFetchBase64(sender)) {
|
|
|
|
|
// 过程很长,保存队列,job慢慢消费
|
|
|
|
|
redisOps.lPush(FetchPacsBase64Job.FETCH_PACS_BASE64_QUEUE_HIP1009,receiveMessage);
|
|
|
|
|
redisOps.lPush(FetchPacsBase64Job.FETCH_PACS_BASE64_QUEUE_HIP1009, receiveMessage);
|
|
|
|
|
return updateSuccess(msgId, sender, receiver);
|
|
|
|
|
}
|
|
|
|
|
reportService.report(reportDto);
|
|
|
|
@ -81,7 +81,6 @@ public class HIP1009InspectionReportUpdatesHandler implements WebserviceReceiveS
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public ReportDto fetchBase64Parse(XmlUtil inspectionInsertXmlUtil) {
|
|
|
|
|
Node senderNode = inspectionInsertXmlUtil.getNode("/POOR_HIP1009/sender/device/id/item/@extension");
|
|
|
|
|
String updateBy = senderNode.getNodeValue();
|
|
|
|
@ -115,8 +114,9 @@ public class HIP1009InspectionReportUpdatesHandler implements WebserviceReceiveS
|
|
|
|
|
ReportDto reportDto = new ReportDto();
|
|
|
|
|
reportDto.setAdmisstimes(admissTimes);
|
|
|
|
|
reportDto.setInpatientNo(inpatientNo);
|
|
|
|
|
// 确定报告唯一 报告单号+申请单号
|
|
|
|
|
reportDto.setSerialnum(examReportSn + requestSn);
|
|
|
|
|
// 确定报告唯一 报告单号+申请单号,如果报告单号带下划线是合并报告,取报告单号下划线前的
|
|
|
|
|
String serialnum = examReportSn + requestSn;
|
|
|
|
|
|
|
|
|
|
reportDto.setFileTitle(reportName);
|
|
|
|
|
reportDto.setVisitSn(visitSn);
|
|
|
|
|
reportDto.setPatientSn(patientSn);
|
|
|
|
@ -129,6 +129,10 @@ public class HIP1009InspectionReportUpdatesHandler implements WebserviceReceiveS
|
|
|
|
|
if (Func.isBlank(base64)) {
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
if (examReportSn.contains("_")) {
|
|
|
|
|
serialnum = split[0];
|
|
|
|
|
}
|
|
|
|
|
reportDto.setSerialnum(serialnum);
|
|
|
|
|
String url = reportJob.saveBase64(base64);
|
|
|
|
|
reportDto.setDownUrl(url);
|
|
|
|
|
reportDto.setDowntype(5);
|
|
|
|
@ -161,6 +165,11 @@ public class HIP1009InspectionReportUpdatesHandler implements WebserviceReceiveS
|
|
|
|
|
Node eafNoNode = inspectionUpdateXmlUtil.getNode("/POOR_HIP1009/controlActProcess/subject/recordTarget/patientRole/id[@root='2.16.156.10011.1.24']/@extension");
|
|
|
|
|
String eafNo = eafNoNode.getNodeValue();
|
|
|
|
|
String serialnum = reportFlag + "@" + eafNo;
|
|
|
|
|
// 如果报告单号带下划线是合并报告,取报告单号下划线前的
|
|
|
|
|
if (reportFlag.contains("_")) {
|
|
|
|
|
String[] split = reportFlag.split("_");
|
|
|
|
|
serialnum = split[0];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Node assortIdNode = inspectionUpdateXmlUtil.getNode("/POOR_HIP1009/controlActProcess/subject/component/structuredBody/component[@displayName='检查报告']/section/entry[@displayName='检查类型']/observation/code/@displayName");
|
|
|
|
|
// String assortId = assortIdNode.getNodeValue();
|
|
|
|
|