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

AQAQ.m

Go to the documentation of this file.
AQAQ ;IHS/ASU/RPL;CREDENTIALS FILE INITIALIZE VARIABLES ; 11/28/89  8:06 AM
 ;;STAFF CREDENTIALS Version 1.1;11/7/89
 ;Called from Menu Entrance of Option AQAQCREDMENU
 ;
 S Y="",Y=$O(^DIC(9.4,"C","AQAQ",Y)),AQAQ("VERSION")=^DIC(9.4,Y,"VERSION"),Y=$P(^DIC(9.4,Y,22,AQAQ("VERSION"),0),"^",2) X ^DD("DD") S AQAQ("VERDT")=Y
 D ^%AUCLS W !?22 F AQAQ("I")=1:1:35 W "*"
 W !?22,"*",?56,"*",!?22,"*      INDIAN HEALTH SERVICE      *",!
 W ?22,"*    MEDICAL STAFF CREDENTIALS    *",!?22,"*     VERSION ",AQAQ("VERSION"),", ",AQAQ("VERDT"),?56,"*",!?22,"*",?56,"*",!?22 F AQAQ("I")=1:1:35 W "*"
 I '$D(DUZ(2))!('$D(DUZ(0))) W !!,"YOU MUST SIGN ON PROPERLY THROUGH THE KERNEL TO USE STAFF CREDENTIALS!" S XQUIT=1 G XQUIT
 S X=$S($D(^DIC(4,DUZ(2),0))#2:$P(^(0),"^"),1:"") W !!,?80-$L(X)\2,X
 I X="" W !!,"INVALID FACILITY; NOTIFY YOUR SITE MANAGER!" S XQUIT="" G XQUIT
 I DUZ(0)'="@" S AQAQDUZ0=DUZ(0),DUZ(0)="q"_DUZ(0)
XQUIT W ! K AQAQ
 Q
XIT ;Called from Menu Exit of Option AQAQCREDMENU
 I DUZ(0)'="@" S DUZ(0)=AQAQDUZ0 K AQAQDUZ0
 Q