DSIC GET VISITS ONLY (1599)    REMOTE PROCEDURE (8994)

Name Value
NAME DSIC GET VISITS ONLY
TAG VST
ROUTINE DSICVT0
RETURN VALUE TYPE GLOBAL ARRAY
AVAILABILITY AGREEMENT
WORD WRAP ON TRUE
DESCRIPTION
Using SELECTED^VSIT this retrieves all visits for the date range.
INPUT PARAMETER
  • DFN
    PARAMETER TYPE:   LITERAL
    MAXIMUM DATA LENGTH:   12
    REQUIRED:   YES
    SEQUENCE NUMBER:   1
    DESCRIPTION:   
    This is the pointer value to the Patient file
    
  • BEG
    PARAMETER TYPE:   LITERAL
    MAXIMUM DATA LENGTH:   14
    REQUIRED:   NO
    SEQUENCE NUMBER:   2
    DESCRIPTION:   
    Optional - this is the starting date for the search in internal fileman
    date/time format of the visit.  If not passed, then a date of T-365 will
    be used.
    
  • END
    PARAMETER TYPE:   LITERAL
    MAXIMUM DATA LENGTH:   14
    REQUIRED:   NO
    SEQUENCE NUMBER:   3
    DESCRIPTION:   
    Optional - this is the ending date/time for the search in internal fileman
    format.  If not passed, then a date of DT+.5 will be used.
    
  • ZLOC
    PARAMETER TYPE:   LIST
    MAXIMUM DATA LENGTH:   15
    REQUIRED:   NO
    SEQUENCE NUMBER:   4
    DESCRIPTION:   
    Kept for backward compatibility.  Do not use.  See SCR parameter.
     
    Optional - you can look for visits for specific locations (file 44).  The
    ZLOC array is expected to be in the format ZLOC(ien)="" where ien is the
    pointer to file 44.
    
  • CAT
    PARAMETER TYPE:   LITERAL
    MAXIMUM DATA LENGTH:   1
    REQUIRED:   NO
    SEQUENCE NUMBER:   5
    DESCRIPTION:   
    This flag controls whether service categories should be screened or not.
    It is optional, the default value is to screen entries.
     
    I +CAT then do not screen entries.
    I '$G(CAT) then screen entries to exclude those whose service category is
    E,D,X,N, or C
    
  • SCR
    PARAMETER TYPE:   LIST
    MAXIMUM DATA LENGTH:   250
    REQUIRED:   NO
    SEQUENCE NUMBER:   6
    DESCRIPTION:   
    SCR - optional - added 7/3/2002 - sgm
          passed by reference
          format:  SCR(subscript) = code ^ value   where
                   code = C for hospital location #44
                          D for medical center division #40.8
                          S for 3-digit stop code from file 40.7 (not ien)
                   value = for codes C,D - any unique lookup value or ien
                           for code S - 3-digit stop code (not ien to 40.7)
    
RETURN PARAMETER DESCRIPTION
The data is passed to the broker in the ^TMP("DSIC",$J,"VSIT",#) where
Or it will return
   -1^No Patient DFN   or
   -1^No visits found
^TMP("DSIC",$J,"VSIT",#) = p1^p2^p3^p4^p5^p6 where
   p1 := A (if admission)  or  V (if visit)
   p2 := visit file pointer (#9000010)
   p3 := visit/admission external date/time
   p4 := location name (file 44)
   p5 := visit/admission internal fileman date/time
   p6 := pointer to location (file 44)