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

SDES881P.m

Go to the documentation of this file.
  1. SDES881P ;ALB/MGD,BWF - SD*5.3*881 Post Init Routine ; June 07, 2024
  1. ;;5.3;SCHEDULING;**881**;AUG 13, 1993;Build 10
  1. ;;Per VHA Directive 6402, this routine should not be modified
  1. ;
  1. Q
  1. ;
  1. EN ; Update the VS GUI version in #409.98
  1. D FIND
  1. D ADDWWII
  1. Q
  1. ;
  1. FIND ;FIND THE IEN FOR "VS GUI NATIONAL"
  1. N SDECDA,SDECDA1
  1. D MES^XPDUTL("")
  1. D MES^XPDUTL(" Updating SDEC SETTINGS file (#409.98)")
  1. S SDECDA=0,SDECDA=$O(^SDEC(409.98,"B","VS GUI NATIONAL",SDECDA)) G:$G(SDECDA)="" NOFIND
  1. D VERSION ;update GUI version number and date
  1. Q
  1. VERSION ;SET THE NEW VERSION UPDATE IN SDEC SETTING FILE #409.98 TO 1.7.58
  1. S DA=SDECDA,DIE=409.98,DR="2///1.7.58;3///"_DT D ^DIE ;update VS GUI NATIONAL
  1. K DIE,DR,DA
  1. S SDECDA1=0,SDECDA1=$O(^SDEC(409.98,"B","VS GUI LOCAL",SDECDA1)) Q:$G(SDECDA1)="" ;get DA for the VS GUI LOCAL
  1. S DA=SDECDA1,DIE=409.98,DR="2///1.7.58;3///"_DT D ^DIE ;update VS GUI LOCAL
  1. K DIE,DR,DA
  1. Q
  1. ;
  1. NOFIND ;"VS GUI NATIONAL" NOT FOUND
  1. D MES^XPDUTL(" VS GUI NATIONAL not found in the SDEC SETTINGS file (#409.98)")
  1. Q
  1. ADDWWII ;
  1. N FDA,DESC,FDAIEN,ERR,FILEERR,NEWIEN
  1. Q:$D(^SD(409.1,"B","WORLD WAR II"))
  1. D MES^XPDUTL("")
  1. D MES^XPDUTL(" Adding World War II to the Appointment Type file (#409.1)")
  1. S FDA(409.1,"+1,",.01)="WORLD WAR II"
  1. S FDA(409.1,"+1,",2)=1
  1. S FDA(409.1,"+1,",4)="WWII"
  1. S FDA(409.1,"+1,",5)=1
  1. S FDA(409.1,"+1,",6)=$O(^DIC(8,"B","WORLD WAR II",0))
  1. D UPDATE^DIE(,"FDA","NEWIEN","FILEERR")
  1. I $D(FILEERR) D Q
  1. .D MES^XPDUTL("")
  1. .D MES^XPDUTL("Error adding World War II to the Appointment Type file.")
  1. .D MES^XPDUTL("Please create a SNOW ticket and route to the Vista Scheduling")
  1. .D MES^XPDUTL("team.")
  1. S FDAIEN=$G(NEWIEN(1))
  1. S DESC(1)="Used for veterans who have served in World War II."
  1. D WP^DIE(409.1,FDAIEN_",",10,"","DESC","ERR")
  1. Q