source: WorldVistAEHR/trunk/r/HEALTH_SUMMARY-GMTS/GMTSXQ07.m

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

initial load of WorldVistAEHR

File size: 1.6 KB
Line 
1GMTSXQ07 ; SLC/JER - XQORM1 for Export w/Health Summary ;1/10/92 15:02
2 ;;2.5;Health Summary;;Dec 16, 1992
3XQORM1 ; SLC/KCM - Display selections & prompt ;2/20/90 09:47 ;
4 ;;6.52;Copyright 1990, DVA;
5DISP ;From: XQORM
6 I $E(X)="?" W ! S (DX,DY)=0 X ^%ZOSF("XY")
7 S T=1 S:$D(^XUTL("XQORM",XQORM,"COL")) T=^("COL") S:'T T=1 S T=IOM\T
8 S M=5 I $D(XQORM("M")),+XQORM("M"),XQORM("M")'>T S M=XQORM("M")
9 N X S L=0 F I=0:0 S I=$O(^XUTL("XQORM",XQORM,I)) Q:I'>0 I $D(^(I,0)) S X=^(0),J=($P(I,".",2)-1)*T D:$P(I,".")>L RD Q:N D:$D(XQORM("S")) SCRN W ?(J),$P(X,"^",4),?(J+M),$P(X,"^",3) S L=$P(I,".")
10 K L,M,N,T Q
11SCRN Q:$D(XQORM("S"))[0 Q:'$L(XQORM("S")) Q:'+X D SCRN1
12 Q:$T S $P(X,"^",3)="("_$P(X,"^",3)_")"
13 Q
14SCRN1 S DA=+X,DA(1)=+XQORM N I,J,L,M,T,X,Y X XQORM("S") K DA Q
15PRMT ;From: XQORM
16 S ORUPRMT=$S($D(XQORM("A"))[0:"Select Item: ",1:XQORM("A"))
17 F ORU=0:0 D PRMT1 I Y D:(X'=" ")&(X?.ANP) EAT S:X="^^" DIROUT=1 D:X'?.ANP CC^XQORM4 D:$L(X)>80 LL^XQORM4 Q:($E(X)'="?")&(X?.ANP)&($L(X)'>80) D:$E(X)="?" HELP^XQORM4
18 K ORUPRMT Q
19PRMT1 S Y=0 W:XQORM(0)'["\" ! W ORUPRMT,$S($D(XQORM("B"))'[0:XQORM("B")_"// ",1:"")
20 R X:$S($D(DTIME):DTIME,1:300) S:'$T DTOUT=1 S:'$L(X)&($D(XQORM("B"))'[0) X=XQORM("B")
21 I $D(XQORM("NO^")),X["^"!(X="") D NU^XQORM4 Q
22 S Y=1 Q
23UP F %=1:1:$L(X) I $E(X,%)?1L S X=$E(X,1,%-1)_$C($A(X,%)-32)_$E(X,%+1,99)
24 Q
25EAT F I=0:0 Q:$E(X)]" " Q:'$L(X) S X=$E(X,2,999)
26 F I=0:0 Q:$E(X,$L(X))]" " Q:'$L(X) S X=$E(X,1,$L(X)-1)
27 Q
28RD S N=0 W ! Q:$Y<(IOSL-2) W !,"Press RETURN to continue or '^' to exit: "
29 N X R X:$S($D(DTIME):DTIME,1:300) S:'$T X="^" S:$E(X)="^" N=1
30 S (DX,DY)=0 X ^%ZOSF("XY") W !!
31 Q
Note: See TracBrowser for help on using the repository browser.