在 selectAdmissionPatientInfo SQL 中,startTime 原取自 bed.start_time(床位级别的位置记录), 当该 LEFT JOIN 无匹配记录时返回 NULL,前端 fallback 到当前系统时间。 改为 COALESCE(bed.start_time, ae.start_time),无床位记录时回退到 encounter 的入院时间。 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
在 selectAdmissionPatientInfo SQL 中,startTime 原取自 bed.start_time(床位级别的位置记录), 当该 LEFT JOIN 无匹配记录时返回 NULL,前端 fallback 到当前系统时间。 改为 COALESCE(bed.start_time, ae.start_time),无床位记录时回退到 encounter 的入院时间。 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>