![]() ![]() |
Reference Type: Supported, Category: Toolkit—VHA Unique ID (VUID), ICR#: 4631
The GETIREF^XTID API searches and returns a list of terms/concepts for a given VHA Unique ID (VUID; i.e., vuid input parameter). Filtering of the list is applied when the following optional input parameters are defined:
GETIREF^XTID([file][,field],vuid,array[,master])
file: |
(optional) VistA file/subfile number where term/concept is defined:
|
field: |
(optional) Field number in the file input parameter where term/concept is defined:
|
vuid: |
(required) The VHA Unique ID (VUID), which is specified in order to limit the search. |
array: |
(required) The name of the array (local or global) where results of the search are stored. |
master: |
(optional) Flag to limit the search of terms based on the value of the MASTER ENTRY FOR VUID field:
|
array: |
Returns the given array populated as follows:
|
>N array S array="MYARRAY" >S file=16000009,field=.01,vuid=12343,master=0 >D GETIREF^XIID(file,field,vuid,array,master) >ZW MYARRAY MYARRAY=2 MYARRAY(16000009,.01,"1,")=1^3050202.153242^ACTIVE^0 MYARRAY(16000009,.01,"3,")=0^3050215.07584^INACTIVE^1 |
When no entries are found, the named array is populated as follows:
>ZW MYARRAY MYARRAY=0 |
When an error occurs, the named array is populated as follows:
>ZW MYARRAY MYARRAY("ERROR")=<error message> |