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

SDYDPOST.m

Go to the documentation of this file.
  1. SDYDPOST ;MJK/ALB - API Post Init;01 APR 1993
  1. ;;5.3;Scheduling;**27**;08/13/93
  1. ;
  1. EN ;
  1. D STUFF ; set notification parameters
  1. D VISIT ; add SD in visit parameters
  1. D FIXPRO ; enable new CPT protocols
  1. Q
  1. ;
  1. STUFF ; -- stuff parameters if both not set
  1. S X=$G(^DG(43,1,"SCLR"))
  1. IF $P(X,U,26)="",$P(X,U,27)="" D
  1. . D BMES^XPDUTL(">>> Setting API Notification Parameters...")
  1. . S DIE=43,DR="226////"_$P(X,U,17)_";227////E",DA=1 D ^DIE
  1. Q
  1. ;
  1. VISIT ; -- add SD in visit parameters
  1. S X="VSITAPI" X ^%ZOSF("TEST")
  1. IF $T,$$PKGON^VSIT("SD")=-1 D
  1. . N SDVAR
  1. . D BMES^XPDUTL(">>> Adding Scheduling to Visit Parameters files...")
  1. . S SDVAR=$$PKG^VSIT("SD",0)
  1. . IF SDVAR>0 D
  1. . . D BMES^XPDUTL(" ...successfully added with value of 'ACTIVE FLAG' set to '"_$S($P(SDVAR,U,2):"ON",1:"OFF")_"'.")
  1. . ELSE D
  1. . . D MES^XPDUTL(" ...NOTE: Unable to add Scheduling.")
  1. Q
  1. ;
  1. NOTE ; -- manually set notification parameters
  1. D BMES^XPDUTL(">>> Set API Notification Parameters...")
  1. S DIE=43,DR="226;227",DA=1 D ^DIE
  1. Q
  1. ;
  1. FIXPRO ;Enable CPT protocols
  1. ;
  1. ;Input : None
  1. ;Output : None
  1. ;Notes : This is a KIDS complient check point
  1. ;
  1. ;Declare variables
  1. N DIC,DIE,DA,DR,X,Y,DTOUT,DUOUT,MSGTXT,PTRPROT,SDYDX
  1. D BMES^XPDUTL(">>> Enabling New CPT Protocols")
  1. ;Find protocol
  1. F SDYDX="SDCO CPT","SDAM CPT" D
  1. .S PTRPROT=+$O(^ORD(101,"B",SDYDX,""))
  1. .I ('PTRPROT) D Q
  1. ..S MSGTXT(1)=" ** Unable to find SDCO CPT in PROTOCOL file (#101)"
  1. ..S MSGTXT(2)=" ** Entry must be manually created"
  1. ..D MES^XPDUTL(.MSGTXT)
  1. .;Enable protocol
  1. .S DIE="^ORD(101,"
  1. .S DA=PTRPROT
  1. .S DR="2///@"
  1. .D ^DIE
  1. ;Done
  1. Q
  1. ;