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

A9ACHS3.m

Go to the documentation of this file.
  1. A9ACHS3 ; DSD/GTH - CHS V 2.0 PATCH 3 ANNOUNCEMENT ; [ 01/25/95 7:27 PM ]
  1. ;;2.0;CONTRACT HEALTH MGMT SYSTEM;**3**;NOV 01, 1994
  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^A9ACHS3"
  1. D ^DIR G Q2:$D(DIRUT),START:'Y
  1. QUE ;
  1. S %DT="AERSX",%DT("A")="Requested Start Time: ",%DT("B")="T@2015",%DT(0)="NOW" D ^%DT
  1. I Y<1 W !,"QUEUE INFORMATION MISSING - NOT QUEUED",!!,"Okay...",! D Q2 Q
  1. S X=+Y D H^%DTC S ZTDTH=%H_","_%T
  1. S ZTRTN="START^A9ACHS3",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. START ;EP - From Taskman
  1. ;
  1. NEW XMSUB,XMDUZ,XMTEXT,XMY
  1. K ^TMP($J)
  1. D WRITDESC^ACHSP3,GETRECIP
  1. S (XMSUB,XMDUZ)=$P($P($T(+1),";",2)," ",4,99),XMTEXT="^TMP($J,""A9ACHS3"",",XMY(1)="",XMY(DUZ)=""
  1. D ^XMD
  1. K ^TMP($J)
  1. I $D(ZTQUEUED) S ZTREQ="@"
  1. E W !!,"You're done. Thank you. You may delete this routine.",!
  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. 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 q the announcement to TaskMan, the mail message(s)
  1. ;;will be delivered when TaskMan runs the task.
  1. Q
  1. ;
  1. GETRECIP ;
  1. NEW X,Y
  1. S X="ACHS"
  1. F S X=$O(^XUSEC(X)) Q:'($E(X,1,4)="ACHS") S Y=0 F S Y=$O(^XUSEC(X,Y)) Q:'Y S XMY(Y)=""
  1. Q