陈昶聿
3 天以前 a2101aa52a00ae103a26a950b54f985f46769239
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
package com.smartor.common;
 
/**
 * 妇幼随访相关常量。
 *
 * <p>妇幼随访只适用于丽水市妇幼保健院。随访节点落 service_subtask,
 * service_type=21,由 sfHandlle 的妇幼分支发送,不进入普通随访补偿链路。</p>
 */
public final class MchFollowupConstants {
 
    /** 档案类型:妇保 */
    public static final String ARCHIVE_TYPE_MATERNITY = "1";
 
    /** 档案类型:儿保 */
    public static final String ARCHIVE_TYPE_CHILD = "2";
 
    /**
     * 档案随访状态:待确认。
     *
     * <p>门诊接诊完成/住院随访完成自动建档时写入,表示档案尚未经过人工确认,
     * 不生成随访任务。</p>
     */
    public static final String FOLLOWUP_STATUS_PENDING = "0";
 
    /**
     * 档案随访状态:随访中。
     *
     * <p>人工保存/确认档案后写入,允许生成 service_subtask。</p>
     */
    public static final String FOLLOWUP_STATUS_ACTIVE = "1";
 
    /** service_subtask.service_type:妇幼随访 */
    public static final String SERVICE_TYPE_MCH = "21";
 
    /** 发送方式:短信 */
    public static final String SEND_TYPE_SMS = "sms";
 
    /** 发送方式:微信公众号 */
    public static final String SEND_TYPE_WECHAT = "wechat";
 
    /** 单次扫描默认上限。 */
    public static final int DEFAULT_BATCH_SIZE = 200;
 
    /** 补发窗口:只补发 1 天内到期的节点。 */
    public static final long CATCHUP_MILLIS = 24L * 60L * 60L * 1000L;
 
    /** 启用开关(sys_config,按机构读取;缺省视为启用)。 */
    public static final String CONFIG_ENABLED = "mch.followup.enabled";
 
    /** 云MAS 短信配置(sys_config,按机构读取)。 */
    public static final String CONFIG_YUNMAS = "ls.msg.yunmas";
 
    /** 丽水妇幼微信配置(sys_config,按机构读取;为空时使用 SmsUtils 内置默认配置)。 */
    public static final String CONFIG_LS_WX = "ls.wx.fuyou";
 
    private MchFollowupConstants() {
    }
}