fix(health): 统一随访类型为 5 种 — phone/outpatient/home_visit/online/wechat

- validation.rs: face_to_face 替换为 outpatient,新增 home_visit/wechat
- FollowUpTaskList.tsx: 新增 online 选项,与后端对齐
- 迁移 078: follow_up_task + follow_up_record face_to_face → outpatient
This commit is contained in:
iven
2026-04-27 11:20:57 +08:00
parent 6a7d83ec4d
commit 7e66561a5f
4 changed files with 51 additions and 1 deletions

View File

@@ -82,7 +82,7 @@ pub fn validate_schedule_status(value: &str) -> HealthResult<()> {
/// follow_up_task.follow_up_type
pub fn validate_follow_up_type(value: &str) -> HealthResult<()> {
validate_enum!(value, "follow_up_type", [
"phone", "face_to_face", "online",
"phone", "outpatient", "home_visit", "online", "wechat",
]);
Ok(())
}