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

DG774PF.m

Go to the documentation of this file.
  1. DG774PF ;WPW,MHH ; HL7 LOGICAL LINK UPDATE; 21-AUG-2008
  1. ;;5.3;PIMS;**1016**;JUN 30, 2012;Build 20
  1. ;DG;5.3;Registration;**791**;13-AUG-1993;Build 3
  1. ;
  1. ;
  1. EN ;1-time run routine
  1. ;
  1. ;PURPOSE Update "VIC NCMD" Logical Link for TCP/IP transmissions. The
  1. ; current definition has a hard coded IP address. The existing IP
  1. ; will be removed and a DNS domain name will be added in HLCS(870).
  1. ;
  1. N TEST,FILE,DATA,DGENDA,RETURN,ERROR
  1. ;
  1. S U=$G(U,"^") ;set default value to ^, if it doesn't exist
  1. S TEST=$S($P($$PARAM^HLCS2,U,3)="P":0,1:1) ; Test=1, Production=0
  1. S FILE=870 ; Logical Link file
  1. S DATA(.01)="VIC NCMD" ; Logical Link name; This is the value to file in DGENDBS
  1. S DATA(.08)=$S(TEST:"",1:"VETERANS1.ONEVA.VA.GOV") ; DNS Domain Name
  1. S DATA(400.01)="" ; TCP/IP Address
  1. S DGENDA=$O(^HLCS(FILE,"B",DATA(.01),0)) ; "VIC NCMD"; Logical Link IEN; cross reference
  1. I DGENDA="" Q "" ; If "VIC NCMD" not defined quit.
  1. ;
  1. ;DGENDBS;File data into an existing record
  1. S RETURN=$$UPD^DGENDBS(FILE,.DGENDA,.DATA,.ERROR)
  1. S:ERROR]""!(+RETURN=0) RETURN=-1_"^"_ERROR
  1. ;
  1. Q