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

SDP333P.m

Go to the documentation of this file.
  1. SDP333P ;bpiofo/swo sd*5.3*333 post init
  1. ;;5.3;Scheduling;**333**;July 23, 2003
  1. ;PAIT Clean-UP remove all entries from file 409.6
  1. I $P($G(^SDWL(409.6,0)),"^",4)=0 D Q
  1. . W !,"File 409.6 has no entries - nothing to clean up."
  1. N DIR
  1. W !,"SD*5.3*333 POST INIT"
  1. S DIR(0)="YA^^",DIR("A")="Clean-Up file 409.6? ",DIR("B")="NO"
  1. S DIR("?")="If this is the first installation of the patch answer 'YES'"
  1. S DIR("?",1)="ATTENTION: Answering 'YES' will delete all entries from file 409.6"
  1. S DIR("?",2)="(Patient Appointment Information Transmission). This is CORRECT"
  1. S DIR("?",3)="for a first installation of the patch. If you are re-installing the"
  1. S DIR("?",4)="patch and want to keep the entries in 409.6 answer 'NO'"
  1. D ^DIR Q:'Y
  1. S ZTDTH=$H,ZTRTN="START^SDP333P",ZTIO=""
  1. S ZTDESC="PAIT Clean-Up"
  1. K ZTSK D ^%ZTLOAD I '$D(ZTSK) D Q
  1. . W !,"Failed to create Task!"
  1. W !,"PAIT Clean-UP Task Submitted. Task number: "_$G(ZTSK)
  1. W !,"Members of the SD-PAIT mail group will receive a notification message"
  1. W !,"when the clean-up job has completed."
  1. Q
  1. START ;tasked entry point
  1. N DA,DIK,SDV1
  1. S DIK="^SDWL(409.6,"
  1. S SDV1=0 F S SDV1=$O(^SDWL(409.6,SDV1)) Q:'SDV1 D
  1. . S DA=SDV1 D ^DIK
  1. K DIK
  1. MSG ;
  1. N SDAMX,XMSUB,XMY,XMTEXT,XMDUZ
  1. S XMSUB=$P($$SITE^VASITE(),"^",3)_" PAIT Clean-Up"
  1. S XMY("G.SD-PAIT")=""
  1. S XMY("S.SD-PAIT-SERVER@DOMAIN.EXT")=""
  1. S XMTEXT="SDAMX("
  1. S XMDUZ="POSTMASTER"
  1. S SDAMX(1)=""
  1. S SDAMX(2)="The PAIT Clean-Up, task #"_$G(ZTSK)_", from the post installation"
  1. S SDAMX(3)="of SD*5.3*333 has completed. You may resume post installation activities."
  1. D ^XMD