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

IBORAT.m

Go to the documentation of this file.
  1. IBORAT ;ALB/RJS - BILLING RATES LISTING - 3/02/92
  1. ;;Version 2.0 ; INTEGRATED BILLING ;**52**; 21-MAR-94
  1. ;
  1. ;MAIN ROUTINE FOR IB BILLING RATES LISTING
  1. ;CALLS IBORAT1A,IBORAT1B,IBORAT1C
  1. ; patch IB*2*52 removed part of report that printed the Third Party rates in 399.5
  1. ; routines IBORAT2A,IBORAT2B,IBORAT2C were deleted and reference to them in this routine
  1. ;
  1. START ;
  1. ;***
  1. ;S XRTL=$ZU(0),XRTN="IBORAT-1" D T0^%ZOSV ;start rt clock
  1. D PROMPT I Y=-1 Q
  1. D OPEN G END:POP
  1. I $D(IO("Q")) D QUEUED,HOME^%ZIS G END
  1. U IO
  1. ;***
  1. ;I $D(XRT0) S:'$D(XRTN) XRTN="IBORAT" D T1^%ZOSV ;stop rt clock
  1. REPORT ;
  1. ;***
  1. ;S XRTL=$ZU(0),XRTN="IBORAT-2" D T0^%ZOSV ;start rt clock
  1. S IBOUTPUT=0,IBZ=0
  1. D ^IBORAT1A,^IBORAT1B,^IBORAT1C
  1. I 'IBZ G NEXT
  1. I IBDONE G END
  1. F IBAAA=$Y:1:(IOSL-3) W !
  1. I ($E(IOST,1,2)="C-")
  1. I S DIR(0)="E" D ^DIR K DIR I Y=0!(Y="")!($D(DIRUT)) G END
  1. NEXT ;
  1. I 'IBZ W !,"No data for this date range"
  1. END ;
  1. ;KILL ^TMP GLOBAL
  1. K ^TMP($J)
  1. ;***
  1. ;I $D(XRT0) S:'$D(XRTN) XRTN="IBORAT" D T1^%ZOSV ;stop rt clock
  1. I $D(ZTQUEUED) S ZTREQ="@" Q
  1. ;IBORAT***** KILLING VARIABLES IN IBORAT******
  1. K %DT,%IS,IBENDATE,POP,IBSTDATE,Y,IBAAA,IBZ
  1. ;IBORAT1**** KILLING SHARED VARIABLES FROM OTHER ROUTINES *****
  1. K DIRUT,IBDONE,IBEDATE,IBENDATE,IBOUTPUT,IBPAGE,IBSDATE,IBSTDATE,IBTITLE,IBTODAY,IBPAYORS
  1. D ^%ZISC
  1. Q
  1. PROMPT ;
  1. W !
  1. S %DT="AEPX",IBOUTPUT=0
  1. S %DT("A")="Enter Beginning Date:" D ^%DT
  1. S IBSTDATE=Y
  1. I Y=-1 Q
  1. S %DT("A")="Enter Ending Date:" D ^%DT
  1. S IBENDATE=Y
  1. I Y=-1 Q
  1. I IBENDATE<IBSTDATE W !,"Ending Date Less than Beginning Date Please Re-enter" G PROMPT
  1. Q
  1. QUEUED ;
  1. S ZTRTN="REPORT^IBORAT",ZTDESC="IB BILLING RATES & MEDICARE DEDUCTIBLE REPORT",ZTSAVE("IBSTDATE")="",ZTSAVE("IBENDATE")="" D ^%ZTLOAD W !!,$S($D(ZTSK):"Request Queued",1:"Request Cancelled")
  1. K ZTSK
  1. Q
  1. OPEN ;
  1. S %ZIS="QM" D ^%ZIS
  1. Q