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:
@@ -54,12 +54,15 @@ public class FhirPatientController : ControllerBase
|
||||
[HttpGet("{id}/$everything")]
|
||||
[ProducesResponseType(typeof(Bundle), StatusCodes.Status200OK)]
|
||||
[ProducesResponseType(typeof(OperationOutcome), StatusCodes.Status404NotFound)]
|
||||
public async Task<IActionResult> Everything(string id)
|
||||
public async Task<IActionResult> Everything(
|
||||
string id,
|
||||
[FromQuery(Name = "_count")] int count = 100,
|
||||
[FromQuery(Name = "_offset")] int offset = 0)
|
||||
{
|
||||
var bundle = await _fhir.GetPatientEverythingAsync(Guid.Parse(id));
|
||||
var bundle = await _fhir.GetPatientEverythingAsync(Guid.Parse(id), count, offset);
|
||||
if (bundle is null)
|
||||
return NotFound(FhirErrorHelper.NotFound("Patient", id));
|
||||
|
||||
return Ok(bundle);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user