source: WorldVistAEHR/trunk/r/LAB_SERVICE-LR-LS/LRMINEW.m@ 1604

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

initial load of WorldVistAEHR

File size: 2.7 KB
Line 
1LRMINEW ;SLC/CJS/BA - NEW DATA TO BE REVIEWED/VERIFIED ;4/24/89 14:36 ;
2 ;;5.2;LAB SERVICE;;Sep 27, 1994
3 ;from option LRMINEWD
4ACCESS D ^LRPARAM I $S('$D(LRLABKY):1,'$P(LRLABKY,U):1,1:0) W !,"You must have the 'LRVERIFY' key to verify results.",! Q
5BEGIN S LREND=0,LRDAT=LRDT0,LRFREE=0,LRDXZ=DUZ,LRVT="VT" D VER
6END K %,%DT,A,AGE,D,DFN,DOB,DTOUT,DUOUT,I,LRAA,LRACC,LRAD,LRAN,LRCDT,LRDAT,LRDFN,LRDPF,LRDXZ,LREND,LRFREE,LRIDT,LRLLOC,LRLLT,LRLOCA,LRLTR,LRMIQUE,LRODT,LROK,LRONESPC,LRONETST,LRPG,LRSB,LRWRD,LRWRDVEW,LRVT,PNM,POP,SEX,SSN,X,Y
7 Q
8VER I $P(LRLABKY,U,2) D SUPER Q:LREND
9 K DIC D LRAA^LRMIUT Q:LRAA<1
10 S %DT="AE",%DT("A")="Micro Accession Year: ("_$E(DT,2,3)_")//" D ^%DT K %DT("A") Q:X[U S:X="" Y=$E(DT,1,3) S LRAD=$E(Y,1,3)_"0000"
11 F I=0:0 D AREA Q:LREND D EXCLUDE Q:%=1
12 I LREND Q
13 S LRAN=0 F I=0:0 S LRAN=$O(LRAN(LRAN)) Q:LRAN="" K ^LRO(68,LRAA,1,LRAD,"AC",LRSB,LRAN)
14 F I=0:0 W !!,"Would you like to review the data as the (W)ards will see it, as",!,"the (L)ab will see it, or (N)ot review the data? W// " R X:DTIME S:'$T X=U S:'$L(X) X="W" Q:X[U!("WLN"[X&($L(X)=1)) D INFO
15 I X'[U S:X="W" LRWRDVEW="" D @$S(X="N":"^LRMINEW1",1:"^LRMINEW2")
16 Q
17AREA F I=0:0 R !!,"Area to review:",!?20,"1 Bacteriology",!?20,"2 Mycology",!?20,"3 Parasitology",!?20,"4 Mycobacteriology",!?20,"5 Virology",!,"Choice: ",X:DTIME Q:X>0&(X<6)&(X?1N)!(X=""!(X=U)) W !,"Enter a number 1,2,3,4 or 5"
18 I X=""!(X=U) S LREND=1 Q
19 S LRSB=$S(X=1:1,X=2:8,X=3:5,X=4:11,X=5:16,1:"")
20 Q
21EXCLUDE W !!,"Here's what's been edited:",!
22 S LRAN=0 F I=0:0 S LRAN=$O(^LRO(68,LRAA,1,LRAD,"AC",LRSB,LRAN)) Q:LRAN<1 S A=^(LRAN) D:+A=LRDXZ!(LRDXZ=0) SHOW
23 W !!,"Indicate those you wish to permanently exclude (unless re-edited) from review."
24 D CHECK^LRMINEW1 I $O(LRAN(0))'>0 S %=1 Q
25 W !,"Excluding the following:" S LRAN=0 F I=0:0 S LRAN=$O(LRAN(LRAN)) Q:LRAN="" W !,LRAN
26 F I=0:0 W !!,"Are you sure you want to exclude" S %=2 D YN^DICN Q:% W !,"Answer 'Y'es or 'N'o"
27 Q
28SHOW Q:'$D(^LRO(68,LRAA,1,LRAD,1,LRAN,0)) Q:'$D(^(3)) S LRDFN=+^(0),LRIDT=9999999-^(3)
29 I '$D(^LR(LRDFN,"MI",LRIDT,LRSB)) K ^LRO(68,LRAA,1,LRAD,"AC",LRSB,LRAN) Q
30 S Y=+^LR(LRDFN,"MI",LRIDT,LRSB) D D^LRU S LRMAPDT=Y
31 S LRDPF=$P(^LR(LRDFN,0),U,2),DFN=$P(^(0),U,3) D PT^LRX W !,LRAN,?6,PNM,?36,SSN W:$P(A,U,2) ?49,"Approved"," ",LRMAPDT K LRMAPDT
32 Q
33SUPER F I=0:0 W !,"Verify all work edited for a given area" S %=2 D YN^DICN Q:% W !,"You may verify one person's work or all person's work."
34 I %=-1 S LREND=1 Q
35 I %=1 S LRDXZ=0 Q
36 S DIC(0)="AEQM",DIC("A")="Whose work?: ",DIC="^VA(200," D ^DIC S:X[U LREND=1 Q:Y<1 S LRDXZ=+Y
37 Q
38INFO W !!,"Answer 'W', 'L', 'N' or '^' to exit.",!,"Ward copies may have certain data suppressed from review.",!,"If you've already reviewed the data, answer 'N' to approve the data."
39 Q
Note: See TracBrowser for help on using the repository browser.