Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: BQITMPLL

BQITMPLL.m

Go to the documentation of this file.
BQITMPLL ;GDIT/HS/ALA-Get list of templates ; 18 Jul 2013  2:32 PM
 ;;2.3;ICARE MANAGEMENT SYSTEM;**3,4**;Apr 18, 2012;Build 66
 ;
EN(DATA,FAKE) ;EP -- BQI TEMPLATE LIST
 NEW UID,II,TYP,VSIEN,TMTYP,COLM,SYSD
 S UID=$S($G(ZTSK):"Z"_ZTSK,1:$J)
 S DATA=$NA(^TMP("BQITMPLL",UID))
 K @DATA
 ;
 S II=0
 NEW $ESTACK,$ETRAP S $ETRAP="D ERR^BQITMPLL D UNWIND^%ZTER" ; SAC 2006 2.2.3.3.2
 ;
 S @DATA@(II)="T00050LAYOUT_TYPE^T00245COLUMN_RPC^T00245SYSTEM_DEF_RPC"_$C(30)
 ;
 S TYP=""
 F  S TYP=$O(^BQI(90506.5,"C",TYP)) Q:TYP=""  D
 . S VSIEN=$O(^BQI(90506.5,"C",TYP,""))
 . I $P(^BQI(90506.5,VSIEN,0),U,10)=1 Q
 . S TMTYP=$P($G(^BQI(90506.5,VSIEN,2)),U,2) I TMTYP="" Q
 . I $P($G(^BQI(90506.5,VSIEN,2)),U,3)=1 Q
 . S COLM=$G(^BQI(90506.5,VSIEN,3))
 . S SYSD=$G(^BQI(90506.5,VSIEN,4))
 . S II=II+1,@DATA@(II)=TMTYP_U_COLM_U_SYSD_$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