[613] | 1 | IBDFLST1 ;ALM/MAF - Maintenance Utility Invalid Codes List - MAY 17 1995
|
---|
| 2 | ;;3.0;AUTOMATED INFO COLLECTION SYS;;APR 24, 1997
|
---|
| 3 | ;
|
---|
| 4 | ;
|
---|
| 5 | HEADER ; -- 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 | ;
|
---|
| 21 | SETSTR(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 | ;
|
---|
| 30 | TMP ; -- 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
|
---|
| 36 | HELP1 W !!,"Choose a number or first initial :" F K=2:1:4 W !?15,$P(Z,"^",K)
|
---|
| 37 | W ! Q
|
---|
| 38 | ;
|
---|
| 39 | ; -- Selections listed
|
---|
| 40 | ZSET1 S Z="^1 [C]PT^2 [I]CD9^3 [V]ISIT^" Q
|
---|
| 41 | ;
|
---|
| 42 | ;
|
---|