source: FOIAVistA/trunk/r/ORDER_ENTRY_RESULTS_REPORTING-OR-OCX--ORRC--ORRJ/ORVOM2.m@ 1607

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

initial load of FOIAVistA 6/30/08 version

File size: 1.2 KB
Line 
1ORVOM2 ; slc/dcm - Creates rtns ending in 'ONIT1' ;12/11/90 14:28
2 ;;3.0;ORDER ENTRY/RESULTS REPORTING;;Dec 17, 1997
3 S ORVROM=5,Y=DRN-1,S=""
4 S ^UTILITY($J,.2,0)=" I $S('$D(DUZ)#2:1,'$D(DUZ(0))#2:1,1:0) W !,""DUZ and DUZ(0) must be defined to continue."" K DIFQ Q"
5 S EH="DT^"_$E(DTL_"ONIT",1,7)_2,DH=" ; LOADS",^UTILITY($J,.3,0)=" K DIF,DIK,D,DDF,DDT,DTO,D0,DLAYGO,DIC,DIR,DA,DFR,DTN,DIX,DZ D "_EH_" S %=1,U=""^"",DSEC=1"
6 S DL=0,^UTILITY($J,1.4,0)=" S NO=$P(""I 0^I $D(@X)#2,X[U"",U,%) I %<1 K DIFQ Q"
7 S DIRS(1)=" I %<1 K DIFQ Q"
8 S:E>1 ^UTILITY($J,2,0)=" F X="_$E(X,2,99)_" D W Q:'$D(DIFQ)"
9 S ^UTILITY($J,2.4,0)=" W !,"" PROTOCOL INSTALLATION"""
10 S ^UTILITY($J,2.5,0)=" Q:'$D(DIFQ) ;S %=0 W !!,""ARE YOU SURE YOU WANT TO CONTINUE"" D YN^DICN I %-1 K DIFQ Q"
11 S ^UTILITY($J,3,0)=" D "_EH_" "_$S($D(DIRS)#2:DIRS,1:"")_"W !,""...OK, this may take a while, hold on please..."" F R=1001:1:"_Y_" D @(""^"_DN_"""_$E(R,2,4)) W "".""" K Q S X=4,E="",Q=" ;"
12 S DIRS=" K:%<0 DIFQ"
13 S E=$E(DTL_"ONIT",1,7),DNAME=E_1,D=-9999
14 D ZI^ORVOM3 G ^ORVOM3
15 Q
16DT W ! D 1
17 I '$D(DTIME) S DTIME=999
18 K %DT D NOW^%DTC S DT=X
19 K DIK,DIC,%I,DICS Q
201 I 'X,$D(^%ZOSF("NBRK")) X ^%ZOSF("NBRK")
21 I X,$D(^%ZOSF("BRK")) X ^%ZOSF("BRK")
22 Q
Note: See TracBrowser for help on using the repository browser.