feat:收到封存电子病历,使用封存id采集其他系统接口调用
parent
759cedfb22
commit
5fef2f8eba
@ -0,0 +1,27 @@
|
||||
{
|
||||
"sealCollectClassify": "SEAL_COLLECT",
|
||||
"sealCollectConfigs":[
|
||||
{
|
||||
"desc":"封存病案-扫描视图报告采集",
|
||||
"url":"http://127.0.0.1:9316/gdszy/patscan/collect/seal/collectBySealId"
|
||||
},{
|
||||
"desc":"封存病案-Lis检验报告采集",
|
||||
"url":"http://127.0.0.1:9315/collect/gdszy/lisBySealId"
|
||||
},{
|
||||
"desc":"封存病案-pacs检查报告采集",
|
||||
"url":"http://127.0.0.1:9303/seal/collect/pacs"
|
||||
},{
|
||||
"desc":"封存病案-内镜报告采集",
|
||||
"url":"http://127.0.0.1:9304/seal/collect/endoscopy"
|
||||
},{
|
||||
"desc":"封存病案-心电报告采集",
|
||||
"url":"http://127.0.0.1:9305/seal/collect/ecg"
|
||||
},{
|
||||
"desc":"封存病案-重症报告采集",
|
||||
"url":"http://127.0.0.1:9409/seal/collect/icu"
|
||||
},{
|
||||
"desc":"封存病案-手麻报告采集",
|
||||
"url":"http://127.0.0.1:9306/seal/collect/surgicalAnesthesia"
|
||||
}
|
||||
]
|
||||
}
|
@ -0,0 +1,31 @@
|
||||
package com.docus.bgts.config;
|
||||
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
|
||||
import java.util.concurrent.Executors;
|
||||
import java.util.concurrent.LinkedBlockingQueue;
|
||||
import java.util.concurrent.ThreadPoolExecutor;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
/**
|
||||
* @author YongBin Wen
|
||||
* @date 2024/1/15 13:36
|
||||
*/
|
||||
|
||||
@Configuration
|
||||
public class ThreadPoolConfig {
|
||||
|
||||
public ThreadPoolConfig() {
|
||||
}
|
||||
|
||||
@Bean
|
||||
public ThreadPoolExecutor threadPoolExecutor() {
|
||||
return new ThreadPoolExecutor(Runtime.getRuntime().availableProcessors(),
|
||||
(int)((double)Runtime.getRuntime().availableProcessors() / 0.1),
|
||||
60L, TimeUnit.SECONDS,
|
||||
new LinkedBlockingQueue(Runtime.getRuntime().availableProcessors()),
|
||||
Executors.defaultThreadFactory(),
|
||||
new ThreadPoolExecutor.CallerRunsPolicy());
|
||||
}
|
||||
}
|
@ -0,0 +1,65 @@
|
||||
package com.docus.bgts.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 系统采集配置
|
||||
* @author YongBin Wen
|
||||
* @date 2024/1/15 11:33
|
||||
*/
|
||||
@Data
|
||||
public class SystemCollectConfig {
|
||||
/**
|
||||
* 分类用途-封存病案
|
||||
*/
|
||||
private String sealCollectClassify;
|
||||
|
||||
|
||||
/**
|
||||
* 配置内容
|
||||
*/
|
||||
private List<CollectConfig> sealCollectConfigs;
|
||||
|
||||
@Data
|
||||
public static class CollectConfig {
|
||||
private String desc;
|
||||
private String url;
|
||||
|
||||
public String getDesc() {
|
||||
return desc;
|
||||
}
|
||||
|
||||
public void setDesc(String desc) {
|
||||
this.desc = desc;
|
||||
}
|
||||
|
||||
public String getUrl() {
|
||||
return url;
|
||||
}
|
||||
|
||||
public void setUrl(String url) {
|
||||
this.url = url;
|
||||
}
|
||||
}
|
||||
|
||||
public enum Classify {
|
||||
/**
|
||||
* 系统采集配置分类-封存病案采集
|
||||
*/
|
||||
SEAL_COLLECT("SEAL_COLLECT");
|
||||
/**
|
||||
* 系统采集分类
|
||||
*/
|
||||
final String classify;
|
||||
|
||||
Classify(String classify) {
|
||||
this.classify = classify;
|
||||
}
|
||||
public String getClassify() {
|
||||
return classify;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue