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.
$ finetype infer -i "AB1234563"
→ identity.medical.dea_numberSELECT finetype('AB1234563');
-- → 'identity.medical.dea_number'CAST({col} AS VARCHAR)-- 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';{
"$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-broad-type": "VARCHAR",
"x-finetype-transform": "CAST({col} AS VARCHAR)"
}AB1234563FA5678901BJ3456782