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

TIUEN96.m

Go to the documentation of this file.
  1. TIUEN96 ; SLC/JER - Environment Check for TIU*1*96 ; 3-MAY-2000 16:34:23
  1. ;;1.0;TEXT INTEGRATION UTILITIES;**96**;Jun 20, 1997
  1. MAIN ; -- Control Unit
  1. ; If ^TIU(8925 isn't populated, but PN or DS is populated, quit
  1. I (+$O(^TIU(8925,0))'>0),($S(+$O(^GMR(121,0)):1,+$O(^GMR(128,0)):1,1:0)) D Q
  1. . D BMES^XPDUTL("** TIU IS NOT YET IN USE...ABORTING INSTALL **")
  1. . S XPDQUIT=2
  1. ; If ^GMR(121 has data, but no evidence of conversion, quit
  1. I +$O(^GMR(121,0)) D Q:+$G(XPDQUIT)
  1. . N TIUMSG
  1. . I +$O(^GMR(121,"CNV",0))'>0 S XPDQUIT=2
  1. . I +$P($G(^TIU(8925.97,1,0)),U,2)'>0 S XPDQUIT=2
  1. . Q:'+$G(XPDQUIT)
  1. . S TIUMSG="** PROGRESS NOTE CONVERSION APPEARS NOT TO HAVE BEEN RUN: "
  1. . S TIUMSG=TIUMSG_"ABORTING **"
  1. . D BMES^XPDUTL(TIUMSG)
  1. ; If ^GMR(128 has data, but no evidence of conversion, quit
  1. I +$O(^GMR(128,0)) D
  1. . N TIUMSG
  1. . I $O(^GMR(128,"CNV",""))']"" S XPDQUIT=2
  1. . I +$G(^GMR(128,"CNV","T1"))'>0 S XPDQUIT=2
  1. . Q:'+$G(XPDQUIT)
  1. . S TIUMSG="** DISCHARGE SUMMARY CONVERSION APPEARS NOT TO HAVE RUN "
  1. . S TIUMSG=TIUMSG_"TO COMPLETION: ABORTING **"
  1. . D BMES^XPDUTL(TIUMSG)
  1. Q