using Microsoft.AspNetCore.Mvc;
///
/// Encounter retrieval, status transitions, and clinical timeline.
///
[ApiController]
[Route("api/v1/encounters")]
[Produces("application/json")]
public class EncountersController : ControllerBase
{
private readonly IEncounterService _encounters;
public EncountersController(IEncounterService encounters) => _encounters = encounters;
///
/// Gets an encounter with patient, recent observations, and open alerts.
///
/// Encounter id.
/// The encounter with related data.
[HttpGet("{id:guid}")]
[ProducesResponseType(typeof(ApiResponse), StatusCodes.Status200OK)]
[ProducesResponseType(typeof(ApiResponse