Allow simulation for UAT and add more mimic-iv scenarios
This commit is contained in:
@@ -15,10 +15,14 @@ RUN dotnet restore VigilCareClinicalAPI/VigilCareClinicalAPI.csproj
|
||||
COPY VigilCare.ClinicalContracts/ VigilCare.ClinicalContracts/
|
||||
COPY VigilCare.Simulation.Core/ VigilCare.Simulation.Core/
|
||||
COPY VigilCareClinicalAPI/ VigilCareClinicalAPI/
|
||||
# Scenario catalogue + session presets for in-app Simulation (UAT / training).
|
||||
COPY VigilCare.Simulator/Scenarios/ VigilCare.Simulator/Scenarios/
|
||||
|
||||
FROM src AS build
|
||||
RUN dotnet publish VigilCareClinicalAPI/VigilCareClinicalAPI.csproj \
|
||||
-c Release -o /app/publish --no-restore
|
||||
-c Release -o /app/publish --no-restore \
|
||||
&& mkdir -p /app/publish/Scenarios \
|
||||
&& cp -a VigilCare.Simulator/Scenarios/. /app/publish/Scenarios/
|
||||
|
||||
# Scrub development secrets from the published appsettings.json (Step 4).
|
||||
# Production supplies Jwt / PHI / API keys via environment variables only.
|
||||
@@ -27,6 +31,7 @@ RUN sed -i \
|
||||
-e 's/"SearchTokenKey": "[^"]*"/"SearchTokenKey": ""/' \
|
||||
-e 's/"Gateway": "dev-[^"]*"/"Gateway": ""/' \
|
||||
-e 's/"ApiKey": "dev-integration[^"]*"/"ApiKey": ""/' \
|
||||
-e 's/"RunnerPassword": "[^"]*"/"RunnerPassword": ""/' \
|
||||
/app/publish/appsettings.json
|
||||
|
||||
# Self-contained EF bundle for CD (docker build --target migrate).
|
||||
|
||||
@@ -41,8 +41,16 @@
|
||||
"Swagger": { "Enabled": false },
|
||||
"Seeding": { "EnableDemoData": false },
|
||||
"Simulation": {
|
||||
// Patient-safety gate: never expose scenario replay against real care data.
|
||||
// Flip only for dedicated training/staging environments with synthetic patients.
|
||||
"Enabled": false
|
||||
// UAT / clinical evaluation: in-app scenario replay is on so testers can
|
||||
// exercise the ward without a terminal. Patients created here are marked
|
||||
// IsSimulated; Reset ward only deletes those rows. Do not enable against a
|
||||
// database that also holds real care data — use a dedicated UAT DB.
|
||||
"Enabled": true,
|
||||
"ScenarioDirectory": "Scenarios/List",
|
||||
"LoopbackBaseUrl": "http://localhost:8080",
|
||||
"RunnerUsername": "simulation.runner",
|
||||
"MaxConcurrentRuns": 8,
|
||||
"MaxSpeed": 600,
|
||||
"RunHistoryLimit": 50
|
||||
}
|
||||
}
|
||||
|
||||
@@ -233,10 +233,11 @@
|
||||
"Physician": null
|
||||
},
|
||||
"Simulation": {
|
||||
"Enabled": false,
|
||||
"ScenarioDirectory": "Scenarios",
|
||||
"Enabled": true,
|
||||
"ScenarioDirectory": "../VigilCare.Simulator/Scenarios/List",
|
||||
"LoopbackBaseUrl": "http://localhost:5270",
|
||||
"RunnerUsername": "simulation.runner",
|
||||
"RunnerPassword": "DemoSimulation1!",
|
||||
"MaxConcurrentRuns": 8,
|
||||
"MaxSpeed": 600,
|
||||
"RunHistoryLimit": 50
|
||||
|
||||
Reference in New Issue
Block a user