|
|
|
@ -300,78 +300,70 @@ public class SdryReportServerImpl implements IReportServer {
|
|
|
|
|
|
|
|
|
|
private String uploadFailed(String msgId, String sender, String receiver, String message) {
|
|
|
|
|
String createTime = Func.format(new Date(), DateUtil.PATTERN_DATETIME_MINI);
|
|
|
|
|
return "<MCCI_IN000002UV01 ITSVersion=\"XML_1.0\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:schemaLocation=\"urn:hl7-org:v3 ../multicacheschemas/MCCI_IN000002UV01.xsd\" xmlns=\"urn:hl7-org:v3\">\n" +
|
|
|
|
|
"\t<id root=\"2.16.156.10011.0\" extension=\""+IdUtil.standardUUID()+"\"/>\n" +
|
|
|
|
|
"\t<creationTime value=\""+createTime+"\"/>\n" +
|
|
|
|
|
"\t<interactionId root=\"2.16.840.1.113883.1.6\" extension=\"MCCI_IN000002UV01\" displayable=\"true\"/>\n" +
|
|
|
|
|
"\t<processingCode code=\"P\"/>\n" +
|
|
|
|
|
"\t<processingModeCode/>\n" +
|
|
|
|
|
"\t<acceptAckCode code=\"AL\"/>\n" +
|
|
|
|
|
"\t<receiver typeCode=\"RCV\">\n" +
|
|
|
|
|
"\t\t<device classCode=\"DEV\" determinerCode=\"INSTANCE\">\n" +
|
|
|
|
|
"\t\t\t<id>\n" +
|
|
|
|
|
"\t\t\t\t<item root=\"2.16.156.10011.0.1.1\" extension=\""+receiver+"\"/>\n" +
|
|
|
|
|
"\t\t\t</id>\n" +
|
|
|
|
|
"\t\t</device>\n" +
|
|
|
|
|
"\t</receiver>\n" +
|
|
|
|
|
"\t<sender typeCode=\"SND\">\n" +
|
|
|
|
|
"\t\t<device classCode=\"DEV\" determinerCode=\"INSTANCE\">\n" +
|
|
|
|
|
"\t\t\t<id>\n" +
|
|
|
|
|
"\t\t\t\t<item root=\"2.16.156.10011.0.1.2\" extension=\""+sender+"\"/>\n" +
|
|
|
|
|
"\t\t\t</id>\n" +
|
|
|
|
|
"\t\t</device>\n" +
|
|
|
|
|
"\t</sender>\n" +
|
|
|
|
|
"\t<acknowledgement typeCode=\"AE\">\n" +
|
|
|
|
|
"\t\t<!--请求消息 ID-->\n" +
|
|
|
|
|
"\t\t<targetMessage>\n" +
|
|
|
|
|
"\t\t\t<id root=\"2.16.156.10011.0\" extension=\""+msgId+"\"/>\n" +
|
|
|
|
|
"\t\t</targetMessage>\n" +
|
|
|
|
|
"\t\t<!--查询响应消息-->\n" +
|
|
|
|
|
"\t\t<acknowledgementDetail typeCode=\"I\">\n" +
|
|
|
|
|
"\t\t\t<text>\n" +
|
|
|
|
|
"\t\t\t\t<description value=\""+message+"\"/>\n" +
|
|
|
|
|
"\t\t\t</text>\n" +
|
|
|
|
|
"\t\t</acknowledgementDetail>\n" +
|
|
|
|
|
"\t</acknowledgement>\n" +
|
|
|
|
|
return "<MCCI_IN000002UV01 xmlns=\"urn:hl7-org:v3\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" ITSVersion=\"XML_1.0\" xsi:schemaLocation=\"urn:hl7-org:v3 file:///E:/hl7/HL7/v3ballot_fullsite_2011MAY/v3ballot/html/processable/multicacheschemas/MCCI _IN000002UV01.xsd\">" +
|
|
|
|
|
"<id extension=\""+IdUtil.standardUUID()+"\"/>" +
|
|
|
|
|
"<creationTime value=\""+createTime+"\"/>" +
|
|
|
|
|
"<interactionId root=\"2.16.840.1.113883.1.6\" extension=\"MCCI_IN000002UV01\"/>" +
|
|
|
|
|
"<processingCode code=\"P\"/>" +
|
|
|
|
|
"<processingModeCode/>" +
|
|
|
|
|
"<acceptAckCode code=\"AL\"/>" +
|
|
|
|
|
"<receiver typeCode=\"RCV\">" +
|
|
|
|
|
"<device classCode=\"DEV\" determinerCode=\"INSTANCE\">" +
|
|
|
|
|
"<id>" +
|
|
|
|
|
"<item extension=\"Orion-001\"/>" +
|
|
|
|
|
"</id>" +
|
|
|
|
|
"</device>" +
|
|
|
|
|
"</receiver>" +
|
|
|
|
|
"<sender typeCode=\"SND\">" +
|
|
|
|
|
"<device classCode=\"DEV\" determinerCode=\"INSTANCE\">" +
|
|
|
|
|
"<id>" +
|
|
|
|
|
"<item extension=\"PaperlessManagementMRIS-001\"/>" +
|
|
|
|
|
"</id>" +
|
|
|
|
|
"</device>" +
|
|
|
|
|
"</sender>" +
|
|
|
|
|
"<acknowledgement typeCode=\"AE\">" +
|
|
|
|
|
"<targetMessage>" +
|
|
|
|
|
"<id extension=\""+msgId+"\"/>" +
|
|
|
|
|
"</targetMessage>" +
|
|
|
|
|
"<acknowledgementDetail>" +
|
|
|
|
|
"<text value=\""+message+"\"/>" +
|
|
|
|
|
"</acknowledgementDetail>" +
|
|
|
|
|
"</acknowledgement>" +
|
|
|
|
|
"</MCCI_IN000002UV01>";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private String uploadSuccess(String msgId, String sender, String receiver) {
|
|
|
|
|
String createTime = Func.format(new Date(), DateUtil.PATTERN_DATETIME_MINI);
|
|
|
|
|
return "<MCCI_IN000002UV01 ITSVersion=\"XML_1.0\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:schemaLocation=\"urn:hl7-org:v3 ../multicacheschemas/MCCI_IN000002UV01.xsd\" xmlns=\"urn:hl7-org:v3\">\n" +
|
|
|
|
|
"\t<id root=\"2.16.156.10011.0\" extension=\""+IdUtil.standardUUID()+"\"/>\n" +
|
|
|
|
|
"\t<creationTime value=\""+createTime+"\"/>\n" +
|
|
|
|
|
"\t<interactionId root=\"2.16.840.1.113883.1.6\" extension=\"MCCI_IN000002UV01\" displayable=\"true\"/>\n" +
|
|
|
|
|
"\t<processingCode code=\"P\"/>\n" +
|
|
|
|
|
"\t<processingModeCode/>\n" +
|
|
|
|
|
"\t<acceptAckCode code=\"AL\"/>\n" +
|
|
|
|
|
"\t<receiver typeCode=\"RCV\">\n" +
|
|
|
|
|
"\t\t<device classCode=\"DEV\" determinerCode=\"INSTANCE\">\n" +
|
|
|
|
|
"\t\t\t<id>\n" +
|
|
|
|
|
"\t\t\t\t<item root=\"2.16.156.10011.0.1.1\" extension=\""+receiver+"\"/>\n" +
|
|
|
|
|
"\t\t\t</id>\n" +
|
|
|
|
|
"\t\t</device>\n" +
|
|
|
|
|
"\t</receiver>\n" +
|
|
|
|
|
"\t<sender typeCode=\"SND\">\n" +
|
|
|
|
|
"\t\t<device classCode=\"DEV\" determinerCode=\"INSTANCE\">\n" +
|
|
|
|
|
"\t\t\t<id>\n" +
|
|
|
|
|
"\t\t\t\t<item root=\"2.16.156.10011.0.1.2\" extension=\""+sender+"\"/>\n" +
|
|
|
|
|
"\t\t\t</id>\n" +
|
|
|
|
|
"\t\t</device>\n" +
|
|
|
|
|
"\t</sender>\n" +
|
|
|
|
|
"\t<acknowledgement typeCode=\"AA\">\n" +
|
|
|
|
|
"\t\t<!--请求消息 ID-->\n" +
|
|
|
|
|
"\t\t<targetMessage>\n" +
|
|
|
|
|
"\t\t\t<id root=\"2.16.156.10011.0\" extension=\""+msgId+"\"/>\n" +
|
|
|
|
|
"\t\t</targetMessage>\n" +
|
|
|
|
|
"\t\t<!--查询响应消息-->\n" +
|
|
|
|
|
"\t\t<acknowledgementDetail typeCode=\"I\">\n" +
|
|
|
|
|
"\t\t\t<text>\n" +
|
|
|
|
|
"\t\t\t\t<description value=\"PDF新增报告上传服务处理成功\"/>\n" +
|
|
|
|
|
"\t\t\t</text>\n" +
|
|
|
|
|
"\t\t</acknowledgementDetail>\n" +
|
|
|
|
|
"\t</acknowledgement>\n" +
|
|
|
|
|
"</MCCI_IN000002UV01>\n";
|
|
|
|
|
return "<MCCI_IN000002UV01 xmlns=\"urn:hl7-org:v3\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" ITSVersion=\"XML_1.0\" xsi:schemaLocation=\"urn:hl7-org:v3 file:///E:/hl7/HL7/v3ballot_fullsite_2011MAY/v3ballot/html/processable/multicacheschemas/MCCI _IN000002UV01.xsd\">" +
|
|
|
|
|
"<id extension=\""+IdUtil.standardUUID()+"\"/>" +
|
|
|
|
|
"<creationTime value=\""+createTime+"\"/>" +
|
|
|
|
|
"<interactionId root=\"2.16.840.1.113883.1.6\" extension=\"MCCI_IN000002UV01\"/>" +
|
|
|
|
|
"<processingCode code=\"P\"/>" +
|
|
|
|
|
"<processingModeCode/>" +
|
|
|
|
|
"<acceptAckCode code=\"AL\"/>" +
|
|
|
|
|
"<receiver typeCode=\"RCV\">" +
|
|
|
|
|
"<device classCode=\"DEV\" determinerCode=\"INSTANCE\">" +
|
|
|
|
|
"<id>" +
|
|
|
|
|
"<item extension=\"Orion-001\"/>" +
|
|
|
|
|
"</id>" +
|
|
|
|
|
"</device>" +
|
|
|
|
|
"</receiver>" +
|
|
|
|
|
"<sender typeCode=\"SND\">" +
|
|
|
|
|
"<device classCode=\"DEV\" determinerCode=\"INSTANCE\">" +
|
|
|
|
|
"<id>" +
|
|
|
|
|
"<item extension=\"PaperlessManagementMRIS-001\"/>" +
|
|
|
|
|
"</id>" +
|
|
|
|
|
"</device>" +
|
|
|
|
|
"</sender>" +
|
|
|
|
|
"<acknowledgement typeCode=\"AA\">" +
|
|
|
|
|
"<targetMessage>" +
|
|
|
|
|
"<id extension=\""+msgId+"\"/>" +
|
|
|
|
|
"</targetMessage>" +
|
|
|
|
|
"<acknowledgementDetail>" +
|
|
|
|
|
"<text value=\"成功\"/>" +
|
|
|
|
|
"</acknowledgementDetail>" +
|
|
|
|
|
"</acknowledgement>" +
|
|
|
|
|
"</MCCI_IN000002UV01>";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private ReportDto getReportDtoByPdfUpload(XmlUtil xmlUtil) {
|
|
|
|
@ -522,36 +514,66 @@ public class SdryReportServerImpl implements IReportServer {
|
|
|
|
|
*/
|
|
|
|
|
public String insertSuccess(String msgId, String sender, String receiver) {
|
|
|
|
|
String createTime = Func.format(new Date(), DateUtil.PATTERN_DATETIME_MINI);
|
|
|
|
|
return "<MCCI_IN000002UV01 ITSVersion=\"XML_1.0\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:schemaLocation=\"urn:hl7-org:v3 ../multicacheschemas/MCCI_IN000002UV01.xsd\" xmlns=\"urn:hl7-org:v3\">\n" +
|
|
|
|
|
"\t<id root=\"2.16.156.10011.0\" extension=\"" + IdUtil.standardUUID() + "\"/>\n" +
|
|
|
|
|
"\t<creationTime value=\"" + createTime + "\"/>\n" +
|
|
|
|
|
"\t<interactionId root=\"2.16.840.1.113883.1.6\" extension=\"MCCI_IN000002UV01\" displayable=\"true\"/>\n" +
|
|
|
|
|
"\t<processingCode code=\"P\"/>\n" +
|
|
|
|
|
"\t<processingModeCode/>\n" +
|
|
|
|
|
"\t<acceptAckCode code=\"AL\"/>\n" +
|
|
|
|
|
"\t<receiver typeCode=\"RCV\">\n" +
|
|
|
|
|
"\t\t<device classCode=\"DEV\" determinerCode=\"INSTANCE\">\n" +
|
|
|
|
|
"\t\t\t<id>\n" +
|
|
|
|
|
"\t\t\t\t<item root=\"2.16.156.10011.0.1.1\" extension=\"" + receiver + "\"/>\n" +
|
|
|
|
|
"\t\t\t</id>\n" +
|
|
|
|
|
"\t\t</device>\n" +
|
|
|
|
|
"\t</receiver>\n" +
|
|
|
|
|
"\t<sender typeCode=\"SND\">\n" +
|
|
|
|
|
"\t\t<device classCode=\"DEV\" determinerCode=\"INSTANCE\">\n" +
|
|
|
|
|
"\t\t\t<id>\n" +
|
|
|
|
|
"\t\t\t\t<item root=\"2.16.156.10011.0.1.2\" extension=\"" + sender + "\"/>\n" +
|
|
|
|
|
"\t\t\t</id>\n" +
|
|
|
|
|
"\t\t</device>\n" +
|
|
|
|
|
"\t</sender>\n" +
|
|
|
|
|
"\t<acknowledgement typeCode=\"AA\">\n" +
|
|
|
|
|
"\t\t<targetMessage>\n" +
|
|
|
|
|
"\t\t\t<id root=\"2.16.156.10011.0\" extension=\"" + msgId + "\"/>\n" +
|
|
|
|
|
"\t\t</targetMessage>\n" +
|
|
|
|
|
"\t\t<acknowledgementDetail typeCode=\"I\">\n" +
|
|
|
|
|
" <text value=\"成功!\"/> \n" +
|
|
|
|
|
"\t\t</acknowledgementDetail>\n" +
|
|
|
|
|
"\t</acknowledgement>\n" +
|
|
|
|
|
"</MCCI_IN000002UV01>\n";
|
|
|
|
|
return "<MCCI_IN000002UV01 xmlns=\"urn:hl7-org:v3\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" ITSVersion=\"XML_1.0\" xsi:schemaLocation=\"urn:hl7-org:v3 file:///E:/hl7/HL7/v3ballot_fullsite_2011MAY/v3ballot/html/processable/multicacheschemas/MCCI _IN000002UV01.xsd\">" +
|
|
|
|
|
"<id extension=\""+IdUtil.standardUUID()+"\"/>" +
|
|
|
|
|
"<creationTime value=\""+createTime+"\"/>" +
|
|
|
|
|
"<interactionId root=\"2.16.840.1.113883.1.6\" extension=\"MCCI_IN000002UV01\"/>" +
|
|
|
|
|
"<processingCode code=\"P\"/>" +
|
|
|
|
|
"<processingModeCode/>" +
|
|
|
|
|
"<acceptAckCode code=\"AL\"/>" +
|
|
|
|
|
"<receiver typeCode=\"RCV\">" +
|
|
|
|
|
"<device classCode=\"DEV\" determinerCode=\"INSTANCE\">" +
|
|
|
|
|
"<id>" +
|
|
|
|
|
"<item extension=\"Orion-001\"/>" +
|
|
|
|
|
"</id>" +
|
|
|
|
|
"</device>" +
|
|
|
|
|
"</receiver>" +
|
|
|
|
|
"<sender typeCode=\"SND\">" +
|
|
|
|
|
"<device classCode=\"DEV\" determinerCode=\"INSTANCE\">" +
|
|
|
|
|
"<id>" +
|
|
|
|
|
"<item extension=\"PaperlessManagementMRIS-001\"/>" +
|
|
|
|
|
"</id>" +
|
|
|
|
|
"</device>" +
|
|
|
|
|
"</sender>" +
|
|
|
|
|
"<acknowledgement typeCode=\"AA\">" +
|
|
|
|
|
"<targetMessage>" +
|
|
|
|
|
"<id extension=\""+msgId+"\"/>" +
|
|
|
|
|
"</targetMessage>" +
|
|
|
|
|
"<acknowledgementDetail>" +
|
|
|
|
|
"<text value=\"成功\"/>" +
|
|
|
|
|
"</acknowledgementDetail>" +
|
|
|
|
|
"</acknowledgement>" +
|
|
|
|
|
"</MCCI_IN000002UV01>";
|
|
|
|
|
// return "<MCCI_IN000002UV01 ITSVersion=\"XML_1.0\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:schemaLocation=\"urn:hl7-org:v3 ../multicacheschemas/MCCI_IN000002UV01.xsd\" xmlns=\"urn:hl7-org:v3\">" +
|
|
|
|
|
// "<id root=\"2.16.156.10011.0\" extension=\"" + IdUtil.standardUUID() + "\"/>" +
|
|
|
|
|
// "<creationTime value=\"" + createTime + "\"/>" +
|
|
|
|
|
// "<interactionId root=\"2.16.840.1.113883.1.6\" extension=\"MCCI_IN000002UV01\" displayable=\"true\"/>" +
|
|
|
|
|
// "<processingCode code=\"P\"/>" +
|
|
|
|
|
// "<processingModeCode/>" +
|
|
|
|
|
// "<acceptAckCode code=\"AL\"/>" +
|
|
|
|
|
// "<receiver typeCode=\"RCV\">" +
|
|
|
|
|
// "<device classCode=\"DEV\" determinerCode=\"INSTANCE\">" +
|
|
|
|
|
// "<id>" +
|
|
|
|
|
// "<item root=\"2.16.156.10011.0.1.1\" extension=\"2.16.156.10011.0.1.1\"/>" +
|
|
|
|
|
// "</id>" +
|
|
|
|
|
// "</device>" +
|
|
|
|
|
// "</receiver>" +
|
|
|
|
|
// "<sender typeCode=\"SND\">" +
|
|
|
|
|
// "<device classCode=\"DEV\" determinerCode=\"INSTANCE\">" +
|
|
|
|
|
// "<id>" +
|
|
|
|
|
// "<item root=\"2.16.156.10011.0.1.2\" extension=\"2.16.156.10011.0.1.2\"/>" +
|
|
|
|
|
// "</id>" +
|
|
|
|
|
// "</device>" +
|
|
|
|
|
// "</sender>" +
|
|
|
|
|
// "<acknowledgement typeCode=\"AA\">" +
|
|
|
|
|
// "<targetMessage>" +
|
|
|
|
|
// "<id root=\"2.16.156.10011.0\" extension=\"" + msgId + "\"/>" +
|
|
|
|
|
// "</targetMessage>" +
|
|
|
|
|
// "<acknowledgementDetail typeCode=\"I\">" +
|
|
|
|
|
// " <text value=\"成功!\"/> " +
|
|
|
|
|
// "</acknowledgementDetail>" +
|
|
|
|
|
// "</acknowledgement>" +
|
|
|
|
|
// "</MCCI_IN000002UV01>";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -563,37 +585,68 @@ public class SdryReportServerImpl implements IReportServer {
|
|
|
|
|
* @return 检查报告新增失败响应消息
|
|
|
|
|
*/
|
|
|
|
|
public String insertFailed(String msgId, String sender, String receiver, String failedMessage) {
|
|
|
|
|
|
|
|
|
|
String createTime = Func.format(new Date(), DateUtil.PATTERN_DATETIME_MINI);
|
|
|
|
|
return "<MCCI_IN000002UV01 ITSVersion=\"XML_1.0\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:schemaLocation=\"urn:hl7-org:v3 ../multicacheschemas/MCCI_IN000002UV01.xsd\" xmlns=\"urn:hl7-org:v3\">\n" +
|
|
|
|
|
"\t<id root=\"2.16.156.10011.0\" extension=\"" + IdUtil.standardUUID() + "\"/>\n" +
|
|
|
|
|
"\t<creationTime value=\"" + createTime + "\"/>\n" +
|
|
|
|
|
"\t<interactionId root=\"2.16.840.1.113883.1.6\" extension=\"MCCI_IN000002UV01\" displayable=\"true\"/>\n" +
|
|
|
|
|
"\t<processingCode code=\"P\"/>\n" +
|
|
|
|
|
"\t<processingModeCode/>\n" +
|
|
|
|
|
"\t<acceptAckCode code=\"AL\"/>\n" +
|
|
|
|
|
"\t<receiver typeCode=\"RCV\">\n" +
|
|
|
|
|
"\t\t<device classCode=\"DEV\" determinerCode=\"INSTANCE\">\n" +
|
|
|
|
|
"\t\t\t<id>\n" +
|
|
|
|
|
"\t\t\t\t<item root=\"2.16.156.10011.0.1.1\" extension=\"" + receiver + "\"/>\n" +
|
|
|
|
|
"\t\t\t</id>\n" +
|
|
|
|
|
"\t\t</device>\n" +
|
|
|
|
|
"\t</receiver>\n" +
|
|
|
|
|
"\t<sender typeCode=\"SND\">\n" +
|
|
|
|
|
"\t\t<device classCode=\"DEV\" determinerCode=\"INSTANCE\">\n" +
|
|
|
|
|
"\t\t\t<id>\n" +
|
|
|
|
|
"\t\t\t\t<item root=\"2.16.156.10011.0.1.2\" extension=\"" + sender + "\"/>\n" +
|
|
|
|
|
"\t\t\t</id>\n" +
|
|
|
|
|
"\t\t</device>\n" +
|
|
|
|
|
"\t</sender>\n" +
|
|
|
|
|
"\t<acknowledgement typeCode=\"AE\">\n" +
|
|
|
|
|
"\t\t<targetMessage>\n" +
|
|
|
|
|
"\t\t\t<id root=\"2.16.156.10011.0\" extension=\"" + msgId + "\"/>\n" +
|
|
|
|
|
"\t\t</targetMessage>\n" +
|
|
|
|
|
"\t\t<acknowledgementDetail typeCode=\"I\">\n" +
|
|
|
|
|
" <text value=\""+failedMessage+"\"/> \n" +
|
|
|
|
|
"\t\t</acknowledgementDetail>\n" +
|
|
|
|
|
"\t</acknowledgement>\n" +
|
|
|
|
|
"</MCCI_IN000002UV01>\n";
|
|
|
|
|
return "<MCCI_IN000002UV01 xmlns=\"urn:hl7-org:v3\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" ITSVersion=\"XML_1.0\" xsi:schemaLocation=\"urn:hl7-org:v3 file:///E:/hl7/HL7/v3ballot_fullsite_2011MAY/v3ballot/html/processable/multicacheschemas/MCCI _IN000002UV01.xsd\">" +
|
|
|
|
|
"<id extension=\""+IdUtil.standardUUID()+"\"/>" +
|
|
|
|
|
"<creationTime value=\""+createTime+"\"/>" +
|
|
|
|
|
"<interactionId root=\"2.16.840.1.113883.1.6\" extension=\"MCCI_IN000002UV01\"/>" +
|
|
|
|
|
"<processingCode code=\"P\"/>" +
|
|
|
|
|
"<processingModeCode/>" +
|
|
|
|
|
"<acceptAckCode code=\"AL\"/>" +
|
|
|
|
|
"<receiver typeCode=\"RCV\">" +
|
|
|
|
|
"<device classCode=\"DEV\" determinerCode=\"INSTANCE\">" +
|
|
|
|
|
"<id>" +
|
|
|
|
|
"<item extension=\"Orion-001\"/>" +
|
|
|
|
|
"</id>" +
|
|
|
|
|
"</device>" +
|
|
|
|
|
"</receiver>" +
|
|
|
|
|
"<sender typeCode=\"SND\">" +
|
|
|
|
|
"<device classCode=\"DEV\" determinerCode=\"INSTANCE\">" +
|
|
|
|
|
"<id>" +
|
|
|
|
|
"<item extension=\"PaperlessManagementMRIS-001\"/>" +
|
|
|
|
|
"</id>" +
|
|
|
|
|
"</device>" +
|
|
|
|
|
"</sender>" +
|
|
|
|
|
"<acknowledgement typeCode=\"AE\">" +
|
|
|
|
|
"<targetMessage>" +
|
|
|
|
|
"<id extension=\""+msgId+"\"/>" +
|
|
|
|
|
"</targetMessage>" +
|
|
|
|
|
"<acknowledgementDetail>" +
|
|
|
|
|
"<text value=\""+failedMessage+"\"/>" +
|
|
|
|
|
"</acknowledgementDetail>" +
|
|
|
|
|
"</acknowledgement>" +
|
|
|
|
|
"</MCCI_IN000002UV01>";
|
|
|
|
|
// return "<MCCI_IN000002UV01 ITSVersion=\"XML_1.0\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:schemaLocation=\"urn:hl7-org:v3 ../multicacheschemas/MCCI_IN000002UV01.xsd\" xmlns=\"urn:hl7-org:v3\">" +
|
|
|
|
|
// "<id root=\"2.16.156.10011.0\" extension=\"" + IdUtil.standardUUID() + "\"/>" +
|
|
|
|
|
// "<creationTime value=\"" + createTime + "\"/>" +
|
|
|
|
|
// "<interactionId root=\"2.16.840.1.113883.1.6\" extension=\"MCCI_IN000002UV01\" displayable=\"true\"/>" +
|
|
|
|
|
// "<processingCode code=\"P\"/>" +
|
|
|
|
|
// "<processingModeCode/>" +
|
|
|
|
|
// "<acceptAckCode code=\"AL\"/>" +
|
|
|
|
|
// "<receiver typeCode=\"RCV\">" +
|
|
|
|
|
// "<device classCode=\"DEV\" determinerCode=\"INSTANCE\">" +
|
|
|
|
|
// "<id>" +
|
|
|
|
|
// "<item root=\"2.16.156.10011.0.1.1\" extension=\"" + receiver + "\"/>" +
|
|
|
|
|
// "</id>" +
|
|
|
|
|
// "</device>" +
|
|
|
|
|
// "</receiver>" +
|
|
|
|
|
// "<sender typeCode=\"SND\">" +
|
|
|
|
|
// "<device classCode=\"DEV\" determinerCode=\"INSTANCE\">" +
|
|
|
|
|
// "<id>" +
|
|
|
|
|
// "<item root=\"2.16.156.10011.0.1.2\" extension=\"" + sender + "\"/>" +
|
|
|
|
|
// "</id>" +
|
|
|
|
|
// "</device>" +
|
|
|
|
|
// "</sender>" +
|
|
|
|
|
// "<acknowledgement typeCode=\"AE\">" +
|
|
|
|
|
// "<targetMessage>" +
|
|
|
|
|
// "<id root=\"2.16.156.10011.0\" extension=\"" + msgId + "\"/>" +
|
|
|
|
|
// "</targetMessage>" +
|
|
|
|
|
// "<acknowledgementDetail typeCode=\"I\">" +
|
|
|
|
|
// " <text value=\""+failedMessage+"\"/> " +
|
|
|
|
|
// "</acknowledgementDetail>" +
|
|
|
|
|
// "</acknowledgement>" +
|
|
|
|
|
// "</MCCI_IN000002UV01>";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -606,36 +659,68 @@ public class SdryReportServerImpl implements IReportServer {
|
|
|
|
|
*/
|
|
|
|
|
public String updateSuccess(String msgId, String sender, String receiver) {
|
|
|
|
|
String createTime = Func.format(new Date(), DateUtil.PATTERN_DATETIME_MINI);
|
|
|
|
|
return "<MCCI_IN000002UV01 ITSVersion=\"XML_1.0\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:schemaLocation=\"urn:hl7-org:v3 ../multicacheschemas/MCCI_IN000002UV01.xsd\" xmlns=\"urn:hl7-org:v3\">\n" +
|
|
|
|
|
"\t<id root=\"2.16.156.10011.0\" extension=\"" + IdUtil.standardUUID() + "\"/>\n" +
|
|
|
|
|
"\t<creationTime value=\"" + createTime + "\"/>\n" +
|
|
|
|
|
"\t<interactionId root=\"2.16.840.1.113883.1.6\" extension=\"MCCI_IN000002UV01\" displayable=\"true\"/>\n" +
|
|
|
|
|
"\t<processingCode code=\"P\"/>\n" +
|
|
|
|
|
"\t<processingModeCode/>\n" +
|
|
|
|
|
"\t<acceptAckCode code=\"AL\"/>\n" +
|
|
|
|
|
"\t<receiver typeCode=\"RCV\">\n" +
|
|
|
|
|
"\t\t<device classCode=\"DEV\" determinerCode=\"INSTANCE\">\n" +
|
|
|
|
|
"\t\t\t<id>\n" +
|
|
|
|
|
"\t\t\t\t<item root=\"2.16.156.10011.0.1.1\" extension=\"" + receiver + "\"/>\n" +
|
|
|
|
|
"\t\t\t</id>\n" +
|
|
|
|
|
"\t\t</device>\n" +
|
|
|
|
|
"\t</receiver>\n" +
|
|
|
|
|
"\t<sender typeCode=\"SND\">\n" +
|
|
|
|
|
"\t\t<device classCode=\"DEV\" determinerCode=\"INSTANCE\">\n" +
|
|
|
|
|
"\t\t\t<id>\n" +
|
|
|
|
|
"\t\t\t\t<item root=\"2.16.156.10011.0.1.2\" extension=\"" + sender + "\"/>\n" +
|
|
|
|
|
"\t\t\t</id>\n" +
|
|
|
|
|
"\t\t</device>\n" +
|
|
|
|
|
"\t</sender>\n" +
|
|
|
|
|
"\t<acknowledgement typeCode=\"AA\">\n" +
|
|
|
|
|
"\t\t<targetMessage>\n" +
|
|
|
|
|
"\t\t\t<id root=\"2.16.156.10011.0\" extension=\"" + msgId + "\"/>\n" +
|
|
|
|
|
"\t\t</targetMessage>\n" +
|
|
|
|
|
"\t\t<acknowledgementDetail typeCode=\"I\">\n" +
|
|
|
|
|
" <text value=\"成功!\"/> \n" +
|
|
|
|
|
"\t\t</acknowledgementDetail>\n" +
|
|
|
|
|
"\t</acknowledgement>\n" +
|
|
|
|
|
"</MCCI_IN000002UV01>\n";
|
|
|
|
|
|
|
|
|
|
return "<MCCI_IN000002UV01 xmlns=\"urn:hl7-org:v3\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" ITSVersion=\"XML_1.0\" xsi:schemaLocation=\"urn:hl7-org:v3 file:///E:/hl7/HL7/v3ballot_fullsite_2011MAY/v3ballot/html/processable/multicacheschemas/MCCI _IN000002UV01.xsd\">" +
|
|
|
|
|
"<id extension=\""+IdUtil.standardUUID()+"\"/>" +
|
|
|
|
|
"<creationTime value=\""+createTime+"\"/>" +
|
|
|
|
|
"<interactionId root=\"2.16.840.1.113883.1.6\" extension=\"MCCI_IN000002UV01\"/>" +
|
|
|
|
|
"<processingCode code=\"P\"/>" +
|
|
|
|
|
"<processingModeCode/>" +
|
|
|
|
|
"<acceptAckCode code=\"AL\"/>" +
|
|
|
|
|
"<receiver typeCode=\"RCV\">" +
|
|
|
|
|
"<device classCode=\"DEV\" determinerCode=\"INSTANCE\">" +
|
|
|
|
|
"<id>" +
|
|
|
|
|
"<item extension=\"Orion-001\"/>" +
|
|
|
|
|
"</id>" +
|
|
|
|
|
"</device>" +
|
|
|
|
|
"</receiver>" +
|
|
|
|
|
"<sender typeCode=\"SND\">" +
|
|
|
|
|
"<device classCode=\"DEV\" determinerCode=\"INSTANCE\">" +
|
|
|
|
|
"<id>" +
|
|
|
|
|
"<item extension=\"PaperlessManagementMRIS-001\"/>" +
|
|
|
|
|
"</id>" +
|
|
|
|
|
"</device>" +
|
|
|
|
|
"</sender>" +
|
|
|
|
|
"<acknowledgement typeCode=\"AA\">" +
|
|
|
|
|
"<targetMessage>" +
|
|
|
|
|
"<id extension=\""+msgId+"\"/>" +
|
|
|
|
|
"</targetMessage>" +
|
|
|
|
|
"<acknowledgementDetail>" +
|
|
|
|
|
"<text value=\"成功\"/>" +
|
|
|
|
|
"</acknowledgementDetail>" +
|
|
|
|
|
"</acknowledgement>" +
|
|
|
|
|
"</MCCI_IN000002UV01>";
|
|
|
|
|
|
|
|
|
|
// return "<MCCI_IN000002UV01 ITSVersion=\"XML_1.0\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:schemaLocation=\"urn:hl7-org:v3 ../multicacheschemas/MCCI_IN000002UV01.xsd\" xmlns=\"urn:hl7-org:v3\">" +
|
|
|
|
|
// "<id root=\"2.16.156.10011.0\" extension=\"" + IdUtil.standardUUID() + "\"/>" +
|
|
|
|
|
// "<creationTime value=\"" + createTime + "\"/>" +
|
|
|
|
|
// "<interactionId root=\"2.16.840.1.113883.1.6\" extension=\"MCCI_IN000002UV01\" displayable=\"true\"/>" +
|
|
|
|
|
// "<processingCode code=\"P\"/>" +
|
|
|
|
|
// "<processingModeCode/>" +
|
|
|
|
|
// "<acceptAckCode code=\"AL\"/>" +
|
|
|
|
|
// "<receiver typeCode=\"RCV\">" +
|
|
|
|
|
// "<device classCode=\"DEV\" determinerCode=\"INSTANCE\">" +
|
|
|
|
|
// "<id>" +
|
|
|
|
|
// "<item root=\"2.16.156.10011.0.1.1\" extension=\"" + receiver + "\"/>" +
|
|
|
|
|
// "</id>" +
|
|
|
|
|
// "</device>" +
|
|
|
|
|
// "</receiver>" +
|
|
|
|
|
// "<sender typeCode=\"SND\">" +
|
|
|
|
|
// "<device classCode=\"DEV\" determinerCode=\"INSTANCE\">" +
|
|
|
|
|
// "<id>" +
|
|
|
|
|
// "<item root=\"2.16.156.10011.0.1.2\" extension=\"" + sender + "\"/>" +
|
|
|
|
|
// "</id>" +
|
|
|
|
|
// "</device>" +
|
|
|
|
|
// "</sender>" +
|
|
|
|
|
// "<acknowledgement typeCode=\"AA\">" +
|
|
|
|
|
// "<targetMessage>" +
|
|
|
|
|
// "<id root=\"2.16.156.10011.0\" extension=\"" + msgId + "\"/>" +
|
|
|
|
|
// "</targetMessage>" +
|
|
|
|
|
// "<acknowledgementDetail typeCode=\"I\">" +
|
|
|
|
|
// " <text value=\"成功!\"/> " +
|
|
|
|
|
// "</acknowledgementDetail>" +
|
|
|
|
|
// "</acknowledgement>" +
|
|
|
|
|
// "</MCCI_IN000002UV01>";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -649,35 +734,66 @@ public class SdryReportServerImpl implements IReportServer {
|
|
|
|
|
*/
|
|
|
|
|
public String updateFailed(String msgId, String sender, String receiver, String failedMessage) {
|
|
|
|
|
String createTime = Func.format(new Date(), DateUtil.PATTERN_DATETIME_MINI);
|
|
|
|
|
return "<MCCI_IN000002UV01 ITSVersion=\"XML_1.0\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:schemaLocation=\"urn:hl7-org:v3 ../multicacheschemas/MCCI_IN000002UV01.xsd\" xmlns=\"urn:hl7-org:v3\">\n" +
|
|
|
|
|
"\t<id root=\"2.16.156.10011.0\" extension=\"" + IdUtil.standardUUID() + "\"/>\n" +
|
|
|
|
|
"\t<creationTime value=\"" + createTime + "\"/>\n" +
|
|
|
|
|
"\t<interactionId root=\"2.16.840.1.113883.1.6\" extension=\"MCCI_IN000002UV01\" displayable=\"true\"/>\n" +
|
|
|
|
|
"\t<processingCode code=\"P\"/>\n" +
|
|
|
|
|
"\t<processingModeCode/>\n" +
|
|
|
|
|
"\t<acceptAckCode code=\"AL\"/>\n" +
|
|
|
|
|
"\t<receiver typeCode=\"RCV\">\n" +
|
|
|
|
|
"\t\t<device classCode=\"DEV\" determinerCode=\"INSTANCE\">\n" +
|
|
|
|
|
"\t\t\t<id>\n" +
|
|
|
|
|
"\t\t\t\t<item root=\"2.16.156.10011.0.1.1\" extension=\"" + receiver + "\"/>\n" +
|
|
|
|
|
"\t\t\t</id>\n" +
|
|
|
|
|
"\t\t</device>\n" +
|
|
|
|
|
"\t</receiver>\n" +
|
|
|
|
|
"\t<sender typeCode=\"SND\">\n" +
|
|
|
|
|
"\t\t<device classCode=\"DEV\" determinerCode=\"INSTANCE\">\n" +
|
|
|
|
|
"\t\t\t<id>\n" +
|
|
|
|
|
"\t\t\t\t<item root=\"2.16.156.10011.0.1.2\" extension=\"" + sender + "\"/>\n" +
|
|
|
|
|
"\t\t\t</id>\n" +
|
|
|
|
|
"\t\t</device>\n" +
|
|
|
|
|
"\t</sender>\n" +
|
|
|
|
|
"\t<acknowledgement typeCode=\"AE\">\n" +
|
|
|
|
|
"\t\t<targetMessage>\n" +
|
|
|
|
|
"\t\t\t<id root=\"2.16.156.10011.0\" extension=\"" + msgId + "\"/>\n" +
|
|
|
|
|
"\t\t</targetMessage>\n" +
|
|
|
|
|
"\t\t<acknowledgementDetail typeCode=\"I\">\n" +
|
|
|
|
|
" <text value=\""+failedMessage+"\"/> \n" +
|
|
|
|
|
"\t\t</acknowledgementDetail>\n" +
|
|
|
|
|
"\t</acknowledgement>\n" +
|
|
|
|
|
"</MCCI_IN000002UV01>\n";
|
|
|
|
|
return "<MCCI_IN000002UV01 xmlns=\"urn:hl7-org:v3\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" ITSVersion=\"XML_1.0\" xsi:schemaLocation=\"urn:hl7-org:v3 file:///E:/hl7/HL7/v3ballot_fullsite_2011MAY/v3ballot/html/processable/multicacheschemas/MCCI _IN000002UV01.xsd\">" +
|
|
|
|
|
"<id extension=\""+IdUtil.standardUUID()+"\"/>" +
|
|
|
|
|
"<creationTime value=\""+createTime+"\"/>" +
|
|
|
|
|
"<interactionId root=\"2.16.840.1.113883.1.6\" extension=\"MCCI_IN000002UV01\"/>" +
|
|
|
|
|
"<processingCode code=\"P\"/>" +
|
|
|
|
|
"<processingModeCode/>" +
|
|
|
|
|
"<acceptAckCode code=\"AL\"/>" +
|
|
|
|
|
"<receiver typeCode=\"RCV\">" +
|
|
|
|
|
"<device classCode=\"DEV\" determinerCode=\"INSTANCE\">" +
|
|
|
|
|
"<id>" +
|
|
|
|
|
"<item extension=\"Orion-001\"/>" +
|
|
|
|
|
"</id>" +
|
|
|
|
|
"</device>" +
|
|
|
|
|
"</receiver>" +
|
|
|
|
|
"<sender typeCode=\"SND\">" +
|
|
|
|
|
"<device classCode=\"DEV\" determinerCode=\"INSTANCE\">" +
|
|
|
|
|
"<id>" +
|
|
|
|
|
"<item extension=\"PaperlessManagementMRIS-001\"/>" +
|
|
|
|
|
"</id>" +
|
|
|
|
|
"</device>" +
|
|
|
|
|
"</sender>" +
|
|
|
|
|
"<acknowledgement typeCode=\"AE\">" +
|
|
|
|
|
"<targetMessage>" +
|
|
|
|
|
"<id extension=\""+msgId+"\"/>" +
|
|
|
|
|
"</targetMessage>" +
|
|
|
|
|
"<acknowledgementDetail>" +
|
|
|
|
|
"<text value=\""+failedMessage+"\"/>" +
|
|
|
|
|
"</acknowledgementDetail>" +
|
|
|
|
|
"</acknowledgement>" +
|
|
|
|
|
"</MCCI_IN000002UV01>";
|
|
|
|
|
|
|
|
|
|
// return "<MCCI_IN000002UV01 ITSVersion=\"XML_1.0\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:schemaLocation=\"urn:hl7-org:v3 ../multicacheschemas/MCCI_IN000002UV01.xsd\" xmlns=\"urn:hl7-org:v3\">" +
|
|
|
|
|
// "<id root=\"2.16.156.10011.0\" extension=\"" + IdUtil.standardUUID() + "\"/>" +
|
|
|
|
|
// "<creationTime value=\"" + createTime + "\"/>" +
|
|
|
|
|
// "<interactionId root=\"2.16.840.1.113883.1.6\" extension=\"MCCI_IN000002UV01\" displayable=\"true\"/>" +
|
|
|
|
|
// "<processingCode code=\"P\"/>" +
|
|
|
|
|
// "<processingModeCode/>" +
|
|
|
|
|
// "<acceptAckCode code=\"AL\"/>" +
|
|
|
|
|
// "<receiver typeCode=\"RCV\">" +
|
|
|
|
|
// "<device classCode=\"DEV\" determinerCode=\"INSTANCE\">" +
|
|
|
|
|
// "<id>" +
|
|
|
|
|
// "<item root=\"2.16.156.10011.0.1.1\" extension=\"" + receiver + "\"/>" +
|
|
|
|
|
// "</id>" +
|
|
|
|
|
// "</device>" +
|
|
|
|
|
// "</receiver>" +
|
|
|
|
|
// "<sender typeCode=\"SND\">" +
|
|
|
|
|
// "<device classCode=\"DEV\" determinerCode=\"INSTANCE\">" +
|
|
|
|
|
// "<id>" +
|
|
|
|
|
// "<item root=\"2.16.156.10011.0.1.2\" extension=\"" + sender + "\"/>" +
|
|
|
|
|
// "</id>" +
|
|
|
|
|
// "</device>" +
|
|
|
|
|
// "</sender>" +
|
|
|
|
|
// "<acknowledgement typeCode=\"AE\">" +
|
|
|
|
|
// "<targetMessage>" +
|
|
|
|
|
// "<id root=\"2.16.156.10011.0\" extension=\"" + msgId + "\"/>" +
|
|
|
|
|
// "</targetMessage>" +
|
|
|
|
|
// "<acknowledgementDetail typeCode=\"I\">" +
|
|
|
|
|
// " <text value=\""+failedMessage+"\"/> " +
|
|
|
|
|
// "</acknowledgementDetail>" +
|
|
|
|
|
// "</acknowledgement>" +
|
|
|
|
|
// "</MCCI_IN000002UV01>";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|