Collar
Open the demo

Rule catalogue

101 named checks

You never run a check. Problems show up as you type, many with the fix beside them, and Collar shows only the ones that fire, from the moment your data is imported.

Legend

Every finding comes with what it means and what to do. Nine groups, in the order the data arrives. Each rule has its own page: what it checks, why it matters, what to do, and every parameter, the same text as Help in the app.

Severity

Blocker findings are fixed before the export, many in one click, or a named person makes the call, with their reason in the validation report. Warning can be acknowledged with a reason. Info never blocks.

01

Collar

18 rules · 5 blockers · 12 warnings · 1 info

Hole ids, coordinate sets and datums, EOH, dates, wedges and precollars, hole type, and distance from the planned position.

RuleSeverityNameWhat Collar checks
R1BlockerDuplicate hole idLooks for two or more collar rows with the same hole_id, compared without case, so MRN045 and mrn045 count as one hole.
R2WarningNear-duplicate hole idsCompares the collar hole ids and reports pairs that differ only by spacing or zero padding, such as MRN045, MRN 045 and MRN45.
R3BlockerPreferred coordinates missing or invalidEach hole with a collar row must have exactly one coordinate set marked preferred in collar_coord, with a valid easting, northing and RL.
R4BlockerEOH missing or not positiveEvery collar whose status is not planned must have an eoh_depth greater than zero.
R5WarningDuplicate collar locationCompares the preferred collar positions of all holes that share a CRS and reports any two collared closer than the set distance.
R6WarningEasting and northing swappedGroups preferred coordinate sets by CRS and flags a set whose easting and northing fit the project far better swapped, judged against the median collar position.
R7WarningCollar outside its CRS zoneTests each hole's preferred coordinate set against the bounds of its CRS, such as the easting range and longitudes of an MGA or UTM zone.
R8WarningRL disagrees with the DEMWhen a DEM is loaded, compares each hole's preferred RL with the ground surface from the DEM at the collar position and reports a difference larger than the tolerance.
R9WarningCoordinate sets disagreeFor each hole, compares every non-planned coordinate set with the preferred set after transforming it into the preferred set's CRS.
R10WarningMixed datums suspectedPairs each hole's preferred set with its sets from other methods and looks at the offsets, one method pair at a time.
R11WarningCollar far from its planned positionFor each hole whose preferred set is not the planned one, measures the horizontal distance from the planned coordinate set to the preferred set.
R12InfoHole short of planned depth without a reasonReports a drilled hole (status neither planned nor in_progress: a hole still being drilled is short of plan until it stops) whose EOH is shallower than its planned depth and whose abandon_reason is empty.
R13WarningCompleted hole with only planned or handheld coordinatesReports a hole with status completed whose coordinate sets all use a poor method, planned or handheld by default.
R14WarningCollar dates wrongLooks at date_started and date_completed on each collar.
R15BlockerWedge geometry wrongFor each wedge (a collar with a parent_hole_id), reports a parent that is not in the collar table, a kickoff_depth below the parent's EOH, and a daughter EOH shallower than its own kickoff depth.
R16BlockerPrecollar or casing deeper than EOHReports a collar whose precollar_depth or casing_depth is deeper than its eoh_depth.
R17WarningHole type not in listReports a collar whose hole_type is empty or is not a code in the project's hole_type list.
R18WarningPlanned hole with downhole dataReports a collar whose status is planned but which has rows in any downhole table, such as lithology, samples or survey.
02

Survey

15 rules · 6 blockers · 8 warnings · 1 info

Stations for each hole: depths, dip and azimuth, mixed dip signs, doglegs, magnetic readings and the preferred run.

