RAORD7 ;HISC/CAH AISC/RMO-Log of Scheduled Requests by Procedure ;11/8/01 08:00 ;;5.0;Radiology/Nuclear Medicine;**15,31**;Mar 16, 1998 ;;This routine looks at orders in file 75.1 with field 23 (Scheduled date) within the date range selected. User also selects order statuses to include. DATE D SET^RAPSET1 I $D(XQUIT) K RAED,XQUIT Q S %DT("A")="Starting Scheduled Date: ",%DT="EXA" W ! D ^%DT K %DT G Q^RAORD7A:Y<0 S RALDTE1=Y S %DT("A")="Ending Scheduled Date: ",%DT="EXAT" W ! D ^%DT K %DT G Q^RAORD7A:Y<0 S RALDTE2=Y I RALDTE2RALDTE1,Y'(IOM-25) ! W ?($X+5) W !!,"Sorted by: ",RASORT,! K DIR S DIR(0)="Y",DIR("A")="SELECTION CRITERIA OK",DIR("B")="YES" W ! D ^DIR I $D(DUOUT)!($D(DTOUT)) G Q^RAORD7A I Y'=1 G DATE ; S:$D(RANOSHOW) ZTSAVE("RANOSHOW")="" S ZTRTN="START^RAORD7A",ZTSAVE("RALDTE1")="",ZTSAVE("RALDTE2")="",ZTSAVE("RAST")="",ZTSAVE("RALOC(")="",ZTSAVE("RAORST(")="",ZTSAVE("RASORT")="" W ! D ZIS^RAUTL G Q^RAORD7A:RAPOP G ^RAORD7A