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