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

DG53334D.m

Go to the documentation of this file.
  1. DG53334D ;ALB/MRY - ALS Extract; 9/27/00 14:54PM
  1. ;;5.3;Registration;**334,1015**;Aug 13, 1993;Build 21
  1. ;
  1. ;Description:
  1. ;Patient data will be extracted from the Patient file (#2) for all
  1. ;hospital sites. Station numbers and SSN's have been provided and
  1. ;stored in file^XTMP.
  1. ;
  1. ;
  1. EN N DGARY
  1. I $D(DUZ)'=11 DO Q
  1. . D BMES^XPDUTL(" Missing DUZ variables.")
  1. . S DGARY(1)=(" To set up the DUZ variables do:")
  1. . S DGARY(2)=("")
  1. . S DGARY(3)=(" >D ^XUP")
  1. . S DGARY(4)=("")
  1. . S DGARY(5)=(" Setting up programmer environment")
  1. . S DGARY(6)=(" Access Code: <enter your access code>")
  1. . S DGARY(7)=("")
  1. . S DGARY(8)=(" Terminal Type set to: C-VT320")
  1. . S DGARY(9)=("")
  1. . S DGARY(10)=(" Select OPTION NAME: <press the return key>")
  1. . S DGARY(11)=("")
  1. . S DGARY(12)=(" >D EN^DG53334A")
  1. . S DGARY(13)=("")
  1. . D MES^XPDUTL(.DGARY)
  1. ;
  1. ;Description:
  1. ; Retrive the site station number, if not found display message
  1. ; If found queue this routine to run which will load the data.
  1. ;
  1. N DGARY,XMDUZ,XMSUB,XMY,XMZ,ZTDESC,ZTIO,ZTSK,ZTQUEUED,ZTRTN
  1. ;
  1. S DGTATION=+$P($$SITE^VASITE(),U,3)
  1. I 'DGTATION DO Q
  1. . D BMES^XPDUTL("Station number not defined in Division file") Q
  1. ;
  1. D BMES^XPDUTL()
  1. S DGARY(1)=(" >>> ALS Extract <<< ")
  1. S DGARY(2)=(" Please queue to run at a non peak time.")
  1. S DGARY(3)=(" This extract will generate 2 mail messages to you.")
  1. S DGARY(4)=(" One of the messsages will contain the data extracted")
  1. S DGARY(5)=(" and the second message will contain any errors that")
  1. S DGARY(6)=(" may have occurred during the ALS extract.")
  1. D MES^XPDUTL(.DGARY)
  1. ;
  1. ;Queue routine to run NOW
  1. S ZTIO="",ZTRTN="START^DG53334A"
  1. S ZTDESC="DG*5.3*334 - VA Patient Survey"
  1. D ^%ZTLOAD,HOME^%ZIS
  1. I $G(ZTSK) D BMES^XPDUTL(" Task Number = "_ZTSK)
  1. Q