Implement US-07 blood-pressure observation history
This commit is contained in:
1 parent
df47bcbbd7
commit
0ea7866f82
7 files changed
+155
-1
No files matched your search
@@ -18,6 +18,10 @@ public sealed class ObservationController(IHttpClientFactory clients) : Controll
|
||||
public Task GetLatest(Guid patientId, CancellationToken cancellationToken) =>
|
||||
ForwardAsync(HttpMethod.Get, $"api/patients/{patientId}/observations/latest", cancellationToken);
|
||||
|
||||
[HttpGet("patients/{patientId:guid}/observations")]
|
||||
public Task GetByPeriod(Guid patientId, CancellationToken cancellationToken) =>
|
||||
ForwardAsync(HttpMethod.Get, $"api/patients/{patientId}/observations{Request.QueryString}", cancellationToken);
|
||||
|
||||
private async Task ForwardAsync(HttpMethod method, string path, CancellationToken cancellationToken)
|
||||
{
|
||||
using var request = new HttpRequestMessage(method, path);
|
||||
|
||||
Reference in new issue
Block a user