=== 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:
@@ -1404,6 +1404,7 @@ public class CalculatedObservationsTest
|
||||
/// the Map method creates and inserts a multivalue observation (Respiratory_Device_Multivalue)
|
||||
/// containing the intervention description extracted from the observation value.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=163c94e body=65cb819 -->
|
||||
[Test]
|
||||
public async Task Map_WithInterventionCodeInObservationValue_CallsCalculateInterventionMultiValueObservation()
|
||||
{
|
||||
@@ -1437,6 +1438,7 @@ public class CalculatedObservationsTest
|
||||
/// Verifies that mapping an <c>Intervention_Out</c> observation updates an existing active multi-value observation
|
||||
/// (e.g., <c>Respiratory_Device_Multivalue</c>) for the patient by setting its end time, rather than inserting a new observation.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=d1e8de8 body=707d6a7 -->
|
||||
[Test]
|
||||
public async Task Map_WithInterventionOut_UpdatesExistingMultiValueObservation()
|
||||
{
|
||||
@@ -1483,6 +1485,10 @@ public class CalculatedObservationsTest
|
||||
/// Verifies that when a new "Intervention_In" observation is mapped via <c>Map</c> and the patient's prior "Respiratory_Device_Multivalue" observation is expired (so there is no existing active last observation), a new <see cref="PatientObservation"/> named "Respiratory_Device_Multivalue" is inserted containing the new intervention while the existing expired observation is left untouched.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=4271f27 body=7d4a79d -->
|
||||
/// <!-- aidoc-review:v1 severity=high kind=wrong_summary
|
||||
/// "The summary states the newly inserted observation is 'containing the new intervention', but the assertion explicitly checks that the inserted value is NOT equal to the new intervention description (`((string[])o.Value)[0] != newInterventionDescription`). The test allows a value that is neither the old nor the new intervention, contradicting the documented behavior." -->
|
||||
/// <!-- aidoc-review:v1 severity=high kind=wrong_summary
|
||||
/// "The summary claims 'the existing expired observation is left untouched', but the test only verifies that UpdateObservation is never called; there is no assertion specifically confirming the expired observation is untouched (e.g., it could still be replaced or modified via a path the mocks don't cover)." -->
|
||||
[Test]
|
||||
public async Task Map_WithNewInterventionNoExistingLastIntervention_NewMultiValueObservation()
|
||||
{
|
||||
@@ -1541,6 +1547,8 @@ public class CalculatedObservationsTest
|
||||
/// new record through <see cref="IObservationService.InsertObservation"/>.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=4e3257d body=697676f -->
|
||||
/// <!-- aidoc-review:v1 severity=high kind=wrong_summary
|
||||
/// "The summary states 'the new intervention is appended to the existing multi-value observation via UpdateObservation', but the UpdateObservation assertion verifies the updated observation has Length == 1 with only the existing intervention (and Expired = true), NOT the new intervention appended. The assertions verify the existing observation is expired via UpdateObservation and that no combined InsertObservation occurs, contradicting the described append-via-UpdateObservation behavior." -->
|
||||
[Test]
|
||||
public async Task Map_WithNewInterventionAddsToExistingMultiValueObservation()
|
||||
{
|
||||
@@ -1602,6 +1610,7 @@ public class CalculatedObservationsTest
|
||||
/// Verifies that mapping a surgery observation inserts a new Surgery_Multivalue observation
|
||||
/// when no existing multi-value observation is found, and does not trigger an update.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=a509623 body=817f4ef -->
|
||||
[Test]
|
||||
public async Task Map_WithSurgeryObservation_InsertsNewSurgeryMultiValueObservation()
|
||||
{
|
||||
@@ -1645,6 +1654,7 @@ public class CalculatedObservationsTest
|
||||
/// to be expired and replaced with a new multi-value observation that contains both the previously recorded
|
||||
/// surgery value and the newly mapped surgery value.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=d2c7ca7 body=551d45d -->
|
||||
[Test]
|
||||
public async Task Map_WithSurgeryObservation_UpdatesExistingSurgeryMultiValueObservation()
|
||||
{
|
||||
@@ -1700,6 +1710,7 @@ public class CalculatedObservationsTest
|
||||
/// <summary>
|
||||
/// Verifies that mapping a Surgery observation updates the existing Surgery_Multivalue observation by expiring the duplicate entry and inserting a new observation with the duplicate value removed.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=46caac9 body=55e3f72 -->
|
||||
[Test]
|
||||
public async Task Map_WithSurgeryObservation_UpdatesExistingSurgeryMultiValueObservation_RemovesDuplicate()
|
||||
{
|
||||
@@ -1754,6 +1765,7 @@ public class CalculatedObservationsTest
|
||||
/// <summary>
|
||||
/// Verifies that does not insert or update any observation when a surgery observation is provided with a non-string <c>Value</c>.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=e4795ba body=7bfc460 -->
|
||||
[Test]
|
||||
public async Task Map_WithSurgeryObservation_HandlesNonStringValue()
|
||||
{
|
||||
@@ -1782,6 +1794,7 @@ public class CalculatedObservationsTest
|
||||
/// Verifies that the <see cref="CalculatedObservations.Map"/> method, when invoked with a respiratory device multivalue observation
|
||||
/// and no prior observations, inserts a "Complexity" observation with a value of 1.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=09fcb0a body=445a173 -->
|
||||
[Test]
|
||||
public async Task Map_WithRespiratoryDeviceMultiValueObservation_CallsCalculateComplexity_Return1()
|
||||
{
|
||||
@@ -1887,6 +1900,8 @@ public class CalculatedObservationsTest
|
||||
/// </summary>
|
||||
/// <param name="observation">The <see cref="PatientObservation"/> instance passed implicitly to the
|
||||
/// test runner; not directly used as a method argument since this is a parameterless test method.</param>
|
||||
/// <!-- aidoc-review:v1 severity=medium kind=extra_param
|
||||
/// "The test method has no parameters, but the documentation includes a <param name=\"observation\"> tag. While the text acknowledges it is parameterless, the tag itself should not exist." -->
|
||||
[Test]
|
||||
public async Task Map_WithTwoMedicationMultiValueObservation_CalculatesComplexity_Return4()
|
||||
{
|
||||
@@ -1928,6 +1943,7 @@ public class CalculatedObservationsTest
|
||||
/// <summary>
|
||||
/// Verifies that when a patient has a system multivalue observation, medication multivalue observations, and a newborn weight observation, the mapping process calculates a complexity value of 9 and inserts it as a new "Complexity" observation.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=fdea61e body=5aa8c09 -->
|
||||
[Test]
|
||||
public async Task Map_WithSystemMedicationAndNewbornWeightMultiValueObservation_CalculatesComplexity_Return9()
|
||||
{
|
||||
@@ -2025,6 +2041,7 @@ public class CalculatedObservationsTest
|
||||
/// <summary>
|
||||
/// Verifies that the <c>Map</c> method correctly calculates a complexity value of 13 when the input observation represents surgery, medication, and newborn weight data, by aggregating the per-section contribution of each observation type.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=9b92aff body=952f1bc -->
|
||||
[Test]
|
||||
public async Task Map_WithSurgeryMedicationMewbornWeightMultiValueObservation_CalculatesComplexity_Returns13()
|
||||
{
|
||||
@@ -2356,6 +2373,7 @@ public class CalculatedObservationsTest
|
||||
/// <summary>
|
||||
/// Verifies that mapping a patient treatment with no placer order returns the original treatment unchanged.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=4641a92 body=97aa6f6 -->
|
||||
[Test]
|
||||
public async Task Map_TreatmentWithNoPlacerOrder_ReturnsOriginalTreatment()
|
||||
{
|
||||
@@ -2374,6 +2392,7 @@ public class CalculatedObservationsTest
|
||||
/// Verifies that mapping a treatment which has active older treatments sets the order control to <c>XO</c>
|
||||
/// (cancel as a result of a new order being accepted) and does not insert a new observation.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=3fa3c83 body=55a8c26 -->
|
||||
[Test]
|
||||
public async Task Map_TreatmentWithActiveOlderTreatments_SetsOrderControlToXO()
|
||||
{
|
||||
@@ -2399,6 +2418,7 @@ public class CalculatedObservationsTest
|
||||
/// <summary>
|
||||
/// Verifies that when mapping a patient treatment with no active older treatments, the resulting order control is set to <see cref="OrderControlType.Nw"/> and no patient observation is inserted.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=a3a0846 body=9a069fa -->
|
||||
[Test]
|
||||
public async Task Map_TreatmentWithNoActiveOlderTreatments_SetsOrderControlToNW()
|
||||
{
|
||||
@@ -2423,6 +2443,7 @@ public class CalculatedObservationsTest
|
||||
/// <summary>
|
||||
/// Verifies that when a patient treatment has an end time set, mapping it sets the order control to <see cref="OrderControlType.Dc"/> and does not insert a new observation.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=c977810 body=b9cabf5 -->
|
||||
[Test]
|
||||
public async Task Map_TreatmentWithEndTimeSet_SetsOrderControlToDC()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user