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

AQALPOST.m

Go to the documentation of this file.
  1. AQALPOST ; IHS/ORDC/LJF - SET UP MAS/QI EVENT DRIVER LINKS ;
  1. ;;1;QI LINKAGES-RPMS;;AUG 15, 1994
  1. ;
  1. ;This routine adds the option AQAL ADT EVENT to Protocol file.
  1. ;Then it will add the protocol AQAL ADT EVENT to the MAS event
  1. ;driver protocol entry if MAS 5 has been installed.
  1. ;
  1. I '$$MAS5 W !!,*7,"MAS5 NOT INSTALLED, BYPASSING POSTINIT!",!! Q
  1. D 1,2,QUIT Q
  1. ;
  1. 1 ; >> step 1: add aqal option to file 101
  1. S AQALOPT=$O(^DIC(19,"B","AQAL ADT EVENT",0))
  1. I AQALOPT="" D Q
  1. .W !!,*7,"**ERROR!! Option AQAL ADT EVENT was not filed!**"
  1. .W !,"Contact developer immediately!!",!!,*7
  1. S X="ORV19" X ^%ZOSF("TEST") I '$T D Q
  1. .W !!,*7,"**ERROR!! Routine ^ORV19 not in this UCI!"
  1. .W !,"Should have been installed with MAS version 5.0."
  1. .W !,"Contact developer immediately!!",!!,*7
  1. S X="AQAL" D EN^ORV19 ;moves options to file 101
  1. Q
  1. ;
  1. 2 ; >> step 2: add aqal protocol to mas event driver
  1. Q:AQALOPT=""
  1. S Y=+$O(^ORD(101,"B","DGPM MOVEMENT EVENTS",0))
  1. I 'Y D Q
  1. .W !!,*7,"**ERROR!! Protocol DGPM MOVEMENT EVENTS does not exist!"
  1. .W !!,"Contact developer immediately!!",!!,*7
  1. I '$D(^ORD(101,Y,10,0)) S ^(0)="^101.01PA^^"
  1. S X="AQAL ADT EVENT",DA(1)=Y,DIC="^ORD(101,"_DA(1)_",10,"
  1. S DLAYGO=101,DIC(0)="L",DIC("DR")="3////2" D ^DIC K DIC,DLAYGO
  1. W !!,"Adding AQAL ADT EVENT to DGPM MOVEMENT EVENTS protocol. . ."
  1. W !!
  1. Q
  1. ;
  1. QUIT ; >> eoj
  1. K AQALOPT D ^XBFMK Q
  1. ;
  1. ;
  1. MAS5() ;EXTRN VAR to see if MAS version 5 has been installed
  1. N X,Y S (X,Y)=0
  1. F S X=$O(^DIC(9.4,"C","DG",X)) Q:X="" D
  1. .I $G(^DIC(9.4,X,"VERSION"))'<5 S Y=1 ;v5 is installed
  1. Q Y