source: FOIAVistA/trunk/r/LAB_SERVICE-LR-LS/LRACS3.m@ 1688

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

initial load of FOIAVistA 6/30/08 version

File size: 2.1 KB
Line 
1LRACS3 ;SLC/DCM - MISCELLANEOUS TESTS FOR SUPERVISORS SUMMARY ; 6/11/87 13:38 ;
2 ;;5.2;LAB SERVICE;**201,225**;Sep 27, 1994
3ENT D HEAD S LRXLR="LRAC",LRHEAD2=0,LRLLOC="",LRSORT=$S($D(^LAB(64.5,1,4)):$P(^(4),U,1),1:""),LRMIC="" I '$D(^TMP($J,LRDT,"NOKILL")) K ^TMP($J) S ^TMP($J,LRDT,"NOKILL")="" D LRLLOC
4 D:LRSORT SORT^LRACS2 D EQUALS^LRX W @IOF D END Q
5LRLLOC F I=0:0 S LRLLOC=$O(^LRO(69,LRDT,1,"AR",LRLLOC)) Q:LRLLOC="" S LRNM="" D:$Y>(IOSL-10) HEAD D HEAD1,LRNM
6 Q
7LRNM F J=0:0 S LRNM=$O(^LRO(69,LRDT,1,"AR",LRLLOC,LRNM)) Q:LRNM="" D LRDFN
8 Q
9LRDFN S LRDFN=0 F S LRDFN=$O(^LRO(69,LRDT,1,"AR",LRLLOC,LRNM,LRDFN)) Q:LRDFN<1!('$D(^LAC(LRXLR,+$G(LRDFN)))) S LRHEAD2=0 S:LRSORT ^TMP($J,LRNM,LRDFN)="" D:'LRSORT LRIDT
10 Q
11LRIDT S LRDPF=$P(^LR(LRDFN,0),"^",2),DFN=$P(^(0),"^",3) D PT^LRX
12 Q:'$D(^LAC(LRXLR,LRDFN,"MISC",1,0)) S Z=^LAC(LRXLR,LRDFN,0)
13 S LRIDT=0 F S LRIDT=$O(^LAC(LRXLR,LRDFN,"MISC",1,1,LRIDT)) Q:LRIDT<1 S Z=^(LRIDT,0) D LRIFN
14 Q
15LRIFN S LRVIDT=$P(Z,U,2),LRVDT=$P(Z,U,3) Q:LRVDT>(LRDT_.9999)!(LRVDT<LRLDT) S LRLOG=$P(Z,U,4),LRSPM=$P(Z,U,5),LRSPM=$S($L(LRSPM):$E($P(^LAB(61,LRSPM,0),U,1),1,7),1:LRSPM)
16 I LRHEAD2=0 D LRHEAD2 S LRHEAD2=1
17 S LRCL=2,Y=LRVIDT S Y=$$Y2K^LRX(Y) D:$Y>(IOSL-10) HEAD,HEAD1,LRHEAD2 W !,Y,?18,LRLOG," ",LRSPM," ",!?LRCL
18 S LRIFN=0 F S LRIFN=$O(^LAC(LRXLR,LRDFN,"MISC",1,1,LRIDT,1,LRIFN)) Q:'LRIFN S Z=^(LRIFN,0),LRVAL=$P(Z,U,1),LRTST=$P(Z,U,3),X1=$P(Z,U,4),LRTST=$P(^LAB(60,LRTST,.1),U,1) D WRITE
19 I $D(^LAC(LRXLR,LRDFN,"MISC",1,1,LRIDT,"TX",0)) S K=0 F S K=$O(^LAC(LRXLR,LRDFN,"MISC",1,LRIDT,"TX",K)) Q:'K W !?2,^(K,0)
20 W ! Q
21WRITE ;;W:$X>(IOM-19) !?LRCL S LRCL=LRCL+19 W " ",$J(LRTST,7),": ",LRVAL," ",?LRCL S LRCL=$S(LRCL>(IOM-19):2,1:LRCL) ;;**Horizontal mess**
22 W ?15,$J(LRTST,7),": ",LRVAL,! ;;**Vertical**
23 Q
24HEAD D EQUALS^LRX W @IOF,!!,"SUPERVISOR'S SUMMARY REPORT ... MISCELLANEOUS TESTS"
25 Q
26HEAD1 Q:'LRSORT W !!?15,"*** "_LRLLOC_" ***"
27 Q
28LRHEAD2 D DASH^LRX W !!,PNM," ",?25,SSN_" ",?40,AGE,!
29 Q
30END K LRAG,LRCL,LRDFN,LRDT,LRHEAD2,LRIDT,LRIFN,LRIL,LRLDT,LRLLOC,LRLOG,LRMIC,LRMISC,LRNAME,LRNM,LRPG,LRPNM,LRSORT,LRSPM,LRTST,LRVAL,LRVDT,LRVIDT,LRXLR,LRYESCOM,SSN,X1,Y,Z,ZTRTN
31 Q
Note: See TracBrowser for help on using the repository browser.