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

IB20P509.m

Go to the documentation of this file.
  1. IB20P509 ;ALB/RRA - Patch Install Routine ; 10/10/12 5:45pm
  1. ;;2.0;INTEGRATED BILLING;**509**;21-MAR-94;Build 3
  1. ;;Per VHA Directive 2004-038, this routine should not be modified.
  1. Q
  1. ;
  1. POST ; Update the TCP/IP address for HL7 Logical Link
  1. N IBIEN1,IBIEN2,IBPAD,IBTAD,IBNAD,IB870,IBERR,IBQUIT
  1. D MES^XPDUTL("Update TCP/IP address of HL7 Logical Link 'EPHARM OUT' & 'BPS NCPDP'")
  1. ; DBIA #1496
  1. S IBQUIT=0
  1. S IBPAD="127.0.0.1",IBTAD="127.0.0.1"
  1. S IBIEN1=$O(^HLCS(870,"B","EPHARM OUT",0))
  1. I 'IBIEN1 D
  1. . D MES^XPDUTL("IEN of HL7 Logical Link 'EPHARM OUT' not found - install aborted")
  1. . S IBQUIT=1
  1. S IBIEN2=$O(^HLCS(870,"B","BPS NCPDP",0))
  1. I 'IBIEN2 D
  1. . D MES^XPDUTL("IEN of HL7 Logical Link 'BPS NCPDP' not found - install aborted")
  1. . S IBQUIT=1
  1. ;
  1. I IBQUIT D POSTQ Q
  1. ; check the account (test or production) and then update the IP address
  1. S IBNAD=$S($$PROD^XUPROD:IBPAD,1:IBTAD)
  1. S IB870(870,IBIEN1_",",400.01)=IBNAD,IB870(870,IBIEN2_",",400.01)=IBNAD
  1. D FILE^DIE("","IB870","IBERR")
  1. I $D(IBERR) D
  1. . D MES^XPDUTL("Update failed")
  1. I '$D(IBERR) D
  1. . D MES^XPDUTL("The TCP/IP address updates were successful")
  1. D POSTQ Q
  1. ;
  1. POSTQ D MES^XPDUTL(" Done.")
  1. Q
  1. ;