SCAPMC3 ;ALB/REW - Team API's:TMPT ; 6/3/99 3:18pm
Source file <SCAPMC3.m>
Name | Comments | DBIA/ICR reference |
---|---|---|
TMPT(DFN,SCDATES,SCPURPA,SCLIST,SCERR) | ; -- list of teams for a patient
; input: ; DFN = ien of PATIENT file [required] ; 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("SCPT",$J)] ; ; SCERR = array NAME to store error messages. ; [ex. ^TMP("ORXX",$J)] |
|
ST | ||
PRACQ | ||
BLD(SCLIST,SCPTA,SCPTA0) | ; -- build list of patient's teams
|
|
OKDATA() | ;setup/check variables
|