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

IBEFUTL1.m

Go to the documentation of this file.
  1. IBEFUTL1 ;ALB/MJK/AAS - Re-Compile Templates/x-refs ; 1/31/92
  1. ;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
  1. ;;Per VHA Directive 10-93-142, this routine should not be modified.
  1. ;
  1. ; ******* DO NOT MAP THIS ROUTINE *******
  1. Q
  1. ;
  1. EN ; Entry point to re-compile templates
  1. ; input: IBKIND = OUTPUT or INPUT
  1. ;
  1. K IBLINE S U="^",$P(IBLINE,"=",81)="",IBMAX=^DD("ROU")
  1. G ENQ:'$D(IBKIND),ENQ:"^OUTPUT^INPUT^"'[(U_IBKIND_U)
  1. I IBKIND="OUTPUT" S IBFILE="^DIPT",IBROU="EN^DIPZ"
  1. I IBKIND="INPUT" S IBFILE="^DIE",IBROU="EN^DIEZ"
  1. W !,IBLINE,!?20,"Recompilation of '",IBKIND,"' Templates",!,IBLINE
  1. ;
  1. S IBX="IAzzz" F IBI=1:1 S IBX=$O(@IBFILE@("B",IBX)) Q:IBX=""!($E(IBX,1,2)'="IB") S Y=+$O(^(IBX,0)) I $D(@IBFILE@(Y,"ROUOLD")),^("ROUOLD")]"",$D(^(0)) S (IBEMP,Y)=Y,X=$P(^("ROUOLD"),"^"),IB0=^(0) D COMP
  1. ;
  1. ENQ K IBROU,IB0,IBX,IBI,IBMAX,IBEMP,IBFILE,IBI,IBLINE Q
  1. ;
  1. COMP ; re-compile
  1. ;
  1. ;
  1. S DMAX=IBMAX D @IBROU W !!,IBLINE
  1. COMPQ Q
  1. ;
  1. ALL ; compile templates and x-refs
  1. S:'$D(DTIME) DTIME=300 S U="^"
  1. S DIR(0)="Y",DIR("A")="Re-compile all 'IB' templates and cross references"
  1. S DIR("?",1)="Yes to re-compile",DIR("?",2)="No to stop recompilation process",DIR("?")=" "
  1. D ^DIR K DIR G ALLQ:'Y
  1. D DIEZ W !!
  1. D DIPZ W !!
  1. D DIKZ
  1. W !!,"...Done.",!!,"NOTE: Recompilation should be performed on ALL systems."
  1. ALLQ K A,C,L,O,X1,DQ,DIE,DMAX,DIEZ,DIEZDUP,DK,DR Q
  1. ;
  1. DIEZ ; -- re-compile all IB 'edit' templates
  1. S IBKIND="INPUT" D EN K IBKIND Q
  1. ;
  1. DIPZ ; -- re-compile all IB 'print' templates
  1. S IBKIND="OUTPUT" D EN K IBKIND Q
  1. ;
  1. DIKZ ; -- compile x-refs
  1. W !!,">>> Compiling cross references for BILL/CLAIMS, INTEGRATED BILLING, and ENCOUNTER FORM files:"
  1. F IBN=399,350,357,357.1,357.2,357.3,357.4,357.5 S N=IBN W ! I $D(^DD(+N,0,"DIK"))#2 S X=^("DIK"),Y=+N,DMAX=^DD("ROU") W !,"** File "_IBN_" **",! D EN^DIKZ
  1. K IBN,N,DMAX
  1. Q