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

AUPNLKZ.m

Go to the documentation of this file.
  1. AUPNLKZ ; IHS/CMI/LAB - SET AND RESET DUZ(2) ;
  1. ;;99.1;IHS DICTIONARIES (PATIENT);;MAR 09, 1999
  1. ;
  1. ; This routine is called to save DUZ(2) and set it to
  1. ; zero, then restore DUZ(2) to its original value. The
  1. ; calls must be made to the two entry points and it makes
  1. ; no sense to call RESET unless SET was previously called.
  1. ;
  1. ; If SET is called and DUZ(2) does not exists this
  1. ; routine will abort.
  1. ;
  1. Q ; Invalid entry point
  1. ;
  1. SET ;EP - SAVE DUZ(2) AND SET TO ZERO
  1. S:'($D(AUPNDUZ)#2) AUPNDUZ=0
  1. S AUPNDUZ=AUPNDUZ+1
  1. S AUPNDUZ(AUPNDUZ)=DUZ(2)
  1. S DUZ(2)=0
  1. Q
  1. ;
  1. RESET ;EP - RESTORE DUZ(2)
  1. Q:'($D(AUPNDUZ)#2)
  1. S DUZ(2)=AUPNDUZ(AUPNDUZ)
  1. K AUPNDUZ(AUPNDUZ)
  1. S AUPNDUZ=AUPNDUZ-1
  1. K:'AUPNDUZ AUPNDUZ
  1. Q