Deliver portable native Architecture B deployment and final verification
This commit is contained in:
1 parent
f451b55de1
commit
36740d2492
92 files changed
+10939
-926
No files matched your search
@@ -28,16 +28,28 @@ public sealed class ViewObservationContextTests(ObservationApiFixture fixture) :
|
||||
await using var patients = fixture.CreateDbContext();
|
||||
patients.Patients.Add(new Patient
|
||||
{
|
||||
PatientId = patientId, AccountId = account, Name = "Retrieval patient",
|
||||
DateOfBirth = new DateOnly(1980, 1, 1), CreatedAt = timestamp, UpdatedAt = timestamp
|
||||
PatientId = patientId,
|
||||
AccountId = account,
|
||||
Name = "Retrieval patient",
|
||||
DateOfBirth = new DateOnly(1980, 1, 1),
|
||||
CreatedAt = timestamp,
|
||||
UpdatedAt = timestamp
|
||||
});
|
||||
await patients.SaveChangesAsync();
|
||||
await using var observations = fixture.CreateObservationDbContext();
|
||||
observations.Observations.Add(new BloodPressureObservation
|
||||
{
|
||||
ObservationId = observationId, PatientId = patientId, MeasuredAt = timestamp,
|
||||
Systolic = 128, Diastolic = 82, Pulse = 68, Context = legacyText, Note = "Saved note",
|
||||
MeasurementContext = context ?? new(), CreatedAt = timestamp, UpdatedAt = timestamp
|
||||
ObservationId = observationId,
|
||||
PatientId = patientId,
|
||||
MeasuredAt = timestamp,
|
||||
Systolic = 128,
|
||||
Diastolic = 82,
|
||||
Pulse = 68,
|
||||
Context = legacyText,
|
||||
Note = "Saved note",
|
||||
MeasurementContext = context ?? new(),
|
||||
CreatedAt = timestamp,
|
||||
UpdatedAt = timestamp
|
||||
});
|
||||
await observations.SaveChangesAsync();
|
||||
return new Saved(account, patientId, observationId);
|
||||
@@ -55,9 +67,14 @@ public sealed class ViewObservationContextTests(ObservationApiFixture fixture) :
|
||||
{
|
||||
var saved = await Seed(new MeasurementContext
|
||||
{
|
||||
Setting = "Home", ActivityCondition = "AtRest", RestDurationMinutes = 5.5m,
|
||||
BodyPosition = "Seated", MeasuredArm = "Right", DeviceDetails = "Recorded device",
|
||||
CuffDetails = "Recorded cuff", AdditionalCircumstances = "Recorded circumstances"
|
||||
Setting = "Home",
|
||||
ActivityCondition = "AtRest",
|
||||
RestDurationMinutes = 5.5m,
|
||||
BodyPosition = "Seated",
|
||||
MeasuredArm = "Right",
|
||||
DeviceDetails = "Recorded device",
|
||||
CuffDetails = "Recorded cuff",
|
||||
AdditionalCircumstances = "Recorded circumstances"
|
||||
}, "Original context text");
|
||||
await fixture.RestartHostsAsync();
|
||||
var token = await AuthenticatedTestClient.LoginAsync(fixture.RawClient, saved.AccountId);
|
||||
@@ -135,8 +152,12 @@ public sealed class ViewObservationContextTests(ObservationApiFixture fixture) :
|
||||
[Fact]
|
||||
public async Task Assigned_professional_reads_the_same_context_as_the_owner()
|
||||
{
|
||||
var saved = await Seed(new MeasurementContext { Setting = "Clinic", ActivityCondition = "AfterActivity",
|
||||
AdditionalCircumstances = "Actual circumstances" }, "Original narrative");
|
||||
var saved = await Seed(new MeasurementContext
|
||||
{
|
||||
Setting = "Clinic",
|
||||
ActivityCondition = "AfterActivity",
|
||||
AdditionalCircumstances = "Actual circumstances"
|
||||
}, "Original narrative");
|
||||
fixture.AdditionalGatewayConfiguration["Access:ProfessionalAssignments:professional:0"] = saved.PatientId.ToString();
|
||||
await fixture.RestartHostsAsync();
|
||||
var patientToken = await AuthenticatedTestClient.LoginAsync(fixture.RawClient, saved.AccountId);
|
||||
|
||||
Reference in new issue
Block a user