We have measurements that comes at a day frequency, they are register kind of measurements. We are using
When integrating a new measurement we should respect the following requirements:
Measurements should be integrated only if
Value (day) < Value (day - 1)or
Value (day - 1)hit the register max value and
-idea: I guess I have to implement the register normalizer on top of the default normalizer.
Measurement should not be integrated if value is very high compared to the previous one (daily max growth = 1/10 of the index max value)
-no idea: how can I guarantee this?
Measurement should not be integrated if duplicate, i.e same timestamp, same value, same meter.
-idea: this is handled in normalization, right?
Measurement should not be integrated if inconsistent, i.e. same timestamp, same meter but different values
-no idea: note that the next measurement can came later and should made the previous one invalid!
Measurement should not be integrated if timestamp is in the future, i.e. measurement timestamp >
-idea: This can be handled in the transformation
Measurement should not be integrated if the value is greater than the max value set in the meter.
-idea: This is handled by
RegisterMeasurementSeries, but we cannot use this as
dataVersionand we need this field.
Any additional inputs on how I can address these requirements?