住院病理 电子病历 护理文书整理

master
lzy 4 years ago
parent ff2ffa8dd0
commit 976242dc8c

@ -1,26 +1,28 @@
{
//-----------------------
//,
"ResHead":"Response,Result",
"ResHead":"Response,RetInfo",
//
"ResCode":"Code",
"ResCode":"RetCode",
//
"ResMsg":"Msg",
"ResMsg":"RetCon",
//,
"directory":["DOCUMENT"],
"directory":["Msg"],
//
"indexFlag":"VISITING_SERIAL_NUMBER",
"indexFlag":"INHOSP_NO",
//
"serialnum":"UNIQUE_ID",
"serialnum":"IDNO",
//
"filetitle":"DOCUMENT_TITLE",
"filetitle":"FILENAME",
//,&
"downurl":"BASE64&ORIGINAL_URL",
"downurl":"PDF_PATH",
//id
"assortid":"OW1PA2SR2Z5XX2JR10KR29SK2OW101",
"assortid":"",
//id
"collectorid":"2",
"collectorid":"1",
//id
"assortidParamKey":"TABLE_TYPE",
//( 1:2)
"filesource":1,
//(1:2ftp3)
@ -28,7 +30,7 @@
//
"uploadConnector":"http://192.168.1.107:9291/api/downplatform/report",
//doubleBasic
"basicDirectory":["DOCUMENT"],
"basicDirectory":["Msg"],
//
"doubleBasic":["TestItemInfo","BioTestInfo"],
@ -43,9 +45,9 @@
//--------------------
//,
"repealDirectory":["DOCUMENT"],
"repealDirectory":["Msg"],
//
"repealSerialnum":"UNIQUE_ID",
"repealSerialnum":"IDNO",
//
"repoalConnector":"http://192.168.1.107:9291/api/down/cancel"

@ -0,0 +1,52 @@
{
//-----------------------
//,
"ResHead":"Response,RetInfo",
//
"ResCode":"RetCode",
//
"ResMsg":"RetCon",
//,
"directory":["Msg"],
//
"indexFlag":"PatInfo,INHOSP_NO",
//
"serialnum":"PatInfo,UPDATE_REPORT_NO",
//
"filetitle":"ReportInfo,EXAM_RESULT",
//,&
"downurl":"ReportInfo,REPORT_URL",
//id
"assortid":"63E20FC9AAB74C5FB6446083EBA5607D",
//id
"collectorid":"12",
//( 1:2)
"filesource":1,
//(1:2ftp3)
"filestoragetype":1,
//
"uploadConnector":"http://192.168.1.107:9291/api/downplatform/report",
//doubleBasic
"basicDirectory":["Msg","ReportInfo"],
//
"doubleBasic":["TestItemInfo","BioTestInfo"],
//--------------/---------------
/// 01
"isJudge":"1",
//
"judgeDirectory":["Msg","ReportInfo"],
//,0-1-2-
"judgeIndex":"REPORT_STATUS_FLAG",
//--------------------
//,
"repealDirectory":["Msg","ReportInfo"],
//
"repealSerialnum":"REPORT_STATUS_FLAG",
//
"repoalConnector":"http://192.168.1.107:9291/api/down/cancel"
}

@ -0,0 +1,54 @@
{
//-----------------------
//,
"ResHead":"Response,RetInfo",
//
"ResCode":"RetCode",
//
"ResMsg":"RetCon",
//,
"directory":["Msg"],
//
"indexFlag":"INHOSP_NO",
//
"serialnum":"IDNO",
//
"filetitle":"FILENAME",
//,&
"downurl":"PDF_PATH",
//id
"assortid":"",
//id
"collectorid":"1",
//id
"assortidParamKey":"TABLE_TYPE",
//( 1:2)
"filesource":1,
//(1:2ftp3)
"filestoragetype":1,
//
"uploadConnector":"http://192.168.1.107:9291/api/downplatform/report",
//doubleBasic
"basicDirectory":["Msg"],
//
"doubleBasic":["TestItemInfo","BioTestInfo"],
//--------------/---------------
/// 01
"isJudge":"0",
//
"judgeDirectory":[""],
//,0-1-2-
"judgeIndex":"",
//--------------------
//,
"repealDirectory":["Msg"],
//
"repealSerialnum":"IDNO",
//
"repoalConnector":"http://192.168.1.107:9291/api/down/cancel"
}

@ -0,0 +1,52 @@
{
//-----------------------
//,
"ResHead":"Response,Result",
//
"ResCode":"Code",
//
"ResMsg":"Msg",
//,
"directory":["DOCUMENT"],
//
"indexFlag":"VISITING_SERIAL_NUMBER",
//
"serialnum":"UNIQUE_ID",
//
"filetitle":"DOCUMENT_TITLE",
//,&
"downurl":"BASE64&ORIGINAL_URL",
//id
"assortid":"OW1PA2SR2Z5XX2JR10KR29SK2OW101",
//id
"collectorid":"2",
//( 1:2)
"filesource":1,
//(1:2ftp3)
"filestoragetype":1,
//
"uploadConnector":"http://192.168.1.107:9291/api/downplatform/report",
//doubleBasic
"basicDirectory":["DOCUMENT"],
//
"doubleBasic":["TestItemInfo","BioTestInfo"],
//--------------/---------------
/// 01
"isJudge":"0",
//
"judgeDirectory":[""],
//,0-1-2-
"judgeIndex":"",
//--------------------
//,
"repealDirectory":["DOCUMENT"],
//
"repealSerialnum":"UNIQUE_ID",
//
"repoalConnector":"http://192.168.1.107:9291/api/down/cancel"
}

@ -1,40 +1,40 @@
//package com.docus.bgts.config;
//
//
//import com.docus.bgts.utils.FileUtils;
//import com.docus.bgts.utils.HttpUtils;
//import org.apache.logging.log4j.LogManager;
//import org.apache.logging.log4j.Logger;
//import org.springframework.beans.factory.annotation.Value;
//import org.springframework.scheduling.annotation.Scheduled;
//import org.springframework.stereotype.Component;
//
//import java.net.URISyntaxException;
//import java.util.HashMap;
//import java.util.Map;
//
//@Component
//public class MyScheduling {
//
// @Value("${beat.url}")
// private String beatUrl;
//
// private Logger logger = LogManager.getLogger(MyScheduling.class);
//
// //10分钟执行一次
// @Scheduled(fixedRate = 1000 * 60 * 5)
// public void beat() {
// logger.info("------------心跳开始---------------");
// Map<String, String> params = new HashMap<>();
// params.put("code", String.valueOf(FileUtils.getJsonByName("collectorid")));
// try {
// HttpUtils.get(beatUrl, params);
// } catch (URISyntaxException e) {
// e.printStackTrace();
// logger.info("心跳推送出错,可能是住院服务没有开启");
// } finally {
// logger.info("-------------心跳结束---------------");
// }
// }
//
//}
package com.docus.bgts.config;
import com.docus.bgts.utils.FileUtils;
import com.docus.bgts.utils.HttpUtils;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
import java.net.URISyntaxException;
import java.util.HashMap;
import java.util.Map;
@Component
public class MyScheduling {
@Value("${beat.url}")
private String beatUrl;
private Logger logger = LogManager.getLogger(MyScheduling.class);
//10分钟执行一次
@Scheduled(fixedRate = 1000 * 60 * 5)
public void beat() {
logger.info("------------心跳开始---------------");
Map<String, String> params = new HashMap<>();
params.put("code", String.valueOf(FileUtils.getJsonByName("collectorid")));
try {
HttpUtils.get(beatUrl, params);
} catch (URISyntaxException e) {
e.printStackTrace();
logger.info("心跳推送出错,可能是住院服务没有开启");
} finally {
logger.info("-------------心跳结束---------------");
}
}
}

@ -177,6 +177,7 @@ public class TBasicWebService implements ITBasicWebService {
if (String.valueOf(resMap.get("code")).equals("500")) {
throw new RuntimeException(String.valueOf(resMap.get("msg")));
} else {
logger.info("----------执行成功-----------");
return ResultUtils.success().asXML();
}
} catch (RuntimeException e) {
@ -303,13 +304,22 @@ public class TBasicWebService implements ITBasicWebService {
split = arg.split("&");
if (split.length > 1) {
for (String spi : split) {
byElement1 = byElement.element(spi);
if (byElement1 == null) {
byElement1 = byElement.element(spi);
} else {
byElement1 = byElement1.element(spi);
}
if (byElement1 != null && StringUtils.isNotBlank(byElement1.getText())) {
break;
}
}
} else {
byElement1 = byElement.element(arg);
if (byElement1 == null) {
byElement1 = byElement.element(arg);
} else {
byElement1 = byElement1.element(arg);
}
}
if (byElement1 != null) {
resText = byElement1.getText();
@ -321,7 +331,7 @@ public class TBasicWebService implements ITBasicWebService {
}
/**
* id
* id
*
* @return
*/

@ -1,5 +1,5 @@
server:
port: 9701
port: 9404
# http
mybatis-plus:
@ -11,12 +11,12 @@ mybatis-plus:
db-config:
field-strategy: NOT_EMPTY
db-type: MYSQL
#beat:
# url: http://localhost:9399/beat
beat:
url: http://localhost:9399/beat
system:
code: "EmrDocAr"
prop: 9801
code: "Nursing_documents"
prop: 9204
# web service

@ -0,0 +1,28 @@
server:
port: 9403
# http
mybatis-plus:
configuration:
map-underscore-to-camel-case: true
call-setters-on-nulls: true
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
global-config:
db-config:
field-strategy: NOT_EMPTY
db-type: MYSQL
beat:
url: http://localhost:9399/beat
system:
code: "204_P_WS_BLBGTS"
prop: 9203
# web service
spring:
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
username: docus
password: docus702
url: jdbc:mysql://db.docus.cn:3306/docus_archivefile?characterEncoding=utf8&useSSL=false&serverTimezone=UTC&rewriteBatchedStatements=true

@ -0,0 +1,28 @@
server:
port: 9404
# http
mybatis-plus:
configuration:
map-underscore-to-camel-case: true
call-setters-on-nulls: true
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
global-config:
db-config:
field-strategy: NOT_EMPTY
db-type: MYSQL
beat:
url: http://localhost:9399/beat
system:
code: "Nursing_documents"
prop: 9204
# web service
spring:
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
username: docus
password: docus702
url: jdbc:mysql://db.docus.cn:3306/docus_archivefile?characterEncoding=utf8&useSSL=false&serverTimezone=UTC&rewriteBatchedStatements=true

@ -0,0 +1,28 @@
server:
port: 9701
# http
mybatis-plus:
configuration:
map-underscore-to-camel-case: true
call-setters-on-nulls: true
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
global-config:
db-config:
field-strategy: NOT_EMPTY
db-type: MYSQL
beat:
url: http://localhost:9399/beat
system:
code: "EmrDocAr"
prop: 9801
# web service
spring:
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
username: docus
password: docus702
url: jdbc:mysql://db.docus.cn:3306/docus_archivefile?characterEncoding=utf8&useSSL=false&serverTimezone=UTC&rewriteBatchedStatements=true
Loading…
Cancel
Save