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

AQAOPOST.m

Go to the documentation of this file.
  1. AQAOPOST ; IHS/ORDC/LJF - POST INIT ;
  1. ;;1.01;QAI MANAGEMENT;;OCT 05, 1995
  1. ;
  1. ;Main driver for QAI postinits. This rtn installs sample entries for
  1. ;some of the QAI tables, then calls ^AQAOPOS1.
  1. ;
  1. 1 ; step 1 - install of sample entries
  1. W !!,"QAI POST-INIT",!!
  1. W !,"STEP 1 - INSTALL SAMPLE ENTRIES OF SOME QI FILES",!!
  1. F AQAOI=1:1:3 S X=$P($T(DATA1+AQAOI),";;",2) I ('$O(@X)) D
  1. .K DIR S DIR(0)="Y",DIR("B")="YES"
  1. .S DIR("A")="Would you like me to install sample "_$P($T(DATA1+AQAOI),";;",3)_" entries"
  1. .D ^DIR Q:Y<1
  1. .;
  1. .S AQAOX=0,AQAON=$P($T(DATA1+AQAOI),";;",4)
  1. .F S AQAOX=$O(^AQAOX(AQAON,AQAOX)) Q:AQAOX="" D
  1. ..S X=$G(^AQAOX(AQAON,AQAOX)) Q:X=""
  1. ..K DIC,DD,DO S DLAYGO=$P($T(DATA1+AQAOI),";;",5)\1
  1. ..S DIC("DR")=$G(^AQAOX(AQAON,AQAOX,"DR")) Q:DIC("DR")=""
  1. ..S DIC=$P($P($T(DATA1+AQAOI),";;",2),",")_",",DIC(0)="L" D FILE^DICN
  1. ..I Y=-1 W !!,"**ERROR** Can't add ",X," to file."
  1. ;
  1. ;
  1. NEXT ; go to next rtn for more install procedures
  1. D ^AQAOPOS1,MAIL
  1. W !!,"POST-INIT COMPLETED. Please see notes file for instructions"
  1. W !,"on what to do next.",!!
  1. ;
  1. ;
  1. EXIT ; eoj
  1. D KILL^AQAOUTIL Q
  1. ;
  1. MAIL ; -- SUBRTN to send mail message
  1. NEW AQAOI,AQAO,XMSUB,XMTEXT,XMY,X
  1. S XMSUB="QAI ENHANCEMENT #1 INSTALLED",XMTEXT="AQAO("
  1. F AQAOI=1:1:12 S AQAO(AQAOI)=$P($T(MSG+AQAOI),";;",2)
  1. S X=0
  1. F S X=$O(^XUSEC("AQAOZMENU",X)) Q:X="" S XMY(X)=""
  1. D ^XMD
  1. W !!,"Mail message sent to ALL QAI Users."
  1. Q
  1. ;
  1. MSG ;;
  1. ;;*****************************************************************
  1. ;; Congratulations!
  1. ;;The QAI version 1.01 has just been installed on your computer
  1. ;;system. There are 2 main improvements. 1) You can now link CHS
  1. ;;providers to occurrences and 2) you can link your Clinical
  1. ;;Indicators to the JCAHO Dimensions of Performance.
  1. ;;*****************************************************************
  1. ;;
  1. ;;For your convenience all the changes are documented on-line for
  1. ;;you. Use the option "HELP on Using QAI Package" and select choice
  1. ;;#3 for ENHANCEMENTS. It will tell you everything you wanted to know
  1. ;;and more. Have fun!
  1. ;
  1. ;
  1. DATA1 ;; data for step 1
  1. ;;^AQAO(6,0);;ACTION;;6;;9002168.8
  1. ;;^AQAO(8,0);;FINDING;;8;;9002168.8
  1. ;;^AQAO1(3,0);;OUTCOME;;13;;9002169.3