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

IBESTAT.m

Go to the documentation of this file.
  1. IBESTAT ;ALB/AAS - INTEGRATED BILLING - FILER STATUS ; 27-FEB-91
  1. ;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
  1. ;;Per VHA Directive 10-93-142, this routine should not be modified.
  1. % ;
  1. ;***
  1. ;S XRTL=$ZU(0),XRTN="IBESTAT-1" D T0^%ZOSV ;start rt clock
  1. ;
  1. D HOME^%ZIS
  1. ;
  1. W @IOF,"Integrated Billing Status"
  1. S X="" S $P(X,"=",IOM)="" W !,X
  1. S X=$S($D(^IBE(350.9,1,0)):^(0),1:"")
  1. SITE ;
  1. W !,"IB Facility Name ........................ ",$S($D(^DIC(4,+$P(X,"^",2),0)):$P(^(0),"^"),1:"")
  1. W !,"IB Facility Number ...................... ",$S($D(^DIC(4,+$P(X,"^",2),99)):$P(^(99),"^"),1:"")
  1. W !
  1. PARAM W !,"File in Background ...................... ",$S($P(X,"^",3):"YES",1:"NO")
  1. W !,"Filer UCI,VOL ........................... ",$P(X,"^",7)
  1. W !,"Filer Hang Time ......................... ",$P(X,"^",8)_" Seconds"
  1. W !,"Background Error Mail Group ............. ",$S($D(^XMB(3.8,+$P(X,"^",9),0)):$P(^(0),"^"),1:"")
  1. ;
  1. W !
  1. FILER I +$P(X,"^",4) W !,"Filer Appears to be Running!",!
  1. E W !,"Filer does not Appear to be Running!",!
  1. W !,"Filer currently queued to run ........... ",$S($P(X,"^",10):"YES",1:"NO")
  1. S C=0 F I=0:0 S I=$O(^IB("APOST",I)) Q:'I S C=C+1
  1. W !,"Number Transactions in Queue ............ ",C
  1. W !,"Filer Started on ........................ " S Y=$P(X,"^",4) D DT^DIQ
  1. W !,"Filer Stopped on ........................ " S Y=$P(X,"^",5) D DT^DIQ
  1. W !,"Filer last processed transaction on ..... " S Y=$P(X,"^",6) D DT^DIQ
  1. W !
  1. S C=0 F I=DT:0 S I=$O(^IB("D",I)) Q:'I!(I>(DT+.24)) F J=0:0 S J=$O(^IB("D",I,J)) Q:'J S C=C+1
  1. W !,"Transactions filed since midnight ....... ",C
  1. ;
  1. D MENU^IBECK
  1. F I=$Y:1:(IOSL-4) W !
  1. S DIR(0)="E" D ^DIR
  1. ;
  1. END K %H,C,I,J,X,Y,DIR
  1. ;***
  1. ;I $D(XRT0) S:'$D(XRTN) XRTN="IBESTAT" D T1^%ZOSV ;stop rt clock
  1. Q