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

SD53P224.m

Go to the documentation of this file.
  1. SD53P224 ;ALB/RPM - Patch SD*5.3*224 Install Utility Routine ; 8/16/00 11:04am
  1. ;;5.3;Scheduling;**224,1015**;AUG 13, 1993;Build 21
  1. ;
  1. ;
  1. ENV ;Main entry point for Environment check point.
  1. ;
  1. S XPDABORT=""
  1. D PROGCHK(.XPDABORT) ;checks programmer variables
  1. D PARMCHK(.XPDABORT) ;checks param file ien exists
  1. I XPDABORT="" K XPDABORT
  1. ;
  1. Q
  1. ;
  1. ;
  1. PRE ;Main entry point for Pre-init items.
  1. Q
  1. ;
  1. ;
  1. POST ;Main entry point for Post-init items.
  1. ;
  1. D POST1 ;Update Client/Server files
  1. D POST2 ;Set HL7 Auto Retransmit Period
  1. ;
  1. Q
  1. ;
  1. ;
  1. PROGCHK(XPDABORT) ;checks for necessary programmer variables
  1. ;
  1. I '$G(DUZ)!($G(DUZ(0))'="@")!('$G(DT))!($G(U)'="^") DO
  1. .D BMES^XPDUTL("*****")
  1. .D MES^XPDUTL("Your programming variables are not set up properly.")
  1. .D MES^XPDUTL("Installation aborted.")
  1. .D MES^XPDUTL("*****")
  1. .S XPDABORT=2
  1. .Q
  1. Q
  1. ;
  1. ;
  1. PARMCHK(XPDABORT) ;checks for proper param file ien
  1. ;
  1. I '$D(^SCTM(404.44,1)) D
  1. .D BMES^XPDUTL("*****")
  1. .D MES^XPDUTL("Parameter file (#404.44) does not have proper IEN (1).")
  1. .D MES^XPDUTL("Installation aborted.")
  1. .D MES^XPDUTL("*****")
  1. .S XPDABORT=2
  1. .Q
  1. Q
  1. ;
  1. ;
  1. POST1 ;Update client/server files.
  1. ;
  1. I $$UPCLNLST^SCMCUT("SD*5.3*224^NullClient^1^0^0") D Q
  1. . D MES^XPDUTL("Client/Server files updated.")
  1. . Q
  1. D MES^XPDUTL("Client/Server files NOT updated.")
  1. Q
  1. ;
  1. ;
  1. POST2 ;Set HL7 AUTO RETRANSMIT PERIOD=14 in PCMM PARAMETER file #404.44, field #16
  1. ;
  1. N DIC,DIE,DIQ,DA,DR,SCLIM
  1. D BMES^XPDUTL("Setting HL7 AUTO RETRANSMIT PERIOD to 14 days.")
  1. S DIC="^SCTM(404.44," ;PCMM PARAMETER file
  1. S DA=1 ;should only be 1 entry
  1. S DR=16 ;HL7 Auto Retransmit Period field
  1. S DIQ="SCLIM" ;return array name
  1. D EN^DIQ1
  1. I '$D(SCLIM(404.44,DA,DR)) D Q
  1. .D MES^XPDUTL(" HL7 AUTO RETRANSMIT PERIOD field missing")
  1. S SCLIM=SCLIM(404.44,DA,DR)
  1. S DIE=DIC
  1. S DR="16///14"
  1. D ^DIE
  1. D MES^XPDUTL(" HL7 AUTO RETRANSMIT LIMIT successfully changed from "_SCLIM_" to 14 days.")
  1. Q