DGPFPOST ;SGU/GJW - DG*5.3*1005 post-install;1/30/20
;;5.3;Registration;**1005**;Jan 30, 2020;Build 57
;Calls to ADD^XPAR and CHG^XPAR supported by ICR #2263
;
EN ;
N DGSITE,DGLINE,DGI,DGNUM,DGRTR,DGERR
S DGSITE=$P($$SITE^VASITE(),U,3)
D EN^DDIOL("Updating DG PRF REGIONAL ROUTER")
F DGI=1:1 D Q:DGLINE=""
.S DGLINE=$P($T(ROUTERS+DGI),";;",2)
.S DGNUM=$P(DGLINE,U),DGRTR=$P(DGLINE,U,2)
.I DGNUM=DGSITE D Q
..D ADD^XPAR("SYS","DG PRF REGIONAL ROUTER",1,DGRTR,.DGERR)
..I +DGERR>0 D CHG^XPAR("SYS","DG PRF REGIONAL ROUTER",1,DGRTR,.DGERR)
;
D BUG^DGY994PO ;bug cleanup from original DG*5.3*994 post install
;
;Next add, OEHRMTIERIISupport@domain.ext as an external recipient to
;the mail group DGPF APPLICATION ERRORS.
N DGFDA,DGIEN,DGERR
D EN^DDIOL("Adding OEHRM TIER II SUPPORT as a remote member of DGPF APPLICATION ERRORS")
S DGFDA(3.8,"?1,",.01)="DGPF APPLICATION ERRORS"
S DGFDA(3.812,"?+2,?1,",.01)="OEHRMTIERIISupport@domain.ext"
D UPDATE^DIE(,"DGFDA","DGIEN","DGERR")
Q
;
CERNER ;
D EN^DDIOL("Configuring VACRNR")
I $$FIND1^DIC(4,,"MX","CERNER")=0 G CRNROUT
;Add VACRNR link (minus the IP and port) if it's not already there.
K DGFDA,DGERR,DGIEN
S DGFDA(870,"?+1,",.01)="VACRNR"
S DGFDA(870,"?+1,",.02)="CERNER"
;S DGFDA(870,"?1,",.08)=<domain name>
S DGFDA(870,"?+1,",4.5)=1 ;autostart
S DGFDA(870,"?+1,",2)="TCP" ;LLP type
S DGFDA(870,"?+1,",3)="NC" ;device type
S DGFDA(870,"?+1,",21)=10 ;queue size
S DGFDA(870,"?+1,",200.021)="R" ;exceed re-transmit action
S DGFDA(870,"?+1,",200.05)=20 ;ACK timeout
S DGFDA(870,"?+1,",200.08)=2.3 ;protocol version ID
;S DGFDA(870,"?+1,",400.02)=<port>
S DGFDA(870,"?+1,",400.03)="C" ;TCP/IP service type
S DGFDA(870,"?+1,",400.04)="N" ;non-persistent
S DGFDA(870,"?+1,",400.07)="Y" ;say HELO
D UPDATE^DIE("E","DGFDA","DGIEN","DGERR")
;
CRNROUT ;skip to here if CERNER isn't in the INSTITUTION file
ROUTERS ;
;;358^DGVDFRR11
;;402^DGVDFRR42
;;405^DGVDFRR42
;;436^DGVDFRR12
;;438^DGVDFRR2
;;442^DGVDFRR12
;;459^DGVDFRR11
;;460^DGVDFRR41
;;463^DGVDFRR11
;;501^DGVDFRR12
;;502^DGVDFRR2
;;503^DGVDFRR41
;;504^DGVDFRR11
;;506^DGVDFRR3
;;508^DGVDFRR3
;;509^DGVDFRR3
;;512^DGVDFRR41
;;515^DGVDFRR3
;;516^DGVDFRR3
;;517^DGVDFRR3
;;518^DGVDFRR42
;;519^DGVDFRR11
;;520^DGVDFRR2
;;521^DGVDFRR3
;;523^DGVDFRR42
;;526^DGVDFRR42
;;528^DGVDFRR41
;;528^DGVDFRR42
;;529^DGVDFRR41
;;531^DGVDFRR11
;;534^DGVDFRR3
;;537^DGVDFRR2
;;538^DGVDFRR3
;;539^DGVDFRR3
;;540^DGVDFRR41
;;541^DGVDFRR3
;;542^DGVDFRR41
;;544^DGVDFRR3
;;546^DGVDFRR3
;;548^DGVDFRR3
;;549^DGVDFRR2
;;550^DGVDFRR3
;;552^DGVDFRR3
;;553^DGVDFRR3
;;554^DGVDFRR12
;;556^DGVDFRR2
;;557^DGVDFRR3
;;558^DGVDFRR3
;;561^DGVDFRR42
;;562^DGVDFRR41
;;564^DGVDFRR2
;;565^DGVDFRR3
;;568^DGVDFRR2
;;570^DGVDFRR11
;;573^DGVDFRR3
;;575^DGVDFRR12
;;578^DGVDFRR2
;;580^DGVDFRR2
;;581^DGVDFRR3
;;583^DGVDFRR3
;;585^DGVDFRR2
;;586^DGVDFRR2
;;589^DGVDFRR2
;;590^DGVDFRR3
;;593^DGVDFRR12
;;595^DGVDFRR41
;;596^DGVDFRR3
;;598^DGVDFRR2
;;600^DGVDFRR11
;;600^DGVDFRR12
;;603^DGVDFRR3
;;605^DGVDFRR12
;;607^DGVDFRR2
;;608^DGVDFRR42
;;610^DGVDFRR3
;;612^DGVDFRR11
;;613^DGVDFRR41
;;614^DGVDFRR3
;;618^DGVDFRR2
;;619^DGVDFRR3
;;620^DGVDFRR42
;;621^DGVDFRR3
;;623^DGVDFRR2
;;626^DGVDFRR3
;;629^DGVDFRR2
;;630^DGVDFRR42
;;631^DGVDFRR42
;;632^DGVDFRR42
;;635^DGVDFRR2
;;636^DGVDFRR2
;;637^DGVDFRR3
;;640^DGVDFRR11
;;642^DGVDFRR41
;;644^DGVDFRR12
;;646^DGVDFRR41
;;648^DGVDFRR11
;;649^DGVDFRR12
;;650^DGVDFRR42
;;652^DGVDFRR3
;;653^DGVDFRR11
;;654^DGVDFRR11
;;655^DGVDFRR3
;;656^DGVDFRR2
;;657^DGVDFRR2
;;658^DGVDFRR3
;;659^DGVDFRR3
;;660^DGVDFRR12
;;662^DGVDFRR12
;;663^DGVDFRR11
;;664^DGVDFRR12
;;666^DGVDFRR12
;;667^DGVDFRR2
;;668^DGVDFRR11
;;671^DGVDFRR2
;;672^DGVDFRR3
;;673^DGVDFRR3
;;674^DGVDFRR2
;;675^DGVDFRR3
;;676^DGVDFRR2
;;678^DGVDFRR12
;;679^DGVDFRR3
;;687^DGVDFRR11
;;688^DGVDFRR41
;;689^DGVDFRR42
;;691^DGVDFRR11
;;692^DGVDFRR11
;;693^DGVDFRR41
;;695^DGVDFRR2
;;740^DGVDFRR2
;;756^DGVDFRR12
;;757^DGVDFRR3
;;
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HDGPFPOST 4334 printed Nov 22, 2024@17:58:30 Page 2
DGPFPOST ;SGU/GJW - DG*5.3*1005 post-install;1/30/20
+1 ;;5.3;Registration;**1005**;Jan 30, 2020;Build 57
+2 ;Calls to ADD^XPAR and CHG^XPAR supported by ICR #2263
+3 ;
EN ;
+1 NEW DGSITE,DGLINE,DGI,DGNUM,DGRTR,DGERR
+2 SET DGSITE=$PIECE($$SITE^VASITE(),U,3)
+3 DO EN^DDIOL("Updating DG PRF REGIONAL ROUTER")
+4 FOR DGI=1:1
Begin DoDot:1
+5 SET DGLINE=$PIECE($TEXT(ROUTERS+DGI),";;",2)
+6 SET DGNUM=$PIECE(DGLINE,U)
SET DGRTR=$PIECE(DGLINE,U,2)
+7 IF DGNUM=DGSITE
Begin DoDot:2
+8 DO ADD^XPAR("SYS","DG PRF REGIONAL ROUTER",1,DGRTR,.DGERR)
+9 IF +DGERR>0
DO CHG^XPAR("SYS","DG PRF REGIONAL ROUTER",1,DGRTR,.DGERR)
End DoDot:2
QUIT
End DoDot:1
if DGLINE=""
QUIT
+10 ;
+11 ;bug cleanup from original DG*5.3*994 post install
DO BUG^DGY994PO
+12 ;
+13 ;Next add, OEHRMTIERIISupport@domain.ext as an external recipient to
+14 ;the mail group DGPF APPLICATION ERRORS.
+15 NEW DGFDA,DGIEN,DGERR
+16 DO EN^DDIOL("Adding OEHRM TIER II SUPPORT as a remote member of DGPF APPLICATION ERRORS")
+17 SET DGFDA(3.8,"?1,",.01)="DGPF APPLICATION ERRORS"
+18 SET DGFDA(3.812,"?+2,?1,",.01)="OEHRMTIERIISupport@domain.ext"
+19 DO UPDATE^DIE(,"DGFDA","DGIEN","DGERR")
+20 QUIT
+21 ;
CERNER ;
+1 DO EN^DDIOL("Configuring VACRNR")
+2 IF $$FIND1^DIC(4,,"MX","CERNER")=0
GOTO CRNROUT
+3 ;Add VACRNR link (minus the IP and port) if it's not already there.
+4 KILL DGFDA,DGERR,DGIEN
+5 SET DGFDA(870,"?+1,",.01)="VACRNR"
+6 SET DGFDA(870,"?+1,",.02)="CERNER"
+7 ;S DGFDA(870,"?1,",.08)=<domain name>
+8 ;autostart
SET DGFDA(870,"?+1,",4.5)=1
+9 ;LLP type
SET DGFDA(870,"?+1,",2)="TCP"
+10 ;device type
SET DGFDA(870,"?+1,",3)="NC"
+11 ;queue size
SET DGFDA(870,"?+1,",21)=10
+12 ;exceed re-transmit action
SET DGFDA(870,"?+1,",200.021)="R"
+13 ;ACK timeout
SET DGFDA(870,"?+1,",200.05)=20
+14 ;protocol version ID
SET DGFDA(870,"?+1,",200.08)=2.3
+15 ;S DGFDA(870,"?+1,",400.02)=<port>
+16 ;TCP/IP service type
SET DGFDA(870,"?+1,",400.03)="C"
+17 ;non-persistent
SET DGFDA(870,"?+1,",400.04)="N"
+18 ;say HELO
SET DGFDA(870,"?+1,",400.07)="Y"
+19 DO UPDATE^DIE("E","DGFDA","DGIEN","DGERR")
+20 ;
CRNROUT ;skip to here if CERNER isn't in the INSTITUTION file
ROUTERS ;
+1 ;;358^DGVDFRR11
+2 ;;402^DGVDFRR42
+3 ;;405^DGVDFRR42
+4 ;;436^DGVDFRR12
+5 ;;438^DGVDFRR2
+6 ;;442^DGVDFRR12
+7 ;;459^DGVDFRR11
+8 ;;460^DGVDFRR41
+9 ;;463^DGVDFRR11
+10 ;;501^DGVDFRR12
+11 ;;502^DGVDFRR2
+12 ;;503^DGVDFRR41
+13 ;;504^DGVDFRR11
+14 ;;506^DGVDFRR3
+15 ;;508^DGVDFRR3
+16 ;;509^DGVDFRR3
+17 ;;512^DGVDFRR41
+18 ;;515^DGVDFRR3
+19 ;;516^DGVDFRR3
+20 ;;517^DGVDFRR3
+21 ;;518^DGVDFRR42
+22 ;;519^DGVDFRR11
+23 ;;520^DGVDFRR2
+24 ;;521^DGVDFRR3
+25 ;;523^DGVDFRR42
+26 ;;526^DGVDFRR42
+27 ;;528^DGVDFRR41
+28 ;;528^DGVDFRR42
+29 ;;529^DGVDFRR41
+30 ;;531^DGVDFRR11
+31 ;;534^DGVDFRR3
+32 ;;537^DGVDFRR2
+33 ;;538^DGVDFRR3
+34 ;;539^DGVDFRR3
+35 ;;540^DGVDFRR41
+36 ;;541^DGVDFRR3
+37 ;;542^DGVDFRR41
+38 ;;544^DGVDFRR3
+39 ;;546^DGVDFRR3
+40 ;;548^DGVDFRR3
+41 ;;549^DGVDFRR2
+42 ;;550^DGVDFRR3
+43 ;;552^DGVDFRR3
+44 ;;553^DGVDFRR3
+45 ;;554^DGVDFRR12
+46 ;;556^DGVDFRR2
+47 ;;557^DGVDFRR3
+48 ;;558^DGVDFRR3
+49 ;;561^DGVDFRR42
+50 ;;562^DGVDFRR41
+51 ;;564^DGVDFRR2
+52 ;;565^DGVDFRR3
+53 ;;568^DGVDFRR2
+54 ;;570^DGVDFRR11
+55 ;;573^DGVDFRR3
+56 ;;575^DGVDFRR12
+57 ;;578^DGVDFRR2
+58 ;;580^DGVDFRR2
+59 ;;581^DGVDFRR3
+60 ;;583^DGVDFRR3
+61 ;;585^DGVDFRR2
+62 ;;586^DGVDFRR2
+63 ;;589^DGVDFRR2
+64 ;;590^DGVDFRR3
+65 ;;593^DGVDFRR12
+66 ;;595^DGVDFRR41
+67 ;;596^DGVDFRR3
+68 ;;598^DGVDFRR2
+69 ;;600^DGVDFRR11
+70 ;;600^DGVDFRR12
+71 ;;603^DGVDFRR3
+72 ;;605^DGVDFRR12
+73 ;;607^DGVDFRR2
+74 ;;608^DGVDFRR42
+75 ;;610^DGVDFRR3
+76 ;;612^DGVDFRR11
+77 ;;613^DGVDFRR41
+78 ;;614^DGVDFRR3
+79 ;;618^DGVDFRR2
+80 ;;619^DGVDFRR3
+81 ;;620^DGVDFRR42
+82 ;;621^DGVDFRR3
+83 ;;623^DGVDFRR2
+84 ;;626^DGVDFRR3
+85 ;;629^DGVDFRR2
+86 ;;630^DGVDFRR42
+87 ;;631^DGVDFRR42
+88 ;;632^DGVDFRR42
+89 ;;635^DGVDFRR2
+90 ;;636^DGVDFRR2
+91 ;;637^DGVDFRR3
+92 ;;640^DGVDFRR11
+93 ;;642^DGVDFRR41
+94 ;;644^DGVDFRR12
+95 ;;646^DGVDFRR41
+96 ;;648^DGVDFRR11
+97 ;;649^DGVDFRR12
+98 ;;650^DGVDFRR42
+99 ;;652^DGVDFRR3
+100 ;;653^DGVDFRR11
+101 ;;654^DGVDFRR11
+102 ;;655^DGVDFRR3
+103 ;;656^DGVDFRR2
+104 ;;657^DGVDFRR2
+105 ;;658^DGVDFRR3
+106 ;;659^DGVDFRR3
+107 ;;660^DGVDFRR12
+108 ;;662^DGVDFRR12
+109 ;;663^DGVDFRR11
+110 ;;664^DGVDFRR12
+111 ;;666^DGVDFRR12
+112 ;;667^DGVDFRR2
+113 ;;668^DGVDFRR11
+114 ;;671^DGVDFRR2
+115 ;;672^DGVDFRR3
+116 ;;673^DGVDFRR3
+117 ;;674^DGVDFRR2
+118 ;;675^DGVDFRR3
+119 ;;676^DGVDFRR2
+120 ;;678^DGVDFRR12
+121 ;;679^DGVDFRR3
+122 ;;687^DGVDFRR11
+123 ;;688^DGVDFRR41
+124 ;;689^DGVDFRR42
+125 ;;691^DGVDFRR11
+126 ;;692^DGVDFRR11
+127 ;;693^DGVDFRR41
+128 ;;695^DGVDFRR2
+129 ;;740^DGVDFRR2
+130 ;;756^DGVDFRR12
+131 ;;757^DGVDFRR3
+132 ;;