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

SD53P212.m

Go to the documentation of this file.
  1. SD53P212 ;ALB/KCL - Patch SD*5.3*212 Install Utility Routine ; 04/1/2000
  1. ;;5.3;Scheduling;**212,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 c/s files
  1. D POST2 ;Change HL7 Application Name
  1. D POST3 ;Set HL7 Transmit Limit
  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. I $$UPCLNLST^SCMCUT("SD*5.3*212^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 ;Change HL7 application name from 'PCMM-210' to 'PCMM-212' in
  1. ;HL7 APPLICATION PARAMETER file.
  1. ;
  1. N DIE,DIC,DA,DR,X,Y
  1. D BMES^XPDUTL("Changing HL7 Application name from PCMM-210 to PCMM-212")
  1. S DIC="^HL(771,"
  1. S DIC(0)="X"
  1. S X="PCMM-210"
  1. D ^DIC
  1. I (Y<0) D Q
  1. .D BMES^XPDUTL(" PCMM application not found.")
  1. S DIE=DIC
  1. S DA=+Y
  1. S DR=".01///PCMM-212"
  1. D ^DIE
  1. D MES^XPDUTL(" HL7 application name successfully changed to PCMM-212.")
  1. Q
  1. ;
  1. POST3 ;Set HL7 TRANSMIT LIMIT = 2500 in PCMM PARAMETER file #404.44, field #15
  1. ;
  1. N DIC,DIE,DIQ,DA,DR,SCLIM
  1. D BMES^XPDUTL("Setting HL7 TRANSMIT LIMIT to 2500.")
  1. S DIC="^SCTM(404.44," ;PCMM PARAMETER file
  1. S DA=1 ;should only be 1 entry
  1. S DR=15 ;HL7 Transmit Limit 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 TRANSMIT LIMIT field missing")
  1. S SCLIM=SCLIM(404.44,DA,DR)
  1. S DIE=DIC
  1. S DR="15///2500"
  1. D ^DIE
  1. D MES^XPDUTL(" HL7 TRANSMIT LIMIT successfully changed from "_SCLIM_" to 2500.")
  1. Q