=== 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:
@@ -9,6 +9,7 @@ namespace adas_core.Application.Services;
|
||||
/// <summary>
|
||||
/// Provides the default implementation of the <see cref="ICalculatedObservations"/> interface.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=9026718 -->
|
||||
public class DefaultCalculatedObservations : ICalculatedObservations
|
||||
{
|
||||
/// <summary>
|
||||
@@ -16,6 +17,8 @@ public class DefaultCalculatedObservations : ICalculatedObservations
|
||||
/// </summary>
|
||||
/// <param name="activeMedicines">The list of medicines currently active for the patient, used as the basis for the observation calculation.</param>
|
||||
/// <param name="patientId">The identifier of the patient whose medicine observations are being calculated.</param>
|
||||
/// <!-- aidoc-review:v1 severity=high kind=wrong_summary
|
||||
/// "The summary states the method 'calculates medicine observations', but the body only returns Task.CompletedTask without performing any calculation or observation logic." -->
|
||||
public Task CalculateMedicineObservation(List<Medicine> activeMedicines, ObjectId patientId)
|
||||
{
|
||||
return Task.CompletedTask;
|
||||
@@ -25,6 +28,7 @@ public class DefaultCalculatedObservations : ICalculatedObservations
|
||||
/// Calculates the active bolus for the specified patient.
|
||||
/// </summary>
|
||||
/// <param name="patientId">The unique identifier of the patient whose active bolus is being calculated.</param>
|
||||
/// <!-- aidoc:v1 sig=7d38721 body=6805ef5 -->
|
||||
public Task CalculateActiveBolus(ObjectId patientId)
|
||||
{
|
||||
return Task.CompletedTask;
|
||||
@@ -36,6 +40,7 @@ public class DefaultCalculatedObservations : ICalculatedObservations
|
||||
/// <param name="obs">The patient observation to map.</param>
|
||||
/// <param name="onlyByName">A flag indicating whether mapping should be performed by name only.</param>
|
||||
/// <returns>A completed <see cref="Task{T}"/> containing the provided observation.</returns>
|
||||
/// <!-- aidoc:v1 sig=84684f5 body=9f66f26 -->
|
||||
public Task<T?> Map<T>(T obs, bool onlyByName) where T : BasePatientObservation
|
||||
{
|
||||
return Task.FromResult(obs)!;
|
||||
@@ -46,6 +51,7 @@ public class DefaultCalculatedObservations : ICalculatedObservations
|
||||
/// </summary>
|
||||
/// <param name="treatment">The patient treatment to map.</param>
|
||||
/// <returns>A <see cref="Task{PatientTreatment}"/> that completes with the supplied <paramref name="treatment"/>.</returns>
|
||||
/// <!-- aidoc:v1 sig=adce250 body=cf46cd2 -->
|
||||
public Task<PatientTreatment> Map(PatientTreatment treatment)
|
||||
{
|
||||
return Task.FromResult(treatment);
|
||||
@@ -57,6 +63,7 @@ public class DefaultCalculatedObservations : ICalculatedObservations
|
||||
/// </summary>
|
||||
/// <param name="id">The unique identifier of the patient whose active treatments are being retrieved.</param>
|
||||
/// <returns>A task representing the asynchronous operation, containing an enumerable collection of the patient's active treatments, or an empty collection if none are found.</returns>
|
||||
/// <!-- aidoc:v1 sig=db74f82 body=69cdec0 -->
|
||||
public Task<IEnumerable<PatientTreatment?>> GetActiveTreatmentsByPatient(ObjectId id)
|
||||
{
|
||||
return Task.FromResult<IEnumerable<PatientTreatment?>>(new List<PatientTreatment?>());
|
||||
@@ -67,6 +74,7 @@ public class DefaultCalculatedObservations : ICalculatedObservations
|
||||
/// </summary>
|
||||
/// <param name="diagnosis">The patient diagnosis to map.</param>
|
||||
/// <returns>A task that represents the asynchronous operation, containing the provided patient diagnosis.</returns>
|
||||
/// <!-- aidoc:v1 sig=8ddf601 body=ad326e6 -->
|
||||
public Task<PatientDiagnosis> Map(PatientDiagnosis diagnosis)
|
||||
{
|
||||
return Task.FromResult(diagnosis);
|
||||
@@ -78,6 +86,7 @@ public class DefaultCalculatedObservations : ICalculatedObservations
|
||||
/// <param name="pumpObservation">The source <see cref="PumpObservation"/> to be mapped.</param>
|
||||
/// <returns>A task that represents the asynchronous mapping operation, containing the resulting <see cref="PumpObservation"/>.</returns>
|
||||
/// <exception cref="NotImplementedException">Thrown when the method is invoked, as the mapping logic has not been implemented yet.</exception>
|
||||
/// <!-- aidoc:v1 sig=98ff725 body=bfa6f2f -->
|
||||
public Task<PumpObservation> Map(PumpObservation pumpObservation)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
@@ -88,6 +97,8 @@ public class DefaultCalculatedObservations : ICalculatedObservations
|
||||
/// </summary>
|
||||
/// <param name="newObservation">The new patient observation to evaluate for time consistency with the prior observation.</param>
|
||||
/// <returns>A task that represents the asynchronous operation, containing the provided patient observation.</returns>
|
||||
/// <!-- aidoc-review:v1 severity=high kind=wrong_summary
|
||||
/// "Summary states the method 'processes a new patient observation to address potential time inconsistency with the previous observation', but the implementation simply returns the input observation unchanged without any processing or time-inconsistency handling." -->
|
||||
public Task<PatientObservation?> FixTimeInconsistencyWithLast(PatientObservation newObservation)
|
||||
{
|
||||
return Task.FromResult<PatientObservation?>(newObservation);
|
||||
@@ -98,6 +109,7 @@ public class DefaultCalculatedObservations : ICalculatedObservations
|
||||
/// </summary>
|
||||
/// <param name="listToInsert">The list of patient observations to be pre-mapped.</param>
|
||||
/// <returns>A completed task containing the provided list of patient observations.</returns>
|
||||
/// <!-- aidoc:v1 sig=5a37e9b body=0791af0 -->
|
||||
public Task<List<PatientObservation>> PreMapList(List<PatientObservation> listToInsert)
|
||||
{
|
||||
return Task.FromResult(listToInsert);
|
||||
@@ -110,6 +122,7 @@ public class DefaultCalculatedObservations : ICalculatedObservations
|
||||
/// <param name="obs">The patient observation to be returned by the mapping.</param>
|
||||
/// <param name="alarmToInsert">The patient observation alarm intended to be associated with the observation.</param>
|
||||
/// <returns>A completed <see cref="Task{TResult}"/> containing the <see cref="PatientObservation"/>.</returns>
|
||||
/// <!-- aidoc:v1 sig=405db8e body=ea790e4 -->
|
||||
public Task<PatientObservation> MapSourceAlarm(PatientObservation obs, PatientObservationAlarm alarmToInsert)
|
||||
{
|
||||
return Task.FromResult(obs);
|
||||
@@ -122,6 +135,8 @@ public class DefaultCalculatedObservations : ICalculatedObservations
|
||||
/// <param name="name">The name associated with the alarm being sent.</param>
|
||||
/// <param name="code">The optional alarm code that categorizes the type of alarm; may be null when no specific code applies.</param>
|
||||
/// <exception cref="NotImplementedException">Thrown in all cases, as the method has not been implemented yet.</exception>
|
||||
/// <!-- aidoc-review:v1 severity=high kind=stale_summary
|
||||
/// "The summary states the method 'sends an alarm notification', but the method body only throws NotImplementedException and never sends anything." -->
|
||||
public Task SendAlarm(PatientObservation obs, string name, AlarmEnum.Name? code)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
|
||||
Reference in New Issue
Block a user