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.
DEA Number
identity.medical.dea_numberDrug 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
identity
Category
medical
Casts to
VARCHAR
Scope
Universal
Try it
CLI
$ finetype infer -i "AB1234563" --mode column
→ identity.medical.dea_numberDuckDB
Detect
SELECT ft_infer('AB1234563');
-- → 'identity.medical.dea_number'Cast expression
CAST({col} AS VARCHAR)Safe cast pipeline
-- Normalise and cast in one step
SELECT TRY_CAST(ft_cast(my_column) AS VARCHAR) AS clean_value
FROM my_table
WHERE ft_infer(my_column) = 'identity.medical.dea_number';JSON Schema
finetype taxonomy identity.medical.dea_number -o json-schema
{
"$id": "https://meridian.online/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",
"x-finetype-label": "identity.medical.dea_number",
"x-finetype-pii": false
}Examples
AB1234563FA5678901BJ3456782Aliases
deadea_registration