source: WorldVistAEHR/trunk/r/ORDER_ENTRY_RESULTS_REPORTING-OR-OCX--ORRC--ORRJ/OCXOED15.m@ 1578

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

initial load of WorldVistAEHR

File size: 1.9 KB
RevLine 
[613]1OCXOED15 ;SLC/RJS,CLA - Rule Editor (Expert System Editor Display) ;6/20/01 10:52
2 ;;3.0;ORDER ENTRY/RESULTS REPORTING;**32,105**;Dec 17,1997
3 ;; ;;ORDER CHECK EXPERT version 1.01 released OCT 29,1998
4 ;
5 ;
6S ;
7 ;
8 Q
9EN ;
10 ;
11 N OCXACT F K OCXACT S OCXACT="" D DISP(.OCXACT) Q:$$EN^OCXOED16(.OCXACT)
12 ;
13 Q
14 ;
15DISP(OCXACT) ;
16 ;
17 N OCXTHLN,OCXTNLN,OCXTRLN,OCXTULN,OCXTNLN
18 S OCXTNLN=$C(27,91,48,109),OCXTRLN=$C(27,91,55,109),OCXTULN=$C(27,91,52,109),OCXTHLN=$C(27,91,49,109)
19 ;
20 W @IOF,OCXTNLN
21 W !,$$CENTER($$FIELD("Expert System Editor Main Screen"),80),!
22 I $L($T(VERSION^OCXOCMP)) W !,$$CENTER($$FIELD($$VERSION^OCXOCMP),80),!
23 W !
24 W !," ",$$OPT^OCXOEDT("Rule","EDRULE","16",.OCXACT)," ",$$FIELD("Edit a Rule")
25 W !
26 W !," ",$$OPT^OCXOEDT("Element","EDELEM","16",.OCXACT)," ",$$FIELD("Edit an Element")
27 W !
28 W !," ",$$OPT^OCXOEDT("Field","EDDF","16",.OCXACT)," ",$$FIELD("Edit a Data Field")
29 W !
30 W !," ",$$OPT^OCXOEDT("Comp","COMP","16",.OCXACT)," ",$$FIELD("Run the Compiler")
31 W !
32 W !," ",$$OPT^OCXOEDT("ScanDF","SCANDF","16",.OCXACT)," ",$$FIELD("Scan for Data Fields")
33 W !
34 W !," ",$$OPT^OCXOEDT("ScanEL","SCANEL","16",.OCXACT)," ",$$FIELD("Scan for Elements")
35 W !!
36 ;
37 Q
38 ;
39CENTER(X,M) ;
40 N SP S SP="",$P(SP," ",80)=" " Q $E(SP,1,((M\2)-($L(X)\2)))_X
41 ;
42SEP(OCXHDR) ;
43 ;
44 N SPACES S SPACES="",$P(SPACES," ",80-$L(OCXHDR))=" " Q OCXTNLN_OCXTHLN_OCXTULN_$G(OCXHDR)_SPACES_OCXTNLN
45 ;
46FIELD(OCXHDR) ;
47 ;
48 Q OCXTHLN_$G(OCXHDR)_OCXTNLN
49 ;
50DATA(OCXVAL,OCXLEN) ;
51 ;
52 N SPACES S SPACES="",$P(SPACES," ",OCXLEN+5)=" ",OCXVAL=$G(OCXVAL)
53 I ($L(OCXVAL)>OCXLEN) Q $E(OCXVAL,1,OCXLEN-3)_"..."
54 Q $E((OCXVAL_SPACES),1,OCXLEN)
55 ;
56 ;
57DIC(OCXDIC,OCXDIC0,OCXDICA,OCXX,OCXDICS,OCXDR) ;
58 ;
59 N DIC,X,Y
60 S DIC=$G(OCXDIC) Q:'$L(DIC) -1
61 S DIC(0)=$G(OCXDIC0) S:$L($G(OCXX)) X=OCXX
62 S:$L($G(OCXDICS)) DIC("S")=OCXDICS
63 S:$L($G(OCXDICA)) DIC("A")=OCXDICA
64 S:$L($G(OCXDR)) DIC("DR")=OCXDR
65 D ^DIC Q:(Y<1) 0 Q Y
66 ;
Note: See TracBrowser for help on using the repository browser.