source: WorldVistAEHR/trunk/r/AUTOMATED_INFO_COLLECTION_SYS-IBD/IBDFFT2.m@ 1154

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

initial load of WorldVistAEHR

File size: 1.9 KB
RevLine 
[613]1IBDFFT2 ;ALB/MAF - FORMS TRACKING ; JUL 6 1995@800
2 ;;3.0;AUTOMATED INFO COLLECTION SYS;;APR 24, 1997
3 ;
4 ;
5HEADER ; -- Set up header line for the division display
6 S IBDCNT1=IBDCNT1+1
7 S IBDCNT=IBDCNT+1,VALMCNT=VALMCNT+1
8 S X=""
9 S IBDFDIV(IBDFDV)=IBDCNT
10 S X=$$SETSTR^VALM1(" ",X,1,3) D TMP1
11 S X="",IBDCNT=IBDCNT+1,VALMCNT=VALMCNT+1
12 S IBDVAL=IBDFDV
13 S IBDVAL1=$L(IBDVAL) S IBDVAL1=(80-IBDVAL1)/2 S IBDVAL1=IBDVAL1\1 S X=$$SETSTR^VALM1(" ",X,1,IBDVAL1)
14 S X=$$SETSTR^VALM1(IBDVAL,X,IBDVAL1,25) D TMP1,CNTRL^VALM10(VALMCNT,1,80,IOINHI,IOINORM,0)
15 S X="",IBDCNT=IBDCNT+1,VALMCNT=VALMCNT+1
16 S X=$$SETSTR^VALM1(" ",X,1,3) D TMP1
17 S IBDCNT1=IBDCNT1-1
18 Q
19TMP1 ; -- Set up TMP Array
20 S ^TMP("FRM",$J,IBDCNT,0)=X,^TMP("FRM",$J,"IDX",VALMCNT,IBDCNT1)=""
21 S ^TMP("FRMIDX",$J,IBDCNT1)=VALMCNT
22 Q
23 ;
24 ;
25HEADER1 ; -- Set up header line for the display
26 S IBDCNT1=IBDCNT1+1
27 S IBDCNT=IBDCNT+1,VALMCNT=VALMCNT+1
28 S X=""
29 I $D(VAUTG) S IBDFCLIN(IBDFGR,IBDFCL)=IBDCNT
30 I '$D(VAUTG) S IBDFCLIN(IBDFDV,IBDFCL)=IBDCNT
31 S X=$$SETSTR^VALM1(" ",X,1,3) D TMP1
32 S X="",IBDCNT=IBDCNT+1,VALMCNT=VALMCNT+1
33 S IBDVAL=IBDFCL
34 S X=$$SETSTR^VALM1(IBDVAL,X,1,25) D TMP1,CNTRL^VALM10(VALMCNT,1,80,IOINHI,IOINORM,0)
35 S IBDCNT1=IBDCNT1-1
36 Q
37HEADER2 ; -- Set up header line for the division display
38 S IBDCNT1=IBDCNT1+1
39 S IBDCNT=IBDCNT+1,VALMCNT=VALMCNT+1
40 S X=""
41 S IBDFGROP(IBDFDV,IBDFGR)=IBDCNT
42 S X=$$SETSTR^VALM1(" ",X,1,3) D TMP1
43 S X="",IBDCNT=IBDCNT+1,VALMCNT=VALMCNT+1
44 ;S IBDVAL=$P(^IBD(357.99,IBDFGR,0),"^",1)
45 S IBDVAL=IBDFGR
46 S IBDVAL1=$L(IBDVAL) S IBDVAL1=(80-IBDVAL1)/2 S IBDVAL1=IBDVAL1\1 S X=$$SETSTR^VALM1(" ",X,1,IBDVAL1)
47 S X=$$SETSTR^VALM1(IBDVAL,X,IBDVAL1,25) D TMP1,CNTRL^VALM10(VALMCNT,1,80,IOINHI,IOINORM,0)
48 S X="",IBDCNT=IBDCNT+1,VALMCNT=VALMCNT+1
49 S X=$$SETSTR^VALM1(" ",X,1,3) D TMP1
50 S IBDCNT1=IBDCNT1-1
51 Q
52NUL ; -- NULL MESSAGE
53 S ^TMP("FRM",$J,1,0)=" ",^TMP("FRM",$J,2,0)="There are no encounter forms that meet this criteria.",^TMP("FRMIDX",$J,1)=1,^TMP("FRMIDX",$J,2)=2
54 Q
Note: See TracBrowser for help on using the repository browser.