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

SDAMEVT1.m

Go to the documentation of this file.
  1. SDAMEVT1 ;ALB/MJK - Appt Event Driver Utilities ; 12/1/91
  1. ;;5.3;Scheduling;**15,63,132,1015**;Aug 13, 1993;Build 21
  1. ;
  1. DIV(DIV) ; -- division name
  1. ; input: DIV := ifn of med ctr div
  1. ;
  1. Q $S('$P($G(^DG(43,1,"GL")),U,2):"",$D(^DG(40.8,+DIV,0)):" ("_$P(^(0),U)_")",1:"")
  1. ;
  1. OENUL(SDCAP,SDHDL) ; -- null befores or afters
  1. N SDOE,SDORG
  1. S SDORG=0
  1. F S SDORG=$O(^TMP("SDEVT",$J,SDHDL,SDORG)) Q:'SDORG D
  1. .S SDOE=0
  1. .F S SDOE=$O(^TMP("SDEVT",$J,SDHDL,SDORG,"SDOE",SDOE)) Q:'SDOE D
  1. ..I $D(^TMP("SDEVT",$J,SDHDL,SDORG,"SDOE",SDOE,0,SDCAP)) S ^(SDCAP)=""
  1. Q