=== Summary: 675 files | 7 generated | 484 fresh | 4605 untracked | 4268 adopted | 355 marked | 466 validated-ok | 2+0 stale (sig+body) | 0 skipped | 0 failed | elapsed 11:08:11.442 (40091.44s) ===
This commit is contained in:
@@ -14,6 +14,7 @@ public interface IPumpService: IApiRequestService
|
||||
/// Asynchronously inserts a pump observation record into the underlying data store.
|
||||
/// </summary>
|
||||
/// <param name="obs">The pump observation to persist.</param>
|
||||
/// <!-- aidoc:v1 sig=dc84e4b -->
|
||||
Task InsertPumpObservation(PumpObservation obs);
|
||||
|
||||
// Mapping
|
||||
@@ -22,6 +23,7 @@ public interface IPumpService: IApiRequestService
|
||||
/// </summary>
|
||||
/// <param name="obs">The source pump observation to be mapped.</param>
|
||||
/// <returns>A task that represents the asynchronous mapping operation, containing the resulting <see cref="PumpObservation"/> or <c>null</c> if no result is available.</returns>
|
||||
/// <!-- aidoc:v1 sig=825d828 -->
|
||||
Task<PumpObservation?> MapPumpObservation(PumpObservation obs);
|
||||
|
||||
// Consultas por paciente
|
||||
@@ -31,11 +33,13 @@ public interface IPumpService: IApiRequestService
|
||||
/// <param name="patientId">The unique identifier of the patient whose pump observations are being queried.</param>
|
||||
/// <param name="num">The maximum number of recent observations to return. Defaults to 1.</param>
|
||||
/// <returns>A task that represents the asynchronous operation. The task result contains a list of the most recent pump observations for the patient, up to the specified count.</returns>
|
||||
/// <!-- aidoc:v1 sig=c6e10b9 -->
|
||||
Task<List<PumpObservation>> FindLastPumpObservations(ObjectId patientId, int num = 1);
|
||||
/// <summary>
|
||||
/// Asynchronously retrieves the most recent observation timestamp for every patient, returning a dictionary keyed by patient identifier.
|
||||
/// </summary>
|
||||
/// <returns>A task that represents the asynchronous operation. The task result contains a dictionary mapping each patient's <see cref="ObjectId"/> to their last observation <see cref="DateTime"/>.</returns>
|
||||
/// <!-- aidoc:v1 sig=cbcaa4c -->
|
||||
Task<Dictionary<ObjectId, DateTime>> FindAllLastPatientObservationTime();
|
||||
|
||||
// Gestión de configuración
|
||||
@@ -44,35 +48,41 @@ public interface IPumpService: IApiRequestService
|
||||
/// </summary>
|
||||
/// <param name="id">The unique identifier used to look up the configuration pump items.</param>
|
||||
/// <returns>A task that resolves to a list of <see cref="ConfigPumpItem"/> objects matching the given identifier, or <c>null</c> when no items are found.</returns>
|
||||
/// <!-- aidoc:v1 sig=0480417 -->
|
||||
Task<List<ConfigPumpItem>?> GetItemsById(string id);
|
||||
/// <summary>
|
||||
/// Asynchronously retrieves the full list of pump configurations from the underlying data source.
|
||||
/// </summary>
|
||||
/// <returns>A task that resolves to a <see cref="List{ConfigPumps}"/> containing all pump configurations, or <c>null</c> if no configurations are available.</returns>
|
||||
/// <!-- aidoc:v1 sig=b9aae05 -->
|
||||
Task<List<ConfigPumps>?> GetAllPumpConfig();
|
||||
/// <summary>
|
||||
/// Asynchronously retrieves the pump configuration associated with the specified identifier.
|
||||
/// </summary>
|
||||
/// <param name="id">The unique identifier of the pump configuration to retrieve.</param>
|
||||
/// <returns>A task that represents the asynchronous operation. The task result contains the <see cref="ConfigPumps"/> instance matching the specified identifier, or <see langword="null"/> if no configuration is found.</returns>
|
||||
/// <!-- aidoc:v1 sig=3958f50 -->
|
||||
Task<ConfigPumps?> GetPumpConfigsById(string id);
|
||||
/// <summary>
|
||||
/// Asynchronously updates the pump configuration.
|
||||
/// </summary>
|
||||
/// <param name="config">The pump configuration to update.</param>
|
||||
/// <returns>A task that represents the asynchronous operation, containing the updated <see cref="ConfigPumps"/> or null if not found.</returns>
|
||||
/// <!-- aidoc:v1 sig=563e48a -->
|
||||
Task<ConfigPumps?> UpdatePumpConfig(ConfigPumps config);
|
||||
/// <summary>
|
||||
/// Inserts a new pump configuration into the system asynchronously.
|
||||
/// </summary>
|
||||
/// <param name="config">The pump configuration to be inserted.</param>
|
||||
/// <returns>A task that represents the asynchronous operation, containing the inserted <see cref="ConfigPumps"/> or <c>null</c> if the insertion fails.</returns>
|
||||
/// <!-- aidoc:v1 sig=7fd9494 -->
|
||||
Task<ConfigPumps?> InsertPumpConfig(ConfigPumps config);
|
||||
/// <summary>
|
||||
/// Deletes the specified pump configuration.
|
||||
/// </summary>
|
||||
/// <param name="config">The pump configuration to delete.</param>
|
||||
/// <returns>A task that represents the asynchronous delete operation. The task result is <c>true</c> if the configuration was deleted successfully; otherwise, <c>false</c>.</returns>
|
||||
/// <!-- aidoc:v1 sig=ce3f871 -->
|
||||
Task<bool> DeletePumpConfig(ConfigPumps config);
|
||||
|
||||
// Paginación
|
||||
@@ -82,6 +92,7 @@ public interface IPumpService: IApiRequestService
|
||||
/// </summary>
|
||||
/// <param name="filter">The pagination filter that defines page size, page number, and any additional filtering criteria applied to the pump observations.</param>
|
||||
/// <returns>A task that resolves to a <see cref="PaginationResponse{PumpObservation}"/> containing the matching pump observations, or null when no results are found.</returns>
|
||||
/// <!-- aidoc:v1 sig=f72dd47 -->
|
||||
Task<PaginationResponse<PumpObservation>?> GetPaginatedPump(PaginationFilter filter);
|
||||
|
||||
// Archivado / limpieza
|
||||
@@ -89,17 +100,20 @@ public interface IPumpService: IApiRequestService
|
||||
/// Asynchronously deletes records associated with the specified patient identifier.
|
||||
/// </summary>
|
||||
/// <param name="id">The ObjectId of the patient whose related records should be deleted.</param>
|
||||
/// <!-- aidoc:v1 sig=d457cb9 -->
|
||||
Task DeleteByPatientId(ObjectId id);
|
||||
/// <summary>
|
||||
/// Archives the specified patient, marking the patient record as archived in the system.
|
||||
/// </summary>
|
||||
/// <param name="patient">The patient to be archived.</param>
|
||||
/// <!-- aidoc:v1 sig=52c2373 -->
|
||||
Task Archive(Patient patient);
|
||||
/// <summary>
|
||||
/// Asynchronously archives the data associated with the specified patient identifier.
|
||||
/// </summary>
|
||||
/// <param name="id">The unique identifier of the patient whose data should be archived.</param>
|
||||
/// <returns>A task that represents the asynchronous archive operation.</returns>
|
||||
/// <!-- aidoc:v1 sig=e5916ec -->
|
||||
Task ArchiveByPatientId(ObjectId id);
|
||||
|
||||
// Mantenimiento ids
|
||||
@@ -109,5 +123,6 @@ public interface IPumpService: IApiRequestService
|
||||
/// <param name="nameId">The name of the field whose ObjectId value should be updated.</param>
|
||||
/// <param name="id">The new ObjectId value to assign.</param>
|
||||
/// <param name="oldId">The existing ObjectId value to be replaced.</param>
|
||||
/// <!-- aidoc:v1 sig=24ef97c -->
|
||||
Task UpdateManyObjectId(string nameId, ObjectId id, ObjectId oldId);
|
||||
}
|
||||
Reference in New Issue
Block a user