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

IBY516PR.m

Go to the documentation of this file.
  1. IBY516PR ;ALB/WCJ - Pre-Installation for IB patch 516 ;4/14/14
  1. ;;2.0;INTEGRATED BILLING;**516**;21-MAR-94;Build 123
  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,RIT,DEL36,IBCLON
  1. Q
  1. ;
  1. IBCLON ; Remove lock from IBCLON option - ICR#6126
  1. S DA=$$FIND1^DIC(19,,,"IB COPY AND CANCEL")
  1. I 'DA G IBCLONQ
  1. N IBFDA S IBFDA(19,DA_",",3)="@"
  1. D FILE^DIE("","IBFDA")
  1. IBCLONQ ;
  1. Q
  1. ;
  1. RIT ; recompile billing screen templates
  1. N X,Y,DMAX,IBN
  1. D MES^XPDUTL("Recompiling Input Templates for Billing Screens ...")
  1. F IBN=1:1:8,"10","102","10H" D
  1. .S X="IBXS"_$S(IBN=10:"A",IBN="102":"A2",IBN="10H":"AH",1:IBN),Y=$$FIND1^DIC(.402,,"X","IB SCREEN"_IBN,"B"),DMAX=$$ROUSIZE^DILF
  1. .I Y D EN^DIEZ
  1. D MES^XPDUTL(" Done.")
  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. DEL36 ; This procedure deletes any data from four fields in file #36, Insurance Company.
  1. ;
  1. N DA,DIE,DR,IBDATA,IBFIELD,IBINSIEN
  1. S IBINSIEN=0
  1. F S IBINSIEN=$O(^DIC(36,IBINSIEN)) Q:'IBINSIEN D
  1. . F IBFIELD=4.07,4.11,4.12,4.13 D
  1. . . S IBDATA=$$GET1^DIQ(36,IBINSIEN_",",IBFIELD,"I")
  1. . . I IBDATA'="" D
  1. . . . S DIE="^DIC(36,"
  1. . . . S DA=IBINSIEN
  1. . . . S DR=IBFIELD_"///@"
  1. . . . D ^DIE
  1. . . . Q
  1. . . Q
  1. . Q
  1. Q
  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. ; 364.5 entries modified:
  1. ENT5 ; OF entries in file 364.5 to be included
  1. ;
  1. ;;^199^200^
  1. ;
  1. ;-----------------------------------------------------------------------
  1. ; 364.6 entries modified:
  1. ;
  1. ENT6 ; O.F. entries in file 364.6 to be included
  1. ;
  1. ;;^66^127^132^483^810^811^812^958^964^974^975^977^979^
  1. ;;^1014^1029^1030^1031^1034^1043^
  1. ;;^1839^1840^1851^
  1. ;;^2059^2060^
  1. ;;^2231^2235^2236^2237^2251^2252^
  1. ;
  1. ;-----------------------------------------------------------------------
  1. ENT7 ; O.F. entries in file 364.7 to be included
  1. ;
  1. ;;^37^69^88^89^110^179^184^192^205^206^207^475^
  1. ;;^829^840^842^933^939^941^952^953^956^
  1. ;;^1015^1539^1540^1615^1674^1675^1759^1760^
  1. ;;^1945^1946^1947^1948^1949^1950^
  1. ;
  1. ;-----------------------------------------------------------------------
  1. DEL5 ; remove O.F. entries in file 364.5 (not re-added)
  1. ;
  1. ;;
  1. ;
  1. ;-----------------------------------------------------------------------
  1. DEL6 ; remove O.F. entries in file 364.6 (not re-added)
  1. ;
  1. ;;^1826^1827^
  1. ;
  1. ;-----------------------------------------------------------------------
  1. DEL7 ; remove O.F. entries in file 364.7 (not re-added)
  1. ;
  1. ;;
  1. ;
  1. ;-----------------------------------------------------------------------
  1. ENT3508 ; Add New IB Error Codes to File 350.8
  1. ;
  1. ;;
  1. ;