VistA-WorldVistAEHR/r/IFCAP-PRC-PRX--PRCA--PRCN/PRCHFPD1.m

12 lines
804 B
Mathematica

PRCHFPD1 ;SF-ISC/KSS-FPDS REPORT FROM TEMPLATE W/0 FPDS DATA ;12-8-88/9:30 AM
V ;;5.1;IFCAP;;Oct 20, 2000
;Per VHA Directive 10-93-142, this routine should not be modified.
K ^TMP("CN",$J) S (PRCHJ,PRCHT,PRCHCT)=0
F PRCHI=0:0 S PRCHJ=$O(^PRC(442,D0,9,PRCHJ)) Q:PRCHJ'>0 I $D(^(PRCHJ,0)) D S1
S PRCHCN=0 F PRCHI=0:0 S PRCHCN=$O(^TMP("CN",$J,PRCHCN)) Q:PRCHCN="" S PRCHCT=PRCHCT+1 W ?58,$S(PRCHCN="ZZZZ":"",1:PRCHCN),?73,$J(^TMP("CN",$J,PRCHCN),11,2),!
W:PRCHCT>1 ?73,"-----------",!,?73,$J(PRCHT,11,2)
K ^TMP("CN",$J),PRCHI,PRCHJ,PRCHCN,PRCHCT,PRCHAM,PRCHT,PRCHX
Q
S1 S PRCHX=^PRC(442,D0,9,PRCHJ,0),PRCHAM=$P(PRCHX,U,1),PRCHCN=$S($P(PRCHX,U,3)'="":$P(PRCHX,U,3),1:"ZZZZ") S:'$D(^TMP("CN",$J,PRCHCN)) ^TMP("CN",$J,PRCHCN)=0 S ^TMP("CN",$J,PRCHCN)=^TMP("CN",$J,PRCHCN)+PRCHAM,PRCHT=PRCHT+PRCHAM
Q