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

BQILYUTL.m

Go to the documentation of this file.
BQILYUTL ;PRXM/HC/ALA-Layout Template Utilities ; 04 Jun 2007  4:03 PM
 ;;2.3;ICARE MANAGEMENT SYSTEM;;Apr 18, 2012;Build 59
 ;
DEF(OWNR,TYPE) ;EP - Get the IEN of the default layout template
 ; Input
 ;   TYPE - Type of default
 ;   OWNR - User
 ;
 NEW IEN,MIEN
 S IEN=0,MIEN=""
 F  S IEN=$O(^BQICARE(OWNR,15,"C",TYPE,IEN)) Q:'IEN  D
 . I $P(^BQICARE(OWNR,15,IEN,0),U,3)'="Y" Q
 . S MIEN=IEN
 Q MIEN
 ;
TPN(OWNR,TEMPL) ;EP - Get the IEN of the template
 I $G(TEMPL)="" Q ""
 ;
 NEW DIC,X,Y
 S DIC="^BQICARE("_OWNR_",15,",DIC(0)="X"
 S X=TEMPL
 D ^DIC
 I Y=-1 Q ""
 Q:+Y +Y
 Q ""