Public UK Authority Rule Catalog (CP0091, DMRB GG 184 & NHS EIR)

This reference documents all 26 shipped CAD-QA rules across the three public UK authority presets in iTwin Digital Index (v2.0.6), including exact rule codes, standard clause citations, RED / AMBER gate severities, and the exact BIS schema tables inspected.


1. Network Rail — NR/L2/INI/EDT/CP0091 Issue 4 (network-rail-cp0091)

Rule ID UI Code Clause Reference RAG (Wt) Target Dimension BIS Classes Inspected & Automated Verification Logic
NR-CAD-6.1 CP0091-6.1 Cl. 6.1.2 & 6.1.3 RED (2.0x) repository_link Verifies synchronized CAD deliverable filenames/URLs on bis.RepositoryLink match \.[dD][gG][nN]$ (native .dgn submission).
NR-CAD-7.2 CP0091-7.2 Cl. 7.2.1–7.2.4 RED (2.0x) model_structure Audits COUNT(DISTINCT ge.Model.Id) <= 1 on bis.GeometricElement3d per bis.RepositoryLink so each Model File contains a single Design Model.
NR-CAD-7.3A CP0091-7.3.5 Cl. 7.3.4 & 7.3.5 RED (2.0x) model_structure Flags live 3D bis.GeometricElement3d instances authored directly inside Drawing Files matching -DRG-.
NR-CAD-7.3B CP0091-7.3.7 Cl. 7.3.2, 7.3.6 & 7.3.7 RED (2.0x) model_structure Audits bis.Sheet instance counts (<= 1 sheet model per sheet container; marked N/A if bis.Sheet is absent in 3D-only iModels).
NR-CAD-7.4A CP0091-7.4.3 Cl. 7.4.3 & Table 7 AMBER (1.0x) discipline_homogeneity Groups bis.Category prefixes (SUBSTR(UserLabel, 1, 2), excluding common 'ZZ' levels) per bis.RepositoryLink to verify single-discipline live model homogeneity.
NR-CAD-7.4B CP0091-7.4.5 Cl. 7.4.5 & Table 7 RED (2.0x) spatial_category Validates bis.Category Attribute 1 (Originator) & Attribute 2 (Element Group) prefixes against valid CP0091 Table 7 codes (AR, CV, EN, EP, MD, PP, RV, SG, SU, TL, TR, UT, ZZ).
NR-CAD-7.5 CP0091-7.5.1 Cl. 7.5.1 AMBER (1.0x) spatial_coordinates Flags 3D bis.GeometricElement3d instances left at unknown elevation (Origin.Z = 0 with zero Z-extents) or outside datum bounds ([-60m, +600m]).
NR-CAD-7.6 CP0091-7.6 Cl. 7.2.5 & 7.6 RED (2.0x) spatial_coordinates Verifies bis.GeometricElement3d placement origins lie within project grid Easting/Northing bounds and single-element spans <= 5,000m (catching 1:1000 unit/scale errors).
NR-CAD-8.1 CP0091-8.1 Cl. 8.1.1–8.1.6 RED (2.0x) sheet_border_and_tags Audits element UserLabel and CodeValue metadata per bis.RepositoryLink for unpopulated placeholder strings (TBD, XXXX, ?).
NR-CAD-8.2 CP0091-8.2 Cl. 8.2.5 (Table 3) & Cl. 8.3.1–8.3.2 AMBER (1.0x) sheet_border_and_tags Audits bis.Sheet minimum ISO A4 dimensions (>= 0.21m), landscape orientation (Width >= Height for sheets > A4), and CP0091 Table 3 standard scales (1:1 to 1:100,000).
NR-CAD-8.4 CP0091-8.8.4 Cl. 8.4.1–8.4.3 & Cl. 8.8.4 RED (2.0x) annotation_placement Flags 3D bis.GeometricElement3d instances placed on dimension categories (%DIM%) inside 3D Design space rather than Sheet Models.
NR-CAD-8.5 CP0091-8.5 Cl. 6.2.2.1, 8.5.1 & 8.5.2 AMBER (1.0x) cell_usage Flags 3D elements carrying SharedCell identifiers on UserLabel / CodeValue per CP0091 Cl. 8.5.2.
NR-CAD-8.6 CP0091-8.6.3 Cl. 8.6.2–8.6.4 (Table 5) AMBER (1.0x) subcategory_symbology Inspects bis.SubCategory.Appearance to flag pure Yellow (65535 / RGB 255,255,0) on non-construction / non-column levels where yellow fails PDF/print legibility.
NR-CAD-8.9 CP0091-8.9 Cl. 8.9.1 & 8.9.2 RED (2.0x) construction_geometry Flags bis.GeometricElement3d instances remaining on construction levels (%CONSTRUCT%) in submitted models.
NR-CAD-9.6 CP0091-9.6 Cl. 9.1, 9.6.1–9.6.5 (Tables 6, 7 & 8) AMBER (1.0x) spatial_category Enforces the mandatory 4-attribute Network Rail level naming regex ^(AR|CV|EN|EP|MD|PP|RV|SG|SU|TL|TR|UT|ZZ)-(AR|CV|...)-[A-Za-z0-9_]+-[EMPRTZ]$.
NR-CAD-10.1 CP0091-10.1 Cl. 10.1 & NR/L3/INI/P3M/131/02 AMBER (1.0x) repository_link Validates 7-field Network Rail CAD file naming (^[A-Z0-9]{3,6}-[A-Z]{3}-[A-Z0-9]{2}-[A-Z0-9]{2,4}-(MOD|M3D|M2D|DRG|RAS|SKT)-[A-Z]{1,3}-\d{4,6}(\.[dD][gG][nN])?$).
NR-CAD-10.3 CP0091-10.3.1.3 Cl. 10.3.1.3 AMBER (1.0x) drawing_category Flags unpurged elements left on default or temporary layers (Default, 0, Level 0, Defpoints, None, Unassigned).

