feature: Self-Service Clinical Testing Sessions
This commit is contained in:
@@ -7,6 +7,8 @@ public class SimulationRun
|
||||
public SimulationRunStatus Status { get; set; }
|
||||
public Guid? PatientId { get; set; }
|
||||
public Guid? EncounterId { get; set; }
|
||||
/// <summary>Session preset id when started via a Phase 38 session; null for single-scenario starts.</summary>
|
||||
public string? SessionId { get; set; }
|
||||
public string StartedByUserId { get; set; } = null!;
|
||||
public DateTimeOffset StartedAt { get; set; }
|
||||
public DateTimeOffset? CompletedAt { get; set; }
|
||||
|
||||
@@ -16,6 +16,7 @@ public enum AuditAction
|
||||
TokenRefreshed,
|
||||
SimulationRunStarted,
|
||||
SimulationRunStopped,
|
||||
SimulationDataPurged,
|
||||
}
|
||||
|
||||
public static class AuditActionExtensions
|
||||
@@ -38,6 +39,7 @@ public static class AuditActionExtensions
|
||||
AuditAction.TokenRefreshed => "TOKEN_REFRESHED",
|
||||
AuditAction.SimulationRunStarted => "SIMULATION_RUN_STARTED",
|
||||
AuditAction.SimulationRunStopped => "SIMULATION_RUN_STOPPED",
|
||||
AuditAction.SimulationDataPurged => "SIMULATION_DATA_PURGED",
|
||||
_ => throw new ArgumentOutOfRangeException(nameof(a))
|
||||
};
|
||||
|
||||
@@ -59,6 +61,7 @@ public static class AuditActionExtensions
|
||||
"TOKEN_REFRESHED" => AuditAction.TokenRefreshed,
|
||||
"SIMULATION_RUN_STARTED" => AuditAction.SimulationRunStarted,
|
||||
"SIMULATION_RUN_STOPPED" => AuditAction.SimulationRunStopped,
|
||||
"SIMULATION_DATA_PURGED" => AuditAction.SimulationDataPurged,
|
||||
_ => throw new ArgumentOutOfRangeException(nameof(v))
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user