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

ABPVCK1.m

Go to the documentation of this file.
  1. ABPVCK1 ;3P BILL TRANSMISSION EDIT REPORT;[ 06/03/91 1:49 PM ]
  1. ;;2.0;FACILITY PVT-INS TRACKING;*0*;IHS-OKC/KJR;AUGUST 7, 1991
  1. W !!,"NOT AN ENTRY POINT!",!! Q
  1. ;--------------------------------------------------------------------
  1. A3 ;PROCEDURE TO BUILD SORTED UTILITY GLOBAL INDEX
  1. K ^UTILITY("ABPVCK") S RR=+BRECNO F ABPVI=0:0 D Q:+RR=0
  1. .S RR=$O(^ABPVFAC(RR)) Q:+RR=0
  1. .S ZX=^ABPVFAC(RR,0),PDFN=$P(ZX,"^",2),PNAME=$P(^DPT(PDFN,0),"^")
  1. .S ^UTILITY("ABPVCK",PNAME,$P(ZX,"^",3),RR)=""
  1. .K ZX,PDFN,PNAME
  1. Q
  1. ;--------------------------------------------------------------------
  1. A4 ;PROCEDURE TO PRINT SORTED EXPORT TRANSMITTAL LOG
  1. K ^UTILITY("ABPVTXE") D ^ABPVPRT,HEADER^ABPVCK0
  1. S R=0 F ABPVI=0:0 D Q:R=""
  1. .S R=$O(^UTILITY("ABPVCK",R)) Q:R=""
  1. .S RR=0 F ABPVI=0:0 D Q:+RR=0
  1. ..S RR=$O(^UTILITY("ABPVCK",R,RR)) Q:+RR=0
  1. ..S RRR=0 F ABPVI=0:0 D Q:+RRR=0
  1. ...S RRR=$O(^UTILITY("ABPVCK",R,RR,RRR)) Q:+RRR=0
  1. ...S ZX=^ABPVFAC(RRR,0)
  1. ...S X=$P(ZX,"^",11)
  1. ...W ?1,$E(X,4,5),"/",$E(X,6,7),"/",$E(X,2,3)
  1. ...W ?11,$J($P(ZX,"^",1),7)
  1. ...S PDFN=$P(ZX,"^",2) W ?20,$E($P(^DPT(PDFN,0),"^",1),1,30)
  1. ...W ?52,$J($P(ZX,"^",5),6)
  1. ...S X=$P(ZX,"^",3)
  1. ...W ?61,$E(X,4,5),"/",$E(X,6,7),"/",$E(X,2,3)
  1. ...S ZINSCO=$P(ZX,"^",8) D INSCHK^ABPVCK0
  1. ...W ?71,$P(^AUTNINS($P(ZX,"^",8),0),"^",1)
  1. ...W ?103,$J($P(ZX,"^",9),8,2)
  1. ...W ?113,$P(ZX,"^",6)
  1. ...W ?117,$J($P(ZX,"^",7),2),!
  1. ...S ZCLCT=ZCLCT+1,ZCLAMT=ZCLAMT+$P(ZX,"^",9)
  1. ...I $Y>50 D HEADER^ABPVCK0
  1. W ?5 F I=1:1:110 W "-"
  1. W !,?5,"TOTAL CLAIMS = ",ZCLCT,?45,"TOTAL CLAIM AMT = ",?64
  1. W $J(ZCLAMT,8,2),!! H 3
  1. Q