feature: In-App Simulation Runner (Backend)
This commit is contained in:
@@ -1166,6 +1166,12 @@ namespace VigilCareClinicalAPI.Migrations
|
||||
.HasColumnType("character varying(10)")
|
||||
.HasColumnName("gender");
|
||||
|
||||
b.Property<bool>("IsSimulated")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("boolean")
|
||||
.HasDefaultValue(false)
|
||||
.HasColumnName("is_simulated");
|
||||
|
||||
b.Property<string>("LastName")
|
||||
.IsRequired()
|
||||
.HasMaxLength(100)
|
||||
@@ -1193,6 +1199,10 @@ namespace VigilCareClinicalAPI.Migrations
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("IsSimulated")
|
||||
.HasDatabaseName("IX_Patients_IsSimulated")
|
||||
.HasFilter("is_simulated = true");
|
||||
|
||||
b.HasIndex("Mrn")
|
||||
.IsUnique();
|
||||
|
||||
@@ -1524,6 +1534,92 @@ namespace VigilCareClinicalAPI.Migrations
|
||||
});
|
||||
});
|
||||
|
||||
modelBuilder.Entity("SimulationRun", b =>
|
||||
{
|
||||
b.Property<Guid>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("uuid")
|
||||
.HasColumnName("id")
|
||||
.HasDefaultValueSql("gen_random_uuid()");
|
||||
|
||||
b.Property<DateTimeOffset?>("CompletedAt")
|
||||
.HasColumnType("timestamp with time zone")
|
||||
.HasColumnName("completed_at");
|
||||
|
||||
b.Property<Guid?>("EncounterId")
|
||||
.HasColumnType("uuid")
|
||||
.HasColumnName("encounter_id");
|
||||
|
||||
b.Property<string>("FailureReason")
|
||||
.HasMaxLength(2000)
|
||||
.HasColumnType("character varying(2000)")
|
||||
.HasColumnName("failure_reason");
|
||||
|
||||
b.Property<double>("LastOffsetMinutes")
|
||||
.HasColumnType("double precision")
|
||||
.HasColumnName("last_offset_minutes");
|
||||
|
||||
b.Property<int>("MedicationsSent")
|
||||
.HasColumnType("integer")
|
||||
.HasColumnName("medications_sent");
|
||||
|
||||
b.Property<int>("ObservationsSent")
|
||||
.HasColumnType("integer")
|
||||
.HasColumnName("observations_sent");
|
||||
|
||||
b.Property<int>("OrdersPlaced")
|
||||
.HasColumnType("integer")
|
||||
.HasColumnName("orders_placed");
|
||||
|
||||
b.Property<Guid?>("PatientId")
|
||||
.HasColumnType("uuid")
|
||||
.HasColumnName("patient_id");
|
||||
|
||||
b.Property<string>("ScenarioId")
|
||||
.IsRequired()
|
||||
.HasMaxLength(100)
|
||||
.HasColumnType("character varying(100)")
|
||||
.HasColumnName("scenario_id");
|
||||
|
||||
b.Property<string>("ScenarioName")
|
||||
.IsRequired()
|
||||
.HasMaxLength(200)
|
||||
.HasColumnType("character varying(200)")
|
||||
.HasColumnName("scenario_name");
|
||||
|
||||
b.Property<double>("Speed")
|
||||
.HasColumnType("double precision")
|
||||
.HasColumnName("speed");
|
||||
|
||||
b.Property<DateTimeOffset>("StartedAt")
|
||||
.HasColumnType("timestamp with time zone")
|
||||
.HasColumnName("started_at");
|
||||
|
||||
b.Property<string>("StartedByUserId")
|
||||
.IsRequired()
|
||||
.HasMaxLength(100)
|
||||
.HasColumnType("character varying(100)")
|
||||
.HasColumnName("started_by_user_id");
|
||||
|
||||
b.Property<string>("Status")
|
||||
.IsRequired()
|
||||
.HasMaxLength(20)
|
||||
.HasColumnType("character varying(20)")
|
||||
.HasColumnName("status");
|
||||
|
||||
b.Property<double>("TotalOffsetMinutes")
|
||||
.HasColumnType("double precision")
|
||||
.HasColumnName("total_offset_minutes");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("Status", "StartedAt")
|
||||
.IsDescending(false, true)
|
||||
.HasDatabaseName("IX_simulation_runs_status_started_at");
|
||||
|
||||
b.ToTable("simulation_runs", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("SofaScore", b =>
|
||||
{
|
||||
b.Property<Guid>("Id")
|
||||
|
||||
Reference in New Issue
Block a user