![]() ![]() |
Reference Type: Supported, Category: User, ICR#: 2343
The $$LOOKUP^XUSER extrinsic function does a user lookup on the NEW PERSON (#200) file screening out users that are terminated. You are first asked to enter a name of a user in the NEW PERSON (#200) file. By default, the function then asks if the correct user name was selected. For example:
Select NEW PERSON NAME: XUUSER,THREE Is XUUSER,THREE the one you want? YES// |
If the optional input parameter is set to Q then the second, confirmation prompt is suppressed. The return is in the same format as a call to DIC (i.e., IEN^NAME). Adding new entries is not allowed.
$$LOOKUP^XUSER([""])
"": |
(optional) This optional input parameter does the following:
|
returns: |
Returns the Internal Entry Number (IEN) and name of the user in the NEW PERSON (#200) file entered after the "Select NEW PERSON NAME:" prompt (IEN^NAME). |
This is an example of a lookup of an active user when not passing in the optional Q parameter (showing confirmation prompt):
>S LRDOC=$$LOOKUP^XUSER("") Select NEW PERSON NAME: ? Answer with NEW PERSON NAME, or INITIAL, or SSN, or VERIFY CODE, or NICK NAME, or SERVICE/SECTION, or DEA#, or ALIAS Do you want the entire 1601-Entry NEW PERSON List? N <Enter> (No) Select NEW PERSON NAME: XUUSER,TWO E <Enter> TX COMPUTER SPECIALIST Is XUUSER,TWO E the one you want? YES// <Enter> >W LRDOC 1529^XUUSER,TWO E |
This is an example of a lookup of an active user when passing in the optional Q parameter (suppressing confirmation prompt):
>S LRDOC=$$LOOKUP^XUSER("Q") Select NEW PERSON NAME: XUUSER,TWO E <Enter> TX COMPUTER SPECIALIST >W LRDOC 1529^XUUSER,TWO E |
This is an example of a lookup of a terminated user when passing in the optional A parameter:
>S LRDOC=$$LOOKUP^XUSER("A") Select NEW PERSON NAME: XUUSER,EIGHT <Enter> EX This user was terminated on May 04, 1998 Select NEW PERSON NAME: |