← Back to Home

Mortality 47 Project

Test Total - Aggregation Source

Summary

The Test Total data source is a SummationSource that aggregates values from multiple test data sources in the mock environment. This aggregation provides a single consolidated view of all test values.

Data Flow

Test Source 1 (42) ──┐
                     ├─► Test Total (158)
Test Source 2 (17) ──┤
                     │
Test Source 3 (99) ──┘

Aggregation Details

Source Components

The following sources contribute to this total:

  1. test-1: Static value of 42
  2. test-2: Static value of 17
  3. test-3: Static value of 99

Calculation Method

Technical Implementation

Class Structure

class SummationSource extends DataSourceBase {
  private childSources: DataSource[];
  
  constructor(id: string, name: string, sources: DataSource[]) {
    super(id, name, "Sum of X dataloaders sources");
    this.childSources = sources;
  }
}

Error Handling

Use Cases

✅ Ideal For

❌ Not Suitable For

Monitoring & Validation

Expected Behavior

Troubleshooting

If the total doesn't equal 158:

  1. Check that all three child sources are loaded
  2. Verify no sources are disabled
  3. Ensure aggregation calculation is functioning
  4. Review audit logs for any errors

This is a synthetic aggregation for testing purposes only.