-- 添加新字段到cli_surgery表
ALTER TABLE cli_surgery ADD COLUMN emergency_flag int2 DEFAULT 0;
ALTER TABLE cli_surgery ADD COLUMN implant_flag int2 DEFAULT 0;
ALTER TABLE cli_surgery ADD COLUMN operating_room_confirm_time timestamp;
ALTER TABLE cli_surgery ADD COLUMN operating_room_confirm_user varchar(100);

-- 添加字段注释
COMMENT ON COLUMN cli_surgery.emergency_flag IS '急诊标志 0-否 1-是';
COMMENT ON COLUMN cli_surgery.implant_flag IS '植入高值耗材标志 0-否 1-是';
COMMENT ON COLUMN cli_surgery.operating_room_confirm_time IS '手术室确认时间';
COMMENT ON COLUMN cli_surgery.operating_room_confirm_user IS '手术室确认人';