SDOE FIND FIRST ENCOUNTER (126)    REMOTE PROCEDURE (8994)

Name Value
NAME SDOE FIND FIRST ENCOUNTER
TAG EXOE
ROUTINE SDOERPC
RETURN VALUE TYPE SINGLE VALUE
AVAILABILITY PUBLIC
DESCRIPTION
This Remote Procedure Call (RPC) returns the internal entry number
of an OUTPATIENT ENCOUNTER file (#409.68) entry for the first encounter
for a patient in a specified date range.
INPUT PARAMETER
  • PATIENT ID
    PARAMETER TYPE:   LITERAL
    REQUIRED:   YES
    SEQUENCE NUMBER:   1
    DESCRIPTION:   
    This is the internal entry number of an entry in the PATIENT [#2 - ^DPT] file.
    
  • BEGIN DATE/TIME
    PARAMETER TYPE:   LITERAL
    REQUIRED:   YES
    SEQUENCE NUMBER:   2
    DESCRIPTION:   
    Beginning date and time in VA FileMan format.
    
    Time is optional.
    
  • END DATE/TIME
    PARAMETER TYPE:   LITERAL
    REQUIRED:   YES
    SEQUENCE NUMBER:   3
    DESCRIPTION:   
    End date and time in VA FileMan format.
    
    Time is optional.
    
    
  • SEARCH FLAGS
    PARAMETER TYPE:   LITERAL
    REQUIRED:   YES
    SEQUENCE NUMBER:   4
    DESCRIPTION:   
    This parameter allows developers to set specific flags that are
    used as an API searches encounter records. The flags indicate how
    the API should function.
    
     Character  Description
     ---------  -----------
         C      Use only completed encounters
    
RETURN PARAMETER DESCRIPTION
<pointer> - Outpatient Encounter ID for first encounter found in date range

 <null>   - if no encounter exists