fixes: PromoteAsync (retry path) does not create clinical entities + Patient deduplication by exact name + DOB is fragile + Batch assignment creates inconsistent interim state

This commit is contained in:
voltsrage
2026-06-27 14:15:40 +08:00
parent 66ae95956a
commit 46c3492bb9
8 changed files with 1195 additions and 1107 deletions
+1 -1
View File
@@ -72,7 +72,7 @@ public class PromotionTests : IAsyncLifetime
var patient = await db.Patients.FirstOrDefaultAsync(p => p.Id == promotion.PatientId);
patient.Should().NotBeNull();
patient!.Mrn.Should().Be(promotion.Mrn);
patient.FullName.Should().Be("Test Patient");
patient.FullName.Should().Be("TEST PATIENT");
patient.DateOfBirth.Should().Be(new DateOnly(1990, 5, 15));
// Encounter exists