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

IBY577PR.m

Go to the documentation of this file.
  1. IBY577PR ;AITC/VD - Pre-Installation for IB patch 577 ;06-APR-2017
  1. ;;2.0;INTEGRATED BILLING;**577**;21-MAR-94;Build 38
  1. ;;Per VA Directive 6402, this routine should not be modified.
  1. ;
  1. ; delete all output formatter (O.F.) data elements included in build
  1. D DELOF
  1. Q
  1. ;
  1. INC3508(Y) ; function to determine if entry in IB ERROR file (350.8) should be included in the build
  1. ; Y - ien to file
  1. N DATA,ENTRY,LN,OK,TAG
  1. S OK=0,ENTRY=U_$P($G(^IBE(350.8,Y,0)),U,3)_U
  1. F LN=2:1 S TAG="ENT3508+"_LN,DATA=$P($T(@TAG),";;",2) Q:DATA="" I $F(DATA,ENTRY) S OK=1 Q
  1. Q OK
  1. ;
  1. INCLUDE(FILE,Y) ; function to determine if O.F. entry should be included in the build
  1. ; FILE=5,6,7 indicating file 364.x
  1. ; Y=ien to file
  1. NEW OK,LN,TAG,DATA
  1. S OK=0
  1. F LN=2:1 S TAG="ENT"_FILE_"+"_LN,DATA=$P($T(@TAG),";;",2) Q:DATA="" I $F(DATA,U_Y_U) S OK=1 Q
  1. Q OK
  1. ;
  1. ;Delete edited entries to insure clean install of new entries
  1. ;Delete obsolete entries.
  1. DELOF ; Delete included OF entries
  1. NEW FILE,DIK,LN,TAG,TAGLN,DATA,PCE,DA,Y
  1. F FILE=5,6,7 S DIK="^IBA(364."_FILE_"," D
  1. . F TAG="ENT"_FILE,"DEL"_FILE D
  1. .. F LN=2:1 S TAGLN=TAG_"+"_LN,DATA=$P($T(@TAGLN),";;",2) Q:DATA="" D
  1. ... F PCE=2:1 S DA=$P(DATA,U,PCE) Q:'DA I $D(^IBA("364."_FILE,DA,0)) D ^DIK
  1. Q
  1. ;
  1. ; Example for ENT5, ENT6, ENT7, DEL5, DEL6, and DEL7:
  1. ;;^195^254^259^269^324^325^
  1. ; Note: Must have beginning and ending up-carat
  1. ;
  1. ;-----------------------------------------------------------------------
  1. ; 364.5 entries modified:
  1. ;
  1. ENT5 ; OF entries in file 364.5 to be included
  1. ;
  1. ;;
  1. ;
  1. ;-----------------------------------------------------------------------
  1. ; 364.6 entries modified:
  1. ;
  1. ; 170 - SUB-2
  1. ; 171 - SUB-3
  1. ; 956 - OI1A-9
  1. ; 957 - CI3A-4
  1. ; 970 - SUB2-13 (was SUB-8)
  1. ; 1930 - PRV1-7
  1. ; 1931 - PRV1-8
  1. ; 1940 - AMB-3
  1. ; 1941 - AMB-4
  1. ; 1968 - CI3A-9
  1. ; 1975 - PT2-6
  1. ; 2025 - OI4-12
  1. ; 2371 - SUB-8
  1. ;
  1. ENT6 ; O.F. entries in file 364.6 to be included
  1. ;
  1. ;;^170^171^956^957^970^1930^1931^1940^1941^1968^1975^2025^2371^
  1. ;
  1. ;-----------------------------------------------------------------------
  1. ; 364.7 entries modified:
  1. ;
  1. ; 804 - COB1-2
  1. ; 939 - PRF-23
  1. ; 941 - PRF-25
  1. ; 1015 - GEN-7
  1. ; 1406 - INS-15
  1. ; 1537 - OI6-7
  1. ; 1538 - OI6-8
  1. ; 1551 - OI6-10.1
  1. ; 1927 - COB1-7
  1. ; 1949 - INS-16
  1. ; 1950 - INS-17
  1. ; 1955 - OI1A-2
  1. ; 1956 - SUB-8
  1. ;
  1. ENT7 ; O.F. entries in file 364.7 to be included
  1. ;
  1. ;;^804^939^941^1015^1406^1537^1538^1551^1927^1949^1950^1955^1956^
  1. ;
  1. ;-----------------------------------------------------------------------
  1. ; 364.5 entries deleted:
  1. ;
  1. DEL5 ; remove O.F. entries in file 364.5 (not re-added)
  1. ;
  1. ;;
  1. ;
  1. ;-----------------------------------------------------------------------
  1. ; 364.6 entries deleted:
  1. ;
  1. ; 1850 - OI6-6.9
  1. ;
  1. DEL6 ; remove O.F. entries in file 364.6 (not re-added)
  1. ;
  1. ;;^1850^
  1. ;
  1. ;-----------------------------------------------------------------------
  1. ; 364.7 entries deleted:
  1. ;
  1. ; 1550 - OI6-6.9
  1. ;
  1. DEL7 ; remove O.F. entries in file 364.7 (not re-added)
  1. ;
  1. ;;^1550^
  1. ;
  1. ;-----------------------------------------------------------------------
  1. ENT3508 ; Add New IB Error Codes to File 350.8
  1. ;
  1. ;;^IB365^
  1. ;
  1. Q
  1. ;