Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: LRMINEW2

LRMINEW2.m

Go to the documentation of this file.
LRMINEW2 ; IHS/DIR/FJE - NEW DATA TO BE REVIEWED/VERIFIED 2/19/91 10:49 ;
 ;;5.2;LR;**1013**;JUL 15, 2002
 ;
 ;;5.2;LAB SERVICE;;Sep 27, 1994
Q2 ;F I=0:0 W !,"Do you want to queue the data to print and review/approve it later" S %=1 D YN^DICN Q:%  W !,"Or you could look at it now!"
 F I=0:0 W !,"Do you want to queue the data to print and review/approve it later" S %=2 D YN^DICN Q:%  W !,"Or you could look at it now!"  ;IHS/ANMC/CLS 08/18/96
 Q:%=-1
 I %=1 S %ZIS="MQ",%ZIS("B")="",IOP="Q"
 W ! S ZTRTN="DQ^LRMINEW2" D IO^LRWU
 Q
DQ S:$D(ZTQUEUED) ZTREQ="@" U IO K ^TMP($J) S LREND=0,LRONETST="",LRONESPC=""
 S LRAN=0 F I=0:0 S LRAN=+$O(^LRO(68,LRAA,1,LRAD,"AC",LRSB,LRAN)) Q:LRAN<1!($G(LREND))  D:+^(LRAN)=LRDXZ!(LRDXZ=0) SORT
 ;S LRLOCA="" F I=0:0 S LRLOCA=$O(^TMP($J,LRLOCA)) Q:LRLOCA=""!($G(LREND))  S LRLTR=$E(LRLOCA,1,4) W @IOF D ^LRLTR:$E(IOST,1,2)'="C-" S LRAN=0 F I=0:0 S LRAN=+$O(^TMP($J,LRLOCA,LRAN)) Q:LRAN<1!($G(LREND))  D SENDUP Q:LREND
 S LRAN=0 F I=0:0 S LRAN=+$O(^TMP($J,LRAN)) Q:LRAN<1!($G(LREND))  S LRLOCA=+^(LRAN) D SENDUP Q:LREND  ;IHS/ANMC/CLS 08/18/96 sort by LRAN
 K ^TMP($J),LRWRDVEW
 Q
SORT Q:'$D(^LRO(68,LRAA,1,LRAD,1,LRAN,0))  S LRLOCA=$P(^(0),U,7) Q:LRLOCA=""
 ;S ^TMP($J,LRLOCA,LRAN)=""
 S ^TMP($J,LRAN)=LRLOCA  ;IHS/ANMC/CLS 08/18/96 sort by LRAN
 Q
SENDUP Q:'$D(^LRO(68,LRAA,1,LRAD,1,LRAN,3))!($G(LREND))  S LRIDT=9999999-^(3),LRDFN=+^(0),LRLLT=^LR(LRDFN,"MI",LRIDT,0),LRACC=$P(LRLLT,U,6),LRCMNT=$S($D(^(99)):^(99),1:""),LRPG=0 D EN^LRMIPSZ1 Q:LREND
 Q