fix: 梅州三院采集视图添加心理量表签名判断

master
wyb 3 months ago
parent d636479804
commit d2f97a6ad2

@ -46,4 +46,6 @@ public interface TBasicMapper {
int cancelTask(@Param("patientId") String patientId, @Param("sysflag") String collectorId); int cancelTask(@Param("patientId") String patientId, @Param("sysflag") String collectorId);
PatientState getPatientState(@Param("patientId") String patientId); PatientState getPatientState(@Param("patientId") String patientId);
int updateTaskRemarkById(@Param("id") Long id,@Param("remark") String remark);
} }

@ -34,6 +34,8 @@ public class MzsyReportDataView {
private String fpatJzh; private String fpatJzh;
@ApiModelProperty("分检验检查心电等LIS、USDXCTECG") @ApiModelProperty("分检验检查心电等LIS、USDXCTECG")
private String fpatModule; private String fpatModule;
@ApiModelProperty("报告签名医生")
private String reportDoctor;
@ApiModelProperty("最后更新时间") @ApiModelProperty("最后更新时间")
private Date updateTime; private Date updateTime;
} }

@ -107,6 +107,18 @@ public class MzsyReportCollectJob {
if (size <= 0) { if (size <= 0) {
return; return;
} }
// 验证心理量表签名情况
for (MzsyReportDataView reportDataView : mzsyReportDataViewList) {
if ("心理量表".equals(reportDataView.getFpatModule()) && Func.isBlank(reportDataView.getReportDoctor())) {
tBasicMapper.updateTaskRemarkById(task.getTaskId(),"心理量表存在未签名报告!");
log.warn("住院号:{},住院次数:{},记账号:{} 采集视图数据,心理量表:{} 未签名!",reportPatientTwoDto.getInpatientNo(), hospitalTwoDto.getAdmissTimes(), jzh,reportDataView.getFfileName());
return;
}
}
TableJsonRead tableJsonRead = new TableJsonRead(); TableJsonRead tableJsonRead = new TableJsonRead();
JSONObject moduleAlisConfig = tableJsonRead.Read("data-config", "mzsy-module-alis", JSONObject.class); JSONObject moduleAlisConfig = tableJsonRead.Read("data-config", "mzsy-module-alis", JSONObject.class);

@ -16,6 +16,7 @@
FFILE_PATH AS ffilePath, FFILE_PATH AS ffilePath,
FPAT_JZH AS fpatJzh, FPAT_JZH AS fpatJzh,
FPAT_MODULE AS fpatModule, FPAT_MODULE AS fpatModule,
REPORT_DOCTOR AS reportDoctor,
UPDATE_TIME AS updateTime UPDATE_TIME AS updateTime
from dbo.V_REPORT_DATA from dbo.V_REPORT_DATA
where FPAT_JZH = #{jzh} where FPAT_JZH = #{jzh}
@ -49,6 +50,7 @@
FFILE_PATH AS ffilePath, FFILE_PATH AS ffilePath,
FPAT_JZH AS fpatJzh, FPAT_JZH AS fpatJzh,
FPAT_MODULE AS fpatModule, FPAT_MODULE AS fpatModule,
REPORT_DOCTOR AS reportDoctor,
UPDATE_TIME AS updateTime UPDATE_TIME AS updateTime
from dbo.V_REPORT_DATA from dbo.V_REPORT_DATA
where ZYH=#{inpatientNo} where ZYH=#{inpatientNo}

@ -37,6 +37,11 @@
<update id="cancelTask"> <update id="cancelTask">
update docus_archivefile.af_collect_task set state='4',end_time=now() where patient_id=#{patientId} and sysflag=#{sysflag} update docus_archivefile.af_collect_task set state='4',end_time=now() where patient_id=#{patientId} and sysflag=#{sysflag}
</update> </update>
<update id="updateTaskRemarkById">
UPDATE docus_archivefile.af_collect_task
SET remark = #{remark},end_time=now()
WHERE id = #{id}
</update>
<select id="getTbasicByReportTimeAndInpNoOrIdCard" resultType="com.docus.server.archive.entity.TBasic"> <select id="getTbasicByReportTimeAndInpNoOrIdCard" resultType="com.docus.server.archive.entity.TBasic">
select select
patient_id as patientId, patient_id as patientId,

Loading…
Cancel
Save