source: FOIAVistA/trunk/r/ORDER_ENTRY_RESULTS_REPORTING-OR-OCX--ORRC--ORRJ/OCXOED04.m@ 1397

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

initial load of FOIAVistA 6/30/08 version

File size: 1.5 KB
Line 
1OCXOED04 ;SLC/RJS,CLA - Rule Editor (Rule Element Definition Options) ;10/29/98 12:37
2 ;;3.0;ORDER ENTRY/RESULTS REPORTING;**32**;Dec 17,1997
3 ;; ;;ORDER CHECK EXPERT version 1.01 released OCT 29,1998
4 ;
5 ;
6S ;
7 ;
8 Q
9EN(OCXR0,OCXR1,OCXRD,OCXACT) ;
10 ;
11 ;
12 ;
13 N OCXTHLN,OCXTNLN,OCXTRLN,OCXTULN,OCXTNLN
14 ;
15 ;
16 S OCXOPT=$$GETOPT^OCXOEDT(.OCXACT) Q:(OCXOPT=U) 1 X:$L(OCXOPT) OCXOPT
17 ;
18 Q:'$D(^OCXS(860.2,OCXR0,"C",OCXR1)) 1
19 ;
20 Q 0
21 ;
22 ;
23EDELE(OCXE0) ;
24 ;
25 D EN^OCXOED07(OCXE0)
26 Q
27 ;
28EDRELE(OCXR0,OCXR1) ;
29 ;
30 N OCXDA,X
31 S OCXDA(1)=OCXR0,OCXDA=OCXR1,X=$$DIE("^OCXS(860.2,"_OCXR0_",""C"",",.OCXDA,".01;.02")
32 Q:'$D(^OCXS(860.2,OCXR0,"C",OCXR1))
33 I $P($G(^OCXS(860.2,OCXR0,"C",OCXR1,0)),U,3) S OCXDA(1)=OCXR0,OCXDA=OCXR1,X=$$DIE("^OCXS(860.2,"_OCXR0_",""C"",",.OCXDA,"2")
34 I '$P($G(^OCXS(860.2,OCXR0,"C",OCXR1,0)),U,3) S OCXDA(1)=OCXR0,OCXDA=OCXR1,X=$$DIE("^OCXS(860.2,"_OCXR0_",""C"",",.OCXDA,"1;3")
35 Q
36 ;
37 ;
38 ;
39READ(OCXZ0,OCXZA,OCXZB,OCXZL) ;
40 N OCXLINE,DIR,DTOUT,DUOUT,DIRUT,DIROUT
41 Q:'$L($G(OCXZ0)) U
42 S DIR(0)=OCXZ0
43 S:$L($G(OCXZA)) DIR("A")=OCXZA
44 S:$L($G(OCXZB)) DIR("B")=OCXZB
45 F OCXLINE=1:1:($G(OCXZL)-1) W !
46 D ^DIR
47 I $D(DTOUT)!$D(DUOUT)!$D(DIRUT)!$D(DIROUT) Q U
48 Q Y
49 ;
50DIE(DIE,DA,DR) ;
51 ;
52 D RM(IOM) N DUOUT,DTOUT,DIC S DIC=DIE D ^DIE D RM(0) Q:$G(DTOUT) 0 Q:$G(DUOUT) 0 Q 1
53 ;
54RM(X) X ^%ZOSF("RM") Q
55 ;
56DIC(OCXDIC,OCXDIC0,OCXDICA,OCXX,OCXDICS,OCXDR,DA) ;
57 ;
58 N DIC,X,Y
59 S DIC=$G(OCXDIC) Q:'$L(DIC) -1
60 S DIC(0)=$G(OCXDIC0) S:$L($G(OCXX)) X=OCXX
61 S:$L($G(OCXDICS)) DIC("S")=OCXDICS
62 S:$L($G(OCXDICA)) DIC("A")=OCXDICA
63 S:$L($G(OCXDR)) DIC("DR")=OCXDR
64 D ^DIC Q:(Y<1) 0 Q Y
65 ;
Note: See TracBrowser for help on using the repository browser.