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

DG53P941.m

Go to the documentation of this file.
DG53P941 ;ALB/DJS - DG*5.3*941 POST INSTALL ;10/30/17  9:18am
 ;;5.3;Registration;**941**;Aug 13, 1993;Build 73
 ;Per VHA Directive 2004-038, this routine should not be modified.
 ;
 ; DG*5.3*941 Post Install routine to correct Veteran Plan - VC Unusual and Excessive Burden
 ;  Integration Agreements:
 ;        10141 : BMES^XPDUTL
 ;              : MES^XPDUTL
 ;        2053  : FILE^DIE
 ;        2051  : FIND1^DIC
 ;
 Q
 ;
POST ;Update Health Benefit Plan
 ;
 D BMES^XPDUTL("    Checking Entry in HEALTH BENEFIT PLAN File - Veteran Plan - VC Unusual and Excessive Burden   ")
 D UPDREQ
 Q
 ;
UPDREQ ; Update entry in the HEALTH BENEFIT PLAN File (25.11)
 ;
 N IEN,ERR,NAME,FDA,IEN1,NAME1
 S ERR=""
 S NAME="Veteran Plan - VC Unusual and Excessive Burden"
 ; Check if entry exists, use it if it does
 S IEN=$$FIND1^DIC(25.11,,"B",NAME)
 I 'IEN D BMES^XPDUTL("    "_NAME_" does not exist, no action is taken.  ") Q
 L +^DGHBP(25.11,IEN):10 I '$T D BMES^XPDUTL("    "_NAME_" is locked by another user. Try later.   ") Q
 S IEN1=IEN
 S IEN=IEN_","
 ;
 S FDA(25.11,IEN,.01)="Veteran Plan - VC Unusual or Excessive Burden"
  ; file new Health Benefit Plan name
 ;
 D FILE^DIE("E","FDA","ERR")
 L -^DGHBP(25.11,IEN1)
 I ERR'="" D
 . D BMES^XPDUTL("     *** An Error occurred during updating Plan: Veteran Plan - VC Unusual and Excessive Burden")
 . D MES^XPDUTL("     Please log CA SDM ticket.")
 . Q
 ;
 I ERR="" D
 . S NAME1=$P(^DGHBP(25.11,IEN1,0),"^",1)
 . D BMES^XPDUTL("    "_NAME_" is corrected in HEALTH BENEFIT PLAN File to "_NAME1_".")
 Q
 ;