Skip to main content

Module common

Module common 

Source
Expand description

Cross-product group helper rules: country code validation, unique product identifier syntax, numeric utilities, unit conversions, and the dependency-free date key used for regulatory phase selection.

Modules§

country
ISO 3166-1 alpha-2 country code validation.
date
A dependency-free calendar date, used as an ordering key for regulatory effective dates.
identifier
EN 18219:2026 clause 5 identifier syntax, for the two tiers that check it, and the GS1 AI 10 batch and AI 21 serial a passport’s data carrier prints.
numeric
Shared numeric helpers: percentage clamping, sum checks, thresholds.
units
Unit conversion helpers (kg/g, MJ/kWh, etc.).