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

IB20IN.m

Go to the documentation of this file.
  1. IB20IN ;ALB/CPM - IB V2.0 INITIALIZATION ROUTINE ; 01-SEP-93
  1. ;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
  1. ;
  1. ; Perform one-time installation items
  1. I +$G(^DD(350,0,"VR"))<2 D
  1. .D SC7H ; delete IB SCREEN7H input template
  1. .D AVC ; delete 'AVC' x-ref
  1. .D AVP ; delete 'AVP' x-ref
  1. .D OBSLT ; delete obsolete list template
  1. .D BCP ; delete obsolete print template
  1. .D OBSPRO ; delete obsolete protocols
  1. .D EDOPT ; change name of option IB UB-82 MENU
  1. ;
  1. ; Run at every installation
  1. D DEL ; delete file #350.8 and data
  1. D CHGPRO ; delete IBACM1 MENU protocol
  1. D DD ; delete field decriptions and cross references
  1. ;
  1. Q
  1. ;
  1. ;
  1. SC7H W !!,">>> Removing IB SCREEN7H input template..."
  1. S IBX=0 F S IBX=$O(^DIE("B","IB SCREEN7H",IBX)) Q:IBX<1 S DA=IBX,DIE="^DIE(",DR=".01////@" D ^DIE
  1. K IBX
  1. Q
  1. ;
  1. AVC W !!,">>> Removing 'AVC' cross-reference on REVENUE CODE field... "
  1. S DA=0
  1. F S DA=$O(^DD(399.042,.01,1,DA)) Q:DA<1 I $G(^(DA,0))="399.042^AVC^MUMPS" S DIK="^DD(399.042,.01,1,",DA(2)=399.042,DA(1)=.01 W "." D ^DIK W "." K DIK
  1. K DA
  1. Q
  1. ;
  1. AVP W !!,">>> Removing 'AVP' cross-reference on PROCEDURES field..."
  1. S DA=0
  1. F S DA=$O(^DD(399.0304,.01,1,DA)) Q:DA<1 I $G(^(DA,0))="399.0304^AVP^MUMPS" S DIK="^DD(399.0304,.01,1,",DA(2)=399.0304,DA(1)=.01 W "." D ^DIK W "." K DIK
  1. K DA
  1. Q
  1. ;
  1. DEL W !!,">>> Deleting IB ERROR file (350.8) with data."
  1. W !," It will be restored."
  1. S DIU(0)="D",DIU="^IBE(350.8," D EN^DIU2 K DIU Q
  1. Q
  1. ;
  1. CHGPRO ; Delete the 'IBACM1 MENU' protocol (to be added later by IBONIT)
  1. S DIC="^ORD(101,",DIC(0)="FN",X="IBACM1 MENU" D ^DIC K DIC S DA=+Y
  1. I DA>0 W !!,">>> Deleting protocol 'IBACM1 MENU'...",!?4,"It will be restored." S DIK="^ORD(101," D ^DIK
  1. K DA,DIK,X,Y
  1. Q
  1. ;
  1. OBSLT ; Delete the obsolete List Template 'IB BILLABLE EVENT'
  1. S DA=$O(^SD(409.61,"B","IB BILLABLE EVENT",0))
  1. I DA W !!,">>> Deleting Obsolete List Template 'IB BILLABLE EVENT'..." S DIK="^SD(409.61," D ^DIK
  1. K DA,DIK
  1. Q
  1. ;
  1. BCP ; Delete obsolete print template 'IB BILLING CYCLE PRINT'
  1. S DA=$O(^DIPT("B","IB BILLING CYCLE PRINT",0))
  1. I DA W !!,">>> Deleting Obsolete Print Template 'IB BILLING CYCLE PRINT'..." S DIK="^DIPT(" D ^DIK
  1. K DA,DIK
  1. Q
  1. ;
  1. OBSPRO ; Delete obsolete protocols.
  1. W !!,">>> Deleting obsolete protocols..."
  1. F IBI=1:1 S IBN=$P($T(OBSP+IBI),";;",2) Q:IBN="" D
  1. .W !?5,"deleting protocol '",IBN,"'... "
  1. .S DIC="^ORD(101,",DIC(0)="FN",X=IBN D ^DIC K DIC S DA=+Y
  1. .I DA<0 W "not found." Q
  1. .S DIK="^ORD(101," D ^DIK W "done."
  1. K DA,DIK,IBI,IBN,X,Y
  1. Q
  1. ;
  1. EDOPT ; Change name of option IB UB-82 MENU to IB THIRD PARTY BILLING MENU
  1. S DA=$O(^DIC(19,"B","IB UB-82 MENU",0))
  1. I DA W !!,">>> Changing the option 'IB UB-82 MENU' to 'IB THIRD PARTY BILLING MENU'..." S DIE="^DIC(19,",DR=".01///IB THIRD PARTY BILLING MENU" D ^DIE
  1. K DIE,DA,DR
  1. Q
  1. ;
  1. DD ; Delete field descriptions and cross references
  1. K ^DD(399,.01,21),^DD(399,2,21),^DD(399,205,21),^DD(399,213,23),^DD(399,303,21)
  1. ;
  1. S IB=0 F S IB=$O(^DD(399.1,.11,1,IB)) Q:IB<1 S DIK="^DD(399.1,.11,1,",DA(2)=399.1,DA(1)=.11,DA=IB D ^DIK K DIK
  1. S IB=0 F S IB=$O(^DD(399.1,.13,1,IB)) Q:IB<1 S DIK="^DD(399.1,.13,1,",DA(2)=399.1,DA(1)=.13,DA=IB D ^DIK K DIK
  1. S IB=0 F S IB=$O(^DD(399.2,.01,1,IB)) Q:IB<1 S DIK="^DD(399.2,.01,1,",DA(2)=399.2,DA(1)=.01,DA=IB D ^DIK K DIK
  1. ;
  1. S IB=0 F S IB=$O(^DD(399.042,.02,1,IB)) Q:IB<1 S DIK="^DD(399.042,.02,1,",DA(2)=399.042,DA(1)=.02,DA=IB D ^DIK K DIK
  1. S IB=0 F S IB=$O(^DD(399.042,.03,1,IB)) Q:IB<1 S DIK="^DD(399.042,.03,1,",DA(2)=399.042,DA(1)=.03,DA=IB D ^DIK K DIK
  1. ;
  1. K ^DGCR(399.1,"OCC"),^DGCR(399.1,"DIS"),^DGCR(399.2,"D")
  1. ;
  1. S DIK="^DD(399,101,1,",DA(2)=399,DA(1)=101,DA=3 D ^DIK
  1. ;
  1. K IB,DA,DIK
  1. Q
  1. ;
  1. OBSP ; Obsolete protocols to be deleted
  1. ;;IBACM ENTRY SELECT
  1. ;;IBACM MENU
  1. ;;IBACM BLANK 1
  1. ;;IBACM BLANK 10
  1. ;;IBACM BLANK 11
  1. ;;IBACM BLANK 12
  1. ;;IBACM BLANK 2
  1. ;;IBACM BLANK 3
  1. ;;IBACM BLANK 4
  1. ;;IBACM BLANK 5
  1. ;;IBACM BLANK 6
  1. ;;IBACM BLANK 7
  1. ;;IBACM BLANK 8
  1. ;;IBACM BLANK 9
  1. ;