Canada Québec Health Insurance Number (RAMQ / NAM)
Detects 12-character Québec Régie de l'assurance maladie du Québec (RAMQ) Health Insurance Numbers (Numéro d'assurance maladie / NAM): 4 uppercase letters derived from surname and given name, followed by 8 digits encoding YYMMDD birth date (with +50 on month for female holders), sequence, and check digit.
- Type
- regex
- Engine
- universal
- Confidence
- high
- Confidence justification
- High confidence: 4 uppercase letters + valid RAMQ YY(MM/+50)DD date + 2 digits is structurally rich and inherently encodes biographical PII (name initials, date of birth, and sex).
- Jurisdictions
- ca
- Regulations
- Act respecting the protection of personal information in the private sector (Québec Law 25), PIPEDA
- Frameworks
- ISO 27001, ISO 27701
- Data categories
- phi, pii, health, government-id
- Scope
- narrow
- Risk rating
- 8
- Platform compatibility
- Purview: Compatible, GCP DLP: Compatible, Macie: Compatible, Zscaler: Compatible, CrowdStrike DLP: Compatible, Palo Alto: Adapted from Purview, Netskope: Adapted from Purview
Pattern
(?-i)\b([A-Z]{4}[\s-]?\d{4}[\s-]?\d{4})\b
Corroborative evidence keywords
RAMQ, numéro d'assurance maladie, NAM, carte soleil, Régie de l'assurance maladie du Québec, Québec health card
Proximity: 300 characters
Should match
TREJ 8504 1912— Spaced Québec RAMQ number (male born 1985-04-19)NAM: BELS92582407— Compact Québec RAMQ number with +50 female birth-month encoding (58 -> August)GAGP-7811-0534— Hyphenated Québec RAMQ health insurance number
Should not match
TREJ 8515 1912— Month 15 is invalid in RAMQ encoding (must be 01-12 or 51-62)TREJ 8504 3512— Day 35 is invalid in RAMQ encodingtrej 8504 1912— Lowercase letters rejected by case-sensitive RAMQ formatSample template: placeholder example record for training only— Template/sample fixture suppressed by shared exclusion dictionary
Known false positives
- 12-character container/shipping codes with 4 uppercase letters + 8 digits. Mitigation: Shipping container ISO 6346 numbers have 4 letters + 7 digits (11 chars, not 12), and enforcing tiers require RAMQ/NAM/health keywords.