RuleSeverityNameWhat Collar checks
R20BlockerSurvey for a hole not in the collarReports survey_run and survey rows whose hole_id is not in the collar table, and survey stations whose run_id is not one of that hole's runs in survey_run.
R21BlockerDuplicate station depth in a runWithin each survey run, reports a second accepted station at the same depth as another accepted station.
R22BlockerStation depth outside the holeReports any station with a negative depth, and any station deeper than the hole's EOH.
R23BlockerStation without dip or azimuthReports an accepted station whose dip is empty, or whose azimuth is empty in both azimuth_raw and azimuth_grid.
R24BlockerDip or azimuth out of rangeReports a dip outside −90 to 90 and an azimuth (raw or grid) outside 0 to 360, with 360 read as 0.
R25BlockerMixed dip signsLooks at the sign of accepted dips across the survey table.
R26WarningDogleg: curvature too highWithin each run, measures the change of direction between consecutive accepted stations, scaled to degrees per 10 m, and reports a step above the limit.
R27WarningAzimuth flips by 180°Within each run, reports a change of azimuth between consecutive accepted stations that is close to 180°, within the tolerance either side.
R28WarningMagnetic shot inside casingIn runs with a magnetic azimuth reference, reports accepted stations shallower than the hole's casing_depth, or the default casing depth when the collar has none.
R29WarningMagnetic readings disagree with the modelFor accepted stations that record total field, magnetic dip or gravity, compares each value with the bundled geomagnetic model at the hole's position and the run date.
R30WarningCompleted hole without a surveyReports a hole with status completed and EOH deeper than the minimum depth that has no survey run with at least one accepted station with depth, dip and azimuth.
R31InfoNo depth-0 stationLooks at the run Collar uses for desurvey (the preferred run, or the fallback).
R32WarningCollar orientation disagrees with the first stationCompares the collar's recorded collar_azimuth and collar_dip with the first accepted station of the run used for desurvey, as one angle between the two directions.
R33WarningSurvey date outside the geomagnetic modelFor each survey run with a magnetic reference and a date, reports a date outside the validity period of the bundled geomagnetic model.
R34WarningNo single preferred survey runFor each hole with survey runs, reports when no run is marked preferred or when more than one is.
03

Intervals

15 rules · 6 blockers · 9 warnings · 0 info

Lithology, alteration and other from–to tables: gaps, overlaps, depths past EOH, codes off the list and empty required values.

RuleSeverityNameWhat Collar checks
R40BlockerRows for a hole not in the collarReports downhole rows, in any table except the collar and survey tables, whose hole_id has no collar row.
R41BlockerFrom after toIn every interval table, reports an interval whose from is deeper than its to.
R42BlockerNegative depthIn every interval and point table except the survey (R22 covers it), reports a from depth or point depth below zero.
R43BlockerDeeper than EOHIn every interval and point table except the survey, reports a row whose to (or point depth) is deeper than the collar's EOH plus the tolerance.
R44BlockerOverlapping intervalsIn interval tables whose policy forbids overlaps (lithology, regolith, core runs and others), reports an interval that overlaps the one before it.
R45WarningGap between intervalsIn interval tables whose policy warns on gaps, such as lithology and drill method, reports a gap between consecutive intervals larger than the threshold.
R46WarningFirst interval does not start at 0In interval tables whose policy expects cover from the collar, reports a hole whose first interval starts below 0.
R47WarningZero-length intervalIn every interval table, reports an interval whose from equals its to.
R48WarningInterval length outside the table's limitsIn each interval table except the sample table (R83), reports an interval shorter or longer than the believable length the table declares, such as 0.01 to 200 m for lithology and 0.1 to 6 m for core runs.
R49WarningCode not in listReports a value in a list-coded column of any hole table that is not a code in that column's list.
R50WarningRequired value emptyIn every interval and point table, reports an empty cell in a column the table declares required, such as lith1 in lithology or method in drill method.
R51WarningLithology percentages do not add to 100In the lithology table, when both lith1_pct and lith2_pct are filled, reports a row whose sum differs from 100 by more than the tolerance.
R52WarningSecondary logging inconsistentIn the lithology table, reports a row whose lith2 equals its lith1, and a row with colour2 filled but colour1 empty.
R53BlockerWedge interval above its kickoffFor wedge daughters (holes with a parent and a kickoff_depth), reports an interval in any interval table whose from is shallower than the kickoff.
R54WarningDrill method does not change at the precollarFor holes of the precollared types, reports a hole with no drill_method intervals, gaps in drill_method, a missing precollar_depth, or no change of method at the precollar depth within the tolerance.
04

Core runs

8 rules · 1 blockers · 7 warnings · 0 info

Core runs: contiguity, recovery, RQD, SCR and TCR, core size down the hole, and structure orientations.

