feature: Schema, Migrations, Core CRUD, and Redis Threshold Cache

This commit is contained in:
voltsrage
2026-06-16 17:59:16 +08:00
commit 882d4af3e6
63 changed files with 3923 additions and 0 deletions
@@ -0,0 +1,7 @@
public interface IAlertThresholdService
{
Task<AlertThreshold> CreateAsync(AlertThresholdRequest req);
Task<List<AlertThreshold>> ListAsync();
Task<AlertThreshold> GetByIdAsync(Guid id);
Task<AlertThreshold> UpdateAsync(Guid id, AlertThresholdRequest req);
}
@@ -0,0 +1,6 @@
public interface IEncounterService
{
Task<Encounter> GetByIdAsync(Guid id);
Task<EncounterStatusTransitionResult> TransitionStatusAsync(Guid encounterId, EncounterStatus targetStatus);
Task<object> GetTimelineAsync(Guid encounterId);
}
@@ -0,0 +1,7 @@
public interface IPatientService
{
Task<Patient> RegisterAsync(RegisterPatientRequest req);
Task<PagedResult<Patient>> ListAsync(string? q, int page, int pageSize);
Task<Patient> GetByIdAsync(Guid id);
Task<Encounter> OpenEncounterAsync(Guid patientId, OpenEncounterRequest req);
}