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

L^XTLKMGR(): Define a File in the Local Lookup File

Reference Type: Supported, Category: Toolkit—Multi-Term Look-Up (MTLU), ICR#: 10153

Description

The L^XTLKMGR API defines a file in the LOCAL LOOKUP file (8984.4). Adding the target file here does not automatically place the special lookup routine, ^XTLKDICL, in the file’s Data Dictionary. Since use of this routine is at the discretion of the developer, it should be manually added via the Edit File option under VA FileMan’s Utilities Menu.

REF: For information on the Edit File option, see the “Utility Functions” section in the VA FileMan User Manual.

Format

  L^XTLKMGR(xtlk1[,xtlk2],xtlk3,xtlk4)

Make sure to perform the following steps before calling this API:

  1. NEW all non-namespaced variables.

  2. Set all input variables.

  3. Call the API.

Input Parameters

xtlk1:

(required) File name or number.

xtlk2:

(optional) Application-specific display protocol.

xtlk3:

(required) MTLU index to use for lookups.

xtlk4:

(required) Variable pointer prefix.

 

Output Variables

XTLKER(1,FILENAME):

File could not be added.

The following are examples (index and prefix can differ from actual implementation):

  • For the ICD DIAGNOSIS (#80) file:
         >K XTLKER
         >D L^XTLKMGR(80,”DSPLYD^XTLKKWLD”,”AIHS”,”D”)
  • For the ICD OPERATION/PROCEDURE (#80.1) file:
         >K XTLKER
         >D L^XTLKMGR(80.1,”DSPLYO^XTLKKWLD”,”KWIC”,”O”)