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

ACHSPOSM.m

Go to the documentation of this file.
  1. ACHSPOSM ; IHS/ITSC/PMF - 2.1T2 INSTALLATION MAIL MESSAGE ANNOUNCEMENT ; [ 10/16/2001 8:16 AM ]
  1. ;;3.1;CONTRACT HEALTH MGMT SYSTEM;;JUN 11, 2001
  1. ;
  1. I $D(ZTQUEUED) G START
  1. I '$G(DUZ) W !,"DUZ UNDEFINED OR ZERO.",! Q
  1. D HOME^%ZIS,DT^DICRW,INTRO
  1. S (DIR(0),DIR("B"))="Y"
  1. S DIR("A")="Do you want to queue the announcement to TaskMan"
  1. S DIR("??")="^D Q2^ACHSPOSM"
  1. D ^DIR
  1. G Q2:$D(DIRUT),START:'Y
  1. QUE ;
  1. S %DT="AERSX",%DT("A")="Requested Start Time: ",%DT("B")="T@2015",%DT(0)="NOW"
  1. D ^%DT
  1. I Y<1 W !,"QUEUE INFORMATION MISSING - NOT QUEUED",!!,"Okay...",! D Q2 Q
  1. S X=+Y
  1. D H^%DTC
  1. S ZTDTH=%H_","_%T,ZTRTN="START^ACHSPOSM(0)",ZTIO="",ZTDESC=$P($P($T(+1),";",2)," ",4,99)
  1. D ^%ZTLOAD,HOME^%ZIS
  1. I $D(ZTSK) W !!,"QUEUED TO TASK ",ZTSK,!!,"A mail message with the results will be sent to your MailMan 'IN' basket.",!
  1. E W !!,*7,"QUEUE UNSUCCESSFUL. RESTART UTILITY."
  1. Q
  1. ;
  1. START(ERROR) ;EP - From Taskman
  1. ;
  1. N XMSUB,XMDUZ,XMTEXT,XMY
  1. K ^TMP($J)
  1. ;
  1. D:'ERROR WRITDESC ;OKAY - NO ERROR
  1. D:ERROR=1 WRITEOOP ;ERROR IN INSTALL
  1. D:ERROR=2 WRITEDD ;POSSIBLE ERROR IN DD(s)
  1. D:ERROR=4 BACKUP ;ERROR IN BACKUPS
  1. ;
  1. D GETRECIP
  1. S (XMSUB,XMDUZ)=$P($P($T(+1),";",2)," ",4,99),XMTEXT="^TMP($J,""ACHSPOSM"",",XMY(1)="",XMY(DUZ)=""
  1. D ^XMD
  1. K ^TMP($J)
  1. Q
  1. ;
  1. INTRO ;
  1. W ! F %=2:1:5 W ?5,$P($T(INTRO+%),";;",2),!
  1. ;;This patch announcement generates a mail message to everyone on your
  1. ;;local machine that holds a CHS security key. The mail messages
  1. ;;inform the users that the patch has been installed, and describes
  1. ;;any changes in displays or functionality.
  1. Q
  1. ;
  1. Q2 ;EP - From DIR
  1. W ! F %=2:1:8 W ?5,$P($T(Q2+%),";;",2),!
  1. ;;Answer "Y" if you want to queue this patch announcement to TaskMan.
  1. ;;Answer "N" if you want to run the announcement immediately.
  1. ;;
  1. ;;If you run interactively, a mail message with the description of
  1. ;;this patch will be delivered to those users holding any CHS security
  1. ;;key, now. If you que the announcement to TaskMan, the mail message(s)
  1. ;;will be delivered when TaskMan runs the task.
  1. Q
  1. ;
  1. GETRECIP ;
  1. N X,Y
  1. S X="ACHS"
  1. F S X=$O(^XUSEC(X)) Q:'($E(X,1,4)="ACHS") D
  1. .S Y=0
  1. .F S Y=$O(^XUSEC(X,Y)) Q:'Y S XMY(Y)=""
  1. Q
  1. ;
  1. ;OKAY NO ERRORS ENCOUNTERED
  1. WRITDESC ;
  1. F %=3:1 S X=$P($T(WRITDESC+%),";",3) Q:X="###" S ^TMP($J,"ACHSPOSM",%)=X
  1. Q
  1. ;;
  1. ;;++++ CHS Contract Health System, v 3.1 announcement ++++++
  1. ;;+ This mail message has been delivered to all local +
  1. ;;+ users that have access to any CHS menu. +
  1. ;;+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  1. ;;
  1. ;;Version 3.1 of CHS CONTRACT HEALTH MGT SYSTEMS has been installed
  1. ;;on this machine. You are participating in an Alpha test of this
  1. ;;module of the CHS software.
  1. ;;
  1. ;;Please direct your questions or comments about RPMS software to:
  1. ;;
  1. ;; Your Help Desk
  1. ;;
  1. ;;
  1. ;;
  1. ;;
  1. ;;If you experience problems with the CHS Contract Health System
  1. ;;software installed for this Alpha test, please contact your site
  1. ;;manager, OR, the developers, Tim Frazier or Paul Friedland,
  1. ;;via the above number.
  1. ;;
  1. ;;------------------------------------------------------------------
  1. ;;It is recommended that you exercise the "UHF Print Help Frames"
  1. ;;option on the primary Denial/Deferred Services menu, which will
  1. ;;print out all the on-line help-frames in a manual format. This
  1. ;;help frame manual is intended to help users while a user manual
  1. ;;is being written. If you notice any errors please contact the
  1. ;;developers.
  1. ;;
  1. ;;+++++++++++++++++++++++ end of announcement ++++++++++++++++++++++
  1. ;;###
  1. ;
  1. ;WRITE "OOPS" SOME ERROR HAS OCCURRED DURING INSTALLATION
  1. ;THIS IS A GENERIC MESSAGE
  1. WRITEOOP ;
  1. F %=3:1 S X=$P($T(WRITEOOP+%),";",3) Q:X="###" S ^TMP($J,"ACHSPOSM",%)=X
  1. Q
  1. ;;
  1. ;;It appears that version 3.1 of the CHS Contract Health System has
  1. ;;already been installed in this UCI! Or it may have been started
  1. ;;and did not complete properly. Or the proper routine sequence was
  1. ;;disrupted. Further investigation by ITSC developers will have to be
  1. ;;done to determine why the installation has failed.
  1. ;;
  1. ;;Please call the Help Desk immediately!!
  1. ;;
  1. ;;
  1. ;;###
  1. ;
  1. ;AN ERROR OCCURRED DURING THE AUTOMATED BACKUP PROCEDURES
  1. BACKUP ;
  1. F %=3:1 S X=$P($T(BACKUP+%),";",3) Q:X="###" S ^TMP($J,"ACHSPOSM",%)=X
  1. Q
  1. ;;
  1. ;;The automated backup procedure does not appear to have finished
  1. ;;properly! Further investigation by ITSC developers is neccessary
  1. ;;before continuing.
  1. ;;
  1. ;;Please call the Help Desk immediately!!
  1. ;;
  1. ;;
  1. ;;###
  1. ;
  1. ;THIS IS A WARNING TO LET US KNOW A DD MAY HAVE NOT IMPORTED
  1. ;CORRECTLY
  1. WRITEDD ;
  1. ;
  1. F %=3:1 S X=$P($T(WRITEDD+%),";",3) Q:X="###" S ^TMP($J,"ACHSPOSM",%)=X
  1. Q
  1. ;;
  1. ;;It appears that the installation of the data dictionaries of the
  1. ;;CHS files may not have been completed properly or are incomplete!
  1. ;;
  1. ;;Further investigation by developers will have to be made to
  1. ;;determine why this occurred.
  1. ;;
  1. ;;This is only a warning!
  1. ;;
  1. ;;Please call the Help Desk immediately!!
  1. ;;
  1. ;;
  1. ;;+++++++++++++++++++++++ end of announcement ++++++++++++++++++++++
  1. ;;###