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

HLLOG.m

Go to the documentation of this file.
  1. HLLOG ;OIFO-O/JLG - (LOG API) ;11/24/2003 16:48
  1. ;;1.6;HEALTH LEVEL SEVEN;**109**;Oct 13,1995
  1. Q
  1. ;
  1. ENTERING(RTN,SUB,COOKIE) ;
  1. ; RTN - the routine from which called
  1. ; SUB - the subroutine from which called
  1. ; COOKIE - current session id as $H; to be used subsequently
  1. ; in EXITING^HLLOG
  1. ;
  1. N SITE,XTMP
  1. Q:'$$ENABLED
  1. Q:$G(RTN)="" Q:$G(SUB)="" Q:$G(COOKIE)=""
  1. S SITE=+$P($$SITE^VASITE,U,3)
  1. S XTMP="HL LOG "_DT
  1. S:'$D(^XTMP(XTMP,0)) ^XTMP(XTMP,0)=$$FMADD^XLFDT(DT,30)_U_$$NOW^XLFDT_U_"Log data created by call to HLLOG"
  1. S COOKIE=$H
  1. S ^XTMP(XTMP,SITE,RTN,SUB,$J,COOKIE,"ENTER")=$$STATS^%ZOSVKR
  1. Q
  1. ;
  1. EXITING(RTN,SUB,COOKIE) ;
  1. ; RTN - the routine from which called
  1. ; SUB - the subroutine from which called
  1. ; COOKIE - current session id as $H; previously used in ENTERING^HLLOG
  1. ;
  1. Q:'$$ENABLED
  1. Q:$G(RTN)="" Q:$G(SUB)="" Q:$G(COOKIE)=""
  1. S SITE=+$P($$SITE^VASITE,U,3)
  1. S XTMP="HL LOG "_DT
  1. S:'$D(^XTMP(XTMP,0)) ^XTMP(XTMP,0)=$$FMADD^XLFDT(DT,30)_U_$$NOW^XLFDT_"U"_"Log data created by call to HLLOG"
  1. S ^XTMP(XTMP,SITE,RTN,SUB,$J,COOKIE,"EXIT")=$$STATS^%ZOSVKR_U_$$HDIFF^XLFDT($H,COOKIE,2)
  1. Q
  1. ;
  1. ENABLED() ;
  1. ; check that this functionality is enabled
  1. ;Q $P(^HLCS(869.3,1,0),U,6)
  1. Q 1
  1. ;