Kernel 8.0 APIs Banner
Office of Information and Technology (OIT) Banner
[skip navigation]

$$SDEA^XUSER(): Check for Prescribing Privileges

Reference Type: Supported, Category: User: DEA ePCS Utility, ICR#: 2343

Description

The $$SDEA^XUSER extrinsic function uses the following "Privileges Algorithm" to check for prescribing privileges:

NOTE: Not all of these checks apply to documentation of non-VA medication.

REF: This API calls the $$DEA^XUSER()—Get User's DEA Number API.

NOTE: This API was released with Kernel Patch XU*8.0*580, which was created in support of the Drug Enforcement Agency (DEA) e-Prescribing of Controlled Substances (ePCS) Utility. This utility uses Public Key Infrastructure (PKI) and meets the requirements proposed by the DEA Interim Final Rule (IFR) for Electronic Prescriptions for Controlled Substances effective as of June 1, 2010.

Format

  $$SDEA^XUSER([fg,]ien,psdea)

Input Parameters

fg:

(optional) This flag is used for $$DEA^XUSER call, see the flag input parameter in the $$DEA^XUSER()—Get User's DEA Number API.

ien:

(required) This is the NEW PERSON (#200) file IEN for the entry to be checked.

psdea:

(required) This parameter is DEA schedule. DEA schedule is a 2-6 position field. It comes from the DRUG (#50) file in Pharmacy. This API uses this field to verify the provider is allowed to write orders for specific controlled substances. For example, if the schedule is 2A, this indicates a controlled substance, schedule 2.

Chart for all values:

  • MANUFACTURED IN PHARMACY

  • SCHEDULE 1 ITEM

  • SCHEDULE 2 ITEM

  • SCHEDULE 3 ITEM

  • SCHEDULE 4 ITEM

  • SCHEDULE 5 ITEM

  • LEGEND ITEM:

    • 9—OVER-THE-COUNTER

    • L—DEPRESSANTS AND STIMULANTS

    • A—NARCOTICS AND ALCOHOLS

    • P—DATED DRUGS

    • I—INVESTIGATIONAL DRUGS

    • M—BULK COMPOUND ITEMS

    • C—CONTROLLED SUBSTANCES - NON NARCOTIC

    • R—RESTRICTED ITEMS

    • S—SUPPLY ITEMS

    • B—ALLOW REFILL (SCH. 3, 4, 5 ONLY)

    • W—NOT RENEWABLE

    • F—NON REFILLABLE

    • E—ELECTRONICALLY BILLABLE

    • N—NUTRITIONAL SUPPLEMENT

    • U—SENSITIVE DRUG

Output

returns:

Returns: DEA# or Facility DEA_"-"_user VA# similar to the $$DEA^XUSER call.

  • 1—DEA# is NULL from the $$DEA^XUSER call.

  • 2—When all schedules equals 0.

  • 4^expiration date—DEA# expiration date has expired. It checks if the DEA# and expiration date are not NULL. The expiration date is returned in external format.