source: WorldVistAEHR/trunk/r/AUTOMATED_INFO_COLLECTION_SYS-IBD/IBDFLST1.m@ 1006

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

initial load of WorldVistAEHR

File size: 1.2 KB
Line 
1IBDFLST1 ;ALM/MAF - Maintenance Utility Invalid Codes List - MAY 17 1995
2 ;;3.0;AUTOMATED INFO COLLECTION SYS;;APR 24, 1997
3 ;
4 ;
5HEADER ; -- Set up header line for the display
6 S IBDCNT1=IBDCNT1+1
7 S IBDCNT=IBDCNT+1,VALMCNT=VALMCNT+1
8 S X=""
9 S IBDFC(IBDFCAT)=IBDCNT_"^"_IBDFIFN
10 S X=$$SETSTR(" ",X,1,3) D TMP
11 S X="",IBDCNT=IBDCNT+1,VALMCNT=VALMCNT+1
12 S IBDVAL=IBDFCAT
13 S IBDVAL1=$L(IBDVAL) S IBDVAL1=(80-IBDVAL1)/2 S IBDVAL1=IBDVAL1\1 S X=$$SETSTR(" ",X,1,IBDVAL1)
14 S X=$$SETSTR(IBDVAL,X,IBDVAL1,25) D TMP,CNTRL^VALM10(VALMCNT,1,80,IOINHI,IOINORM,0)
15 S X="",IBDCNT=IBDCNT+1,VALMCNT=VALMCNT+1
16 S X=$$SETSTR(" ",X,1,3) D TMP
17 S IBDCNT1=IBDCNT1-1
18 Q
19 ;
20 ;
21SETSTR(S,V,X,L) ; -- insert text(S) into variable(V)
22 ; S := string
23 ; V := destination
24 ; X := @ col X
25 ; L := # of chars
26 ;
27 Q $E(V_$J("",X-1),1,X-1)_$E(S_$J("",L),1,L)_$E(V,X+L,999)
28 ;
29 ;
30TMP ; -- Set up Array
31 S ^TMP("CODE",$J,IBDCNT,0)=$$LOWER^VALM1(X),^TMP("CODE",$J,"IDX",VALMCNT,IBDCNT1)=""
32 S ^TMP("CODEIDX",$J,IBDCNT1)=VALMCNT_"^"_IBDFIFN_"^"_IBDFCODE_"^"_IBDFCAT_"^"_IBDFDESC
33 Q
34 ;
35 ; -- Help code for display choices
36HELP1 W !!,"Choose a number or first initial :" F K=2:1:4 W !?15,$P(Z,"^",K)
37 W ! Q
38 ;
39 ; -- Selections listed
40ZSET1 S Z="^1 [C]PT^2 [I]CD9^3 [V]ISIT^" Q
41 ;
42 ;
Note: See TracBrowser for help on using the repository browser.