What’s new

Changes to the QC Analytical Results API by version.

1.4.1 (with QC Analytical Results 2.6)

  • Gross errors: a new cause, above_detection, for a result at or above the upper detection limit. The laboratory reported its limit, not the grade, so why asks for a re-assay by the ore-grade method. It is checked before the other causes.
  • The step that keeps a result within 2 reporting steps of the median from being a gross error now comes from the other results only. A slip’s own gap no longer widens it.

1.4.0 (with QC Analytical Results 2.5)

  • Gross errors on shewhart, cusum and ewma. A result more than 10 SD from the centre is a mistake, not a laboratory bias, and the spec gains gross_errors, one row for each, worst first. With use_certified_values the centre is the certified value and SD, and the result must also be 10 SD from the median of the CRM’s results, by their robust SD (1.4826 × MAD). Without it, only the median and robust SD are used. A result within 2 reporting steps of the median is never one. Each row has check_id, value, n_sd (signed), cause and why. cause is swap (the result matches another CRM’s certified value in the dataset), slip (about 10, 100 or 1,000 times the centre, or that fraction), near_detection (at or below twice the detection limit) or none. why is the sentence the app shows. With no gross error the spec is as in 1.3.0, and gross_error_centre names the centre when there is one.
  • Every other chart is as in 1.3.0.

1.3.0 (with QC Analytical Results 2.4)

  • Two charts of a whole laboratory, as on the app’s Charts tab. Each takes every CRM, so neither takes crm_type, crms or use_certified_values.
  • week-by-week: the laboratory’s CRM results week by week, for every analyte with the same method as analyte. The spec has cells, one row for each analyte and week: analyte, week (its Monday), n (results), crms, median_sd (the median of the results’ distance from certified, in certified SDs; null under 3 results) and top_crm (the CRM with the most results for the analyte, to open its Shewhart chart). analytes lists the rows in order. stats gives analytes, crm_results, weeks, left_out and left_why. The weeks follow date_type. A CRM result at or above the upper detection limit, or with no date, is left out and counted.
  • bias-against-grade: the laboratory’s bias against grade for analyte. The spec has crms, one row for each CRM with 5 results or more (crm, n, certified, sd, median, bias, pct, z, q1_pct, q3_pct), fit (the pattern, proportional, constant, unclear, none or too_few, with prop_pct, const and each shape’s misfit) and sentence. Send cutoff, and ore_grade if you wish, in the analyte’s units, and the spec adds cutoff_sentence: the bias at those grades and the outcome, judged at caution_pct (default 3) and fail_pct (default 10).
  • Every other chart is as in 1.2.0.

1.2.0 (with QC Analytical Results 2.2.1)

  • Changes in precision on rd-sequence and rd-rolling-median: send "change_points": true and the spec gains change_points (on rd-sequence faceted by stage, each panel has its own), one row for each change in precision found in the pairs. The analysis is Taylor’s, run on the ranks of each pair’s |RD| in the chart’s order. Each row has index (the last pair before it, in that order), x (where to draw it), confidence, level (change at 95% or more, possible at 90 to 95%), median_rd_before and median_rd_after, median_grade_before and median_grade_after (the median of each pair’s mean), grade_ratio (after over before) and grade_moved (true when the grade rose by a quarter or more, or fell by a fifth or more: lower grades give poorer precision, so the grade may explain the change). rd-sequence adds date or label (the x axis value); rd-rolling-median adds date, despatch and despatch_next (the same despatch when the change falls inside one). Leave it out and the spec is as before.

1.1.0 (with QC Analytical Results 2.1.1)

  • Change points on shewhart and cusum: send "change_points": true and the spec gains change_points, a table with one row for each shift found in the results (Taylor’s change-point analysis): index (the last result before it), x (halfway between that result and the next, in the axis’s units), check_id, lab_job, despatch, date on a date axis, confidence (0 to 1), level (change at 0.95 or more, possible at 0.90 to 0.95), mean_before, mean_after and shift_sd (the shift in standard deviations, when the SD is known). It is empty when there is none. meta.change_points is true. Without the parameter, every chart’s spec is exactly as in 1.0.0.

1.0.0 (October 2026)

The first version: datasets of two kinds, the 18 charts of the app, keys from the Toolkit account page, request ids. Every chart’s spec follows one convention: plain lower-case names (value, check_id, pair_mean, never a database column name), outlier as true/false and band as ok, warning or action, control limits as centre, warning_low, warning_high, action_low, action_high, statistics keyed as numbers (n, mean, pct_outside_2sd), the Nelson rules as a table of rule, description, status, and faceted charts as panels keyed by check stage, each shaped like the single chart.