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

ACDWRP15.m

Go to the documentation of this file.
  1. ACDWRP15 ;IHS/ADC/EDE/KML - REPORT GENERATOR;
  1. ;;4.1;CHEMICAL DEPENDENCY MIS;;MAY 11, 1998
  1. ;Reports 14,62
  1. S (ACDIFCNT,ACDSCNT)=0
  1. I '$D(^TMP("ACD",ACDJOB,ACDBT,ACDTGSUB,"VAL")) D ^ACDWK Q
  1. D C S ACDP1="" F D F Q:$D(DIRUT) S ACDP1=$O(^TMP("ACD",ACDJOB,ACDBT,ACDTGSUB,"VAL",ACDP1)) Q:ACDP1="" W !,$E(ACDP1,1,24) D P1 Q:$D(DIRUT)
  1. I $D(DIRUT) D ^ACDWK Q
  1. W !!,"CLIENTS WITH NO DIFFERENCE REASON = ",ACDSCNT
  1. W !!,"CLIENTS WITH A DIFFERENCE REASON = ",ACDIFCNT
  1. D ^ACDWK Q
  1. P1 ;
  1. S ACDP2="" F S ACDP2=$O(^TMP("ACD",ACDJOB,ACDBT,ACDTGSUB,"VAL",ACDP1,ACDP2)) Q:ACDP2="" W ?26,$E(ACDP2,1,24) D P2 Q:$D(DIRUT)
  1. Q
  1. P2 ;
  1. S ACDP3="" F S ACDP3=$O(^TMP("ACD",ACDJOB,ACDBT,ACDTGSUB,"VAL",ACDP1,ACDP2,ACDP3)) Q:ACDP3="" S ACDN0=^(ACDP3) W ?52,$E(ACDP3,1,19),?75,$J(ACDN0,4),! D F Q:$D(DIRUT) S:ACDP1=ACDP2 ACDSCNT=ACDSCNT+ACDN0 S:ACDP1'=ACDP2 ACDIFCNT=ACDIFCNT+ACDN0
  1. Q
  1. F ;Form feed
  1. I $Y+4>IOSL D F^ACDWUTL D:'$D(DIRUT) C
  1. Q
  1. C ;Column
  1. W !!,ACDC(1),?26,ACDC(2),?52,ACDC(3),?72,ACDC(4),!,ACDH(1),!