|
|
@ -289,6 +289,12 @@ public class SdryReportServerImpl implements IReportServer {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public ReportDto getReportDtoByInspectionInsert(XmlUtil inspectionInsertXmlUtil) {
|
|
|
|
public ReportDto getReportDtoByInspectionInsert(XmlUtil inspectionInsertXmlUtil) {
|
|
|
|
|
|
|
|
Node senderNode = inspectionInsertXmlUtil.getNode("/POOR_HIP1008/sender/device/id/item/@extension");
|
|
|
|
|
|
|
|
String sender = senderNode.getNodeValue();
|
|
|
|
|
|
|
|
String zdAssortId = ZdAssortConfig.getZdAssortId(sender);
|
|
|
|
|
|
|
|
if(Func.isBlank(zdAssortId)){
|
|
|
|
|
|
|
|
zdAssortId=ZdAssortConfig.getOtherAssortId();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Node inpatientNoNode = inspectionInsertXmlUtil.getNode("/POOR_HIP1008/controlActProcess/subject/recordTarget/patientRole/id[@root='2.16.156.10011.1.12']/@extension");
|
|
|
|
Node inpatientNoNode = inspectionInsertXmlUtil.getNode("/POOR_HIP1008/controlActProcess/subject/recordTarget/patientRole/id[@root='2.16.156.10011.1.12']/@extension");
|
|
|
|
String inpatientNo = inpatientNoNode.getNodeValue();
|
|
|
|
String inpatientNo = inpatientNoNode.getNodeValue();
|
|
|
@ -304,11 +310,11 @@ public class SdryReportServerImpl implements IReportServer {
|
|
|
|
String eafNo = eafNoNode.getNodeValue();
|
|
|
|
String eafNo = eafNoNode.getNodeValue();
|
|
|
|
String serialnum = reportFlag + "@" + eafNo;
|
|
|
|
String serialnum = reportFlag + "@" + eafNo;
|
|
|
|
|
|
|
|
|
|
|
|
Node assortIdNode = inspectionInsertXmlUtil.getNode("/POOR_HIP1008/controlActProcess/subject/component/structuredBody/component[@displayName='检查报告']/section/entry[@displayName='检查类型']/observation/code/@displayName");
|
|
|
|
// Node assortIdNode = inspectionInsertXmlUtil.getNode("/POOR_HIP1008/controlActProcess/subject/component/structuredBody/component[@displayName='检查报告']/section/entry[@displayName='检查类型']/observation/code/@displayName");
|
|
|
|
String assortId = assortIdNode.getNodeValue();
|
|
|
|
// String assortId = assortIdNode.getNodeValue();
|
|
|
|
|
|
|
|
|
|
|
|
Node sysFlagNode = inspectionInsertXmlUtil.getNode("/POOR_HIP1008/controlActProcess/subject/component/structuredBody/component[@displayName='检查报告']/section/entry[@displayName='检查类型']/observation/code/@displayName");
|
|
|
|
// Node sysFlagNode = inspectionInsertXmlUtil.getNode("/POOR_HIP1008/controlActProcess/subject/component/structuredBody/component[@displayName='检查报告']/section/entry[@displayName='检查类型']/observation/code/@displayName");
|
|
|
|
String sysFlag = sysFlagNode.getNodeValue();
|
|
|
|
// String sysFlag = sysFlagNode.getNodeValue();
|
|
|
|
|
|
|
|
|
|
|
|
Node fileTitleNode = inspectionInsertXmlUtil.getNode("/POOR_HIP1008/controlActProcess/subject/component/structuredBody/component[@displayName='检查报告']/section/entry[@displayName='检查报告类型']/observation/code/@displayName");
|
|
|
|
Node fileTitleNode = inspectionInsertXmlUtil.getNode("/POOR_HIP1008/controlActProcess/subject/component/structuredBody/component[@displayName='检查报告']/section/entry[@displayName='检查报告类型']/observation/code/@displayName");
|
|
|
|
String fileTitle = fileTitleNode.getNodeValue();
|
|
|
|
String fileTitle = fileTitleNode.getNodeValue();
|
|
|
@ -317,19 +323,27 @@ public class SdryReportServerImpl implements IReportServer {
|
|
|
|
String downUrl = downUrlNode.getTextContent();
|
|
|
|
String downUrl = downUrlNode.getTextContent();
|
|
|
|
|
|
|
|
|
|
|
|
ReportDto reportDto = new ReportDto();
|
|
|
|
ReportDto reportDto = new ReportDto();
|
|
|
|
|
|
|
|
reportDto.setReportSn(reportFlag);
|
|
|
|
reportDto.setAdmisstimes(admissTimes);
|
|
|
|
reportDto.setAdmisstimes(admissTimes);
|
|
|
|
reportDto.setInpatientNo(inpatientNo);
|
|
|
|
reportDto.setInpatientNo(inpatientNo);
|
|
|
|
reportDto.setSerialnum(serialnum);
|
|
|
|
reportDto.setSerialnum(serialnum);
|
|
|
|
reportDto.setFileTitle(fileTitle);
|
|
|
|
reportDto.setFileTitle(fileTitle);
|
|
|
|
reportDto.setDownUrl(downUrl);
|
|
|
|
reportDto.setDownUrl(downUrl);
|
|
|
|
reportDto.setAssortId(assortId);
|
|
|
|
reportDto.setAssortId(zdAssortId);
|
|
|
|
reportDto.setSysFlag(sysFlag);
|
|
|
|
reportDto.setSysFlag(sender);
|
|
|
|
reportDto.setFileSource("1");
|
|
|
|
reportDto.setFileSource("1");
|
|
|
|
reportDto.setFilestoragetype("1");
|
|
|
|
reportDto.setFilestoragetype("1");
|
|
|
|
return reportDto;
|
|
|
|
return reportDto;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public ReportDto getReportDtoByInspectionUpdate(XmlUtil inspectionUpdateXmlUtil) {
|
|
|
|
public ReportDto getReportDtoByInspectionUpdate(XmlUtil inspectionUpdateXmlUtil) {
|
|
|
|
|
|
|
|
Node senderNode = inspectionUpdateXmlUtil.getNode("/POOR_HIP1009/sender/device/id/item/@extension");
|
|
|
|
|
|
|
|
String sender = senderNode.getNodeValue();
|
|
|
|
|
|
|
|
String zdAssortId = ZdAssortConfig.getZdAssortId(sender);
|
|
|
|
|
|
|
|
if(Func.isBlank(zdAssortId)){
|
|
|
|
|
|
|
|
zdAssortId=ZdAssortConfig.getOtherAssortId();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Node inpatientNoNode = inspectionUpdateXmlUtil.getNode("/POOR_HIP1009/controlActProcess/subject/recordTarget/patientRole/id[@root='2.16.156.10011.1.12']/@extension");
|
|
|
|
Node inpatientNoNode = inspectionUpdateXmlUtil.getNode("/POOR_HIP1009/controlActProcess/subject/recordTarget/patientRole/id[@root='2.16.156.10011.1.12']/@extension");
|
|
|
|
String inpatientNo = inpatientNoNode.getNodeValue();
|
|
|
|
String inpatientNo = inpatientNoNode.getNodeValue();
|
|
|
|
|
|
|
|
|
|
|
@ -344,11 +358,11 @@ public class SdryReportServerImpl implements IReportServer {
|
|
|
|
String eafNo = eafNoNode.getNodeValue();
|
|
|
|
String eafNo = eafNoNode.getNodeValue();
|
|
|
|
String serialnum = reportFlag + "@" + eafNo;
|
|
|
|
String serialnum = reportFlag + "@" + eafNo;
|
|
|
|
|
|
|
|
|
|
|
|
Node assortIdNode = inspectionUpdateXmlUtil.getNode("/POOR_HIP1009/controlActProcess/subject/component/structuredBody/component[@displayName='检查报告']/section/entry[@displayName='检查类型']/observation/code/@displayName");
|
|
|
|
// Node assortIdNode = inspectionUpdateXmlUtil.getNode("/POOR_HIP1009/controlActProcess/subject/component/structuredBody/component[@displayName='检查报告']/section/entry[@displayName='检查类型']/observation/code/@displayName");
|
|
|
|
String assortId = assortIdNode.getNodeValue();
|
|
|
|
// String assortId = assortIdNode.getNodeValue();
|
|
|
|
|
|
|
|
//
|
|
|
|
Node sysFlagNode = inspectionUpdateXmlUtil.getNode("/POOR_HIP1009/controlActProcess/subject/component/structuredBody/component[@displayName='检查报告']/section/entry[@displayName='检查类型']/observation/code/@displayName");
|
|
|
|
// Node sysFlagNode = inspectionUpdateXmlUtil.getNode("/POOR_HIP1009/controlActProcess/subject/component/structuredBody/component[@displayName='检查报告']/section/entry[@displayName='检查类型']/observation/code/@displayName");
|
|
|
|
String sysFlag = sysFlagNode.getNodeValue();
|
|
|
|
// String sysFlag = sysFlagNode.getNodeValue();
|
|
|
|
|
|
|
|
|
|
|
|
Node fileTitleNode = inspectionUpdateXmlUtil.getNode("/POOR_HIP1009/controlActProcess/subject/component/structuredBody/component[@displayName='检查报告']/section/entry[@displayName='检查报告类型']/observation/code/@displayName");
|
|
|
|
Node fileTitleNode = inspectionUpdateXmlUtil.getNode("/POOR_HIP1009/controlActProcess/subject/component/structuredBody/component[@displayName='检查报告']/section/entry[@displayName='检查报告类型']/observation/code/@displayName");
|
|
|
|
String fileTitle = fileTitleNode.getNodeValue();
|
|
|
|
String fileTitle = fileTitleNode.getNodeValue();
|
|
|
@ -358,13 +372,14 @@ public class SdryReportServerImpl implements IReportServer {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ReportDto reportDto = new ReportDto();
|
|
|
|
ReportDto reportDto = new ReportDto();
|
|
|
|
|
|
|
|
reportDto.setReportSn(reportFlag);
|
|
|
|
reportDto.setAdmisstimes(admissTimes);
|
|
|
|
reportDto.setAdmisstimes(admissTimes);
|
|
|
|
reportDto.setInpatientNo(inpatientNo);
|
|
|
|
reportDto.setInpatientNo(inpatientNo);
|
|
|
|
reportDto.setSerialnum(serialnum);
|
|
|
|
reportDto.setSerialnum(serialnum);
|
|
|
|
reportDto.setFileTitle(fileTitle);
|
|
|
|
reportDto.setFileTitle(fileTitle);
|
|
|
|
reportDto.setDownUrl(downUrl);
|
|
|
|
reportDto.setDownUrl(downUrl);
|
|
|
|
reportDto.setAssortId(assortId);
|
|
|
|
reportDto.setAssortId(zdAssortId);
|
|
|
|
reportDto.setSysFlag(sysFlag);
|
|
|
|
reportDto.setSysFlag(sender);
|
|
|
|
reportDto.setFileSource("1");
|
|
|
|
reportDto.setFileSource("1");
|
|
|
|
reportDto.setFilestoragetype("1");
|
|
|
|
reportDto.setFilestoragetype("1");
|
|
|
|
return reportDto;
|
|
|
|
return reportDto;
|
|
|
|