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

ACDRR1P.m

Go to the documentation of this file.
ACDRR1P ;IHS/ADC/EDE/KML - PRINT REPORT;
 ;;4.1;CHEMICAL DEPENDENCY MIS;;MAY 11, 1998
 ;
START ;
 U IO
 D HEAD
 D BODY
 K ^TMP("ACDRR1",ACDJOB,ACDBTH)
 Q
 ;
 I '$D(ZTQUEUED),'$D(IO("S")),$E(IOST,1,2)="C-" W @IOF
 W !,$$CTR^ACD("CDMIS PATIENT PROBLEM/DRUG SUMMARY REPORT",80),!!
 W "Run at ",ACDSITE," for ",$$USR^ACD()," on ",$$FMTE^XLFDT(DT),!
 W "for date range ",$$FMTE^XLFDT(ACDDTLO)," through ",$$FMTE^XLFDT(ACDDTHI),!
 W $$REPEAT^XLFSTR("=",80),!!
 Q
 ;
BODY ; WRITE BODY OF REPORT
 ; ******* DO NOT CHANGE THE VALUE OF X ********
 S ACDQ=0
 S X=^TMP("ACDRR1",ACDJOB,ACDBT,"SEEN")
 D ALCDRUG^ACDRR1PB
 Q:ACDQ
 D DAYSCS^ACDRR1PB
 Q:ACDQ
 D TOBACCO^ACDRR1PB
 Q:ACDQ
 D PRIPROB^ACDRR1PB
 Q:ACDQ
 D PROBLEM^ACDRR1PB
 Q:ACDQ
 D DRUGUSED^ACDRR1PB
 Q:ACDQ
 D DRUGCMB^ACDRR1PB
 Q:ACDQ
 D TRIBE^ACDRR1PC
 Q:ACDQ
 D LOS^ACDRR1PC
 Q:ACDQ
 D PAUSE^ACDDEU
 Q