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

GMPLY49.m

Go to the documentation of this file.
  1. GMPLY49 ;ISP/TC - Pre/Post Install Routine for GMPL*2.0*49 ;08/23/17 08:15
  1. ;;2.0;Problem List;**49**;Aug 25, 1994;Build 43
  1. ;
  1. ; External References:
  1. ; ICR 872 PROTOCOL FILE #101
  1. ; ICR 1157 OUT^XPDMENU
  1. ; ICR 2051 $$FIND1^DIC
  1. ; ICR 2053 FILE^DIE
  1. ; ICR 10014 EN^DIU2
  1. ; ICR 10104 $$LJ/$$UP^XLFSTR
  1. ; ICR 10141 BMES/MES/PATCH^XPDUTL
  1. ; ICR 10156 OPTION FILE #19
  1. ;
  1. ASGNRPT ; Retrieve pre-existing user/clinic selection list assignment report
  1. N GMPLULST,GMPLCLST,GMPLELST,GMPLTXT
  1. D GETUSRLT^GMPLSLRP(.GMPLULST,.GMPLELST)
  1. D GETCLNLT^GMPLSLRP(.GMPLCLST)
  1. I $D(GMPLULST)!($D(GMPLCLST))!($D(GMPLELST)) D
  1. . D SENDARPT(.GMPLULST,.GMPLCLST,.GMPLELST)
  1. . D MES^XPDUTL(" Report has been generated to the installer & OR CACS mailgroup via MailMan.")
  1. E D MES^XPDUTL(" No pre-existing USER or CLINIC selection list assignments found.")
  1. I $D(GMPLELST) D
  1. . N GMPLUSR,GMPLLST,GMPLFDA,GMPLDUZ,GMPLMSG,GMPLSUC
  1. . S (GMPLUSR,GMPLLST)="",GMPLSUC=1
  1. . D BMES^XPDUTL(" Removing invalid USER selection list assignments for...")
  1. . F S GMPLUSR=$O(GMPLELST(GMPLUSR)) Q:GMPLUSR="" D
  1. . . F S GMPLLST=$O(GMPLELST(GMPLUSR,GMPLLST)) Q:GMPLLST="" D
  1. . . . D MES^XPDUTL(" "_GMPLUSR_": Invalid Selection List #"_GMPLLST_"")
  1. . . . S GMPLDUZ=$G(GMPLELST(GMPLUSR,GMPLLST))
  1. . . . S GMPLFDA(200,""_GMPLDUZ_",",125.1)="@"
  1. . . . D FILE^DIE("K","GMPLFDA","GMPLMSG")
  1. . . . I $D(GMPLMSG) S GMPLSUC=0 D MES^XPDUTL(" Error: "_GMPLMSG("DIERR",1,"TEXT",1))
  1. . I GMPLSUC D MES^XPDUTL(" Done.")
  1. K GMPLULST,GMPLCLST,GMPLELST
  1. Q
  1. ;
  1. CASECHK ; Check for mixed/lower case list/category name entries
  1. N GMPLLIST,GMPLCAT,GMPLLNM,GMPLCNM,GMPLLDA,GMPLCDA,GMPLMSG,GMPLFDA,GMPLERR,GMPLTXT
  1. S (GMPLLNM,GMPLCNM,GMPLLDA,GMPLCDA)=""
  1. F S GMPLLNM=$O(^GMPL(125,"B",GMPLLNM)) Q:GMPLLNM="" D
  1. . F S GMPLLDA=$O(^GMPL(125,"B",GMPLLNM,GMPLLDA)) Q:GMPLLDA="" D
  1. . . I $$MIXLOWCS^GMPLX(GMPLLNM) D
  1. . . . S GMPLFDA(125,""_GMPLLDA_",",.01)=$$UP^XLFSTR(GMPLLNM)
  1. . . . D FILE^DIE("EK","GMPLFDA","GMPLMSG")
  1. . . . I $D(GMPLMSG) D
  1. . . . . S GMPLLIST("FAIL",GMPLLNM)="Record #"_GMPLLDA_U_"Error: "_GMPLMSG("DIERR",1,"TEXT",1)
  1. . . . . K GMPLMSG
  1. . . . E S GMPLLIST("PASS",GMPLLNM)=""
  1. F S GMPLCNM=$O(^GMPL(125.11,"B",GMPLCNM)) Q:GMPLCNM="" D
  1. . F S GMPLCDA=$O(^GMPL(125.11,"B",GMPLCNM,GMPLCDA)) Q:GMPLCDA="" D
  1. . . I $$MIXLOWCS^GMPLX(GMPLCNM) D
  1. . . . S GMPLFDA(125.11,""_GMPLCDA_",",.01)=$$UP^XLFSTR(GMPLCNM)
  1. . . . D FILE^DIE("EK","GMPLFDA","GMPLERR")
  1. . . . I $D(GMPLERR) D
  1. . . . . S GMPLCAT("FAIL",GMPLCNM)="Record #"_GMPLCDA_U_"Error: "_GMPLERR("DIERR",1,"TEXT",1)
  1. . . . . K GMPLERR
  1. . . . E S GMPLCAT("PASS",GMPLCNM)=""
  1. I $D(GMPLLIST)!($D(GMPLCAT)) D
  1. . D SENDCRPT(.GMPLLIST,.GMPLCAT)
  1. . S GMPLTXT(1)=" A mixed & lower case list/category name report has been generated to the"
  1. . S GMPLTXT(2)=" installer and OR CACS mailgroup via MailMan."
  1. . D BMES^XPDUTL(.GMPLTXT)
  1. E D MES^XPDUTL(" No mixed or lower case list/category names found.")
  1. K GMPLLIST,GMPLCAT,GMPLMSG
  1. Q
  1. ;
  1. DUPCHK ; Check for duplicate selection list/category entry names
  1. N GMPLSLST,GMPLCLST,GMPLDUPL,GMPLDUPC,GMPLLNM,GMPLCNM,GMPLTXT,GMPLIEN,GMPLDA
  1. S (GMPLLNM,GMPLCNM)="",GMPLSLST("0")="",GMPLCLST("0")="",(GMPLIEN,GMPLDA)=0
  1. F S GMPLLNM=$O(^GMPL(125,"B",GMPLLNM)) Q:GMPLLNM="" D
  1. . F S GMPLIEN=$O(^GMPL(125,"B",GMPLLNM,GMPLIEN)) Q:'GMPLIEN D
  1. . . I $$DUPL(.GMPLSLST,GMPLLNM) S GMPLDUPL(GMPLLNM)=""
  1. . . S GMPLSLST(GMPLLNM)=""
  1. F S GMPLCNM=$O(^GMPL(125.11,"B",GMPLCNM)) Q:GMPLCNM="" D
  1. . F S GMPLDA=$O(^GMPL(125.11,"B",GMPLCNM,GMPLDA)) Q:'GMPLDA D
  1. . . I $$DUPL(.GMPLCLST,GMPLCNM) S GMPLDUPC(GMPLCNM)=""
  1. . . S GMPLCLST(GMPLCNM)=""
  1. I $D(GMPLDUPL)!($D(GMPLDUPC)) D
  1. . D SENDDRPT(.GMPLDUPL,.GMPLDUPC)
  1. . S GMPLTXT(1)=" A duplicate list/category name report has been generated to the installer"
  1. . S GMPLTXT(2)=" and OR CACS mailgroup via MailMan."
  1. . D BMES^XPDUTL(.GMPLTXT)
  1. E D MES^XPDUTL(" No duplicate list/category names found.")
  1. K GMPLSLST,GMPLCLST,GMPLDUPL,GMPLDUPC
  1. Q
  1. ;
  1. DUPL(GMPLARY,GMPLENT) ; Check if GMPLENT is a duplicate in GMPLARY
  1. N GMPLSUB,GMPLRSLT S GMPLSUB="",GMPLRSLT=0
  1. F S GMPLSUB=$O(GMPLARY(GMPLSUB)) Q:GMPLSUB="" D
  1. . I $$UP^XLFSTR(GMPLENT)=$$UP^XLFSTR(GMPLSUB) S GMPLRSLT=1 Q
  1. Q GMPLRSLT
  1. ;
  1. POST ; Post-install subroutine
  1. N GMPLOPT,GMPLOTXT
  1. D BMES^XPDUTL(" Scanning for duplicate Problem Selection list/category names...")
  1. D DUPCHK
  1. D BMES^XPDUTL(" Marking GMPL CODE LIST menu option out of order...")
  1. S GMPLOPT="GMPL CODE LIST",GMPLOTXT="This option is obsolete and disabled."
  1. D OUT^XPDMENU(GMPLOPT,GMPLOTXT),MES^XPDUTL(" Done.")
  1. D UPCHKMNU
  1. D BMES^XPDUTL(" Updating display order of several items for GMPL BUILD LIST MENU option...")
  1. D UPDTDORD
  1. D BMES^XPDUTL(" Resequencing GMPL MENU BUILD GROUP protocol menu items...")
  1. D RSEQPROT
  1. Q:$$PATCH^XPDUTL("GMPL*2.0*49")
  1. D EN^GMPLY49A
  1. Q
  1. ;
  1. PRE ; Pre-install subroutine
  1. ; Remove old data dictionary for the Problem Selection List Files
  1. N DIU
  1. D BMES^XPDUTL(" Retrieving pre-existing USER/CLINIC selection list assignment report...")
  1. D ASGNRPT
  1. D BMES^XPDUTL(" Scanning for mixed or lower case Problem Selection list/category names...")
  1. D CASECHK
  1. D BMES^XPDUTL(" Removing old PROBLEM SELECTION LIST file #125 data dictionary...")
  1. S DIU(0)=""
  1. S DIU=125
  1. D EN^DIU2 K DIU
  1. D MES^XPDUTL(" Data dictionary for file #125 removed.")
  1. N DIU
  1. D BMES^XPDUTL(" Removing old PROBLEM SELECTION CATEGORY file #125.11 data dictionary...")
  1. S DIU(0)=""
  1. S DIU=125.11
  1. D EN^DIU2 K DIU
  1. D MES^XPDUTL(" Data dictionary for file #125.11 removed.")
  1. I $D(^GMPL(125,0)) S $P(^GMPL(125,0),U,3)=0
  1. I $D(^GMPL(125.11,0)) S $P(^GMPL(125.11,0),U,3)=0
  1. Q
  1. ;
  1. RSEQPROT ; Resequence GMPL MENU BUILD GROUP protocol menu items
  1. N GMPLPIEN,GMPLMSG,GMPLDA,GMPLITEM,GMPLIENS,GMPLFDA,GMPLTXT,GMPLERR
  1. S GMPLDA=0,GMPLERR=0
  1. S GMPLPIEN=$$FIND1^DIC(101,"","BX","GMPL MENU BUILD GROUP","","","GMPLMSG")
  1. I 'GMPLPIEN D BMES^XPDUTL(" Error: Cannot find GMPL MENU BUILD GROUP protocol.") Q
  1. F S GMPLDA=$O(^ORD(101,GMPLPIEN,10,GMPLDA)) Q:GMPLDA="" D
  1. . S GMPLITEM=$G(^ORD(101,GMPLPIEN,10,GMPLDA,0))
  1. . I $P(GMPLITEM,U,2)="ED" D Q
  1. . . S GMPLIENS=""_GMPLDA_","_GMPLPIEN_","
  1. . . S GMPLFDA(101.01,GMPLIENS,.01)="GMPL MENU COPY GROUP"
  1. . . S GMPLFDA(101.01,GMPLIENS,2)="CN"
  1. . . S GMPLFDA(101.01,GMPLIENS,3)="5"
  1. . . D FILE^DIE("EK","GMPLFDA","GMPLMSG")
  1. . . I $D(GMPLMSG) D
  1. . . . S GMPLTXT(1)=" Unable to add GMPL MENU COPY GROUP as the 5th menu item. "
  1. . . . S GMPLTXT(2)=" Error: "_GMPLMSG("DIERR",1,"TEXT",1),GMPLERR=1
  1. . . . D BMES^XPDUTL(.GMPLTXT)
  1. I 'GMPLERR D MES^XPDUTL(" Done.")
  1. Q
  1. ;
  1. SENDARPT(GMPLULST,GMPLCLST,GMPLELST) ; Build pre-existing user/clinic selection list assignment rpt and send via MailMan
  1. N GMPLTO,GMPLFROM,GMPXMSUB,SUB,GMPLCNT
  1. K ^TMP("GMPLASGN",$J)
  1. S SUB="GMPLASGN",GMPLCNT=9
  1. S GMPXMSUB="Pre-existing USER/CLINIC Selection List Assignment Report"
  1. S GMPLFROM="GMPL*2.0*49 INSTALL"
  1. S GMPLTO(DUZ)="",GMPLTO("G.OR CACS")=""
  1. S ^TMP(SUB,$J,1,0)=""
  1. S ^TMP(SUB,$J,2,0)="This report was auto generated during installation to identify Problem"
  1. S ^TMP(SUB,$J,3,0)="Selection Lists assigned to users and clinics prior to the installation of"
  1. S ^TMP(SUB,$J,4,0)="GMPL*2.0*49. After installation all users and clinic assignments will be"
  1. S ^TMP(SUB,$J,5,0)="migrated to the new Default Selection List Display parameter setting. If users"
  1. S ^TMP(SUB,$J,6,0)="and clinics desire to use the National Problem Selection List as their default"
  1. S ^TMP(SUB,$J,7,0)="setting then use the Assign/Remove menu option to reassign those users or"
  1. S ^TMP(SUB,$J,8,0)="clinics listed in the report."
  1. S ^TMP(SUB,$J,9,0)=""
  1. I $D(GMPLULST) D
  1. . N GMPLUSR,GMPLST S (GMPLUSR,GMPLST)=""
  1. . S GMPLCNT=GMPLCNT+1,^TMP(SUB,$J,GMPLCNT,0)="User Selection List Assignments: "
  1. . S GMPLCNT=GMPLCNT+1,^TMP(SUB,$J,GMPLCNT,0)=""
  1. . F S GMPLUSR=$O(GMPLULST(GMPLUSR)) Q:GMPLUSR="" D
  1. . . F S GMPLST=$O(GMPLULST(GMPLUSR,GMPLST)) Q:GMPLST="" D
  1. . . . S GMPLCNT=GMPLCNT+1,^TMP(SUB,$J,GMPLCNT,0)=" "_$$LJ^XLFSTR(GMPLUSR,35)_$$LJ^XLFSTR(GMPLST,40)
  1. E S GMPLCNT=GMPLCNT+1,^TMP(SUB,$J,GMPLCNT,0)="There are no USER selection list assignments in the system currently."
  1. S GMPLCNT=GMPLCNT+1,^TMP(SUB,$J,GMPLCNT,0)=""
  1. I $D(GMPLCLST) D
  1. . N GMPLCLIN,GMPLLST S (GMPLCLIN,GMPLLST)=""
  1. . S GMPLCNT=GMPLCNT+1,^TMP(SUB,$J,GMPLCNT,0)="Clinic Selection List Assignments: "
  1. . S GMPLCNT=GMPLCNT+1,^TMP(SUB,$J,GMPLCNT,0)=""
  1. . F S GMPLCLIN=$O(GMPLCLST(GMPLCLIN)) Q:GMPLCLIN="" D
  1. . . F S GMPLLST=$O(GMPLCLST(GMPLCLIN,GMPLLST)) Q:GMPLLST="" D
  1. . . . S GMPLCNT=GMPLCNT+1,^TMP(SUB,$J,GMPLCNT,0)=" "_$$LJ^XLFSTR(GMPLCLIN,35)_$$LJ^XLFSTR(GMPLLST,40)
  1. E S GMPLCNT=GMPLCNT+1,^TMP(SUB,$J,GMPLCNT,0)="There are no CLINIC selection list assignments in the system currently."
  1. I $D(GMPLELST) D
  1. . N GMPLUSNM,GMPLSLDA S (GMPLUSNM,GMPLSLDA)=""
  1. . S GMPLCNT=GMPLCNT+1,^TMP(SUB,$J,GMPLCNT,0)=""
  1. . S GMPLCNT=GMPLCNT+1,^TMP(SUB,$J,GMPLCNT,0)="User(s) assigned to a Selection List that no longer exists:"
  1. . S GMPLCNT=GMPLCNT+1,^TMP(SUB,$J,GMPLCNT,0)=""
  1. . F S GMPLUSNM=$O(GMPLELST(GMPLUSNM)) Q:GMPLUSNM="" D
  1. . . F S GMPLSLDA=$O(GMPLELST(GMPLUSNM,GMPLSLDA)) Q:GMPLSLDA="" D
  1. . . . S GMPLCNT=GMPLCNT+1,^TMP(SUB,$J,GMPLCNT,0)=" "_$$LJ^XLFSTR(GMPLUSNM,35)_$$LJ^XLFSTR("Selection List #"_GMPLSLDA,40)
  1. D SEND^GMPLUTL4(SUB,GMPXMSUB,.GMPLTO,GMPLFROM)
  1. Q
  1. ;
  1. SENDCRPT(GMPLLIST,GMPLCAT) ; Build mix/lower case name report and send to installer via MailMan
  1. N GMPLTO,GMPLFROM,GMPXMSUB,SUB,GMPLCNT,GMPLLNM,GMPLCNM
  1. K ^TMP("GMPLCASE",$J)
  1. S SUB="GMPLCASE",GMPLCNT=9,(GMPLLNM,GMPLCNM)=""
  1. S GMPXMSUB="Mixed & Lower Case List/Category Name Report"
  1. S GMPLFROM="GMPL*2.0*49 INSTALL"
  1. S GMPLTO(DUZ)="",GMPLTO("G.OR CACS")=""
  1. S ^TMP(SUB,$J,1,0)=""
  1. S ^TMP(SUB,$J,2,0)="Mixed/lower case problem selection list/category names are no longer allowed"
  1. S ^TMP(SUB,$J,3,0)="with patch GMPL*2.0*49. This patch scans the Problem Selection List and Problem"
  1. S ^TMP(SUB,$J,4,0)="Selection Category files for any names in mixed or lower case letters and"
  1. S ^TMP(SUB,$J,5,0)="converts them to upper case."
  1. S ^TMP(SUB,$J,6,0)=""
  1. S ^TMP(SUB,$J,7,0)="For those conversions that failed, please have a CAC or somebody with FileMan"
  1. S ^TMP(SUB,$J,8,0)="access manually modify the name to upper case."
  1. S ^TMP(SUB,$J,9,0)=""
  1. I $D(GMPLLIST("PASS")) D
  1. . S GMPLCNT=GMPLCNT+1,^TMP(SUB,$J,GMPLCNT,0)="The following list names converted successfully:"
  1. . S GMPLCNT=GMPLCNT+1,^TMP(SUB,$J,GMPLCNT,0)=""
  1. . F S GMPLLNM=$O(GMPLLIST("PASS",GMPLLNM)) Q:GMPLLNM="" D
  1. . . S GMPLCNT=GMPLCNT+1,^TMP(SUB,$J,GMPLCNT,0)=" "_GMPLLNM
  1. . S GMPLCNT=GMPLCNT+1,^TMP(SUB,$J,GMPLCNT,0)=""
  1. I $D(GMPLLIST("FAIL")) D
  1. . S GMPLCNT=GMPLCNT+1,^TMP(SUB,$J,GMPLCNT,0)="Failed list names:"
  1. . S GMPLCNT=GMPLCNT+1,^TMP(SUB,$J,GMPLCNT,0)="",GMPLLNM=""
  1. . F S GMPLLNM=$O(GMPLLIST("FAIL",GMPLLNM)) Q:GMPLLNM="" D
  1. . . S GMPLCNT=GMPLCNT+1,^TMP(SUB,$J,GMPLCNT,0)=$$LJ^XLFSTR("*"_GMPLLNM,34)_$$LJ^XLFSTR($P(GMPLLIST("FAIL",GMPLLNM),U),18)_$$LJ^XLFSTR($P(GMPLLIST("FAIL",GMPLLNM),U,2),80)
  1. . S GMPLCNT=GMPLCNT+1,^TMP(SUB,$J,GMPLCNT,0)=""
  1. I $D(GMPLCAT("PASS")) D
  1. . S GMPLCNT=GMPLCNT+1,^TMP(SUB,$J,GMPLCNT,0)="The following category names converted successfully:"
  1. . S GMPLCNT=GMPLCNT+1,^TMP(SUB,$J,GMPLCNT,0)=""
  1. . F S GMPLCNM=$O(GMPLCAT("PASS",GMPLCNM)) Q:GMPLCNM="" D
  1. . . S GMPLCNT=GMPLCNT+1,^TMP(SUB,$J,GMPLCNT,0)=" "_GMPLCNM
  1. . S GMPLCNT=GMPLCNT+1,^TMP(SUB,$J,GMPLCNT,0)=""
  1. I $D(GMPLCAT("FAIL")) D
  1. . S GMPLCNT=GMPLCNT+1,^TMP(SUB,$J,GMPLCNT,0)="Failed category names:"
  1. . S GMPLCNT=GMPLCNT+1,^TMP(SUB,$J,GMPLCNT,0)="",GMPLCNM=""
  1. . F S GMPLCNM=$O(GMPLCAT("FAIL",GMPLCNM)) Q:GMPLCNM="" D
  1. . . S GMPLCNT=GMPLCNT+1,^TMP(SUB,$J,GMPLCNT,0)=$$LJ^XLFSTR("*"_GMPLCNM,34)_$$LJ^XLFSTR($P(GMPLCAT("FAIL",GMPLCNM),U),18)_$$LJ^XLFSTR($P(GMPLCAT("FAIL",GMPLCNM),U,2),80)
  1. . S GMPLCNT=GMPLCNT+1,^TMP(SUB,$J,GMPLCNT,0)=""
  1. D SEND^GMPLUTL4(SUB,GMPXMSUB,.GMPLTO,GMPLFROM)
  1. Q
  1. ;
  1. SENDDRPT(GMPLDUPL,GMPLDUPC) ; Build duplicate name report and send to installer via MailMan
  1. N GMPLTO,GMPLFROM,GMPXMSUB,SUB,GMPLCNT,GMPLLIST,GMPLCAT
  1. K ^TMP("GMPLDUP",$J)
  1. S SUB="GMPLDUP",GMPLCNT=6,(GMPLLIST,GMPLCAT)=""
  1. S GMPXMSUB="Duplicate Problem Selection List/Category Name Report"
  1. S GMPLFROM="GMPL*2.0*49 INSTALL"
  1. S GMPLTO(DUZ)="",GMPLTO("G.OR CACS")=""
  1. S ^TMP(SUB,$J,1,0)=""
  1. S ^TMP(SUB,$J,2,0)="Duplicate problem selection list/category names are no longer allowed with"
  1. S ^TMP(SUB,$J,3,0)="patch GMPL*2.0*49. The following list/category names are duplicates. Please"
  1. S ^TMP(SUB,$J,4,0)="have your CAC review these with the pre-existing file entries and rename,"
  1. S ^TMP(SUB,$J,5,0)="delete, or reconcile the duplicate entries as needed."
  1. S ^TMP(SUB,$J,6,0)=""
  1. I $D(GMPLDUPL) D
  1. . S GMPLCNT=GMPLCNT+1,^TMP(SUB,$J,GMPLCNT,0)=" Duplicate List Names:"
  1. . S GMPLCNT=GMPLCNT+1,^TMP(SUB,$J,GMPLCNT,0)=""
  1. . F S GMPLLIST=$O(GMPLDUPL(GMPLLIST)) Q:GMPLLIST="" D
  1. . . S GMPLCNT=GMPLCNT+1,^TMP(SUB,$J,GMPLCNT,0)=" "_GMPLLIST
  1. . S GMPLCNT=GMPLCNT+1,^TMP(SUB,$J,GMPLCNT,0)=""
  1. I $D(GMPLDUPC) D
  1. . S GMPLCNT=GMPLCNT+1,^TMP(SUB,$J,GMPLCNT,0)=" Duplicate Category Names:"
  1. . S GMPLCNT=GMPLCNT+1,^TMP(SUB,$J,GMPLCNT,0)=""
  1. . F S GMPLCAT=$O(GMPLDUPC(GMPLCAT)) Q:GMPLCAT="" D
  1. . . S GMPLCNT=GMPLCNT+1,^TMP(SUB,$J,GMPLCNT,0)=" "_GMPLCAT
  1. D SEND^GMPLUTL4(SUB,GMPXMSUB,.GMPLTO,GMPLFROM)
  1. Q
  1. ;
  1. SENDLIST(GMPLSLST) ; Export national list/category data if prefixed with VA-
  1. I $E(GMPLSLST,1,3)="VA-" Q 1
  1. Q 0
  1. ;
  1. UPCHKMNU ; Update GMPL SELECTION LIST CSV CHECK menu text
  1. N GMPLIEN,GMPLFDA,GMPLMSG,GMPLERR,GMPLTXT
  1. S GMPLIEN=+$$FIND1^DIC(19,"","KX","GMPL SELECTION LIST CSV CHECK","","","GMPLMSG")
  1. I GMPLIEN>0 D
  1. . D BMES^XPDUTL(" Updating GMPL SELECTION LIST CSV CHECK menu text...")
  1. . S GMPLFDA(19,""_GMPLIEN_",",1)="Check Problem Selection List Problem Codes"
  1. . D FILE^DIE("EK","GMPLFDA","GMPLERR")
  1. I $D(GMPLERR) D
  1. . S GMPLTXT(1)=" Error updating menu text."
  1. . S GMPLTXT(2)=" Error "_GMPLERR("DIERR",1)_": "_GMPLERR("DIERR",1,"TEXT",1)
  1. . D BMES^XPDUTL(.GMPLTXT)
  1. E D MES^XPDUTL(" Done.")
  1. Q
  1. ;
  1. UPDTDORD ; Update display order of several menu items for GMPL BUILD LIST MENU option
  1. N GMPLI,GMPLOIEN,GMPLMSG,GMPLTXT,GMPLERR S GMPLERR=0
  1. S GMPLOIEN=$$FIND1^DIC(19,"","BX","GMPL BUILD LIST MENU","","","GMPLMSG")
  1. I 'GMPLOIEN D BMES^XPDUTL(" Error: Cannot find GMPL BUILD LIST MENU option") Q
  1. F GMPLI=1:1:3 D
  1. . N GMPLOPT,GMPLMIEN,GMPLIENS,GMPLVAL,GMPLFDA
  1. . S GMPLOPT=$S(GMPLI=1:"GMPL DELETE LIST",GMPLI=2:"GMPL SELECTION LIST CSV CHECK",1:"GMPL SELECTION LIST IMPORT")
  1. . S GMPLVAL=$S(GMPLI=1:"4",GMPLI=2:"5",1:"6")
  1. . S GMPLMIEN=$$FIND1^DIC(19.01,","_GMPLOIEN_",","BX",GMPLOPT,"","","GMPLMSG")
  1. . S GMPLIENS=""_GMPLMIEN_","_GMPLOIEN_","
  1. . S GMPLFDA(19.01,GMPLIENS,2)=GMPLVAL
  1. . S GMPLFDA(19.01,GMPLIENS,3)=GMPLVAL
  1. . D FILE^DIE("EK","GMPLFDA","GMPLMSG")
  1. . I $D(GMPLMSG) D
  1. . . S GMPLTXT(1)=" Menu Item: "_GMPLOPT
  1. . . S GMPLTXT(2)=" Error: "_GMPLMSG("DIERR",1,"TEXT",1),GMPLERR=1
  1. . . D BMES^XPDUTL(.GMPLTXT)
  1. I 'GMPLERR D MES^XPDUTL(" Done.")
  1. Q
  1. ;