找回密码
 立即注册
搜索
查看: 266|回复: 0

[天际健康] 门诊自动处理医生未回复的结果为同意

[复制链接]
发表于 2026-6-30 18:04:14 | 显示全部楼层 |阅读模式
1、门诊自动处理医生未回复的结果为同意,前提创建定时任务,直接复制可用,
create or replace procedure dc_mzdpys
    is
    begin
      update peaas.presc a
   set a.doctor_receive_reason = '同意点评意见',
       a.doctor_receive_date=to_date(to_char((a.check_time+interval '440608' second),'yyyy/mm/dd hh24:mi:ss'),'yyyy/mm/dd hh24:mi:ss'),--自动生成点评日期后几天的数据,
       a.is_doctor_received    = '1',
       a.received_doctor_code  = a.doctor_code
where a.check_state = 2
   and a.check_error_flag = 1
   and a.received_doctor_code is null
   and a.check_time < sysdate-15;--点评日期15天前未回复的

   commit;
     end;

注意:a.doctor_receive_date 医生回复时间需结合点评时间参考,

欢迎注册吾爱缘分网,在这里可留言管理员需要找的资源哦。
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|吾爱缘分

GMT+8, 2026-8-5 07:11 , Processed in 0.046201 second(s), 21 queries .

Powered by 吾爱缘分

© 2024-2024 吾爱缘分

快速回复 返回顶部 返回列表