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

ADENODE.m

Go to the documentation of this file.
  1. ADENODE ; IHS/HQT/MJL - RESET PATIENT UPDATE FLAG ; [ 03/24/1999 9:04 AM ]
  1. ;;6.0;ADE;;APRIL 1999
  1. ;IHS/HMW 5-5-92 Now checks ADEPOST & returns message if unposted data
  1. ;exists in the queue.
  1. ;------->INIT
  1. S U="^"
  1. ;------->LOOKUP PT
  1. S DIC="^AUPNPAT(",DIC(0)="AEMQZ" D ^DIC G:Y<1 END S ADEPAT=+Y
  1. ;------->CHECK FOR VISITS QUEUED IN ^ADEPOST
  1. S ADEFLG=0
  1. I $D(^ADEPOST(0)) D KILLQ
  1. I ADEFLG W !,"CANNOT UNLOCK PATIENT DENTAL RECORD: Patient has unposted data in the",!,"background queue. Contact site manager for assistance." G END
  1. ;
  1. ;------->KILL FLAG AND QUIT
  1. K ^ADEUTL("ADELOCK",ADEPAT)
  1. W !,"RESET!"
  1. END K ADEFLG,ADEPAT Q
  1. KILLQ S K=0 F J=0:0 S K=$O(^ADEPOST(K)) Q:'+K I $P(^ADEPOST(K),U,3)=ADEPAT S ADEFLG=1
  1. Q