feature: Simulator Scenarios + Clinical Validation: SOFA/GCS
This commit is contained in:
@@ -11,13 +11,11 @@ public class GcsController : ControllerBase
|
||||
|
||||
[HttpGet]
|
||||
[ProducesResponseType(typeof(ApiResponse<GcsScoreResponse>), StatusCodes.Status200OK)]
|
||||
[ProducesResponseType(typeof(ApiResponse<object>), StatusCodes.Status404NotFound)]
|
||||
public async Task<IActionResult> Current(Guid encounterId)
|
||||
{
|
||||
var score = await _gcs.GetCurrentAsync(encounterId);
|
||||
if (score is null)
|
||||
return NotFound(ApiResponse<object>.Fail(
|
||||
404, "No GCS score computed for this encounter.", "NO_GCS_SCORE"));
|
||||
return Ok(ApiResponse<GcsScoreResponse?>.Ok(null));
|
||||
|
||||
return Ok(ApiResponse<GcsScoreResponse>.Ok(new GcsScoreResponse(
|
||||
score.EyeScore, score.VerbalScore, score.MotorScore,
|
||||
|
||||
Reference in New Issue
Block a user