Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: AUTTVND2

AUTTVND2.m

Go to the documentation of this file.
  1. AUTTVND2 ; IHS/DIRM/JDM/DFM - CHECK FOR VENDOR FILE DUPLICATES; [ 10/06/2006 10:08 AM ]
  1. ;;98.1;IHS DICTIONARIES (POINTERS);**21**;OCT 2005;Build 6
  1. ;
  1. 1102 ;EP - input transform file 9999999.11, field 1102
  1. Q:$D(DDS)&($G(DDS)["ACR")
  1. I X["""" K X Q
  1. I $L(X)>2 K X Q
  1. I $L(X)<2 K X Q
  1. I $A(X)=45 K X Q
  1. I X'?2UN K X Q
  1. N AUTEIN,AUTPREF
  1. S AUTEIN=$P($G(^AUTTVNDR(DA,11)),"^",1)
  1. I AUTEIN="" K X Q
  1. S AUTPREF=$E(AUTEIN)
  1. I 12'[AUTPREF K X Q
  1. I AUTPREF=1,$G(X)="" D
  1. .I '$D(ZTQUEUED) W !,"EIN SUFFIX is required for Vendors of type ORGANIZATION."
  1. .K X
  1. Q:'$D(X)
  1. D SUFFIX^AUTTVNDR
  1. Q