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

DG53546P.m

Go to the documentation of this file.
  1. DG53546P ; BAY/KAM- Patch DG*5.3*546 Install Utility Routine ; 9/29/03 4:46pm
  1. ;;5.3;Registration;**546,1015**;AUG 13, 1993;Build 21
  1. ;
  1. ENV ;Main entry point for Environment check point.
  1. ;
  1. S XPDABORT=""
  1. D PROGCHK(.XPDABORT) ;checks programmer variables
  1. I XPDABORT="" K XPDABORT
  1. Q
  1. PRE ;Main entry point for Pre-install items.
  1. Q
  1. ;
  1. ;
  1. POST ;Main entry point for Post-install items.
  1. ;
  1. D POST1
  1. Q
  1. POST1 ; Update DIC(8 Eligibility Code for TRICARE/CHAMPUS
  1. ; NOIS CALLS CHY-0703-52232, PHI-0600-21416, MAC-1101-61117,
  1. ; MAC-0201-61637, EKH-0600-41137
  1. N ELGIEN,NATIEN,DA,DR,DIE
  1. S ELGIEN=0
  1. F S ELGIEN=$O(^DIC(8,ELGIEN)) Q:ELGIEN=""!(ELGIEN'?1.N) D
  1. . S NATIEN=$P(^DIC(8,ELGIEN,0),"^",9)
  1. . I $P(^DIC(8.1,NATIEN,0),"^")="TRICARE/CHAMPUS" D
  1. .. S DIE="^DIC(8,",DA=ELGIEN,DR="9///VA STANDARD"
  1. .. D ^DIE
  1. Q
  1. PROGCHK(XPDABORT) ;checks for necessary programmer variables
  1. ;
  1. I '$G(DUZ)!($G(DUZ(0))'="@")!('$G(DT))!($G(U)'="^") D
  1. . D BMES^XPDUTL("*****")
  1. . D MES^XPDUTL("Your programming variables are not set up properly.")
  1. . D MES^XPDUTL("Installation aborted.")
  1. . D MES^XPDUTL("*****")
  1. . S XPDABORT=2
  1. Q