=== 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:
julian
2026-06-28 02:50:05 -07:00
parent a19fb90902
commit 586f02a2ca
654 changed files with 5260 additions and 0 deletions
@@ -13,12 +13,14 @@ public interface IAdminPanelService
/// </summary>
/// <param name="unitId">The unique identifier of the unit to delete.</param>
/// <returns>A task that represents the asynchronous operation. The task result is <c>true</c> if the unit was successfully deleted; otherwise, <c>false</c> if the unit was not found.</returns>
/// <!-- aidoc:v1 sig=3dcac9a -->
Task<bool> DeleteUnitById(ObjectId unitId);
/// <summary>
/// Inserts a new <see cref="Unit"/> into the data store and returns the inserted entity.
/// </summary>
/// <param name="unit">The <see cref="Unit"/> to insert.</param>
/// <returns>A <see cref="Task{T}"/> that resolves to the inserted <see cref="Unit"/>, or <see langword="null"/> if the insert could not be completed.</returns>
/// <!-- aidoc:v1 sig=9d5e322 -->
Task<Unit?> InsertUnit(Unit unit);
#region Patient
@@ -28,18 +30,21 @@ public interface IAdminPanelService
/// </summary>
/// <param name="apiRequest">The admin panel request containing the data needed to create the patient.</param>
/// <returns>A task that represents the asynchronous operation. The task result contains the created <see cref="Patient"/>, or <c>null</c> if no patient was created.</returns>
/// <!-- aidoc:v1 sig=9a79f3c -->
Task<Patient?> CreatePatient(AdmPanelRequest apiRequest);
/// <summary>
/// Asynchronously retrieves the patient associated with the specified location.
/// </summary>
/// <param name="location">The location used to look up the associated patient.</param>
/// <returns>A task that resolves to the <see cref="Patient"/> found at the given location, or <c>null</c> if no patient is associated with that location.</returns>
/// <!-- aidoc:v1 sig=bfbcfb4 -->
Task<Patient?> FindPatientByLocation(PatientLocation location);
/// <summary>
/// Asynchronously retrieves a <see cref="Patient"/> by their unique patient number.
/// </summary>
/// <param name="patientNumber">The unique identifier of the patient to look up.</param>
/// <returns>A <see cref="Task{TResult}"/> that yields the matching <see cref="Patient"/>, or <c>null</c> if no patient is found with the specified number.</returns>
/// <!-- aidoc:v1 sig=088434b -->
Task<Patient?> FindPatientByPatientNumber(string patientNumber);
/// <summary>
@@ -48,6 +53,7 @@ public interface IAdminPanelService
/// </summary>
/// <param name="id">The unique identifier of the patient to retrieve.</param>
/// <returns>A task that represents the asynchronous operation. The task result contains the patient if found; otherwise, null.</returns>
/// <!-- aidoc:v1 sig=0210ac7 -->
Task<Patient?> FindPatientById(ObjectId id);
//List<person> FindAllPatient();
@@ -57,6 +63,7 @@ public interface IAdminPanelService
/// </summary>
/// <param name="request">The admission panel request containing the search criteria used to locate the patient.</param>
/// <returns>A <see cref="Task{TResult}"/> that yields the matching <see cref="Patient"/> if found, or <c>null</c> otherwise.</returns>
/// <!-- aidoc:v1 sig=c3d3d62 -->
Task<Patient?> FindPatient(AdmPanelRequest request);
/// <summary>
/// Asynchronously retrieves the dependency information DTO for the specified <paramref name="unit"/>.
@@ -64,6 +71,7 @@ public interface IAdminPanelService
/// </summary>
/// <param name="unit">The unit for which to retrieve dependency information.</param>
/// <returns>A <see cref="Task{UnitInfoDto}"/> that yields the unit dependency DTO, or <c>null</c> if none is found.</returns>
/// <!-- aidoc:v1 sig=4a1eecb -->
Task<UnitInfoDto?> GetUnitDependencyDto(Unit unit);
/// <summary>
@@ -71,6 +79,7 @@ public interface IAdminPanelService
/// </summary>
/// <param name="request">The admission panel request containing the patient location details to update.</param>
/// <returns>A task that represents the asynchronous operation. The task result is <c>true</c> if the update was successful; otherwise, <c>false</c>.</returns>
/// <!-- aidoc:v1 sig=82018b5 -->
Task<bool> UpdatePatientLocation(AdmPanelRequest request);
/// <summary>
/// Updates the patient data based on the provided admission panel request, using the existing patient record as a reference.
@@ -78,12 +87,14 @@ public interface IAdminPanelService
/// <param name="request">The admission panel request containing the updated patient data.</param>
/// <param name="oldPatient">The existing patient record to be updated.</param>
/// <returns>A task that represents the asynchronous operation. The task result is <c>true</c> if the patient data was successfully updated; otherwise, <c>false</c>.</returns>
/// <!-- aidoc:v1 sig=72c8ec4 -->
Task<bool> UpdatePatientData(AdmPanelRequest request, Patient oldPatient);
/// <summary>
/// Archives the specified patient, marking them as inactive while preserving their record.
/// </summary>
/// <param name="patient">The patient to be archived.</param>
/// <returns>A task that represents the asynchronous operation. The task result contains <c>true</c> if the patient was successfully archived; otherwise, <c>false</c>.</returns>
/// <!-- aidoc:v1 sig=9285b16 -->
Task<bool> ArchivePatient(Patient patient);
#endregion
@@ -94,18 +105,21 @@ public interface IAdminPanelService
/// </summary>
/// <param name="configObservation">The observation data used to create the configuration.</param>
/// <returns>A task that represents the asynchronous create operation, containing a value indicating whether the configuration was created successfully.</returns>
/// <!-- aidoc:v1 sig=067bf2d -->
Task<bool> CreateConfig(ConfigObservation configObservation);
/// <summary>
/// Asynchronously updates the configuration based on the provided <see cref="ConfigObservation"/>, applying any required changes derived from the observation data.
/// </summary>
/// <param name="configObservation">The observation data used to determine and apply configuration updates.</param>
/// <returns>A <see cref="Task{Boolean}"/> that represents the asynchronous update operation, containing a value indicating whether the configuration was successfully updated.</returns>
/// <!-- aidoc:v1 sig=e4c099d -->
Task<bool> UpdateConfig(ConfigObservation configObservation);
/// <summary>
/// Deletes the configuration observation item identified by the specified identifier.
/// </summary>
/// <param name="id">The unique identifier of the configuration observation item to delete.</param>
/// <returns>A task that represents the asynchronous operation. The task result is <c>true</c> if the item was successfully deleted; otherwise, <c>false</c>.</returns>
/// <!-- aidoc:v1 sig=e7902ac -->
Task<bool> DeleteConfigObservationItem(ObjectId id);
#endregion
@@ -118,24 +132,28 @@ public interface IAdminPanelService
/// </summary>
/// <param name="medicineId">The unique <see cref="ObjectId"/> of the medicine to look up.</param>
/// <returns>A <see cref="Task{Medicine}"/> that resolves to the matching <see cref="Medicine"/>, or <c>null</c> if not found.</returns>
/// <!-- aidoc:v1 sig=a87fd1e -->
Task<Medicine?> GetMedicineById(ObjectId medicineId);
/// <summary>
/// Asynchronously creates and persists a new medicine record.
/// </summary>
/// <param name="medicine">The medicine entity to be created and posted.</param>
/// <returns>A task that represents the asynchronous operation, containing the newly created <see cref="Medicine"/>, or <c>null</c> if the operation fails.</returns>
/// <!-- aidoc:v1 sig=9decc93 -->
Task<Medicine?> PostMedicine(Medicine medicine);
/// <summary>
/// Updates an existing medicine record in the system.
/// </summary>
/// <param name="medicine">The medicine entity containing the updated information to be persisted.</param>
/// <returns>A task that represents the asynchronous operation. The task result contains the updated <see cref="Medicine"/> if found, or <c>null</c> if the medicine does not exist.</returns>
/// <!-- aidoc:v1 sig=2ae8490 -->
Task<Medicine?> UpdateMedicine(Medicine medicine);
/// <summary>
/// Deletes a medicine identified by its unique identifier.
/// </summary>
/// <param name="medicineId">The unique identifier of the medicine to delete.</param>
/// <returns>A task that represents the asynchronous operation. The task result contains <c>true</c> if the medicine was successfully deleted; otherwise, <c>false</c>.</returns>
/// <!-- aidoc:v1 sig=fe8649a -->
Task<bool> DeleteMedicineById(string medicineId);
#endregion