SCAPMC4 ;ALB/REW - Team API's:TMINST ; JUN 30, 1995
Source file <SCAPMC4.m>
Name | Comments | DBIA/ICR reference |
---|---|---|
TMINST(SCINST,SCDATES,SCPURPA,SCLIST,SCERR) | ; -- list of teams for institution
; input: ; SCINST = ien of INSTITUTION file (#4) ; SCDATES("BEGIN") = begin date to search (inclusive) ; [default: TODAY] ; ("END") = end date to search (inclusive) ; [default: TODAY] ; ("INCL") = 1: only use patients who were assigned to ; team for entire date range ; 0: anytime in date range ; [default: 1] ; SCPURPA -array of pointers to team purpose file 403.47 ; if none are defined - returns all teams ; if @SCPURPA@('exclude') is defined - exclude listed teams ; SCLIST -array name to store list ; [ex. ^TMP("SCTM",$J)] ; ; SCERR = array NAME to store error messages. ; [ex. ^TMP("ORXX",$J)] |
|
ST | ||
PRACQ | ||
BLDTM(SCTM,SCDATES,ACTHIST,SCLIST,SCERR) | ;build team list
; ACTHIST is per $$acthist - dates may be tighter than team activation ; e.g. practitioners' dates will be dates they not team is active |
|
OKDATA() | ;check/setup variables - return 1 if ok; 0 if error
|