Skip to content

DEA Number

Type Registry

DEA Number

identity.medical.dea_number

Drug Enforcement Administration registration number for US prescribers. Format: 2 letters followed by 7 digits. First letter indicates registrant type (A/B/F/M for practitioners, P/R for distributors). Check digit is last digit, computed via weighted sum of odd and even position digits.

Domain identitymedical
Casts to VARCHAR
Scope Universal

Try it

CLI
$ finetype infer -i "AB1234563"
→ identity.medical.dea_number

DuckDB

Detect
SELECT finetype('AB1234563');
-- → 'identity.medical.dea_number'
Cast expression
CAST({col} AS VARCHAR)
Safe cast pipeline
-- Normalise and cast in one step
SELECT TRY_CAST(finetype_cast(my_column) AS VARCHAR) AS clean_value
FROM my_table
WHERE finetype(my_column) = 'identity.medical.dea_number';

JSON Schema

finetype schema identity.medical.dea_number
{
  "$id": "https://noon.sh/schemas/identity.medical.dea_number",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "description": "Drug Enforcement Administration registration number for US prescribers. Format: 2 letters followed by 7 digits. First letter indicates registrant type (A/B/F/M for practitioners, P/R for distributors). Check digit is last digit, computed via weighted sum of odd and even position digits.",
  "examples": [
    "AB1234563",
    "FA5678901",
    "BJ3456782"
  ],
  "maxLength": 9,
  "minLength": 9,
  "pattern": "^[ABFMPRabfmpr][A-Za-z]\\d{7}$",
  "title": "DEA Number",
  "type": "string"
}

Examples

AB1234563FA5678901BJ3456782

Also known as

deadea_registration

Types in identity