|
|
Reference Type: Supported, Category: User, Integration Agreement: 2343
This extrinsic function returns a user's Drug Enforcement Agency (DEA) number, if it exists in the DEA# field (#53.2) of the NEW PERSON file (#200). If the DEA# field value is null, the value returned depends on the optional FLAG input parameter (see Input Parameters). This API was requested as part of the Public Key Infrastructure (PKI) Project.
$$DEA^XUSER([flag][,userien])
| flag: |
(optional) This flag controls what is returned when the user does not have a value in the DEA# field (#53.2) of the NEW PERSON file (#200).
|
|
| userien: |
(optional) This value can be used to get the DEA# of some user besides the one that signed in. In CPRS, to check that a student's teacher has the required DEA#. |
|
| returns: |
Returns the DEA# field (#53.2) value or the value returned based on the (optional) flag input parameter. |
|
The following are the data values for this example:
If the FLAG input parameter is null or "0", this API would return "AB1234567," since the user has a DEA#:
>S X=$$DEA^XUSER(0,1000118) >W X AB1234567
If the FLAG input parameter is "1", this API would return "AB1234567," since the user has a DEA#:
>S X=$$DEA^XUSER(1,1000118) >W X AB1234567
The following are the data values for this example:
If the FLAG input parameter is NULL or "0", this API would return "VA7654321-789":
>S X=$$DEA^XUSER(0,) >W X VA7654321-789
If the FLAG input parameter is "1", this API would return "789":
>S X=$$DEA^XUSER(1,) >W X 789
The following are the data values for this example:
If the FLAG input parameter is NULL or "0", this API would return "":
>S X=$$DEA^XUSER(0,) >W X
If the FLAG input parameter is "1", this API would return "":
>S X=$$DEA^XUSER(1,) >W X
In both cases, it returns an empty string.
|
VA (Internet) / VA (Intranet) / OI / HSD&D / Site Map / Terms of Use / VA Privacy Policy / Accessibility Reviewed/Updated:
December 14, 2005
|