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

SD53P210.m

Go to the documentation of this file.
  1. SD53P210 ;BP/CMF - Patch SD*5.3*210 utility routine; 02/17/2000
  1. ;;5.3;Scheduling;**210**;AUG 13, 1993
  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
  1. ;
  1. D PRE1 ;Delete PCMM HL7 ID file
  1. D PRE2 ;Set HL7 Application name to PCMM
  1. ;
  1. Q
  1. ;
  1. ;
  1. POST ;Main entry point for Post-init
  1. ;
  1. D POST1 ;Update c/s files
  1. D POST2 ;Stuff 7 days into HL7 AUTO RETRANSMIT PERIOD field of the
  1. ; PCMM PARAMETER file
  1. D POST3 ;Change HL7 Application Name
  1. ;
  1. Q
  1. ;
  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. 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. PRE1 ;Delete PCMM HL7 ID (#404.49) file, including data.
  1. ;rpm/alb - Added check for application version. If 210 has been loaded
  1. ; once then we don't want to initialize 404.49 with each TEST
  1. ; version install.
  1. NEW DIU
  1. I $$PATCH^XPDUTL("SD*5.3*210") D Q
  1. . D BMES^XPDUTL("SD*5.3*210 previously installed. PCMM HL7 ID file not re-initialized.")
  1. S DIU="^SCPT(404.49,"
  1. S DIU(0)="DT"
  1. D EN^DIU2
  1. Q
  1. ;
  1. PRE2 ;Set HL7 application name to PCMM
  1. ;rpm/alb A re-install of SD*5.3*210 resulted in the HL7 application name
  1. ; being blank in the PCMM SEND SERVER Protocol if the HL7
  1. ; application name was previously PCMM-210.
  1. NEW DIC,DIE,DA,DR,X,Y
  1. S DIC="^HL(771,"
  1. S X="PCMM"
  1. D ^DIC
  1. I (Y<0) D Q
  1. . D BMES^XPDUTL(" PCMM application not found")
  1. I $$PATCH^XPDUTL("SD*5.3*210") D Q
  1. . D BMES^XPDUTL("SD*5.3*210 previously installed. Setting HL7 application name to PCMM")
  1. . S DIE=DIC
  1. . S DA=+Y
  1. . S DR=".01///PCMM"
  1. . D ^DIE
  1. . D MES^XPDUTL(" HL7 application name successfully changed to PCMM.")
  1. Q
  1. ;
  1. POST1 I $$UPCLNLST^SCMCUT("SD*5.3*210^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. POST2 ;Stuff 7 days into HL7 AUTO RETRANSMIT PERIOD field of the
  1. ;PCMM PARAMETER file
  1. NEW SCERR,SCFDA
  1. S SCFDA(404.44,"1,",16)=7
  1. D FILE^DIE(,"SCFDA","SCERR")
  1. Q
  1. ;
  1. POST3 ;Change HL7 application name from PCMM to PCMM-210 in HL7 APPLICATION PARAMETER file. DBIA #3068: Approval from HL7 Package for this change.
  1. ;rpm/alb - removed eXact match since test sites may overlap 210 and 212.
  1. ; Application name needs to match the version installed.
  1. N DIE,DIC,DA,DR,X,Y
  1. D BMES^XPDUTL("Changing HL7 Application name from PCMM to PCMM-210")
  1. S DIC="^HL(771,"
  1. S X="PCMM"
  1. D ^DIC
  1. I (Y<0) D Q
  1. .D BMES^XPDUTL(" PCMM application not found.")
  1. I $P(Y,"^",2)="PCMM-210" D Q
  1. .D MES^XPDUTL(" HL7 application name is PCMM-210. No change needed.")
  1. S DIE=DIC
  1. S DA=+Y
  1. S DR=".01///PCMM-210"
  1. D ^DIE
  1. D MES^XPDUTL(" HL7 application name successfully changed to PCMM-210.")
  1. Q