RuleSeverityNameWhat Collar checks
R55WarningCore runs not contiguousIn the core_run table, reports a gap between consecutive runs larger than the threshold.
R56WarningRecovered more than drilledIn core_run, reports a run whose recovered_length is more than the run length times the ratio.
R57WarningRQD, SCR and TCR out of orderIn core_run, reports a run that breaks 0 ≤ RQD ≤ SCR ≤ TCR ≤ 100, using whichever of the three values are filled.
R58WarningRecovered plus loss is not the run lengthIn core_run, where both recovered_length and core_loss are filled, reports a run whose sum differs from the run length by more than the tolerance.
R59WarningCore size steps up down the holeIn drill_method, follows the diameter down each hole and reports an interval whose core size is larger than the size above it in the size order.
R60WarningCore runs above the precollarFor holes of the precollared types that have a precollar_depth, reports core runs that start above it.
R61BlockerAlpha or beta out of rangeIn the structure table, reports an alpha outside 0 to 90°, a beta outside 0 to 360°, or either value that is not a number.
R62WarningStructure with unacceptable orientation qualityIn the structure table, reports a measurement whose ori_quality is one of the unacceptable codes.
05

Samples

14 rules · 5 blockers · 6 warnings · 3 info

Sample ids, QC inserts and duplicates, composites and re-splits, weights, insertion rates and sample books.

RuleSeverityNameWhat Collar checks
R70BlockerDuplicate sample idReports every sample register row after the first that shares a sample_id with another row, compared without case.
R71BlockerDuplicate without a valid parentFor register rows whose qc_type is a duplicate type, reports a parent_sample_id that is empty or not in the register, a parent in another hole, or a duplicate whose from and to differ from its parent's.
R72BlockerStandard or blank set up wronglyFor standards (crm and standard_inhouse), reports a missing crm_code or a code not in the CRM library, as a blocker.
R73InfoSample status and results disagreeReports a sample marked assayed that has no results, and a sample with results whose status is neither assayed nor void.
R74WarningComposite off the sampling schemeFor assay-stream composites (composite sample types, or any sample a re-split names in composite_of), reports one whose from or to is not on a multiple of the step, or whose length differs from the scheme length when one is set.
R75BlockerRe-split outside its compositeFor samples that name a composite in composite_of, reports a composite that is not in the register, a composite in another hole, or a re-split whose interval is not inside the composite's.
R76InfoComposite above trigger not re-splitFor composites that no re-split names, reports one whose accepted, unheld result for a trigger element is at or above the trigger grade.
R77WarningSample weight or recovery missing or implausibleReports a primary sample, field duplicate or coarse duplicate in a weighed status with no weight, and any sample whose recovery is below 0 or above the largest believable recovery.
R78InfoSample across core loss without a recoveryFor primary samples with no recovery value, reports one whose interval overlaps a core run with core_loss above zero.
R79WarningQC insertion rate below targetWalks the register in sample id order with a sliding window of the set size.
R80BlockerSamples overlap within a streamWithin each sample stream of a hole, reports a primary sample (not QC, not void) that overlaps the one before it.
R81WarningSample id outside the hole's bookWhen sample books are recorded, reports a sample whose id is outside the range of its book, or outside the books issued for its hole when the row names no book.
R82WarningAircore or RAB hole without one EOH sampleFor drilled holes of the listed types, reports a hole that does not have exactly one sample with an end-of-hole sample type.
R83WarningSample length outside limitsReports a sample interval shorter or longer than the length limits set on the sample table (0.05 to 6 m by default).
06

Results

11 rules · 5 blockers · 6 warnings · 0 info

Assay results against their samples: unknown samples, non-numbers, units, over-range re-assays, held and preliminary certificates.

RuleSeverityNameWhat Collar checks
R90BlockerResult for an unknown sampleReports each sample id on a certificate that is not in the sample register, compared without case.
R91BlockerValue is not a number or a censor tokenReports a result whose value text is neither a number nor a recognised censor token such as <0.01, NSS or --.
R92WarningOver-range result without an ore-grade re-assayReports an accepted result censored above its method's upper limit (such as >10) on a live certificate, unless the sample's reported value for the element is a number at or above that limit from an accepted result (any method: gravimetric, photon, or another lab method of the same generic method).
R93BlockerDuplicate resultOn each certificate, reports a second result for the same sample, element, lab method, role and repeat.
R94BlockerUnit missing or unknownPer certificate, element and method, reports results with no unit or a unit Collar does not know.
R95WarningPreliminary certificate never finalisedReports a certificate whose status is preliminary (a blank status counts as final) that no other certificate supersedes, once more than the set number of days have passed since it was received.
R96WarningCertificate samples not matchedFor each certificate with results, reports one where no sample matches the register (info), or where the matched count differs from the certificate's sample_count (warning).
R97WarningHeld resultsPer certificate and method, reports results that are held because a QAQC verdict failed.
R98WarningReported value not traceablePer certificate, reports reported values that have no certificate row and are not historic.
R99WarningNegative resultReports an uncensored numeric result below zero, except for elements in the exempt list.
R129BlockerDuplicate certificate idReports a certificate id that more than one live certificate row carries, naming who imported each copy and when.
07

