source: WorldVistAEHR/trunk/r/AUTOMATED_INFO_COLLECTION_SYS-IBD/IBDFFT4.m@ 975

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

initial load of WorldVistAEHR

File size: 2.2 KB
RevLine 
[613]1IBDFFT4 ;ALB/MAF - FORMS TRACKING ; NOV 19 1996@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 D HDR S IBFLAG=1
10 W !
11 S IBDFDIV(IBDFDV)=IBDCNT
12 W " "
13 S X="",IBDCNT=IBDCNT+1,VALMCNT=VALMCNT+1
14 S IBDVAL=IBDFDV
15 S IBDVAL1=$L(IBDVAL) S IBDVAL1=(80-IBDVAL1)/2 S IBDVAL1=IBDVAL1\1 S X=$$SETSTR^VALM1(" ",X,1,IBDVAL1)
16 W ?IBDVAL1,$E(IBDVAL,1,25)
17 S X="",IBDCNT=IBDCNT+1,VALMCNT=VALMCNT+1
18 W " "
19 S IBDCNT1=IBDCNT1-1
20 Q
21TMP1 ; -- Set up TMP Array
22 S ^TMP("FRM",$J,IBDCNT,0)=X,^TMP("FRM",$J,"IDX",VALMCNT,IBDCNT1)=""
23 S ^TMP("FRMIDX",$J,IBDCNT1)=VALMCNT
24 Q
25 ;
26 ;
27HEADER1 ; -- Set up header line for the display
28 D:'$D(IBFLAG) HDR I $D(IBFLAG) K IBFLAG
29 I $D(VAUTG) D HEADER2^IBDFFT4
30 S IBDCNT1=IBDCNT1+1
31 S IBDCNT=IBDCNT+1,VALMCNT=VALMCNT+1
32 ;S X=""
33 W !
34 I $D(VAUTG) S IBDFCLIN(IBDFGR,IBDFCL)=IBDCNT
35 I '$D(VAUTG) S IBDFCLIN(IBDFDV,IBDFCL)=IBDCNT
36 W " "
37 S X="",IBDCNT=IBDCNT+1,VALMCNT=VALMCNT+1
38 S IBDVAL=IBDFCL
39 W $E(IBDVAL,1,25)
40 S IBDCNT1=IBDCNT1-1
41 Q
42HEADER2 ; -- Set up header line for the division display
43 S IBDCNT1=IBDCNT1+1
44 S IBDCNT=IBDCNT+1,VALMCNT=VALMCNT+1
45 ;S X=""
46 W !
47 S IBDFGROP(IBDFDV,IBDFGR)=IBDCNT
48 W " "
49 S X="",IBDCNT=IBDCNT+1,VALMCNT=VALMCNT+1
50 ;S IBDVAL=$P(^IBD(357.99,IBDFGR,0),"^",1)
51 S IBDVAL=IBDFGR
52 S IBDVAL1=$L(IBDVAL) S IBDVAL1=(80-IBDVAL1)/2 S IBDVAL1=IBDVAL1\1 S X=$$SETSTR^VALM1(" ",X,1,IBDVAL1)
53 W ?IBDVAL1,$E(IBDVAL,1,25)
54 S X="",IBDCNT=IBDCNT+1,VALMCNT=VALMCNT+1
55 W " "
56 S IBDCNT1=IBDCNT1-1
57 Q
58NUL ; -- NULL MESSAGE
59 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
60 Q
61HDR ; -- Report main heading
62 S IBDFPAGE=IBDFPAGE+1
63 W @IOF,"Encounter forms - printed; scanned (to PCE, w/ERrors); pending pages;",?90,IBDFDAT,?120,"PAGE ",IBDFPAGE
64 W !,"data entry (to PCE,w/ERrors); error detected,not transmitted; not printed."
65 W !
66 W ?7,"FORM ID",?17,"APPT. D/T",?34,"PATIENT/CLINIC",?50,"PRINTED",?61,"SCANNED",?72,"STATUS",?82,"CHECK OUT",?96,"EDITED"
67 Q
68PH Q:$O(^UTILITY("VAS",$J,DGJTDV,DGJTPHY,DGJTPT))]"" Q:$O(^UTILITY("VAS",$J,DGJTDV,DGJTPHY,DGJTPT,DFN,IFN))]""
Note: See TracBrowser for help on using the repository browser.