BQIEHHLP ;VANGENT/HC/BEE-Employee Health Glossary ; 22 Feb 2008 1:27 PM
;;2.3;ICARE MANAGEMENT SYSTEM;;Apr 18, 2012;Build 59
;
GLS(DATA,FAKE) ;EP -- BQI GET EMP HEALTH GLOSSARY
;
NEW UID,II,GLIEN,IEN
;
S UID=$S($G(ZTSK):"Z"_ZTSK,1:$J)
S DATA=$NA(^TMP("BQIEHHLP",UID))
K @DATA
;
S II=0
NEW $ESTACK,$ETRAP S $ETRAP="D ERR^BQIEHHLP D UNWIND^%ZTER" ; SAC 2006 2.2.3.3.2
;
S @DATA@(II)="T32767TEXT"_$C(30)
S GLIEN=$O(^BQI(90508.2,"B","Employee Health","")) I GLIEN="" S BMXSEC="Problem with Employee Health definition in file 90508.2" G DONE
S IEN=0 F S IEN=$O(^BQI(90508.2,GLIEN,1,IEN)) Q:'IEN D
. S II=II+1,@DATA@(II)=$G(^BQI(90508.2,GLIEN,1,IEN,0))
S @DATA@(II)=@DATA@(II)_$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
BQIEHHLP ;VANGENT/HC/BEE-Employee Health Glossary ; 22 Feb 2008 1:27 PM
+1 ;;2.3;ICARE MANAGEMENT SYSTEM;;Apr 18, 2012;Build 59
+2 ;
GLS(DATA,FAKE) ;EP -- BQI GET EMP HEALTH GLOSSARY
+1 ;
+2 NEW UID,II,GLIEN,IEN
+3 ;
+4 SET UID=$SELECT($GET(ZTSK):"Z"_ZTSK,1:$JOB)
+5 SET DATA=$NAME(^TMP("BQIEHHLP",UID))
+6 KILL @DATA
+7 ;
+8 SET II=0
+9 ; SAC 2006 2.2.3.3.2
NEW $ESTACK,$ETRAP
SET $ETRAP="D ERR^BQIEHHLP D UNWIND^%ZTER"
+10 ;
+11 SET @DATA@(II)="T32767TEXT"_$CHAR(30)
+12 SET GLIEN=$ORDER(^BQI(90508.2,"B","Employee Health",""))
IF GLIEN=""
SET BMXSEC="Problem with Employee Health definition in file 90508.2"
GOTO DONE
+13 SET IEN=0
FOR
SET IEN=$ORDER(^BQI(90508.2,GLIEN,1,IEN))
IF 'IEN
QUIT
Begin DoDot:1
+14 SET II=II+1
SET @DATA@(II)=$GET(^BQI(90508.2,GLIEN,1,IEN,0))
End DoDot:1
+15 SET @DATA@(II)=@DATA@(II)_$CHAR(30)
+16 ;
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