Files
HealthAppRepository/src/ObservationService/Application/ObservationRepository.cs
T

17 lines
943 B
C#

using ObservationService.Contracts;
using ObservationService.Domain;
namespace ObservationService.Application;
public interface ObservationRepository
{
Task<bool> DeleteAsync(Guid observationId, CancellationToken cancellationToken);
Task<BloodPressureObservation?> UpdateAsync(Guid observationId, PatchObservationRequest request,
DateTime updatedAt, CancellationToken cancellationToken);
Task<BloodPressureObservation> SaveAsync(BloodPressureObservation observation, CancellationToken cancellationToken);
Task<BloodPressureObservation?> FindByIdAsync(Guid observationId, CancellationToken cancellationToken);
Task<BloodPressureObservation?> FindLatestByPatientIdAsync(Guid patientId, CancellationToken cancellationToken);
Task<List<BloodPressureObservation>> FindByPatientIdAndPeriodAsync(Guid patientId, DateTime from, DateTime to,
ContextSelection selection, CancellationToken cancellationToken);
}