=== 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
@@ -14,6 +14,7 @@ public interface IAlarmService : IApiRequestService
/// <param name="patientId">The identifier of the patient whose last observations should be retrieved.</param>
/// <param name="filterObservations">An optional list of fields to restrict the returned observations; when null, no field filter is applied.</param>
/// <returns>A task that resolves to the list of the patient's most recent <see cref="PatientObservationAlarm"/> records.</returns>
/// <!-- aidoc:v1 sig=db70ab6 -->
public Task<List<PatientObservationAlarm>> FindLastObservationsByField(ObjectId patientId,
List<Field>? filterObservations = null);
@@ -24,6 +25,7 @@ public interface IAlarmService : IApiRequestService
/// <param name="dataAlarmfields">The list of fields used to identify and filter the patient observation alarm data.</param>
/// <param name="configAlarm">The list of configuration observations that define the alarm criteria, including expiration rules.</param>
/// <returns>A task that represents the asynchronous operation, containing the list of the latest non-expired <see cref="PatientObservationAlarm"/> entries for the patient.</returns>
/// <!-- aidoc:v1 sig=cee772b -->
Task<List<PatientObservationAlarm>> FindLastValuesNotExpired(ObjectId patientId, List<Field> dataAlarmfields,
List<ConfigObservation> configAlarm);
@@ -33,12 +35,14 @@ public interface IAlarmService : IApiRequestService
/// <param name="obs">The patient observation alarm to be mapped.</param>
/// <param name="onlyByName">When true, limits the mapping to lookups performed by name only.</param>
/// <returns>A task that resolves to the mapped patient observation alarm, or null if no corresponding alarm is found.</returns>
/// <!-- aidoc:v1 sig=a6ed4ac -->
public Task<PatientObservationAlarm?> MapObservation(PatientObservationAlarm obs, bool onlyByName = false);
/// <summary>
/// Maps the given patient observation alarm to a corresponding record by name, returning a null result when no matching observation is found.
/// </summary>
/// <param name="obs">The patient observation alarm to be mapped by name.</param>
/// <returns>A task containing the mapped <see cref="PatientObservationAlarm"/>, or <c>null</c> if no matching observation exists.</returns>
/// <!-- aidoc:v1 sig=bc68e0c -->
public Task<PatientObservationAlarm?> MapObservationsByName(PatientObservationAlarm obs);
/// <summary>
@@ -46,6 +50,7 @@ public interface IAlarmService : IApiRequestService
/// </summary>
/// <param name="source">The base patient observation value used as input for the alarm evaluation.</param>
/// <param name="name">The name that identifies the alarm test to be calculated.</param>
/// <!-- aidoc:v1 sig=6689f69 -->
Task CalculateAlarmTest(BasePatientObservationValue source, string name);
/// <summary>
@@ -57,6 +62,7 @@ public interface IAlarmService : IApiRequestService
/// <param name="severity">The severity level assigned to the alarm.</param>
/// <param name="type">The type category of the alarm.</param>
/// <returns>A task that represents the asynchronous alarm sending operation.</returns>
/// <!-- aidoc:v1 sig=1e4624b -->
Task SendAlarm(PatientObservation obs, string name, AlarmEnum.Name? code, AlarmEnum.Severity severity,
AlarmEnum.Type type);
@@ -64,6 +70,7 @@ public interface IAlarmService : IApiRequestService
/// Asynchronously checks the observation alarm for the specified patient observation.
/// </summary>
/// <param name="obs4">The patient observation to evaluate for alarm conditions.</param>
/// <!-- aidoc:v1 sig=db0bd32 -->
Task CheckObservationAlarm(PatientObservation obs4);
/// <summary>
@@ -74,6 +81,7 @@ public interface IAlarmService : IApiRequestService
/// <param name="patient">The patient to whom the observations and alarms belong.</param>
/// <param name="messageTime">The timestamp associated with the message being processed.</param>
/// <param name="observationData">Optional additional observation data used during processing.</param>
/// <!-- aidoc:v1 sig=b10b184 -->
Task ProcessAlarmObservations(List<PatientObservationAlarm> alarmObservations,
List<PatientObservation> observations, Patient patient,
DateTime messageTime, ObservationData? observationData = null);