IBDFFT4 ;ALB/MAF - FORMS TRACKING ; NOV 19 1996@800
;;3.0;AUTOMATED INFO COLLECTION SYS;;APR 24, 1997
;
;
S IBDCNT1=IBDCNT1+1
S IBDCNT=IBDCNT+1,VALMCNT=VALMCNT+1
;S X=""
D HDR S IBFLAG=1
W !
S IBDFDIV(IBDFDV)=IBDCNT
W " "
S X="",IBDCNT=IBDCNT+1,VALMCNT=VALMCNT+1
S IBDVAL=IBDFDV
S IBDVAL1=$L(IBDVAL) S IBDVAL1=(80-IBDVAL1)/2 S IBDVAL1=IBDVAL1\1 S X=$$SETSTR^VALM1(" ",X,1,IBDVAL1)
W ?IBDVAL1,$E(IBDVAL,1,25)
S X="",IBDCNT=IBDCNT+1,VALMCNT=VALMCNT+1
W " "
S IBDCNT1=IBDCNT1-1
Q
TMP1 ; -- Set up TMP Array
S ^TMP("FRM",$J,IBDCNT,0)=X,^TMP("FRM",$J,"IDX",VALMCNT,IBDCNT1)=""
S ^TMP("FRMIDX",$J,IBDCNT1)=VALMCNT
Q
;
;
D:'$D(IBFLAG) HDR I $D(IBFLAG) K IBFLAG
I $D(VAUTG) D HEADER2^IBDFFT4
S IBDCNT1=IBDCNT1+1
S IBDCNT=IBDCNT+1,VALMCNT=VALMCNT+1
;S X=""
W !
I $D(VAUTG) S IBDFCLIN(IBDFGR,IBDFCL)=IBDCNT
I '$D(VAUTG) S IBDFCLIN(IBDFDV,IBDFCL)=IBDCNT
W " "
S X="",IBDCNT=IBDCNT+1,VALMCNT=VALMCNT+1
S IBDVAL=IBDFCL
W $E(IBDVAL,1,25)
S IBDCNT1=IBDCNT1-1
Q
S IBDCNT1=IBDCNT1+1
S IBDCNT=IBDCNT+1,VALMCNT=VALMCNT+1
;S X=""
W !
S IBDFGROP(IBDFDV,IBDFGR)=IBDCNT
W " "
S X="",IBDCNT=IBDCNT+1,VALMCNT=VALMCNT+1
;S IBDVAL=$P(^IBD(357.99,IBDFGR,0),"^",1)
S IBDVAL=IBDFGR
S IBDVAL1=$L(IBDVAL) S IBDVAL1=(80-IBDVAL1)/2 S IBDVAL1=IBDVAL1\1 S X=$$SETSTR^VALM1(" ",X,1,IBDVAL1)
W ?IBDVAL1,$E(IBDVAL,1,25)
S X="",IBDCNT=IBDCNT+1,VALMCNT=VALMCNT+1
W " "
S IBDCNT1=IBDCNT1-1
Q
NUL ; -- NULL MESSAGE
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
Q
HDR ; -- Report main heading
S IBDFPAGE=IBDFPAGE+1
W @IOF,"Encounter forms - printed; scanned (to PCE, w/ERrors); pending pages;",?90,IBDFDAT,?120,"PAGE ",IBDFPAGE
W !,"data entry (to PCE,w/ERrors); error detected,not transmitted; not printed."
W !
W ?7,"FORM ID",?17,"APPT. D/T",?34,"PATIENT/CLINIC",?50,"PRINTED",?61,"SCANNED",?72,"STATUS",?82,"CHECK OUT",?96,"EDITED"
Q
PH Q:$O(^UTILITY("VAS",$J,DGJTDV,DGJTPHY,DGJTPT))]"" Q:$O(^UTILITY("VAS",$J,DGJTDV,DGJTPHY,DGJTPT,DFN,IFN))]""
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HIBDFFT4 2307 printed Dec 13, 2024@02:52:37 Page 2
IBDFFT4 ;ALB/MAF - FORMS TRACKING ; NOV 19 1996@800
+1 ;;3.0;AUTOMATED INFO COLLECTION SYS;;APR 24, 1997
+2 ;
+3 ;
+1 SET IBDCNT1=IBDCNT1+1
+2 SET IBDCNT=IBDCNT+1
SET VALMCNT=VALMCNT+1
+3 ;S X=""
+4 DO HDR
SET IBFLAG=1
+5 WRITE !
+6 SET IBDFDIV(IBDFDV)=IBDCNT
+7 WRITE " "
+8 SET X=""
SET IBDCNT=IBDCNT+1
SET VALMCNT=VALMCNT+1
+9 SET IBDVAL=IBDFDV
+10 SET IBDVAL1=$LENGTH(IBDVAL)
SET IBDVAL1=(80-IBDVAL1)/2
SET IBDVAL1=IBDVAL1\1
SET X=$$SETSTR^VALM1(" ",X,1,IBDVAL1)
+11 WRITE ?IBDVAL1,$EXTRACT(IBDVAL,1,25)
+12 SET X=""
SET IBDCNT=IBDCNT+1
SET VALMCNT=VALMCNT+1
+13 WRITE " "
+14 SET IBDCNT1=IBDCNT1-1
+15 QUIT
TMP1 ; -- Set up TMP Array
+1 SET ^TMP("FRM",$JOB,IBDCNT,0)=X
SET ^TMP("FRM",$JOB,"IDX",VALMCNT,IBDCNT1)=""
+2 SET ^TMP("FRMIDX",$JOB,IBDCNT1)=VALMCNT
+3 QUIT
+4 ;
+5 ;
+1 if '$DATA(IBFLAG)
DO HDR
IF $DATA(IBFLAG)
KILL IBFLAG
+2 IF $DATA(VAUTG)
DO HEADER2^IBDFFT4
+3 SET IBDCNT1=IBDCNT1+1
+4 SET IBDCNT=IBDCNT+1
SET VALMCNT=VALMCNT+1
+5 ;S X=""
+6 WRITE !
+7 IF $DATA(VAUTG)
SET IBDFCLIN(IBDFGR,IBDFCL)=IBDCNT
+8 IF '$DATA(VAUTG)
SET IBDFCLIN(IBDFDV,IBDFCL)=IBDCNT
+9 WRITE " "
+10 SET X=""
SET IBDCNT=IBDCNT+1
SET VALMCNT=VALMCNT+1
+11 SET IBDVAL=IBDFCL
+12 WRITE $EXTRACT(IBDVAL,1,25)
+13 SET IBDCNT1=IBDCNT1-1
+14 QUIT
+1 SET IBDCNT1=IBDCNT1+1
+2 SET IBDCNT=IBDCNT+1
SET VALMCNT=VALMCNT+1
+3 ;S X=""
+4 WRITE !
+5 SET IBDFGROP(IBDFDV,IBDFGR)=IBDCNT
+6 WRITE " "
+7 SET X=""
SET IBDCNT=IBDCNT+1
SET VALMCNT=VALMCNT+1
+8 ;S IBDVAL=$P(^IBD(357.99,IBDFGR,0),"^",1)
+9 SET IBDVAL=IBDFGR
+10 SET IBDVAL1=$LENGTH(IBDVAL)
SET IBDVAL1=(80-IBDVAL1)/2
SET IBDVAL1=IBDVAL1\1
SET X=$$SETSTR^VALM1(" ",X,1,IBDVAL1)
+11 WRITE ?IBDVAL1,$EXTRACT(IBDVAL,1,25)
+12 SET X=""
SET IBDCNT=IBDCNT+1
SET VALMCNT=VALMCNT+1
+13 WRITE " "
+14 SET IBDCNT1=IBDCNT1-1
+15 QUIT
NUL ; -- NULL MESSAGE
+1 SET ^TMP("FRM",$JOB,1,0)=" "
SET ^TMP("FRM",$JOB,2,0)="There are no encounter forms that meet this criteria."
SET ^TMP("FRMIDX",$JOB,1)=1
SET ^TMP("FRMIDX",$JOB,2)=2
+2 QUIT
HDR ; -- Report main heading
+1 SET IBDFPAGE=IBDFPAGE+1
+2 WRITE @IOF,"Encounter forms - printed; scanned (to PCE, w/ERrors); pending pages;",?90,IBDFDAT,?120,"PAGE ",IBDFPAGE
+3 WRITE !,"data entry (to PCE,w/ERrors); error detected,not transmitted; not printed."
+4 WRITE !
+5 WRITE ?7,"FORM ID",?17,"APPT. D/T",?34,"PATIENT/CLINIC",?50,"PRINTED",?61,"SCANNED",?72,"STATUS",?82,"CHECK OUT",?96,"EDITED"
+6 QUIT
PH if $ORDER(^UTILITY("VAS",$JOB,DGJTDV,DGJTPHY,DGJTPT))]""
QUIT
if $ORDER(^UTILITY("VAS",$JOB,DGJTDV,DGJTPHY,DGJTPT,DFN,IFN))]""
QUIT