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

LR140P.m

Go to the documentation of this file.
  1. LR140P ; IHS/DIR/AAB - TEST REVIEWER 060697 0800 ;
  1. ;;5.2;LR;**1002**;JUN 01, 1998
  1. ;;5.2;LAB SERVICE;**140,171**;Sep 27, 1994
  1. ;Environment check is done only during the install.
  1. ;
  1. INIT ;
  1. K ^TMP("LRBIGD")
  1. K DIR
  1. ;
  1. CONTROL ;
  1. W !!,"I'M EXAMINING YOUR DATA NAMES"
  1. D LOOK
  1. W @IOF
  1. W !!,"Now, lets print a list of the BIG'ns.",!!
  1. D DEVICE
  1. DONE ;
  1. ;K ^TMP("LRBIGD")
  1. K LRQ,LRIEN,LRCNT,OK,LRNODE
  1. Q
  1. LOOK ;
  1. ;
  1. S LRCNT=0
  1. S LRQ="^DD(63.04,0)"
  1. F S LRQ=$Q(@LRQ) Q:LRQ'["DD(63.04" I @LRQ["K:$L(X)>" D
  1. . I +$P(@LRQ,"K:$L(X)>",2)>50 S ^TMP("LRBIGD",LRQ)=@LRQ D
  1. .. S LRCNT=LRCNT+1
  1. . I IOST["C-" W "::"
  1. ;
  1. Q
  1. ADVICE ;
  1. ;
  1. ;
  1. D LRGLIN^LRX
  1. W ?8,"Review the test set-up of the OFFENDING test(s) and consider"
  1. W !,?8,"one or more of the following recommendations:"
  1. W !,?5,"1. Reduce the length of the test name."
  1. W !,?5,"2. Reduce the length of the test result through the"
  1. W !,?5," [Modify an existing data name] option."
  1. W !,?5,"3. If the result is lengthy free text consider replacing the"
  1. W !,?5," old CH subscript test with a new test in a different"
  1. W !,?5," subscript area,...to SP for example.",!
  1. D LRGLIN^LRX
  1. Q
  1. DEVICE ;
  1. S OK=1
  1. S %ZIS="Q"
  1. QUE ;
  1. S ZTSAVE("LR*")=""
  1. S ZTRTN="DQ1^LR140P"
  1. S ZTDESC="Lab Patch 140 ^LR report"
  1. S ZTSAVE("^TMP(""LRBIGD""")=""
  1. D IO^LRWU
  1. QUIT
  1. DQ1 ;
  1. PRINT ;
  1. S LRPAGE=1
  1. S OK=1
  1. U IO
  1. D HEAD
  1. S LRIEN=""
  1. U IO
  1. F S LRIEN=$O(^TMP("LRBIGD",LRIEN)) Q:LRIEN="" S LRNODE=^(LRIEN) D
  1. . D CHKPG
  1. . W !,LRIEN,"=",LRNODE,!
  1. QUIT
  1. W @IOF
  1. W $$RJ^XLFSTR("Page "_LRPAGE,IOM),!
  1. W $$CJ^XLFSTR("List of Data Names greater than 50 characters.",IOM),!
  1. D ADVICE
  1. QUIT
  1. CHKPG ;
  1. Q:'OK
  1. I IOSL-$Y'>3&($E(IOST,1,2)="C-") S DIR(0)="E" D ^DIR K DIR D
  1. . W @IOF
  1. . I $D(DTOUT)!($D(DUOUT)) S OK=0
  1. Q:'OK
  1. I IOSL-$Y'>3&($E(IOST,1,2)="P-") S LRPAGE=LRPAGE+1 D HEAD
  1. ;
  1. QUIT
  1. Q