2. National Highways — DMRB GG 184 (national-highways-gg184)

Rule ID UI Code Clause Reference RAG (Wt) Target Dimension Automated Verification Logic
NH-GG184-1 GG184-3.1 DMRB GG 184 Cl. 3.1 & BS 1192 RED (2.0x) repository_link Validates 7-field National Highways CAD container naming (M3, M2, DR, CR types with .dgn / .dwg extensions) on bis.RepositoryLink.
NH-GG184-2 GG184-3.4 DMRB GG 184 Cl. 3.4 & BS 1192 RED (2.0x) spatial_category Enforces BS 1192 / Uniclass 2015 layer naming <Role>-<UniclassCode>-<Presentation>_<Description> (^[A-Z]{1,2}-[A-Za-z0-9_]{2,20}-[MGTDP]_[A-Za-z0-9_ -]+$).
NH-GG184-3 GG184-3.8 DMRB GG 184 Cl. 3.8 RED (2.0x) spatial_coordinates Verifies 1:1 metre scale (<= 5,000m element span) and OSGB36 National Grid Easting/Northing bounds.
NH-GG184-4 GG184-3.11 DMRB GG 184 Cl. 3.11 AMBER (1.0x) discipline_homogeneity Audits single-role discipline homogeneity per model container (exempting 'ZZ' and 'Z-' common layers).
NH-GG184-5 GG184-4.2 DMRB GG 184 Cl. 4.2 AMBER (1.0x) drawing_category Flags unpurged elements on DEFAULT, 0, DEFPOINTS, TEMP, or CONSTRUCTION layers.

3. NHS England — Digital Estate ISO 19650-2 / HBN 00-01 (nhs-digital-estate-cadqa)

Rule ID UI Code Clause Reference RAG (Wt) Target Dimension Automated Verification Logic
NHS-CAD-1 NHS-EIR-5.1 BS EN ISO 19650-2 UK NA Cl. NA.2 RED (2.0x) repository_link Validates 7-field ISO 19650-2 UK National Annex container naming (M3, M2, DR, SH) across federated hospital models.
NHS-CAD-2 NHS-EIR-5.3 NHS EIR Cl. 5.3 & BS 1192 RED (2.0x) drawing_category Rejects elements placed on generic DEFAULT, 0, DEFPOINTS, TEMP, or CONSTRUCTION categories.
NHS-CAD-3 NHS-EIR-6.2 NHS EIR Cl. 6.2 & HBN 00-01 AMBER (1.0x) spatial_coordinates Verifies hospital building elements lie within site grid bounds and <= 500m single-element span.
NHS-CAD-4 NHS-EIR-7.1 NHS EIR Cl. 7.1 AMBER (1.0x) construction_geometry Flags temporary setting-out and %CONSTRUCT% categories prior to clinical stakeholder review.

[!NOTE] Schema Transparency Note: Rules in v2.0.6 execute directly in-browser via parameterized ECSQL against bis.RepositoryLink, bis.GeometricElement3d, bis.Category, bis.SubCategory, and bis.Sheet. Deep 2D MicroStation .dgn bis.DrawingGraphic / bis.TextAnnotation2d tag-set inspection, bis.GeometryPart shared cell graph traversal, and .xlsx / .pdf sign-off certificate exports are tracked on the active engineering roadmap (NR-CADQA-002 & NR-CADQA-004).