QAQC

7 rules · 0 blockers · 6 warnings · 1 info

Standards against their CRM, blanks, duplicate precision, umpire bias and insertion rates per certificate and lab method.

RuleSeverityNameWhat Collar checks
R100WarningCRM outside the fail limitFor each CRM on a certificate, compares each result with the library's certified value for the same element and method, both in ppm.
R101WarningCRM bias: two of three outside the warning limitTakes each CRM, element and method on a certificate in certificate order and reports when two of three consecutive results fall outside the inner limit on the same side.
R102WarningBlank above thresholdFor blanks on a certificate and the listed elements, reports a result above detection that exceeds the threshold: the absolute value set for the element, otherwise k times the result's detection limit.
R103WarningDuplicate precision below criterionPairs each field, coarse and pulp duplicate on a certificate with its parent and judges the pair on its half-absolute relative difference (HARD), or on absolute difference near detection.
R104WarningUmpire biasPer certificate and element, adds up the accepted umpire results and the matching original results, and reports when the umpire total differs from the original total by more than the limit.
R105InfoNo method-specific CRM valueReports a CRM, element and method on a certificate when the library has a certified value for the element but not for that method.
R106WarningQC insertion rate below target on a certificateFor each certificate with at least the minimum number of register samples, reports each QC type whose share of the certificate's samples is below its target.
08

Project

5 rules · 1 blockers · 3 warnings · 1 info

Code lists, the CRS, reporting units, lab-method mapping and text in numeric columns.

RuleSeverityNameWhat Collar checks
R110InfoList code never usedReports a code in the code_list table that no row of any table uses, for each list that at least one column uses.
R111WarningCRS cannot be used for transformsFor each CRS entry a coordinate set uses (directly, or as the parent of a local grid in use), reports an EPSG code that is missing or not bundled with Collar, a local grid missing an origin or its parent CRS or with invalid grid parameters, and an entry with no kind.
R112WarningNo reporting unit for an elementReports each element in use on any certificate that has no reporting unit set for the project.
R113WarningLab method not mapped to a generic methodReports each lab and lab method used on a certificate that has no row in method_map linking it to a generic method.
R114BlockerNon-numeric value in a numeric columnIn every table, reports a cell in a numeric column (depths, coordinates, weights, grades) whose text cannot be read as a number.
09

Photos

8 rules · 0 blockers · 4 warnings · 4 info

Tray photos: two of one tray, depths outside the hole, tray contiguity, missing dry or wet pairs, corrections and resolution.

RuleSeverityNameWhat Collar checks
R120WarningTwo photos of one trayReports a current photo that shares a hole, a tray number and a condition (dry, wet or none given) with another current photo when neither replaces the other, and a current photo whose file (its SHA-256) is the same as another current photo's.
R121WarningPhoto outside the hole's depthReports a photo whose from or to lies above the collar or below EOH (within 0.5 mm).
R122InfoTrays not contiguous, or the wrong lengthFor each hole and condition (no condition counts as dry), reports consecutive photos whose depths leave a gap or overlap larger than the photo contiguity tolerance (Settings › Photos, 0.05 m by default), and a photo whose length differs from its profile's rows times row length by more than 25 %.
R123InfoLogged core without a dry photoWhen Photos expected is on (Settings › Photos), reports per hole the cored ranges (core runs) with a lithology code logged that no current dry photo covers.
R125InfoWet or dry photo without its pairWhen the project has at least one wet and dry pair, reports per hole the wet photos with no dry pair and the dry photos with no wet pair, as counts.
R126InfoPhoto corrections not checkedReports per hole how many photos have an automatic correction nobody has checked yet, and how many the worker could not correct at all (no tray found, so the photo is shown as taken).
R127WarningPhoto resolution below the profile's minimumReports a photo whose resolution in pixels per millimetre (measured from the tray-end markers) is below its profile's minimum.
R128WarningPhotos of a deleted holeReports per hole the current photos whose hole has been deleted: photos imported on one device while another device deleted the hole, with neither seeing the other's change in time.

See them fire

The demo's sample project has deliberate faults. Open it and the review queue lists each one with its rule.