@welldot/utils
getExceedances
Compares a sample's usable results with a limit set (or a list of limits).
getExceedances(
sample,limits):Exceedance
Compares a sample's usable results with a limit set (or a list of limits).
- Results resolve through
parameterKey, so a CAS-coded result matches the limit of itswelldotequivalent. - Turbidity:
turbidity,turbidity_ntuandturbidity_fnumatch a limit on any of those codes;turbidity_fauis never compared. - A limit with
fractionapplies only to results of that fraction (a result withoutfractioncounts astotal). presence_allowed: falseis exceeded bypresence: true(presence).<andnot_detectednever exceed a maximum (<is below a minimum when its value is ≤min);>exceeds a maximum when its value is ≥max. Other numeric values are compared directly (bounds inclusive).- Rejected results and text results are skipped.
Parameters
sample
WaterSample
limits
LimitSet | readonly Limit