BUD7BAN ; IHS/CMI/LAB - Banner routine for UDS package ;
;;10.0;IHS/RPMS UNIFORM DATA SYSTEM;;FEB 04, 2016;Build 50
;
;Writes all menu banners.
EP ;EP
V ; GET VERSION
S BUD("VERSION")="",BUD("VERSION")=$O(^DIC(9.4,"C","BUD",BUD("VERSION"))),BUD("VERSION")=^DIC(9.4,BUD("VERSION"),"VERSION")
S BUD("VERSION")="2.0 Patch 4"
I $G(BUDTEXT)="" S BUDTEXT="TEXT",BUDLINE=4 G PRINT
S BUDTEXT="TEXT"_BUDTEXT
F BUDJ=1:1 S BUDX=$T(@BUDTEXT+BUDJ),BUDX=$P(BUDX,";;",2) Q:BUDX="QUIT"!(BUDX="") S BUDLINE=BUDJ
PRINT W:$D(IOF) @IOF
F BUDJ=1:1:BUDLINE S BUDX=$T(@BUDTEXT+BUDJ),BUDX=$P(BUDX,";;",2) W !?80-$L(BUDX)\2,BUDX K BUDX
S X=$P(^DIC(4,DUZ(2),0),U)
W !?80-$L(X)/2,X
W !?80-(8+$L(BUD("VERSION")))/2,"Version ",BUD("VERSION")
XIT ;
K DIC,DA,X,Y,%Y,%,BUDJ,BUDX,BUDTEXT,BUDLINE
Q
TEXT ;uds
;;********************************************
;;** RPMS UNIFORM DATA SYSTEM (UDS) **
;;** 2007 **
;;********************************************
;;QUIT
TEXTR ;
;;**************************************
;;** RPMS UNIFORM DATA SYSTEM (UDS) **
;;** 2007 Reports **
;;**************************************
;;QUIT
TEXTM ;manager utilities
;;**************************************
;;** RPMS UNIFORM DATA SYSTEM (UDS) **
;;** 2007 Manager Utilities **
;;**************************************
;;QUIT
TEXTL ;;
;;**************************************
;;** RPMS UNIFORM DATA SYSTEM (UDS) **
;;** 2007 Patient and Provider Lists **
;;**************************************
;;QUIT
BUD7BAN ; IHS/CMI/LAB - Banner routine for UDS package ;
+1 ;;10.0;IHS/RPMS UNIFORM DATA SYSTEM;;FEB 04, 2016;Build 50
+2 ;
+3 ;Writes all menu banners.
EP ;EP
V ; GET VERSION
+1 SET BUD("VERSION")=""
SET BUD("VERSION")=$ORDER(^DIC(9.4,"C","BUD",BUD("VERSION")))
SET BUD("VERSION")=^DIC(9.4,BUD("VERSION"),"VERSION")
+2 SET BUD("VERSION")="2.0 Patch 4"
+3 IF $GET(BUDTEXT)=""
SET BUDTEXT="TEXT"
SET BUDLINE=4
GOTO PRINT
+4 SET BUDTEXT="TEXT"_BUDTEXT
+5 FOR BUDJ=1:1
SET BUDX=$TEXT(@BUDTEXT+BUDJ)
SET BUDX=$PIECE(BUDX,";;",2)
IF BUDX="QUIT"!(BUDX="")
QUIT
SET BUDLINE=BUDJ
PRINT IF $DATA(IOF)
WRITE @IOF
+1 FOR BUDJ=1:1:BUDLINE
SET BUDX=$TEXT(@BUDTEXT+BUDJ)
SET BUDX=$PIECE(BUDX,";;",2)
WRITE !?80-$LENGTH(BUDX)\2,BUDX
KILL BUDX
+2 SET X=$PIECE(^DIC(4,DUZ(2),0),U)
+3 WRITE !?80-$LENGTH(X)/2,X
+4 WRITE !?80-(8+$LENGTH(BUD("VERSION")))/2,"Version ",BUD("VERSION")
XIT ;
+1 KILL DIC,DA,X,Y,%Y,%,BUDJ,BUDX,BUDTEXT,BUDLINE
+2 QUIT
TEXT ;uds
+1 ;;********************************************
+2 ;;** RPMS UNIFORM DATA SYSTEM (UDS) **
+3 ;;** 2007 **
+4 ;;********************************************
+5 ;;QUIT
TEXTR ;
+1 ;;**************************************
+2 ;;** RPMS UNIFORM DATA SYSTEM (UDS) **
+3 ;;** 2007 Reports **
+4 ;;**************************************
+5 ;;QUIT
TEXTM ;manager utilities
+1 ;;**************************************
+2 ;;** RPMS UNIFORM DATA SYSTEM (UDS) **
+3 ;;** 2007 Manager Utilities **
+4 ;;**************************************
+5 ;;QUIT
TEXTL ;;
+1 ;;**************************************
+2 ;;** RPMS UNIFORM DATA SYSTEM (UDS) **
+3 ;;** 2007 Patient and Provider Lists **
+4 ;;**************************************
+5 ;;QUIT