SDEC SEARCHAV (3487)    REMOTE PROCEDURE (8994)

Name Value
NAME SDEC SEARCHAV
TAG SEARCHAV
ROUTINE SDEC
RETURN VALUE TYPE GLOBAL ARRAY
AVAILABILITY RESTRICTED
INACTIVE ACTIVE
WORD WRAP ON FALSE
DESCRIPTION
Searches availability database for availability blocks between
     SDECSTRT and SDECEND for each of the resources in SDECRES.
The av blocks must be one of the types in SDECTYPES, must be
 AM or PM depending on value in SDECAMPM and
 must be on one of the weekdays listed in SDECWKDY.
INPUT PARAMETER
  • SDECRES
    PARAMETER TYPE:   LITERAL
    REQUIRED:   YES
    SEQUENCE NUMBER:   1
    DESCRIPTION:   
    Pipe | delimited list of resource names
    
  • SDECSTRT
    PARAMETER TYPE:   LITERAL
    REQUIRED:   NO
    SEQUENCE NUMBER:   2
    DESCRIPTION:   
    Begin date in FM format
    
  • SDECEND
    PARAMETER TYPE:   LITERAL
    REQUIRED:   NO
    SEQUENCE NUMBER:   3
    DESCRIPTION:   
    End date in FM Format
    
  • SDECTYPES
    PARAMETER TYPE:   LITERAL
    REQUIRED:   NO
    SEQUENCE NUMBER:   4
    DESCRIPTION:   
    Pipe | delimited list of access type IDs pointers to SDEC ACCESS TYPE file
    
  • SDECAMPM
    PARAMETER TYPE:   LITERAL
    REQUIRED:   NO
    SEQUENCE NUMBER:   5
    DESCRIPTION:   
    "AM" for am-only, "PM" for pm-only, "BOTH" for both
    
  • SDECWKDY
    PARAMETER TYPE:   LITERAL
    REQUIRED:   NO
    SEQUENCE NUMBER:   6
    DESCRIPTION:   
    "" if any weekday, else |-delimited list of weekdays
    
RETURN PARAMETER DESCRIPTION
recordset containing the start times of availability blocks
     1. AVAILABILITY DATE (no time in external format
     2. Schedule Times - separated by ;;
       each ;; piece contains the following :: pieces:
       1. Schedule Time - 4 character time representation - ie 0800
       2. Number of Patients - Numeric 1-20
       3. Day of Week text
       4. Number of Day text
   AVAILABILITYF - AVAILABLITY FLAG - Date in external format
  meeting the search criteria. Each Array entry contains the
     following ^ pieces:
   RESOURCENAME
   DATE
   ACCESSTYPE
   COMMENT
   AVAILABILITY - separated by pipe | 
     Each pipe piece contains the following tilde ~ pieces: