using adas_core.Application.Repositories.Interfaces;
using adas_core.Application.Services.Interfaces;
using adas_core.Domain.Models;
using MongoDB.Bson;
namespace adas_core.Application.Services;
public class ArchivePatientObservationsService(IObservationArchiveRepository archivedPatientObservationService)
: IArchivedPatientObservationService
{
///
/// Retrieves all archived patient observations associated with the specified patient.
///
/// The unique identifier of the patient whose archived observations are being requested.
/// A task that represents the asynchronous operation, containing a list of archived records for the patient.
public async Task> FindArchivedPatientObservationsFromPatient(ObjectId patientId)
{
return await archivedPatientObservationService.FindAllFromPatient(patientId);
}
}