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

IBY155PR.m

Go to the documentation of this file.
  1. IBY155PR ;ALB/TMP - IB*2*155 PRE-INSTALL ;11-APR-02
  1. ;;2.0;INTEGRATED BILLING;**155**;21-MAR-94
  1. ;
  1. ;
  1. D BMES^XPDUTL(" Pre-Installation Updates")
  1. D BMES^XPDUTL(" Delete output formatter data that will be updated during install")
  1. N Z,DA,DIK
  1. F Z=3,26,27,127 K ^IBA(364.5,Z,3)
  1. S DA=353,DIK="^IBA(364.7,"
  1. D ^DIK ; remove entry 353 because the .03 field changed
  1. S DA=964,DIK="^IBA(364.6,"
  1. D ^DIK ; remove entry 964 because the .1 field changed
  1. ;
  1. D BMES^XPDUTL(" Delete fields in file 361.1 that will be updated during install")
  1. ; Remove selective Data Dictionay Elements related to this build
  1. ;
  1. ; Remove the Multiple 361.13 (File 361.1, Field 2.1 - Original Modifiers)
  1. N DIU
  1. S DIU=361.13,DIU(0)="S" D EN^DIU2
  1. K DIU
  1. ;
  1. ; Remove field .16 of File 361.1 - REVIEW STATUS
  1. N DIK,DA
  1. S DIK="^DD(361.1,",DA=.16,DA(1)=361.1 D ^DIK
  1. ; Remove Field .2 of File 361.1 - FINAL REVIEW ACTION
  1. S DA=.2 D ^DIK
  1. ; Remove Field 2.1 of File 361.1 - ORIGINAL MODIFIERS
  1. S DA=2.1 D ^DIK
  1. ;
  1. ; Remove Field 9 of File 399 - AUTHORIZE BILL GENERATION?
  1. S DIK="^DD(399,",DA=9,DA(1)=399 D ^DIK
  1. ; Remove Field 25 of File 399 - REQUEST AN MRA?
  1. S DA=25 D ^DIK
  1. ;
  1. D BMES^XPDUTL(" Delete list templates which will be updated during install")
  1. D LSTDEL("IBCEM MRA DETAIL")
  1. ;
  1. D BMES^XPDUTL(" Pre-install complete")
  1. Q
  1. ;
  1. INCLUDE(Y) ; Code to execute to decide if the data element definition
  1. ; should be sent with this patch ... it must exist in the list at
  1. ; line ENT5+2 below
  1. N IBOUT,Z,Z0
  1. I Y>9999 S IBOUT=0 G INCQ1
  1. I $P($T(ENT5+2),";;",2)[(U_+Y_U) S IBOUT=1 G INCQ1
  1. INCQ1 Q +$G(IBOUT)
  1. ;
  1. ENT5 ; Changed entries from 364.5 that should be in the build
  1. ;
  1. ;;^3^26^27^55^127^177^248^249^251^225^257^
  1. Q
  1. ;
  1. LSTDEL(LSTNM) ; Delete list templates from file 409.61 before installation
  1. I $G(LSTNM)="" G LSTDELX
  1. S DA=$O(^SD(409.61,"B",LSTNM,""))
  1. I 'DA G LSTDELX
  1. S DIK="^SD(409.61,"
  1. D ^DIK
  1. LSTDELX ;
  1. Q
  1. ;
  1. BFT ; Add new Bill Form Type for MRA reports;
  1. ; Called by the post-install routine IBY155PO;
  1. ; File 353, new internal entry number 6;
  1. ; Default the printer defined for the Bill Addendum entry
  1. ;
  1. NEW DA,DIC,DO,X,Y,DD,DLAYGO,DINUM,DG,DICR,DIW,BAPRT
  1. I $P($G(^IBE(353,6,0)),U,1)="MRA" G BFTX ; already on file
  1. I $D(^IBE(353,6)) D
  1. . ; some other entry is defined at ien=6, so get rid of it
  1. . S DA=6,DIK="^IBE(353," D ^DIK
  1. . Q
  1. ;
  1. S DIC="^IBE(353,",DIC(0)="F"
  1. S X="MRA"
  1. S DINUM=6
  1. S DIC("DR")="2.02////P" ; format type
  1. S BAPRT=$P($G(^IBE(353,4,0)),U,2) ; bill addendum default printer
  1. I BAPRT'="" S DIC("DR")=DIC("DR")_";.02////"_BAPRT
  1. D FILE^DICN
  1. BFTX ;
  1. Q
  1. ;