SDES918P ;ALB/TJB - SD*5.3*918 Post Init Routine ; July 30, 2025
;;5.3;SCHEDULING;**918**;AUG 13, 1993;Build 4
;;Per VHA Directive 6402, this routine should not be modified
;;
Q
;
EN ;
D TASK
Q
;
TASK ; Add "Y" to the tasks off process to update the direct patient schedule field in the hospital location file
D MES^XPDUTL("")
D MES^XPDUTL(" SD*5.3*918 Post-Install to update CLINIC STOP file 40.7 to")
D MES^XPDUTL(" populate the field PROVIDERS NOT REQUIRED (#7)")
D MES^XPDUTL(" with the value of 'Y' for codes 192, 669 and 674")
D MES^XPDUTL("")
N FDA,ERR,STCODE,OUT,STIEN
F STCODE=192,669,674 K OUT,ERROR D FIND^DIC(40.7,"","@;1","P",STCODE,,"C","","","OUT","ERROR") D
. I $G(OUT("DILIST",0))="" D MES^XPDUTL("Error retrieving Clinic Stop="_STCODE) Q
. S STIEN(STCODE)=$P(OUT("DILIST",1,0),U,1)
K FDA,ERR
S FDA(40.7,STIEN(192)_",",7)="1"
S FDA(40.7,STIEN(669)_",",7)="1"
S FDA(40.7,STIEN(674)_",",7)="1"
D FILE^DIE(,"FDA","ERR") K FDA
I $D(ERR) D
. D MES^XPDUTL("")
. D MES^XPDUTL(" ERROR Setting field PROVIDERS NOT REQUIRED (#7)")
. D MES^XPDUTL(" Please contact the National Help Desk to report this issue.")
Q
MAIL ;
N STANUM,MESS1,XMTEXT,XMSUB,XMY,XMDUZ,DIFROM,%,D,D0,D1,D2,DG,DIC,DICR,DIW,XMDUN,XMZ
S STANUM=$$KSP^XUPARAM("INST")_","
S STANUM=$$GET1^DIQ(4,STANUM,99)
S MESS1="Station: "_STANUM_" - "
S XMDUZ=DUZ
S XMTEXT="^XTMP(""SDES918P"",""VSE-10267"","
S XMSUB="SD*5.3*918 - Post Install Data Report VSE-10267"
S XMDUZ=.5,XMY(DUZ)="",XMY(XMDUZ)=""
S XMY("BARBER.LORI@DOMAIN.EXT")=""
S XMY("DUNNAM.DAVID@DOMAIN.EXT")=""
S XMY("BOYDA.THOMAS@DOMAIN.EXT")=""
D ^XMD
Q
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HSDES918P 1664 printed Jan 29, 2026@15:54:58 Page 2
SDES918P ;ALB/TJB - SD*5.3*918 Post Init Routine ; July 30, 2025
+1 ;;5.3;SCHEDULING;**918**;AUG 13, 1993;Build 4
+2 ;;Per VHA Directive 6402, this routine should not be modified
+3 ;;
+4 QUIT
+5 ;
EN ;
+1 DO TASK
+2 QUIT
+3 ;
TASK ; Add "Y" to the tasks off process to update the direct patient schedule field in the hospital location file
+1 DO MES^XPDUTL("")
+2 DO MES^XPDUTL(" SD*5.3*918 Post-Install to update CLINIC STOP file 40.7 to")
+3 DO MES^XPDUTL(" populate the field PROVIDERS NOT REQUIRED (#7)")
+4 DO MES^XPDUTL(" with the value of 'Y' for codes 192, 669 and 674")
+5 DO MES^XPDUTL("")
+6 NEW FDA,ERR,STCODE,OUT,STIEN
+7 FOR STCODE=192,669,674
KILL OUT,ERROR
DO FIND^DIC(40.7,"","@;1","P",STCODE,,"C","","","OUT","ERROR")
Begin DoDot:1
+8 IF $GET(OUT("DILIST",0))=""
DO MES^XPDUTL("Error retrieving Clinic Stop="_STCODE)
QUIT
+9 SET STIEN(STCODE)=$PIECE(OUT("DILIST",1,0),U,1)
End DoDot:1
+10 KILL FDA,ERR
+11 SET FDA(40.7,STIEN(192)_",",7)="1"
+12 SET FDA(40.7,STIEN(669)_",",7)="1"
+13 SET FDA(40.7,STIEN(674)_",",7)="1"
+14 DO FILE^DIE(,"FDA","ERR")
KILL FDA
+15 IF $DATA(ERR)
Begin DoDot:1
+16 DO MES^XPDUTL("")
+17 DO MES^XPDUTL(" ERROR Setting field PROVIDERS NOT REQUIRED (#7)")
+18 DO MES^XPDUTL(" Please contact the National Help Desk to report this issue.")
End DoDot:1
+19 QUIT
MAIL ;
+1 NEW STANUM,MESS1,XMTEXT,XMSUB,XMY,XMDUZ,DIFROM,%,D,D0,D1,D2,DG,DIC,DICR,DIW,XMDUN,XMZ
+2 SET STANUM=$$KSP^XUPARAM("INST")_","
+3 SET STANUM=$$GET1^DIQ(4,STANUM,99)
+4 SET MESS1="Station: "_STANUM_" - "
+5 SET XMDUZ=DUZ
+6 SET XMTEXT="^XTMP(""SDES918P"",""VSE-10267"","
+7 SET XMSUB="SD*5.3*918 - Post Install Data Report VSE-10267"
+8 SET XMDUZ=.5
SET XMY(DUZ)=""
SET XMY(XMDUZ)=""
+9 SET XMY("BARBER.LORI@DOMAIN.EXT")=""
+10 SET XMY("DUNNAM.DAVID@DOMAIN.EXT")=""
+11 SET XMY("BOYDA.THOMAS@DOMAIN.EXT")=""
+12 DO ^XMD
+13 QUIT