COMMENT ON COLUMN "adm_charge_item_definition"."status_enum" IS '状态
    DRAFT(1, "draft", "草稿"),

    ACTIVE(2, "active", "启用"),

    RETIRED(3, "retired", "停用"),

    UNKNOWN(4, "unknown", "未知");';


    COMMENT ON COLUMN "adm_charge_item_definition"."yb_type" IS '医保类别
自费 1
甲类 2
乙类 3
丙类 4';

COMMENT ON COLUMN "med_medication_definition"."category_code" IS '药品分类 来源于字典med_category_code';

COMMENT ON COLUMN "med_medication_request"."status_enum" IS '药品请求状态

/**
     * 待发送
     */
    DRAFT(1, "draft", "待发送"),

    /**
     * 已发送
     */
    ACTIVE(2, "active", "已发送"),

    /**
     * 已完成
     */
    COMPLETED(3, "completed", "已完成"),

    /**
     * 暂停
     */
    ON_HOLD(4, "on_hold", "暂停"),

    /**
     * 待退
     */
    CANCELLED(5, "cancelled", "取消/待退"),

    /**
     * 停嘱
     */
    STOPPED(6, "stopped", "停嘱"),

    /**
     * 不执行
     */
    ENDED(7, "ended", "不执行"),

    /**
     * 未知
     */
    UNKNOWN(9, "unknown", "未知");';

    COMMENT ON COLUMN "adm_charge_item"."status_enum" IS '状态

/**
     * 草稿
     */
    DRAFT(0, "draft", "草稿"),

    /**
     * 待收费
     */
    PLANNED(1, "planned", "待收费"),

    /**
     * 待结算
     */
    BILLABLE(2, "billable", "待结算"),

    /**
     * 不可收费
     */
    NOT_BILLABLE(3, "not-billable", "不可收费"),

    /**
     * 终止
     */
    ABORTED(4, "aborted", "终止"),

    /**
     * 已收费
     */
    BILLED(5, "billed ", "已收费"),

    /**
     * 错误
     */
    ERROR(6, "entered-in-error", "错误"),

    /**
     * 待退费
     */
    REFUNDING(7, "refunding", "待退费"),

    /**
     * 已退费
     */
    REFUNDED(8, "refunded", "已退费"),

    /**
     * 部分退费
     */
    PART_REFUND(9, "part-refund", "部分退费"),

    /**
     * 未知
     */
    UNKNOWN(10, "unknown", "未知");';

    COMMENT ON COLUMN "med_medication_dispense"."status_enum" IS '药品发放状态
  /**
     * 草稿
     */
    DRAFT(1, "DR", "草稿"),

    /**
     * 待配药
     */
    PREPARATION(2, "PR", "待配药"),

    /**
     * 待发药
     */
    IN_PROGRESS(3, "IN", "待发药"),

    /**
     * 已发药
     */
    COMPLETED(4, "CO", "已发放"),

    /**
     * 暂停
     */
    ON_HOLD(5, "ON", "暂停"),

    /**
     * 停止
     */
    STOPPED(6, "ST", "停止"),

    /**
     * 拒绝发药
     */
    DECLINED(7, "DE", "拒绝发药"),

    /**
     * 已汇总
     */
    SUMMARIZED(8, "SR", "已汇总"),

    /**
     * 部分发药
     */
    PART_COMPLETED(9, "PC", "部分发药"),

    /**
     * 部分退药
     */
    PART_REFUND(10, "PR", "部分退药"),

    /**
     * 已退药
     */
    REFUNDED(12, "RE", "已退药"),

    /**
     * 未知
     */
    UNKNOWN(13, "UN", "未知"),

    /**
     * 已配药
     */
    PREPARED(14, "PR", "已配药"),

    /**
     * 撤回
     */
    CANCELLED(15, "CA", "撤回");';