feature: Simulator Scenarios + Clinical Validation: SOFA/GCS
This commit is contained in:
@@ -8,13 +8,16 @@ public class ApiPoller
|
||||
public async Task PollAndDisplayAsync(Guid encounterId, string simTime)
|
||||
{
|
||||
var news2 = await _client.GetCurrentNews2Async(encounterId);
|
||||
var gcs = await _client.GetCurrentGcsAsync(encounterId);
|
||||
var sofa = await _client.GetCurrentSofaAsync(encounterId);
|
||||
var qsofa = await _client.GetCurrentQsofaAsync(encounterId);
|
||||
|
||||
var allAlerts = await _client.GetAlertsAsync(encounterId);
|
||||
var newAlerts = allAlerts.Where(a => _seenAlertIds.Add(a.Id)).ToList();
|
||||
|
||||
var bundle = await _client.GetSepsisBundleAsync(encounterId);
|
||||
|
||||
var result = new PollResult(news2, newAlerts, bundle);
|
||||
var result = new PollResult(news2, gcs, sofa, qsofa, newAlerts, bundle);
|
||||
SimulatorConsole.PollResults(simTime, result);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user