source: WorldVistAEHR/trunk/r/ORDER_ENTRY_RESULTS_REPORTING-OR-OCX--ORRC--ORRJ/ORVOM.m@ 1476

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

initial load of WorldVistAEHR

File size: 1.7 KB
Line 
1ORVOM ; slc/dcm - Generate ONITS- for OE/RR ;1/22/91 15:39
2 ;;3.0;ORDER ENTRY/RESULTS REPORTING;;Dec 17, 1997
3 I $S('$D(DUZ(0)):1,DUZ(0)'="@":1,1:0) W !,"PROGRAMMER ACCESS REQUIRED",! Q
4R I $D(^%ZOSF("OS"))#2 S DISYS=+$P(^("OS"),"^",2)
5 Q:'$D(DISYS) R !!,"Enter the Name of the Package (2-4 characters): ",X:$S($D(DTIME):DTIME,1:60)
6 Q:"^"[X I X'?1U1.NU!($L(X)>4) D R^ORVOMH G R
7 S DIC="^DIC(9.4,",DIC(0)="E",D="C" D IX^DIC,Q^ORVOM0 S DPK=+Y G:Y<1 L
8 I $S('$D(^ORD(100.99,1,5,DPK,0)):1,'$L($P(^(0),"^",2))&('$O(^(1,0))):1,1:0) W !,"Nothing setup to export PROTOCOLS in the ORDER PARAMETERS file for this package" G Q
9 S DH=$S($D(^ORD(100.99,1,5,DPK,0)):$P(^(0),"^",2),1:"")
10DH I $L(DH) W !,"Exporting PROTOCOLS with namespace "_DH S X=DH
11R1 W !!,"I am going to create a routine called '",X,"ONIT'."
12 S U="^",%=0,%B="",DL=0,DIH="",DTL=X,DN=X_$E("ONI",1,5-$L(X))
13 S ^UTILITY($J)=DN,X=X_"ONIT"
14 I $D(^%ZOSF("TEST"))#2 X ^("TEST") I W $C(7),!,"but '"_X_"' is ALREADY ON FILE!" S Q=1
15 W !,"Is that OK" D YN^DICN G Q:%<0!(%=2) I '% D R1^ORVOMH G R1
16R3 S %=1,Q=DPK,DPK(1)=""
17 S F(-1)=0
18DD ;
19D1 K ^UTILITY(U,$J),DR S DRN=DL,F=0,%=2 G Q:$D(F)+$D(Q)=2,S:Q<1
20 W !,"Moving "_$P(^DIC(9.4,DPK,0),U)_" Protocols into Onit's."
21 K ^UTILITY(U,$J,"PKG",DPK,"VERSION")
22S D VER^ORVOM11 G Q:$D(DIRUT) G ^ORVOM0
23 ;
24Q G Q^ORVOM0
25L W !!,"Package "_X_" not found",!,"Please enter the protocol namespace you wish to export: " R X:300 G Q:'$T!(X="")!(X'?1A.E)
26 I $L(X)>4 W !,"Namespace too long" G L
27 S DH=X G DH
28 Q
29DOT ;;
30 W "." Q N DOT,I,J,X
31 I '$D(IOBS) D HOME^%ZIS
32 I '$L($G(IOBS)) W "." Q
33 S DOT=" .| o| O| ( )| < >| - -|"
34 F I=1:1:$L(DOT,"|") S X=$P(DOT,"|",I) W X H .2 F J=$L(X):-1:1 W @IOBS
35 Q
Note: See TracBrowser for help on using the repository browser.