source: WorldVistAEHR/trunk/r/CONTROLLED_SUBSTANCES-PSD/PSDFND1.m@ 1427

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

initial load of WorldVistAEHR

File size: 835 bytes
Line 
1PSDFND1 ;BIR/JPW-Pharm Filled Not Delivered Report ; 2 Aug 94
2 ;;3.0; CONTROLLED SUBSTANCES ;;13 Feb 97
3SUMPRT ;prints summary
4 K LN S (PG,PSDOUT)=0,$P(LN,"-",80)=""
5 I '$D(^TMP("PSDFNDT",$J)) D SUMHDR W !!,?45,"**** NO PENDING DELIVERIES FOR THIS DISPENSING LOCATION ****",! Q
6PRTSUM ;prints summary data for filled not delivered log
7 D SUMHDR Q:PSDOUT
8 S DRUG="" F S DRUG=$O(^TMP("PSDFNDT",$J,DRUG)) Q:DRUG="" D:$Y+4>IOSL SUMHDR Q:PSDOUT W !,?2,DRUG,?60,$J(+^TMP("PSDFNDT",$J,DRUG),6),!
9 Q
10SUMHDR ;lists summary header information
11 I $E(IOST,1,2)="C-",PG W ! K DA,DIR S DIR(0)="E" D ^DIR K DIR I 'Y S PSDOUT=1 Q
12 W:$Y @IOF S PG=PG+1 W !,?25,"Narcotics Filled Not Delivered Report",?70,"Page "_PG,!,?36,RPDT,!,?35,"** SUMMARY **",!!,"Dispensing Vault: ",PSDSN,!!
13 W !,?58,"TOTAL FILLED",!,?5,"DRUG",?58,"NOT DISPENSED",!,LN,!
14 Q
Note: See TracBrowser for help on using the repository browser.