feat: 应用内通知系统 + 结构化手术史/用药等相关改动
- 新增用户通知 outbox 流水线(EfUserNotificationPipeline)与后台投递 worker - 通知中心页面及前端通知服务接入 - 健康指标异常、用药/运动提醒等事件统一产出站内通知 - 健康档案结构化手术史、用药提醒扫描、医生/用户端点等配套调整 - AppDbContext 注册通知相关实体
This commit is contained in:
@@ -121,7 +121,17 @@ class DoctorPatientDetailPage extends ConsumerWidget {
|
||||
const SizedBox(height: 8),
|
||||
if (archive['diagnosis'] != null)
|
||||
_row('诊断', archive['diagnosis']),
|
||||
if (archive['surgeryType'] != null)
|
||||
if (archive['surgeries'] is List &&
|
||||
(archive['surgeries'] as List).isNotEmpty)
|
||||
_row(
|
||||
'手术史',
|
||||
(archive['surgeries'] as List).map((item) {
|
||||
final surgery = item as Map;
|
||||
final date = surgery['date']?.toString() ?? '';
|
||||
return '${surgery['type'] ?? ''}${date.isEmpty ? '' : ' $date'}';
|
||||
}).join(';'),
|
||||
)
|
||||
else if (archive['surgeryType'] != null)
|
||||
_row(
|
||||
'手术史',
|
||||
'${archive['surgeryType']} ${archive['surgeryDate'] ?? ''}',
|
||||
|
||||
Reference in New Issue
Block a user