using Microsoft.AspNetCore.Mvc;
///
/// CRUD for clinical alert thresholds with Redis cache invalidation on writes.
///
[ApiController]
[Route("api/v1/alert-thresholds")]
[Produces("application/json")]
public class AlertThresholdsController : ControllerBase
{
private readonly IAlertThresholdService _thresholds;
public AlertThresholdsController(IAlertThresholdService thresholds) => _thresholds = thresholds;
///
/// Creates a new alert threshold for an observation code.
///
/// Threshold bounds and display metadata.
/// The created threshold.
[HttpPost]
[ProducesResponseType(typeof(ApiResponse), StatusCodes.Status201Created)]
[ProducesResponseType(typeof(ApiResponse