BMCRD1 ; IHS/PHXAO/TMJ - NO DESCRIPTION PROVIDED ;
;;4.0;REFERRED CARE INFO SYSTEM;;JAN 09, 2006
START ;
D GETREF
Q:BMCQ
D BROWSE
D XIT
Q
;
GETREF ; GET REFERRAL
S BMCQ=1
S DIC="^BMCREF(",DIC(0)="AEMQ" D DIC^BMCFMC
Q:Y<0
S BMCRIEN=+Y
S BMCQ=0
Q
;
BROWSE ;
S XBRP="DISP^BMCRD1"
S XBRC="",XBRX="XIT^BMCRD1",XBIOP=0 D ^XBDBQUE
;D VIEWR^XBLM("^BMCVLP")
Q
XIT ;EP
D ^BMCKILL
K ^TMP("BMCRDSP",$J)
Q
DISP ;EP
D EN^VALM("BMC RECORD DISPLAY")
D CLEAR^VALM1
Q
HDR ; -- header code
S VALMHDR(1)="User: "_$P(^VA(200,DUZ,0),U)
Q
;
INIT ; -- init variables and list array
D EP^BMCRD(BMCRIEN)
S VALMCNT=$O(^TMP("BMCRDSP",$J,""),-1)
Q
;
HELP ; -- help code
S X="?" D DISP^XQORM1 W !!
Q
;
EXIT ; -- exit code
Q
BMCRD1 ; IHS/PHXAO/TMJ - NO DESCRIPTION PROVIDED ;
+1 ;;4.0;REFERRED CARE INFO SYSTEM;;JAN 09, 2006
START ;
+1 DO GETREF
+2 IF BMCQ
QUIT
+3 DO BROWSE
+4 DO XIT
+5 QUIT
+6 ;
GETREF ; GET REFERRAL
+1 SET BMCQ=1
+2 SET DIC="^BMCREF("
SET DIC(0)="AEMQ"
DO DIC^BMCFMC
+3 IF Y<0
QUIT
+4 SET BMCRIEN=+Y
+5 SET BMCQ=0
+6 QUIT
+7 ;
BROWSE ;
+1 SET XBRP="DISP^BMCRD1"
+2 SET XBRC=""
SET XBRX="XIT^BMCRD1"
SET XBIOP=0
DO ^XBDBQUE
+3 ;D VIEWR^XBLM("^BMCVLP")
+4 QUIT
XIT ;EP
+1 DO ^BMCKILL
+2 KILL ^TMP("BMCRDSP",$JOB)
+3 QUIT
DISP ;EP
+1 DO EN^VALM("BMC RECORD DISPLAY")
+2 DO CLEAR^VALM1
+3 QUIT
HDR ; -- header code
+1 SET VALMHDR(1)="User: "_$PIECE(^VA(200,DUZ,0),U)
+2 QUIT
+3 ;
INIT ; -- init variables and list array
+1 DO EP^BMCRD(BMCRIEN)
+2 SET VALMCNT=$ORDER(^TMP("BMCRDSP",$JOB,""),-1)
+3 QUIT
+4 ;
HELP ; -- help code
+1 SET X="?"
DO DISP^XQORM1
WRITE !!
+2 QUIT
+3 ;
EXIT ; -- exit code
+1 QUIT