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

AUTP7.m

Go to the documentation of this file.
  1. AUTP7 ; IHS/ASDST/GTH - AUT 98.1 PATCH 7 ; [ 02/14/2001 2:39 PM ]
  1. ;;98.1;IHS DICTIONARIES (POINTERS);**7**;MAR 04, 1998;Build 6
  1. ;
  1. I '$G(DUZ) W !,"DUZ UNDEFINED OR 0." D SORRY(1) Q
  1. ;
  1. I '$L($G(DUZ(0))) W !,"DUZ(0) UNDEFINED OR NULL." D SORRY(1) Q
  1. ;
  1. I '(DUZ(0)["@") W:'$D(ZTQUEUED) !,"DUZ(0) DOES NOT CONTAIN AN '@'." D SORRY(1) Q
  1. ;
  1. S X=$P(^VA(200,DUZ,0),U)
  1. W !!,$$C^XBFUNC("Hello, "_$P(X,",",2)_" "_$P(X,",")),!
  1. F %=1:1 S X=$P($T(HELLO+%),";",3) Q:X="" W !?5,X
  1. ;
  1. W !!,$$C^XBFUNC("Checking Environment for "_$P($T(+2),";",4)_" V "_$P($T(+2),";",3)_" Patch "_$P($T(+2),";",5)_".")
  1. ;
  1. S X=$$VERSION^XPDUTL("AUT")
  1. W !!,$$C^XBFUNC("Need AUT v 98.1.....AUT v "_X_" Present")
  1. I X<98.1 D SORRY(1) Q
  1. ;
  1. S X=$$VERSION^XPDUTL("DI")
  1. W !,$$C^XBFUNC("Need at least FileMan 21.....FileMan "_X_" Present")
  1. I X<21 D SORRY(1) Q
  1. ;
  1. S X=$$VERSION^XPDUTL("XU")
  1. W !,$$C^XBFUNC("Need at least Kernel 8.....Kernel "_X_" Present")
  1. I X<8 D SORRY(1) Q
  1. ;
  1. NEW DA,DIC
  1. S X="AUT",DIC="^DIC(9.4,",DIC(0)="",D="C"
  1. D IX^DIC
  1. I Y<0,$D(^DIC(9.4,"C","AUT")) D Q
  1. . W !!,*7,*7,$$C^XBFUNC("You Have More Than One Entry In The"),!,$$C^XBFUNC("PACKAGE File with an ""AUT"" prefix.")
  1. . W !,$$C^XBFUNC("One entry needs to be deleted.")
  1. . W !,$$C^XBFUNC("FIX IT! Before Proceeding."),!!,*7,*7,*7
  1. . D SORRY(1)
  1. . I $$DIR^XBDIR("E")
  1. .Q
  1. W !,$$C^XBFUNC("No 'AUT' dups in PACKAGE file")
  1. ;
  1. ; If patches 1-6 have already been installed, don't load them.
  1. I $G(XPDENV)=0 D ; Run only during Load of Installation.
  1. . NEW DA
  1. . S DA(1)=+Y ; Y is set from previous DIC lookup into PACKAGE.
  1. . S DA=$O(^DIC(9.4,DA(1),22,"B",98.1,0))
  1. . F %=1:1:6 I $D(^DIC(9.4,DA(1),22,DA,"PAH","B",%)) S XPDQUIT("AUT*98.1*"_%)=1
  1. .Q
  1. ;
  1. ; The following line prevents the "Disable Options..." and "Move
  1. ; Routines..." questions from being asked during the install.
  1. I $G(XPDENV)=1 S (XPDDIQ("XPZ1"),XPDDIQ("XPZ2"))=0
  1. ;
  1. W !!,$$C^XBFUNC("ENVIRONMENT OK.")
  1. I '$$DIR^XBDIR("E","","","","","",1) D SORRY(1) Q
  1. Q
  1. ;
  1. SORRY(X) ;
  1. KILL DIFQ
  1. S XPDQUIT=X
  1. F %=1:1:5 S XPDQUIT("AUT*98.1*"_%)=1
  1. W:'$D(ZTQUEUED) *7,!,$$C^XBFUNC("Sorry...."),$$DIR^XBDIR("E","Press RETURN")
  1. Q
  1. ;
  1. PRE ;EP - From KIDS.
  1. D BMES^XPDUTL("Beginning pre-install routine (PRE^AUTP7).")
  1. S ^XTMP("AUTP7",0)=$$FMADD^XLFDT(DT,14)_"^"_DT_"^"_"AUT*98.1*7"
  1. I '$D(^XTMP("AUTP7",9999999.09,"DDA")) D
  1. . D BMES^XPDUTL("Saving dd audit value for EDUCATION TOPICS...")
  1. . S ^XTMP("AUTP7",9999999.09,"DDA")=$G(^DD(9999999.09,0,"DDA"))
  1. .Q
  1. D BMES^XPDUTL("Seting dd audit value for EDUCATION TOPICS 'on'...")
  1. S ^DD(9999999.09,0,"DDA")="Y"
  1. D BMES^XPDUTL("Pre-install routine is complete.")
  1. Q
  1. ;
  1. POST ;EP - From KIDS.
  1. D BMES^XPDUTL("Beginning post-install routine (POST^AUTP7).")
  1. I $D(^XTMP("AUTP7",9999999.09,"DDA")) D
  1. . D BMES^XPDUTL("Restoring dd audit value for EDUCATION TOPICS...")
  1. . S ^DD(9999999.09,0,"DDA")=^XTMP("AUTP7",9999999.09,"DDA")
  1. .Q
  1. D BMES^XPDUTL("Delivering MailMan message to select users...")
  1. NEW DIFROM
  1. D MAIL^XBMAIL("ACHSZMGP,ACRZ MANAGERS MENU,XUMGR-XUPROGMODE","MSG^AUTP7")
  1. D BMES^XPDUTL("Post-install routine is complete.")
  1. Q
  1. ;
  1. MSG ;
  1. ;;AUT*98.1*7, EDUCATION TOPICS dd.
  1. ;;Greetings. You are receiving this message because you are a
  1. ;;programmer or hold specific PCC Data Entry security keys.
  1. ;;This is for your information, only. You need not do anything
  1. ;;in response to this message.
  1. ;;
  1. ;;Questions can be directed to George T. Huggins, RPMS/DBA, at
  1. ;;520-670-4871, or via IHS Mailman or Exchange.
  1. ;;
  1. ;; --- AUT v 98.1, Patch 7, has been installed into this uci ---
  1. HELLO ;;
  1. ;;AUT v 98.1, Patch 7, does the following:
  1. ;;
  1. ;;a) AUT v 98.1, Patch 7, modifies the EDUCATION TOPICS
  1. ;; data dictionary, file # 9999999.09, to allow the adding
  1. ;; of education topics using ICD Diagnosis codes. The
  1. ;; functionality of adding education topics using ICD codes
  1. ;; will be part of the next patch to PCC Data Entry (APCD).
  1. ;;
  1. ;; Modifications to dd 9999999.09 are:
  1. ;; (1) Length of .01 (NAME) increased from 30 to 50;
  1. ;; (2) Field .04, ICD DIAGNOSIS, is added;
  1. ;; (3) Field .049, ICD DESCRIPTION, is added (this is a
  1. ;; computed field, which retrieves the description
  1. ;; from the ICD DIAGNOSIS file);
  1. ;; (4) Length of 1 (MNEMONIC) increased from 7 to 12;
  1. ;; (5) Pattern match in field 1 input transform
  1. ;; (X?1.4UN1"-"1.4UN) is deleted.
  1. ;;
  1. ;;b) This patch is issued in support of the IHS Health
  1. ;; Education Program, National Patient Education Project, as
  1. ;; captured and implemented in PCC Data Entry.
  1. ;;
  1. ;;c) The KIDS transport file for Patch 7 is inclusive of patches
  1. ;; 1 through 6. However, the environment check routine for
  1. ;; patch 7 will prevent the loading of any or all of patches
  1. ;; 1 through 6 if they have already been installed on the
  1. ;; target system.