source: WorldVistAEHR/trunk/r/LAB_SERVICE-LR-LS/LRMIV.m@ 1211

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

initial load of WorldVistAEHR

File size: 1.4 KB
RevLine 
[613]1LRMIV ;SLC/DLG - MICROBIOLOGY VERIFY AUTO INST ROUTINE ;2/25/03 22:25
2 ;;5.2;LAB SERVICE;**295**;Sep 27, 1994
3 ;from LRVR and option LRMIV
4BEGIN S LREND=0,LRACC="",LRSS="MI" D ^LRPARAM,DATE
5END ;from LRFAST,LRVER
6 K %,A6,AGE,C,D,D0,D1,DA,DFN,DIC,DIE,DLAYGO,DOB,DTOUT,DUOUT,DX,I,II,J,K,LRAA,LRACC,LRAD,LRANOK,LRBUG,LRCAPOK,LRCDT,LRDFN,LRDPF,LREAL,LREND,LRFIFO,LRI,LRIDT,LRLLOC,LRMIDEF,LRMIOTH,LRNB,LRODA,LRODIE
7 K LRODT,LRPTP,LRSAME,LRSB,LRSCREEN,LRSN,LRSPEC,LRSS,LRTEC,LRTS,LRTX,LRUNDO,LRWRD,N,PNM,POP,S,SEX,SSN,X,Y,Z
8 Q
9DATE I '$D(LRLABKY) W !,$C(7),"YOU DO NOT HAVE VERIFY KEY. CANNOT VERIFY",! Q
10 S DIC="^LRO(68.2,",DIC(0)="AEMQZ" D ^DIC Q:Y'>0 S LRLL=+Y
11 D ^LRMIU4 Q:LRAA<1 I $P(LRPARAM,U,14),$P($G(^LRO(68,LRAA,0)),U,16) D ^LRCAPV
12 S DIC=60,DIC("S")="I $P(^(0),U,4)=""MI""",DIC(0)="AEMOQ",DIC("A")="Select TEST/PROCEDURE: " D ^DIC K DIC Q:$D(DUOUT) S LRPTP=+Y
13 I Y<1 W !,"None Preselected",!,"Accession # ",LRAN
14 S (LRDFN,LRSS,LRIDT)=0 ;Added to prevent <UNDEF> in LRCAP if no accession selected
15 S LRMIDEF=$P(^LAB(69.9,1,1),U,10),LRMIOTH=$P(^(1),U,11) D ^LRMIV1
16 Q
17UNDO ;from LRMIV2
18 ;W:'$P(^LR(LRDFN,"MI",LRIDT,0),U,9) !,"Report is changed to 'AMENDED'",!
19 S $P(^LR(LRDFN,"MI",LRIDT,0),U,9)=1,$P(^(0),U,3,4)=U,$P(^LRO(68,LRAA,1,LRAD,1,LRAN,3),U,4)="",$P(^LRO(68,LRAA,1,LRAD,1,+LRAN,4,LRTS,0),U,4,5)=DUZ_U_DT,^LRO(68,LRAA,1,LRAD,1,"AD",DT,+LRAN)="",^LRO(68,LRAA,1,LRAD,1,"AC",DT,+LRAN)=""
20 D UPDATE^LRPXRM(LRDFN,"MI",LRIDT)
21 Q
Note: See TracBrowser for help on using the repository browser.