source: FOIAVistA/trunk/r/LEXICON_UTILITY-LEX-GMPT/LEXMTLU.m@ 1328

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

initial load of FOIAVistA 6/30/08 version

File size: 1.4 KB
Line 
1LEXMTLU ; ISL Setup Appl/User Defaults for Look-up ; 05/25/1998
2 ;;2.0;LEXICON UTILITY;**11**;Sep 23, 1996
3 ;
4EN ; X not set
5 D MTLU^LEXSET5 S X=$$TERM Q:X=""!(X["^")
6 I $D(X),$G(X)'[U,$G(X)'="",$G(X)'=" " D XTLK
7 Q
8XTLK ;
9 N LEXQ S LEXQ=0 D MTLU^LEXSET5
10 I '$D(X)!($G(X)[U)!($G(X)="")!($G(X)=" ") S X=$$TERM
11 Q:X=""!(X["^") S XTLKX=X D ^XTLKKWL
12 K DIC,LEXAP,LEXLL,LEXSHOW,LEXSUB,LEXUN
13 K XTLKKSCH,XTLKSAY,XTLKWD2,XTLKX,XTLKHLP S:+Y'>0 X=""
14 Q
15TERM(X) ; Get expression
16 N DIR,Y S DIR("A")="Enter an expression: "
17 S DIR("?")=" "_$$SQ^LEXHLP ; PCH 11
18 S DIR("??")="^D TERMHLP^LEXMTLU" N Y S DIR(0)="FAO^2:245" D ^DIR
19 S DIC="^LEX(757.01," S:X[U&(X'["^^") X=U S:X["^^" X="^^" Q:X[U "^"
20 I X=" ",+($G(^DISV(DUZ,DIC)))>0 S X=@(DIC_+($G(^DISV(DUZ,DIC)))_",0)") W " ",X
21 F Q:$E(X,1)'=" " S X=$E(X,2,$L(X))
22 W:$D(DTOUT) !,"Try later.",! S:$D(DTOUT) X=""
23 S:X[U DUOUT=1 K DIR,DIRUT,DIROUT Q X
24TERMHLP ; Look-up help PCH 11
25 N X S X="" S:$L($G(DIR("?"))) X=$G(DIR("?")) S:'$L(X) X=" "_$$SQ^LEXHLP
26 W:$L(X) !!,X,!
27 W !," Best results occur using one to three full or partial words without"
28 W !," a suffix (i.e., ""DIABETES"",""DIAB MELL"",""DIAB MELL INSUL"") or"
29 W !," a classification code (ICD, CPT, HCPCS, etc)"
30 Q
31DD ; Display Defaults in ^TMP("LEXSCH",$J)
32 N LEXNODE S LEXNODE="^TMP(""LEXSCH"","_$J_")"
33 N LEXOK S LEXOK=1 F S LEXNODE=$Q(@LEXNODE) Q:'LEXOK D Q:'LEXOK
34 . I LEXNODE'["LEXSCH" S LEXOK=0 Q
35 . I LEXNODE'[$J S LEXOK=0 Q
36 . W !,LEXNODE,"=",@LEXNODE
37 Q
Note: See TracBrowser for help on using the repository browser.