source: FOIAVistA/tag/r/QUASAR-ACKQ/ACKQCD3.m@ 1456

Last change on this file since 1456 was 628, checked in by George Lilly, 15 years ago

initial load of FOIAVistA 6/30/08 version

File size: 1.1 KB
Line 
1ACKQCD3 ;AUG/JLTP BIR/PTD-Generate A&SP Service CDR - CONTINUED ; [ 12/07/95 9:52 AM ]
2 ;;3.0;QUASAR;;Feb 11, 2000
3 ;Per VHA Directive 10-93-142, this routine SHOULD NOT be modified.
4PRINT ;
5 D HDR I '$O(^TMP("ACKQCDR",$J,"ACKH",0)) W !!,"No data found for report specifications." Q
6 D FIELD^DID(509850,3,"","POINTER","X") K ACKCAT
7 F I=1:1:($L(X("POINTER"),";")-1) S Y=$P(X("POINTER"),";",I),ACKCAT($P(Y,":"))=$P(Y,":",2)
8 S (HD,X1)=0
9 F S HD=$O(ACKCAT(HD)) Q:'HD!($D(DIRUT)) S NEWHD=1 F S X1=$O(^TMP("ACKQCDR",$J,"ACKCAT",HD,X1)) Q:'X1!($D(DIRUT)) D
10 .I $D(^TMP("ACKQCDR",$J,"ACKH",X1)),($P(^(X1),U)>0) D
11 ..I $Y>(IOSL-5) D:$E(IOST)="C" PAUSE^ACKQUTL Q:$D(DIRUT) D HDR W !
12 ..I NEWHD W !!?5,ACKCAT(HD)
13 ..W !?5,$P(^TMP("ACKQCDR",$J,"ACKCAT",HD,X1),U),?15,$P(^(X1),U,2),?65,$J(^TMP("ACKQCDR",$J,"ACKH",X1),6,2)
14 ..S NEWHD=0
15 W:'$D(DIRUT) !!?55,"Total:",?65,$J(ACKTP,6,2),"%"
16 Q
17HDR ;
18 S ACKPG=ACKPG+1 W @IOF,"Printed: ",ACKPDT,?(IOM-8),"Page: ",ACKPG,!
19 F X="Audiology & Speech Pathology","Cost Distribution Report","for",ACKXRNG W ! D CNTR^ACKQUTL(X)
20 S X="",$P(X,"-",IOM)="-" W !,X
21 Q
Note: See TracBrowser for help on using the repository browser.