Harden API memory and CPU usage across Phases 19–22.
Bound list/PDF payloads, stream MinIO I/O with cancellation, paginate history and FHIR $everything, tighten OCR lifetimes/buffers, and add phase tracking docs.
This commit is contained in:
@@ -41,9 +41,12 @@ public class PatientsController : ControllerBase
|
||||
[HttpGet("{patientId:guid}/digitization-history")]
|
||||
[ProducesResponseType(typeof(ApiResponse<PatientDigitizationHistoryResponse>), StatusCodes.Status200OK)]
|
||||
[ProducesResponseType(typeof(ApiResponse<object>), StatusCodes.Status404NotFound)]
|
||||
public async Task<IActionResult> GetDigitizationHistory(Guid patientId)
|
||||
public async Task<IActionResult> GetDigitizationHistory(
|
||||
Guid patientId,
|
||||
[FromQuery] int page = 1,
|
||||
[FromQuery] int pageSize = 20)
|
||||
{
|
||||
var history = await _history.GetPatientHistoryAsync(patientId);
|
||||
var history = await _history.GetPatientHistoryAsync(patientId, page, pageSize);
|
||||
return Ok(ApiResponse<PatientDigitizationHistoryResponse>.Ok(history));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user