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

BQIUG1.m

Go to the documentation of this file.
  1. BQIUG1 ;PRXM/HC/DB - iCare GUI Utilities ; 17 Oct 2005 3:17 PM
  1. ;;2.1;ICARE MANAGEMENT SYSTEM;;Feb 07, 2011
  1. ;
  1. ; This is a utility program containing special function calls
  1. ; needed to support the iCare GUI.
  1. Q
  1. ;
  1. PLID(OWNR,PLIEN) ;EP - Panel Identifier for the GUI
  1. ;
  1. ;Description
  1. ; Returns a unique identifier for the panel using the following algorithm:
  1. ; the OWNER_IEN concatenated with the PANEL_IEN
  1. ; padded out to 4 with leading zeroes.
  1. ;Input:
  1. ; OWNR - Owner internal entry number
  1. ; PLIEN - Panel internal entry number
  1. ;Output:
  1. ; PLID - Unique Panel identifier
  1. ;
  1. N PLID
  1. I $G(OWNR)="" Q ""
  1. I $G(PLIEN)="" Q ""
  1. ;
  1. S PLID=OWNR_$E("0000",1,4-$L(PLIEN))_PLIEN
  1. Q PLID