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 ArchivedPatientTreatmentService(ITreatmentArchiveRepository archivedPatientTreatmentService)
: IArchivedPatientTreatmentService
{
///
/// Retrieves all archived patient treatments associated with the specified patient by delegating to the archived patient treatment service.
///
/// The unique identifier of the patient whose archived treatments are being retrieved.
/// A task that represents the asynchronous operation, containing a list of records for the specified patient.
public async Task> FindAllPatientTreatmentsByPatient(ObjectId patientId)
{
return await archivedPatientTreatmentService.FindAllFromPatient(patientId);
}
}