SDOE FIND LAST STANDALONE (127)    REMOTE PROCEDURE (8994)

Name Value
NAME SDOE FIND LAST STANDALONE
TAG GETLAST
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
last standalone add/edit for a patient in a specified date range.

Standalone encounter is an encounter with no parent and the
originating process is 'Stop Code Addition'.
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.
    
    
  • SEARCH FLAGS
    PARAMETER TYPE:   LITERAL
    REQUIRED:   YES
    SEQUENCE NUMBER:   3
    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 last standalone encounter found
            after date

 <null>   - if no encounter exists