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

AUPNVLI.m

Go to the documentation of this file.
  1. AUPNVLI ; IHS/CMI/LAB - CALLED from v line item ;
  1. ;;2.0;IHS PCC SUITE;;MAY 14, 2009
  1. ;
  1. ;
  1. DES(AUPNIEN) ;EP called from trigger on #.05 to stuff
  1. ;description of item in #.06
  1. NEW %,%1
  1. S %=""
  1. I $P($G(^AUPNVLI(AUPNIEN,0)),U)="" Q %
  1. I $P($G(^AUPNVLI(AUPNIEN,0)),U,5)="" Q %
  1. S %1=$P(^AUTTLIT($P(^AUPNVLI(AUPNIEN,0),U),0),U,3)
  1. I %1="" Q %
  1. S %=$$VAL^XBDIQ1($P(^AUPNVLI(AUPNIEN,0),U),$P(^AUPNVLI(AUPNIEN,0),U,5),%1)
  1. Q %
  1. ;
  1. VAL(%,AUPNIEN) ;EP - called from input transform of .04
  1. ;make sure that value passed in X is legitimate value in file
  1. ;in .01 field
  1. NEW %1,%
  1. S %1=$G(^AUTTLIT($P(^AUPNVLI(AUPNIEN,0),U),11)) I %1="" Q 1
  1. X %1
  1. Q $T