SCMC GET PATIENT ENCOUNTERS (3400)    REMOTE PROCEDURE (8994)

Name Value
NAME SCMC GET PATIENT ENCOUNTERS
TAG ENCT
ROUTINE SCMCENCT
RETURN VALUE TYPE GLOBAL ARRAY
AVAILABILITY RESTRICTED
INACTIVE ACTIVE
WORD WRAP ON TRUE
VERSION 1
APP PROXY ALLOWED Yes
DESCRIPTION
This RPC will return an array of patient encounter data. See return 
parameter description below.
INPUT PARAMETER
  • DFN
    PARAMETER TYPE:   LITERAL
    MAXIMUM DATA LENGTH:   20
    REQUIRED:   NO
    SEQUENCE NUMBER:   1
    DESCRIPTION:   
    Patient DFN or null to examine all patients.
    
  • NUMBER OF DAYS
    PARAMETER TYPE:   LITERAL
    MAXIMUM DATA LENGTH:   4
    REQUIRED:   NO
    SEQUENCE NUMBER:   2
    DESCRIPTION:   
    Number of days back (from today) to look for an encounter.
    Default = 30
    
  • END DAYS
    PARAMETER TYPE:   LITERAL
    MAXIMUM DATA LENGTH:   4
    REQUIRED:   NO
    SEQUENCE NUMBER:   3
    DESCRIPTION:   
    Number of days back (from today) to stop looking for an encounter.
    Default = 0
    This and the NUMBER OF DAYS parameter allows looking for a block of days 
    in the past.
    
RETURN PARAMETER DESCRIPTION
Returns an array with these elements in each entry
7   Checkout Completed Date/Time  409.68/.07
8   Encounter IEN                 409.68/IEN
9   Encounter Parent IEN          409.68/.06
10  Visit IEN                     9000010/IEN
11  Visit Parent IEN              9000010/.12
12  Hospital Location Type        9000010/.22->44/2     C,M,W,Z,N,F,I,OR
13  Hosp. Loc. Non-Count Clinic   9000010/.22->44/2502  Y,N
14  Visit Service Category        9000010/.07    A,H,I,C,T,N,S,O,E,R,D,X
15  Visit Patient Status          9000010/15002 1,0
 
1^2^3^4^5^6^7^8^9^10^11^12^13^14^15
Errors:
If DFN is passed:
-1^Patient was not found.
If END DAYS parameter is passed:
-1^End Days must be less than Number of Days
Element                           Source
1   Patient DFN                   parameter or 409.68/.02
2   Encounter Date/Time           409.68/.01
3   Provider IEN                  9000010.06/.01
4   Primary/Secondary             9000010.06/.04      P, S
5   Stop Code                     409.68/.03->40.7/1  AMIS stop code
6   Encounter Type                9000010/15003       P, O, S, A, C