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

TIUP113P.m

Go to the documentation of this file.
  1. TIUP113P ; SLC/JAK - Post-Install for TIU*1*113 Cont. ;9/24/03
  1. ;;1.0;TEXT INTEGRATION UTILITIES;**113**;Jun 20, 1997
  1. MAIL ; -- Send message to user who initiated post-install
  1. N XMSUB,XMTEXT,XMDUZ,XMY,XMZ,XMMG
  1. N TIUI,TIUK,TIUS,TIUTXT
  1. S XMDUZ="PATCH TIU*1*113 DIVISION LOADING",XMY(.5)=""
  1. S:$G(DUZ) XMY(DUZ)=""
  1. F TIUK=3,5 S TIUTXT(TIUK)=""
  1. S TIUTXT(1)="Task Started: "_$$FMTE^XLFDT($G(^XTMP("TIUP113","T0")))
  1. S TIUTXT(2)="Task Ended: "_$$FMTE^XLFDT($G(^XTMP("TIUP113","T1")))
  1. I $G(^XTMP("TIUP113","STOP")) D
  1. . S TIUTXT(4)="Task STOPPED: "_$$FMTE^XLFDT($G(^XTMP("TIUP113","STOP")))_"."
  1. . S TIUTXT(6)="The post-install has not completed."
  1. . S TIUTXT(7)="To restart invoke MAIN^TIUP113 from Programmer mode."
  1. . S TIUTXT(8)="The task will continue from the last entry processed."
  1. E D
  1. . F TIUK=9,13,16,20,24 S TIUTXT(TIUK)=""
  1. . S TIUTXT(4)="Task and post-install COMPLETED successfully."
  1. . S TIUTXT(6)="This patch post-install has reviewed all of the "_+$P($G(^TIU(8925,0)),U,4)
  1. . S TIUTXT(7)="entries in the TIU DOCUMENT file, and has attempted to"
  1. . S TIUTXT(8)="load each with DIVISION data."
  1. . S TIUTXT(10)="There are "_+$G(^XTMP("TIUP113","EX"))_" total exception entries"
  1. . S TIUTXT(11)="that could not be loaded with DIVISION data,"
  1. . S TIUTXT(12)="however. Here's how they break down by types:",TIUI=13
  1. . F TIUS=1,2 D
  1. . . S TIUTXT(TIUI+TIUS)=$P($T(EXHDR+TIUS),";",3)_+$G(^XTMP("TIUP113","EX",TIUS))_" entry/entries"
  1. . S TIUTXT(17)="Next, you can print the entries by type of exception so"
  1. . S TIUTXT(18)="you can review them before continuing, or you can skip"
  1. . S TIUTXT(19)="the printing and finish the post-install."
  1. . S TIUTXT(21)="To print: invoke DEVICE^TIUP113 from Programmer mode"
  1. . S TIUTXT(22)=" (instructions for finishing the post-install"
  1. . S TIUTXT(23)=" are included in this call)"
  1. . S TIUTXT(25)="To finish: invoke UPDATE^TIUP113 from Programmer mode"
  1. S XMTEXT="TIUTXT(",XMSUB="PATCH TIU*1*113 Division Loading"
  1. D ^XMD
  1. Q
  1. EXHDR ; -- Exception entry headers
  1. ;;A. Cannot determine DIVISION from Hospital Location:
  1. ;;B. Attempted to load DIVISION data but entry in use: