增加启动等待采集器连接事件
parent
1e8edd88ef
commit
ba7ebce826
@ -0,0 +1,35 @@
|
||||
package com.docus.server.controller;
|
||||
|
||||
import com.docus.infrastructure.web.api.CommonResult;
|
||||
import com.docus.server.dto.scheduling.management.ActiveAddPatientResponse;
|
||||
import com.docus.server.dto.scheduling.management.AddPatientActiveRequest;
|
||||
import com.docus.server.dto.scheduling.management.AddPatientPassiveRequest;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* 文件上传下载 API
|
||||
*
|
||||
* @author AutoGenerator
|
||||
* @since 2023-07-15
|
||||
*/
|
||||
@Api(value = "http接口文件同步", tags = "http接口文件同步")
|
||||
@RestController
|
||||
@RequestMapping("/api")
|
||||
public class PatientController {
|
||||
|
||||
@ApiOperation("http接口文件被动同步")
|
||||
@PostMapping("/addPatientPassive")
|
||||
public CommonResult<String> addPatientPassive(AddPatientPassiveRequest request) throws Exception {
|
||||
return CommonResult.success("ok");
|
||||
}
|
||||
|
||||
@ApiOperation("http接口文件主动同步")
|
||||
@PostMapping("/addPatientActive")
|
||||
public CommonResult<ActiveAddPatientResponse> addPatientActive(AddPatientActiveRequest request) throws Exception {
|
||||
return CommonResult.success(new ActiveAddPatientResponse());
|
||||
}
|
||||
}
|
@ -0,0 +1,45 @@
|
||||
package com.docus.server.dto.scheduling.management;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 采集器异常日志 Add DTO
|
||||
*
|
||||
* @author AutoGenerator
|
||||
* @since 2023-07-15
|
||||
*/
|
||||
@Data
|
||||
@ApiModel(value = "患者信息", description = "患者信息")
|
||||
public class ActiveAddPatientResponse implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "住院号")
|
||||
private String inpNo;
|
||||
|
||||
@ApiModelProperty(value = "姓名")
|
||||
private String name;
|
||||
|
||||
@ApiModelProperty(value = "住院次数")
|
||||
private String visitId;
|
||||
|
||||
@ApiModelProperty(value = "记帐号")
|
||||
private String patientId;
|
||||
|
||||
@ApiModelProperty(value = "来源(电子病历)")
|
||||
private String source;
|
||||
|
||||
@ApiModelProperty(value = "文件信息")
|
||||
private List<FileInfo> fileInfoList;
|
||||
|
||||
@ApiModelProperty(value = "入库时间")
|
||||
private Date beginTime;
|
||||
|
||||
@ApiModelProperty(value = "入库更新时间")
|
||||
private Date endTime;
|
||||
|
||||
}
|
@ -0,0 +1,31 @@
|
||||
package com.docus.server.dto.scheduling.management;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 采集器异常日志 Add DTO
|
||||
*
|
||||
* @author AutoGenerator
|
||||
* @since 2023-07-15
|
||||
*/
|
||||
@Data
|
||||
@ApiModel(value = "患者信息", description = "患者信息")
|
||||
public class AddPatientActiveRequest implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "住院号")
|
||||
private String inpNo;
|
||||
|
||||
@ApiModelProperty(value = "姓名")
|
||||
private String name;
|
||||
|
||||
@ApiModelProperty(value = "住院次数")
|
||||
private String visitId;
|
||||
|
||||
@ApiModelProperty(value = "记帐号")
|
||||
private String patientId;
|
||||
|
||||
}
|
@ -0,0 +1,46 @@
|
||||
package com.docus.server.dto.scheduling.management;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 采集器异常日志 Add DTO
|
||||
*
|
||||
* @author AutoGenerator
|
||||
* @since 2023-07-15
|
||||
*/
|
||||
@Data
|
||||
@ApiModel(value = "患者信息", description = "患者信息")
|
||||
public class AddPatientPassiveRequest implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "住院号")
|
||||
private String inpNo;
|
||||
|
||||
@ApiModelProperty(value = "姓名")
|
||||
private String name;
|
||||
|
||||
@ApiModelProperty(value = "住院次数")
|
||||
private String visitId;
|
||||
|
||||
@ApiModelProperty(value = "记帐号")
|
||||
private String patientId;
|
||||
|
||||
@ApiModelProperty(value = "来源(电子病历)")
|
||||
private String source;
|
||||
|
||||
@ApiModelProperty(value = "文件信息")
|
||||
private List<FileInfo> fileInfoList;
|
||||
|
||||
@ApiModelProperty(value = "入库时间")
|
||||
private Date beginTime;
|
||||
|
||||
@ApiModelProperty(value = "入库更新时间")
|
||||
private Date endTime;
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,35 @@
|
||||
package com.docus.server.dto.scheduling.management;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 采集器异常日志 Add DTO
|
||||
*
|
||||
* @author AutoGenerator
|
||||
* @since 2023-07-15
|
||||
*/
|
||||
@Data
|
||||
@ApiModel(value = "文件信息", description = "文件信息")
|
||||
public class FileInfo implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "文件唯一标识")
|
||||
private String id;
|
||||
|
||||
@ApiModelProperty(value = "文件名")
|
||||
private String title;
|
||||
|
||||
@ApiModelProperty(value = "下载地址")
|
||||
private String fileUrl;
|
||||
|
||||
@ApiModelProperty(value = "文件类型")
|
||||
private String assortId;
|
||||
|
||||
@ApiModelProperty(value = "文件类型名称")
|
||||
private String assortName;
|
||||
|
||||
|
||||
}
|
Loading…
Reference in New Issue