=== 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:
@@ -33,6 +33,7 @@ public class ObservationRepositoryTest
|
||||
/// and seeds it with six <see cref="PatientObservation"/> records covering different codes, coding systems, and timestamps
|
||||
/// (including observations without a <c>SystemId</c>).
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=81c0015 body=3e4af03 -->
|
||||
[OneTimeSetUp]
|
||||
public async Task Init()
|
||||
{
|
||||
@@ -141,6 +142,7 @@ public class ObservationRepositoryTest
|
||||
/// <summary>
|
||||
/// Verifies that the repository's last observations lookup returns a non-null list containing the expected number of observations for the specified patient, system ("SNM"), and observation code ("code1").
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=88635f6 body=2067a8b -->
|
||||
[Test]
|
||||
public async Task FindLastObservations_Return_List()
|
||||
{
|
||||
@@ -155,6 +157,7 @@ public class ObservationRepositoryTest
|
||||
/// Verifies that FindLastObservationsByCodingSystem returns a non-null list of the expected count
|
||||
/// of the most recent observations for the specified patient filtered by the "SNM" coding system.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=0c960a3 body=f8e4c58 -->
|
||||
[Test]
|
||||
public async Task FindLastObservationsByCodingSystem_Return_List()
|
||||
{
|
||||
@@ -168,6 +171,7 @@ public class ObservationRepositoryTest
|
||||
/// <summary>
|
||||
/// Verifies that the AggregatedPatientLastObservations method returns a non-null list containing the expected number of aggregated last observations for the specified patient.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=1cb45c4 body=0919ea1 -->
|
||||
[Test]
|
||||
public async Task AggregatedPatientLastObservations_Null_Filter_Return_List()
|
||||
{
|
||||
@@ -180,6 +184,7 @@ public class ObservationRepositoryTest
|
||||
/// <summary>
|
||||
/// Verifies that the AggregatedPatientLastObservations repository method returns a non-null filtered list with the expected number of entries when a name filter is provided.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=af78004 body=f4c593b -->
|
||||
[Test]
|
||||
public async Task AggregatedPatientLastObservations_Filter_Return_List()
|
||||
{
|
||||
@@ -194,6 +199,7 @@ public class ObservationRepositoryTest
|
||||
/// <summary>
|
||||
/// Verifies that AggregatedPatientLastObservations returns an empty list when the provided filter does not match any observations.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=b7e2192 body=ff9f765 -->
|
||||
[Test]
|
||||
public async Task AggregatedPatientLastObservations_Filter_Not_Find_Return_Empty_List()
|
||||
{
|
||||
@@ -208,6 +214,7 @@ public class ObservationRepositoryTest
|
||||
/// <summary>
|
||||
/// Verifies that <c>AggregatedPatientLastObservationsByLastDate</c> returns a non-null list of aggregated patient last observations for a given patient and date, even when no filter is applied.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=7a118f0 body=2447117 -->
|
||||
[Test]
|
||||
public async Task AggregatedPatientLastObservationsByLastDate_Null_Filter_Return_List()
|
||||
{
|
||||
@@ -220,6 +227,7 @@ public class ObservationRepositoryTest
|
||||
/// <summary>
|
||||
/// Verifies that _repository.AggregatedPatientLastObservationsByLastDate returns a non-null list containing the expected number of aggregated patient last observations when a filter is provided.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=effae73 body=630b754 -->
|
||||
[Test]
|
||||
public async Task AggregatedPatientLastObservationsByLastDate_Filter_Return_List()
|
||||
{
|
||||
@@ -234,6 +242,7 @@ public class ObservationRepositoryTest
|
||||
/// <summary>
|
||||
/// Verifies that AggregatedPatientLastObservationsByLastDate returns an empty list when the provided filter does not match any patient observations.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=a861d66 body=68738b9 -->
|
||||
[Test]
|
||||
public async Task AggregatedPatientLastObservationsByLastDate_Filter_Not_Find_Return_Empty_List()
|
||||
{
|
||||
@@ -249,6 +258,7 @@ public class ObservationRepositoryTest
|
||||
/// Verifies that AggregatedPatientLastObservationsByField returns a non-null list of aggregated patient last observations
|
||||
/// when the filter is <c>null</c>, confirming the expected fallback behavior and default result set.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=caf7033 body=c85338e -->
|
||||
[Test]
|
||||
public async Task AggregatedPatientLastObservationsByField_Null_Filter_Return_List()
|
||||
{
|
||||
@@ -261,6 +271,7 @@ public class ObservationRepositoryTest
|
||||
/// <summary>
|
||||
/// Tests that filtering aggregated patient last observations by a specific field returns a non-null list containing the expected number of results.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=5917458 body=a5282a6 -->
|
||||
[Test]
|
||||
public async Task AggregatedPatientLastObservationsByField_Filter_Return_List()
|
||||
{
|
||||
@@ -276,6 +287,7 @@ public class ObservationRepositoryTest
|
||||
/// <summary>
|
||||
/// Verifies that _repository.AggregatedPatientLastObservationsByField returns an empty list when the filter field has <c>OnlyExpired</c> set to <c>true</c>, indicating no expired observations are available for the patient.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=276c465 body=3f97cba -->
|
||||
[Test]
|
||||
public async Task AggregatedPatientLastObservationsByField_Filter_OnlyExpired_Return_Empty_List()
|
||||
{
|
||||
@@ -294,6 +306,7 @@ public class ObservationRepositoryTest
|
||||
/// The test inserts a single observation, confirms it is persisted, deletes it by
|
||||
/// patient id, and asserts that no records remain for that patient.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=79b17ee body=9f320fb -->
|
||||
[Test]
|
||||
public async Task DeleteByPatientId()
|
||||
{
|
||||
@@ -327,6 +340,7 @@ public class ObservationRepositoryTest
|
||||
/// <summary>
|
||||
/// Verifies that FindByPatientIdAsync returns a non-null cursor containing the expected number of records for the specified patient identifier.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=d18d952 body=133ddc6 -->
|
||||
[Test]
|
||||
public async Task FindByPatientIdAsync_Return_Cursor()
|
||||
{
|
||||
@@ -339,6 +353,7 @@ public class ObservationRepositoryTest
|
||||
/// <summary>
|
||||
/// Verifies that <see cref="DeleteAsync"/> correctly removes a patient observation from the repository by inserting a record, confirming its presence, deleting it, and ensuring it is no longer retrievable.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=fff9e82 body=a6a87ee -->
|
||||
[Test]
|
||||
public async Task DeleteAsync()
|
||||
{
|
||||
@@ -372,6 +387,7 @@ public class ObservationRepositoryTest
|
||||
/// <summary>
|
||||
/// Verifies that the repository's <c>DeleteOlderDaysAsync</c> method removes <see cref="PatientObservation"/> records older than the specified day threshold while keeping more recent ones, and that <c>DeleteByPatientId</c> subsequently clears the remaining records associated with the same patient.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=da9fb95 body=8dfd6d6 -->
|
||||
[Test]
|
||||
public async Task DeleteOlderDaysAsync()
|
||||
{
|
||||
@@ -425,6 +441,7 @@ public class ObservationRepositoryTest
|
||||
/// <summary>
|
||||
/// Verifies that <c>DeleteOlderSecondsAsync</c> removes <c>PatientObservation</c> entries whose timestamp is older than the specified number of seconds, keeping more recent entries with the same name intact, and that <c>DeleteByPatientId</c> clears all remaining observations for the given patient.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=9941ee8 body=377855c -->
|
||||
[Test]
|
||||
public async Task DeleteOlderSecondsAsync()
|
||||
{
|
||||
@@ -479,6 +496,7 @@ public class ObservationRepositoryTest
|
||||
/// <summary>
|
||||
/// Verifies that the repository's <c>DeleteOlderNumberAsync</c> method retains only the most recent specified count of <see cref="PatientObservation"/> records sharing the same name, deleting the older entries, and that <c>DeleteByPatientId</c> subsequently removes all remaining records for the patient.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=340569b body=00db271 -->
|
||||
[Test]
|
||||
public async Task DeleteOlderNumberAsync()
|
||||
{
|
||||
@@ -546,6 +564,7 @@ public class ObservationRepositoryTest
|
||||
/// <summary>
|
||||
/// Verifies that _repository.<c>ExistBySystemId</c> returns a valid result when checking existence by the given patient and system identifiers.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=4a76800 body=c1adb09 -->
|
||||
[Test]
|
||||
public async Task ExistBySystemId_Return_List()
|
||||
{
|
||||
@@ -558,6 +577,7 @@ public class ObservationRepositoryTest
|
||||
/// <summary>
|
||||
/// Verifies that FindLastObservationBeforeDate returns a non-null observation whose timestamp is earlier than the specified date, confirming a matching record is retrieved successfully.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=c4f6209 body=029c0ad -->
|
||||
[Test]
|
||||
public async Task FindLastObservationBeforeDate_Return_Obs()
|
||||
{
|
||||
@@ -571,6 +591,7 @@ public class ObservationRepositoryTest
|
||||
/// Verifies that the repository's <c>FindAnyWithSameDate</c> method returns a non-null list containing exactly one observation
|
||||
/// when searching for observations associated with the specified patient, name, and date.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=f4d1d6e body=13ab188 -->
|
||||
[Test]
|
||||
public async Task FindAnyWithSameDate_Return_List_Obs()
|
||||
{
|
||||
@@ -583,6 +604,7 @@ public class ObservationRepositoryTest
|
||||
/// <summary>
|
||||
/// Tests that the repository returns a non-null list of two observations for a patient, found before the specified date (yesterday).
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=7625bc5 body=4184aa0 -->
|
||||
[Test]
|
||||
public async Task FindAnyBeforeDate_Return_List_Obs()
|
||||
{
|
||||
@@ -595,6 +617,7 @@ public class ObservationRepositoryTest
|
||||
/// <summary>
|
||||
/// Verifies that AggregatedPatientActiveIntravenousLinesObservations returns a non-null, empty list of observations for the specified patient when no filter criteria are provided.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=443bc38 body=fa1727f -->
|
||||
[Test]
|
||||
public async Task AggregatedPatientActiveIntravenousLinesObservations_Null_Filter_Return_List_Obs()
|
||||
{
|
||||
@@ -607,6 +630,7 @@ public class ObservationRepositoryTest
|
||||
/// <summary>
|
||||
/// Verifies that _repository.AggregatedPatientActiveIntravenousLinesObservations returns an empty list of observations when the filter value is not the Patient Intravenous Lines value.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=222e074 body=fa1727f -->
|
||||
[Test]
|
||||
public async Task
|
||||
AggregatedPatientActiveIntravenousLinesObservations_Filter_Not_PatientIntravenousLineasValue_Return_List_Obs()
|
||||
@@ -622,6 +646,7 @@ public class ObservationRepositoryTest
|
||||
/// when filtering by patient id and the observation value is a <c>PatientIntravenousLinesValue</c> instance.
|
||||
/// The test inserts a single matching observation, asserts that exactly one record is returned, and confirms successful cleanup by deletion.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=de0f13c body=e70da59 -->
|
||||
[Test]
|
||||
public async Task
|
||||
AggregatedPatientActiveIntravenousLinesObservations_Filter_PatientIntravenousLineasValue_Return_List_Obs()
|
||||
@@ -663,6 +688,7 @@ public class ObservationRepositoryTest
|
||||
/// <summary>
|
||||
/// Verifies that the repository method <c>FindAllLastPatientObservationTime</c> returns a non-null collection containing at least one last patient observation time record.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=ae4ea39 body=e0d34c8 -->
|
||||
[Test]
|
||||
public async Task FindAllLastPatientObservationTime_Return_List()
|
||||
{
|
||||
@@ -675,6 +701,7 @@ public class ObservationRepositoryTest
|
||||
/// <summary>
|
||||
/// Verifies that the repository's <c>FindById</c> method returns <c>null</c> when the requested entity does not exist in the data store.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=fa5827c body=aa8e2ed -->
|
||||
[Test]
|
||||
public async Task FindById_Return_null()
|
||||
{
|
||||
@@ -686,6 +713,7 @@ public class ObservationRepositoryTest
|
||||
/// <summary>
|
||||
/// Verifies that the repository's <c>FindById</c> method returns a non-null entity whose identifier matches the requested <c>Id</c>.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=a8a8a1f body=5c4b5c9 -->
|
||||
[Test]
|
||||
public async Task FindById_Return_Obs()
|
||||
{
|
||||
@@ -699,6 +727,7 @@ public class ObservationRepositoryTest
|
||||
/// Verifies that the repository's <c>UpdateExpiredObservations</c> method correctly marks all non-expired observations belonging to a patient as expired.
|
||||
/// The test inserts five fresh observations, asserts that none are expired, invokes the update, and then asserts that all five have been flagged as expired before cleaning up the inserted data.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=b94178a body=272a747 -->
|
||||
[Test]
|
||||
public async Task UpdateExpiredObservations()
|
||||
{
|
||||
@@ -753,6 +782,7 @@ public class ObservationRepositoryTest
|
||||
/// <summary>
|
||||
/// Verifies that the repository's <c>FindAll</c> method returns a non-null and non-empty collection of patient observations.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=b6f854b body=d3aacf4 -->
|
||||
[Test]
|
||||
public async Task FindAll_Return_List_Obs()
|
||||
{
|
||||
@@ -766,6 +796,7 @@ public class ObservationRepositoryTest
|
||||
/// <summary>
|
||||
/// Verifies that the repository's <c>FindNotExpired</c> method returns a non-empty collection of patient observations for the provided observation names.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=8432757 body=44f224f -->
|
||||
[Test]
|
||||
public async Task FindNotExpired_Return_List_Obs()
|
||||
{
|
||||
@@ -781,6 +812,7 @@ public class ObservationRepositoryTest
|
||||
/// configuration observations as expired so that a subsequent _repository.FindNotExpired
|
||||
/// call returns only the remaining non-expired observations, deduplicating the requested names.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=f38e833 body=a355c89 -->
|
||||
[Test]
|
||||
public async Task ExpireExpiredObservations()
|
||||
{
|
||||
@@ -824,6 +856,7 @@ public class ObservationRepositoryTest
|
||||
/// <summary>
|
||||
/// Verifies that the repository's <c>FindByName</c> method returns a non-null, non-empty list of <see cref="PatientObservation"/> objects when searching by the name "name1".
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=4909264 body=8a20493 -->
|
||||
[Test]
|
||||
public async Task FindByName_Return_List_Obs()
|
||||
{
|
||||
@@ -837,6 +870,7 @@ public class ObservationRepositoryTest
|
||||
/// <summary>
|
||||
/// Verifies that <c>AggregatedPatientGroupedObservations</c> returns a non-null, empty list when called with a default <see cref="GroupedField"/> instance for the given patient.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=ba3950a body=ab60777 -->
|
||||
[Test]
|
||||
public async Task AggregatedPatientGroupedObservations_Null_groupedField_Return_List_Emty()
|
||||
{
|
||||
@@ -855,6 +889,7 @@ public class ObservationRepositoryTest
|
||||
/// are aggregated for a patient using the First result selection strategy with a maximum of 8 groups.
|
||||
/// Verifies successful aggregation and ensures all inserted test observations are removed by patient id.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=ddd2397 body=6da0755 -->
|
||||
[Test]
|
||||
public async Task AggregatedPatientGroupedObservations_Hour_Firs_Return_List_9()
|
||||
{
|
||||
@@ -908,6 +943,7 @@ public class ObservationRepositoryTest
|
||||
/// Inserts 30 observations, asserts the aggregated result count is 8, and confirms cleanup by patient id removes all inserted records.
|
||||
/// </summary>
|
||||
/// <returns>A task that completes when the test finishes, including assertions and cleanup.</returns>
|
||||
/// <!-- aidoc:v1 sig=16bfc4b body=6ec573c -->
|
||||
[Test]
|
||||
public async Task AggregatedPatientGroupedObservations_Hour_Firs_Since_Last_Return_List_8()
|
||||
{
|
||||
@@ -959,6 +995,7 @@ public class ObservationRepositoryTest
|
||||
/// <summary>
|
||||
/// Verifies that inserting five patient observations with hourly regularity and aggregating them using the first result returns a list of four or five grouped entries, and ensures the inserted observations are removed by patient id.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=b1196b2 body=b383d16 -->
|
||||
[Test]
|
||||
public async Task AggregatedPatientGroupedObservations_Insert_5_Hour_Firs_Return_List_5()
|
||||
{
|
||||
@@ -1010,6 +1047,7 @@ public class ObservationRepositoryTest
|
||||
/// <summary>
|
||||
/// Verifies that <c>AggregatedPatientGroupedObservations</c> returns a non-empty list when patient observations are grouped by a field with second-level regularity and the aggregation selects only the first result per group, and that the inserted observations are fully removed by the cleanup step.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=979ce59 body=7455833 -->
|
||||
[Test]
|
||||
public async Task AggregatedPatientGroupedObservations_second_Firs_Return_List()
|
||||
{
|
||||
@@ -1060,6 +1098,7 @@ public class ObservationRepositoryTest
|
||||
/// <summary>
|
||||
/// Verifies that the aggregated grouped observations query, configured with minute regularity, the <c>First</c> result and a maximum of 8, returns a list of exactly 8 entries even when 30 underlying observations exist for the patient.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=26e8af5 body=afe533b -->
|
||||
[Test]
|
||||
public async Task AggregatedPatientGroupedObservations_Minute_Firs_Return_List_8()
|
||||
{
|
||||
@@ -1113,6 +1152,7 @@ public class ObservationRepositoryTest
|
||||
/// Also confirms that observations inserted for the test patient are removed by the cleanup step.
|
||||
/// </summary>
|
||||
/// <returns>A task that completes when the aggregation result is validated and the test data is cleaned up.</returns>
|
||||
/// <!-- aidoc:v1 sig=ac82ee8 body=f55a331 -->
|
||||
[Test]
|
||||
public async Task AggregatedPatientGroupedObservations_Day_Firs_Return_List_8()
|
||||
{
|
||||
@@ -1163,6 +1203,7 @@ public class ObservationRepositoryTest
|
||||
/// <summary>
|
||||
/// Verifies that <c>AggregatedPatientGroupedObservations</c> returns a list of 9 entries containing the "first" marker when grouping 30 patient observations by a shift-regularity field with a max of 8 and <c>Result.First</c> selected, and that all inserted observations are removed by the cleanup call.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=908c690 body=45a4df9 -->
|
||||
[Test]
|
||||
public async Task AggregatedPatientGroupedObservations_Shift_Firs_Return_List_9()
|
||||
{
|
||||
@@ -1216,6 +1257,8 @@ public class ObservationRepositoryTest
|
||||
/// Inserts two observations for each of the last 5 hours (at minutes 15 and 30), runs the aggregation for a new patient, and verifies the result count is 5 and that every entry contains the "last" marker.
|
||||
/// Cleanup is performed by deleting the inserted observations by patient id and asserting that the collection is empty afterwards.
|
||||
/// </summary>
|
||||
/// <!-- aidoc-review:v1 severity=low kind=wrong_summary
|
||||
/// "First sentence states '5 observations are inserted per hour' but the code inserts 2 observations per hour (at minutes 15 and 30) across 5 hours. The subsequent sentence correctly clarifies this." -->
|
||||
[Test]
|
||||
public async Task AggregatedPatientGroupedObservations_Insert_5_Hour_last_Return_List_5()
|
||||
{
|
||||
@@ -1293,6 +1336,7 @@ public class ObservationRepositoryTest
|
||||
/// into hourly groups and returns the sum of values for each hour when five hours of data are inserted.
|
||||
/// </summary>
|
||||
/// <returns>A task that represents the asynchronous test execution.</returns>
|
||||
/// <!-- aidoc:v1 sig=70c846f body=b222435 -->
|
||||
[Test]
|
||||
public async Task AggregatedPatientGroupedObservations_Insert_5_Hour_sum_Return_List_5()
|
||||
{
|
||||
@@ -1377,6 +1421,7 @@ public class ObservationRepositoryTest
|
||||
/// AggregatedPatientGroupedObservations returns a list of five entries, each containing the minimum value of 3.
|
||||
/// Also confirms that observations are cleaned up by patient id after the test executes.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=46c6e82 body=eb3a01b -->
|
||||
[Test]
|
||||
public async Task AggregatedPatientGroupedObservations_Insert_5_Hour_Min_Return_List_5()
|
||||
{
|
||||
@@ -1455,6 +1500,7 @@ public class ObservationRepositoryTest
|
||||
/// maximum value for each group, producing one aggregated result per hour when inserting two observations
|
||||
/// (with different values) for each of five consecutive hours.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=fe72045 body=5459e9e -->
|
||||
[Test]
|
||||
public async Task AggregatedPatientGroupedObservations_Insert_5_Hour_Max_Return_List_5()
|
||||
{
|
||||
@@ -1537,6 +1583,7 @@ public class ObservationRepositoryTest
|
||||
/// Inserts 10 observations across 5 different hours (two per hour with values 5 and 3), verifies the result count is 5, and asserts that each entry contains the "average" field with a value of 3 or 4.
|
||||
/// Cleans up by deleting all observations for the test patient after verification.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=41afdfe body=ac8d03f -->
|
||||
[Test]
|
||||
public async Task AggregatedPatientGroupedObservations_Insert_5_Hour_Average_Return_List_5()
|
||||
{
|
||||
@@ -1619,6 +1666,7 @@ public class ObservationRepositoryTest
|
||||
/// Inserts ten observations (two per hour for five consecutive hours) for a new patient, runs the aggregation, and asserts that the result contains five entries each reporting a count of 1 or 2.
|
||||
/// Also confirms that cleanup via <c>DeleteByPatientId</c> removes the inserted observations for the generated patient.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=86524d8 body=92a501b -->
|
||||
[Test]
|
||||
public async Task AggregatedPatientGroupedObservations_Insert_5_Hour_Count_Return_List_5()
|
||||
{
|
||||
@@ -1701,6 +1749,7 @@ public class ObservationRepositoryTest
|
||||
/// Inserts two sets of observations at different minute offsets across the last five hours, then asserts the aggregation result count matches the expected number of groups and the "all" subset is returned.
|
||||
/// Also validates cleanup by ensuring no observations remain for the test patient after deletion.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=2bb5c5e body=3897462 -->
|
||||
[Test]
|
||||
public async Task AggregatedPatientGroupedObservations_Insert_5_Hour_HalfHour_Return_List_5()
|
||||
{
|
||||
@@ -1794,6 +1843,7 @@ public class ObservationRepositoryTest
|
||||
/// observation value (either 5 or 3 depending on insertion order) and that the inserted test data is
|
||||
/// cleaned up afterwards.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=40fc878 body=161ff4e -->
|
||||
[Test]
|
||||
public async Task AggregatedPatientGroupedObservations_Insert_5_Hour_LastFilled_Return_List_5()
|
||||
{
|
||||
@@ -1876,6 +1926,7 @@ public class ObservationRepositoryTest
|
||||
/// <summary>
|
||||
/// Tests that the repository's aggregated patient grouped observations, configured with hourly regularity and the LastAll result option, returns a list of 5 entries when 5 hours of data are inserted (with two observations per hour at minutes 15 and 31), and verifies that cleanup by patient ID removes all inserted records.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=03215f8 body=3230a69 -->
|
||||
[Test]
|
||||
public async Task AggregatedPatientGroupedObservations_Insert_5_Hour_LastAll_Return_List_5()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user