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

EC2P86PT.m

Go to the documentation of this file.
  1. EC2P86PT ;ALB/JAM - PATCH EC*2.0*86 Post-Init Rtn ; 04/22/07 5:04pm
  1. ;;2.0; EVENT CAPTURE ;**86**;8 May 96;Build 8
  1. ;
  1. Q
  1. POST ; entry point
  1. D MES^XPDUTL(" ")
  1. D BMES^XPDUTL("This installation will disable all of Event Capture System (ECS) Roll-and-Scroll")
  1. D MES^XPDUTL("options as part of the official shutdown of this interface.")
  1. D MES^XPDUTL(" ")
  1. D MES^XPDUTL("The Roll-and-Scroll interface will no longer be supported and as such users are")
  1. D MES^XPDUTL("required to use the Graphical User Interface which provides the equivalent")
  1. D MES^XPDUTL("functionality.")
  1. D MES^XPDUTL(" ")
  1. D EN
  1. Q
  1. ;
  1. EN ;* entry point
  1. N LOOP,OPT,ECNT,SCNT,PCNT,COUNT,I,TXTVAR,DATA,DESC
  1. K ^TMP($J,"EC2P86","NFND"),^TMP($J,"EC2P86","FND"),^TMP($J,"EC2P86MG")
  1. K ^TMP($J,"EC2P86","PFND")
  1. S (ECNT,SCNT,COUNT,PCNT)=0,$P(BLK," ",30)=""
  1. D MES^XPDUTL("Disabling Event Capture Roll-and-Scroll Options...")
  1. F I=1:1 S TXTVAR=$P($T(MSGTXT+I),";;",2) Q:TXTVAR="QUIT" D LINE(TXTVAR)
  1. ;Disable options
  1. F LOOP=1:1 S DATA=$P($T(OPTIONS+LOOP),";;",2) Q:DATA="QUIT" D
  1. .S OPT=$P(DATA,";"),DESC=$P(DATA,";",2)
  1. .I $$LKOPT^XPDMENU(OPT)'>0 Q:LOOP>36 D ELINE($E(OPT_BLK,1,19)_DESC) Q
  1. .D OUT^XPDMENU(OPT,"OPTION NO LONGER SUPPORTED. USE THE ECS GUI INTERFACE.")
  1. .D MES^XPDUTL($E(OPT_BLK,1,19)_" "_DESC_" Disabled...")
  1. .I LOOP>36 D PLINE($E(OPT_BLK,1,19)_DESC) Q
  1. .D SLINE($E(OPT_BLK,1,19)_DESC)
  1. D BMES^XPDUTL("National Options Disabled Successfully: "_SCNT)
  1. I PCNT>0 D MES^XPDUTL("Pre-Released Options Disabled Successfully: "_PCNT)
  1. D MES^XPDUTL("National Options Disabled Unsuccessfully: "_ECNT)
  1. D ADDMSG
  1. D MAIL
  1. K ^TMP($J,"EC2P86"),^TMP($J,"EC2P86MG")
  1. Q
  1. ;
  1. RESTORE ;Place options back in order
  1. N LOOP,OPT,BLK
  1. S $P(BLK," ",30)=""
  1. D MES^XPDUTL("Placing Event Capture Roll-and-Scroll Options back in order.")
  1. F LOOP=1:1 S DATA=$P($T(OPTIONS+LOOP),";;",2) Q:DATA="QUIT" D
  1. .S OPT=$P(DATA,";")
  1. .D OUT^XPDMENU(OPT,"")
  1. .D MES^XPDUTL($E(OPT_BLK,1,19)_" "_$P(DATA,":",2)_" Enabled...")
  1. Q
  1. ;
  1. LINE(TEXT) ;Add line to message global
  1. S COUNT=COUNT+1
  1. S ^TMP($J,"EC2P86MG",COUNT)=TEXT
  1. Q
  1. ;
  1. SLINE(TEXT) ;Add line to global for option found
  1. S SCNT=SCNT+1
  1. S ^TMP($J,"EC2P86","FND",SCNT)=TEXT
  1. Q
  1. ;
  1. ELINE(TEXT) ;Add line to global for option not found
  1. S ECNT=ECNT+1
  1. S ^TMP($J,"EC2P86","NFND",ECNT)=TEXT
  1. Q
  1. ;
  1. PLINE(TEXT) ;Add line to global for pre-release option found
  1. S PCNT=PCNT+1
  1. S ^TMP($J,"EC2P86","PFND",PCNT)=TEXT
  1. Q
  1. ;
  1. ADDMSG ;Add lines to message global
  1. N CNT
  1. I $D(^TMP($J,"EC2P86","FND")) D
  1. .D LINE("Event Capture roll-and-scroll options disabled:")
  1. .S CNT=0 F S CNT=$O(^TMP($J,"EC2P86","FND",CNT)) Q:'CNT D LINE(^(CNT))
  1. .D LINE(""),LINE("Options Disabled Successfully: "_SCNT)
  1. I $D(^TMP($J,"EC2P86","PFND")) S CNT=0 D
  1. .D LINE("")
  1. .D LINE("Pre-Released Event Capture Options disabled:")
  1. .F S CNT=$O(^TMP($J,"EC2P86","PFND",CNT)) Q:'CNT D LINE(^(CNT))
  1. .D LINE(""),LINE("Pre-Released Options Disabled: "_PCNT)
  1. I $D(^TMP($J,"EC2P86","NFND")) S CNT=0 D
  1. .D LINE("")
  1. .D LINE("National Event Capture Options Not Found:")
  1. .F S CNT=$O(^TMP($J,"EC2P86","NFND",CNT)) Q:'CNT D LINE(^(CNT))
  1. .D LINE(""),LINE("Options Disabled Unsuccessfully: "_ECNT)
  1. Q
  1. ;
  1. MSGTXT ; Message intro
  1. ;;Please forward this message to your local DSS Site Manager or Event Capture
  1. ;;ADPAC.
  1. ;;
  1. ;; This message details the national VistA options that were disabled under
  1. ;; the Event Capture System (ECS) roll-and-scroll interface. If an option was
  1. ;; not found, then it will be identified in a section of this email message.
  1. ;; Additionally, any pre-released EC2P* options will be disabled and listed.
  1. ;;
  1. ;; If your site has edited the name of a national option, then your IRM will
  1. ;; need to manually disable any such option.
  1. ;;
  1. ;; As of the release of this patch, ECS roll-and-scroll interface will no longer
  1. ;; be supported. Sites should be using the graphical user interface (GUI) which
  1. ;; has the equivalent functionality.
  1. ;;
  1. ;;QUIT
  1. ;
  1. MAIL ; Send message
  1. N DIFROM,XMDUZ,XMY,XMTEXT,XMSUB,XMDUN,XMZ
  1. S XMY(DUZ)="",XMDUZ=.5,XMY(XMDUZ)=""
  1. S XMSUB="Event Capture Roll-and-Scroll Shutdown"
  1. S XMTEXT="^TMP($J,""EC2P86MG"","
  1. D ^XMD
  1. Q
  1. ;
  1. OPTIONS ;Event Capture Options that will be set out of order.
  1. ;;ECLOC;Current Locations (Create/Remove)
  1. ;;ECSECT;DSS Units for Event Capture (Enter/Edit)
  1. ;;ECDSUNIT;Assign User Access to DSS Units
  1. ;;ECDEAL;Remove User Access to DSS Units
  1. ;;ECDS CATEGORY;Local Category (Enter/Edit)
  1. ;;ECDSS PROCEDURE;Local Procedure (Enter/Edit)
  1. ;;ECSCREEN;Event Code Screens (Create)
  1. ;;ECDSSYN;Procedure Synonym/Default Volume (Enter/Edit)
  1. ;;ECNACT;Inactivate Event Code Screens
  1. ;;ECDSDEAC;Activate/Inactivate Local Procedures
  1. ;;ECDS CATEGORY DEAC;Activate/Inactivate Local Category
  1. ;;ECDSS1;National/Local Procedure Reports
  1. ;;ECDSS3;Category Reports
  1. ;;ECCP;Print Category and Procedure Summary
  1. ;;ECCP1;*Summary of Procedures and Categories (Old File)
  1. ;;ECSCPT;Event Code Screens with CPT Codes
  1. ;;ECINCPT;National/Local Procedure Codes with Inactive CPT
  1. ;;ECDSRPT;Management Reports
  1. ;;ECMGR;Event Capture Management Menu
  1. ;;ECPAT;Enter/Edit Patient Procedures
  1. ;;ECBATCH;Batch Enter Data by Patient
  1. ;;ECBATCH PROC;Data Entry (Batch) by Procedure
  1. ;;ECMULT PROC;Multiple Dates/Multiple Procedures Data Entry
  1. ;;ECENTER;Event Capture Data Entry
  1. ;;ECPAT SUM;Patient Summary - Event Capture
  1. ;;ECRDSSU;DSS Unit Workload Summary
  1. ;;ECPROV;Provider Summary Report
  1. ;;EC OS SUM;Ordering Section Summary Report
  1. ;;EC PRO SUM;Provider (1-7) Summary Report
  1. ;;EC PCE REPORT;PCE Data Summary
  1. ;;ECRPERS;Inactive Person Class Report
  1. ;;ECRPRSN;Procedure Reason Report
  1. ;;EC NTPCE REPORT;Records Failing Transmission to PCE Report
  1. ;;ECREPS;Event Capture Reports
  1. ;;ECDSONL;Event Capture Online Documentation
  1. ;;ECMENU;Event Capture Menu
  1. ;;EC2PEDIT;Map Event Capture Procedures to National Files
  1. ;;EC2PLIST;List Mapped/Unmapped Event Capture Procedures
  1. ;;EC2PMGR;Pre Release for Event Capture
  1. ;;QUIT