BQIMUCQH ;VNGT/HS/ALA-Hospital Clinical Qual ; 05 May 2011 2:28 PM
;;2.2;ICARE MANAGEMENT SYSTEM;;Jul 28, 2011;Build 37
;
;
EN(DATA,FAKE) ;EP - BQI ACTIVATE HOSP CQ
NEW UID,II
S UID=$S($G(ZTSK):"Z"_ZTSK,1:$J)
S DATA=$NA(^TMP("BQIMUCQH",UID))
K @DATA
S II=0,TYPE=$G(TYPE,"")
NEW $ESTACK,$ETRAP S $ETRAP="D ERR^BQIMUCQH D UNWIND^%ZTER" ; SAC 2006 2.2.3.3.2
;
S HDR="I00010RESULT"
S @DATA@(II)=HDR_$C(30)
S RESULT=-1
I $$PATCH^XPDUTL("BGP*11.0*3") D
. I $P($G(^BQI(90508,1,0)),U,6)="" Q
. S RESULT=1
S II=II+1,@DATA@(II)=RESULT_$C(30)
;
DONE ;
S II=II+1,@DATA@(II)=$C(31)
Q
;
ERR ;
D ^%ZTER
NEW Y,ERRDTM
S Y=$$NOW^XLFDT() X ^DD("DD") S ERRDTM=Y
S BMXSEC="Recording that an error occurred at "_ERRDTM
I $D(II),$D(DATA) S II=II+1,@DATA@(II)=$C(31)
Q
BQIMUCQH ;VNGT/HS/ALA-Hospital Clinical Qual ; 05 May 2011 2:28 PM
+1 ;;2.2;ICARE MANAGEMENT SYSTEM;;Jul 28, 2011;Build 37
+2 ;
+3 ;
EN(DATA,FAKE) ;EP - BQI ACTIVATE HOSP CQ
+1 NEW UID,II
+2 SET UID=$SELECT($GET(ZTSK):"Z"_ZTSK,1:$JOB)
+3 SET DATA=$NAME(^TMP("BQIMUCQH",UID))
+4 KILL @DATA
+5 SET II=0
SET TYPE=$GET(TYPE,"")
+6 ; SAC 2006 2.2.3.3.2
NEW $ESTACK,$ETRAP
SET $ETRAP="D ERR^BQIMUCQH D UNWIND^%ZTER"
+7 ;
+8 SET HDR="I00010RESULT"
+9 SET @DATA@(II)=HDR_$CHAR(30)
+10 SET RESULT=-1
+11 IF $$PATCH^XPDUTL("BGP*11.0*3")
Begin DoDot:1
+12 IF $PIECE($GET(^BQI(90508,1,0)),U,6)=""
QUIT
+13 SET RESULT=1
End DoDot:1
+14 SET II=II+1
SET @DATA@(II)=RESULT_$CHAR(30)
+15 ;
DONE ;
+1 SET II=II+1
SET @DATA@(II)=$CHAR(31)
+2 QUIT
+3 ;
ERR ;
+1 DO ^%ZTER
+2 NEW Y,ERRDTM
+3 SET Y=$$NOW^XLFDT()
XECUTE ^DD("DD")
SET ERRDTM=Y
+4 SET BMXSEC="Recording that an error occurred at "_ERRDTM
+5 IF $DATA(II)
IF $DATA(DATA)
SET II=II+1
SET @DATA@(II)=$CHAR(31)
+6 QUIT