source: WorldVistAEHR/trunk/r/HEALTH_SUMMARY-GMTS/GMTSXQ05.m@ 1582

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

initial load of WorldVistAEHR

File size: 1.7 KB
Line 
1GMTSXQ05 ; SLC/JER - XQOR4 for Export w/Health Summary ;1/10/92 14:59
2 ;;2.5;Health Summary;;Dec 16, 1992
3XQOR4 ; SLC/KCM - Process "^^" jump ;3/27/90 16:28 ;
4 ;;6.52;Copyright 1990, DVA;
5DJMP ;From: STAK^XQOR1
6 Q:'$D(^UTILITY("XQORS",$J,XQORS,"ITM",^UTILITY("XQORS",$J,XQORS,"ITM"),"IN")) S X=$P(^UTILITY("XQORS",$J,XQORS,"ITM",^UTILITY("XQORS",$J,XQORS,"ITM"),"IN"),"^",4,99) D EAT^XQORM1 ;Q:$E(X,1,2)'="^^"
7 S X=$P(X,"=",1),D="K.ORWARD",DIC="^ORD(101,",DIC(0)="SE" D IX^DIC K DIC,D
8 I Y<0!('$D(^ORD(101,+Y,0))) W:(X'["^")&(X'["?") !!,">>> ",X," not found or selected. No action taken." D:(X'["^")&(X'["?") READ S X="" Q
9 S ORNSV=+Y
10 K X F I=1:1:XQORS I $P(^UTILITY("XQORS",$J,XQORS,"VPT"),";",2)="ORD(101,",$D(^ORD(101,+^UTILITY("XQORS",$J,XQORS,"VPT"),21)) D DJMP1
11 S X="" F I=0:0 S X=$O(X(X)) Q:X="" N @X
12 S X=ORNSV_";ORD(101," K ORNSV D EN^XQOR
13 Q
14DJMP1 F J=0:0 S J=$O(^ORD(101,+^UTILITY("XQORS",$J,XQORS,"VPT"),21,J)) Q:J'>0 I $D(^ORD(101,+^UTILITY("XQORS",$J,XQORS,"VPT"),21,J,0)) S X=^(0) I X?1A.ANP!(X?1"%".ANP) S X(X)=""
15 Q
16SHDR ;Display sub-header
17 Q:'$D(@(^UTILITY("XQORS",$J,XQORS,"REF")_"0)")) S X=$P(^(0),"^",2) W !!?(36-($L(X)\2)),"--- "_X_" ---"
18 Q
19READ W !,"Press RETURN to continue: " R X:$S($D(DTIME):DTIME,1:300)
20 Q
21C19 S X0=@(^UTILITY("XQORS",$J,XQORS,"REF")_"0)"),X=$P(X0,"^",6) I $L(X),'$D(^XUSEC(X,DUZ)) W !!,"This option "_$P(X0,"^")_" is locked.",! D READ S Y=-1 Q
22 S ORNSV=$P(X0,"^",9),X="NOW",%DT="T" D ^%DT S X=$P(Y,".",2) I X>$P(ORNSV,"-"),X<$P(ORNSV,"-",2) W !!,"Not Available: ",ORNSV,! K ORNSV D READ S Y=-1 Q
23 K ORNSV I "QMOXAL"'[$P(^UTILITY("XQORS",$J,XQORS,"FLG"),"^") W !!,"This option type not supported by 'unwinder' routines.",! D READ S Y=-1 Q
24 S Y=1 Q
Note: See TracBrowser for help on using the repository browser.