medicalHistory: deletion when patient is deleted

This commit is contained in:
andrei-mihnea-cerbu
2024-04-08 22:06:01 +03:00
parent 13bfa2bdd9
commit 7b24c178b3
62 changed files with 321 additions and 356 deletions
@@ -14,7 +14,7 @@ public interface IAppointmentsMongoDbService
Task ModifyAsync<T>(string keyField, string keyValue, T document);
Task DeleteAsync<T>(string keyField, string keyValue);
Task DeleteByIdAsync<T>(string id);
public Task<bool> IsAppointmentUnique(AppointmentManagementDto dto);
@@ -13,6 +13,6 @@ public interface IChatMongoDbService
Task ModifyAsync<T>(string keyField, string keyValue, T document);
Task DeleteAsync<T>(string keyField, string keyValue);
Task DeleteByIdAsync<T>(string id);
}
@@ -1,5 +1,4 @@
using Application.Endpoints.MedicalHistories;
using MongoDB.Driver;
using MongoDB.Driver;
namespace Application.Services.Database.MongoDB;
@@ -14,6 +13,6 @@ public interface IMedicalHistoryMongoDbService
Task ModifyAsync<T>(string keyField, string keyValue, T document);
Task DeleteAsync<T>(string keyField, string keyValue);
Task DeleteByIdAsync<T>(string id);
}
@@ -1,5 +0,0 @@
namespace Application.Services.Database;
public interface IConversationRepository
{
}
@@ -1,6 +1,6 @@
using Core.Entities;
namespace Application.Services.Database;
namespace Application.Services.Database.PostgreSQL;
public interface IDoctorRepository
{
@@ -1,6 +1,6 @@
using Core.Entities;
namespace Application.Services.Database;
namespace Application.Services.Database.PostgreSQL;
public interface IMedicalHistoryRepository
{
@@ -1,6 +1,6 @@
using Core.Entities;
namespace Application.Services.Database;
namespace Application.Services.Database.PostgreSQL;
public interface IPatientRepository
{
@@ -10,9 +10,9 @@ public interface IPatientRepository
Task<Patient?> FindByEmailAsync(string email);
Task UpdateAsync(Patient doctor);
Task UpdateAsync(Patient patient);
Task DeleteAsync(Patient doctor);
Task DeleteAsync(Patient patient);
Task<IEnumerable<Patient>> GetAllAsync();
}
@@ -1,6 +1,4 @@
using System.Security.Claims;
namespace Application.Services.Jwt;
namespace Application.Services.Jwt;
public interface IJwtService
{