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

SCMSPST.m

Go to the documentation of this file.
  1. SCMSPST ;ALB/JRP - AMB CARE POST INIT DRIVER;04-JUN-1996
  1. ;;5.3;Scheduling;**44,1015**;AUG 13, 1993;Build 21
  1. CHKPTS ;Create check points for pre-init
  1. ;Input : All variables set by KIDS
  1. ;Output : None
  1. ;
  1. ;Declare variables
  1. N TMP,ZTRTN,ZTDESC,ZTDTH,ZTIO,ZTSK,SCQUEUE,X,Y,%,%H
  1. ;Queue task to require provider and diagnosis for checkout from clinics
  1. S TMP=$G(XPDQUES("POSHOPUP","B"))
  1. S:(TMP="") TMP="NOW"
  1. D BMES^XPDUTL("Background job to require provider and diagnosis for")
  1. D MES^XPDUTL("checkout from clinics will be queued for "_TMP)
  1. S ZTDTH=$G(XPDQUES("POSHOPUP"))
  1. S:(ZTDTH="") ZTDTH=$H
  1. S ZTDESC="REQUIRE PROVIDER AND DIAGNOSIS FOR CHECKOUT FROM CLINICS"
  1. S ZTIO=""
  1. S ZTRTN="HOPUP^SCMSP"
  1. D ^%ZTLOAD
  1. S ZTSK=+$G(ZTSK)
  1. S SCQUEUE="0000000"
  1. I ('ZTSK) D BMES^XPDUTL("*** Unable to queue task ***")
  1. I (ZTSK) D
  1. .D BMES^XPDUTL("Queued as task number "_ZTSK)
  1. .S %H=$G(ZTSK("D")) D YMD^%DTC S SCQUEUE=X_%
  1. ;Create check points
  1. ;Initialize parameters - pass Queue Time & Task Number
  1. S TMP=$$NEWCP^XPDUTL("SCMS01","PARAM^SCMSP",SCQUEUE_"-"_ZTSK)
  1. ;Attach mail group to Ambulatory Care xmit summary bulletin
  1. S TMP=$$NEWCP^XPDUTL("SCMS02","MG4BULL^SCMSP")
  1. ;Enable event driver
  1. S TMP=$$NEWCP^XPDUTL("SCMS03","FIXEVNT^SCMSP1")
  1. ;Fix server protocol
  1. S TMP=$$NEWCP^XPDUTL("SCMS04","FIXSRVR^SCMSP1")
  1. ;Fix client protocol
  1. S TMP=$$NEWCP^XPDUTL("SCMS05","FIXCLNT^SCMSP1")
  1. ;Install correct version of SDM routine
  1. S TMP=$$NEWCP^XPDUTL("SCMS06","SDM^SCMSP")
  1. ;Done
  1. Q