VIAA GET PATIENT DATA (3705)    REMOTE PROCEDURE (8994)

Name Value
NAME VIAA GET PATIENT DATA
TAG RTLSPT
ROUTINE VIAAPTR
RETURN VALUE TYPE GLOBAL ARRAY
AVAILABILITY RESTRICTED
WORD WRAP ON TRUE
APP PROXY ALLOWED Yes
DESCRIPTION
This RPC is used by WaveMark to extract patient data from VistA by 
sending either the SSN or the ICN.
INPUT PARAMETER
  • REQDATA
    PARAMETER TYPE:   LITERAL
    MAXIMUM DATA LENGTH:   255
    REQUIRED:   YES
    SEQUENCE NUMBER:   1
    DESCRIPTION:   
    "SSN" if SSN to be passed in DATAID
    "ICN" if ICN to be passed in DATAID
    
  • RETSTA
    PARAMETER TYPE:   LIST
    MAXIMUM DATA LENGTH:   32000
    REQUIRED:   YES
    DESCRIPTION:   
    Results array
    
  • DATAID
    PARAMETER TYPE:   LITERAL
    MAXIMUM DATA LENGTH:   255
    REQUIRED:   YES
    SEQUENCE NUMBER:   2
    DESCRIPTION:   
    SSN or ICN for patient data retrieval
    
RETURN PARAMETER DESCRIPTION
For a successful call execution, the output for the client will be placed
NAME
SEX
DATE OF BIRTH
ROOM-BED
WARD LOCATION
 
If an error occurs during call execution, a message will be returned to
the client using the following format in ^TMP:
 
^TMP(x,$J,0)='-###^reason_for_failure', where '###' is a 3-digit http
in ^TMP(x,$J,0) Where x='VIAASSN' for a Social Security Number call or
status code. The piece 'reason_for_failure' explains what caused the error
in VistA. 
Where x='VIAASSN' for a Social Security Number call or x='VIAAICN' for an
Internal Control Number call.
   an Internal Control Number call.
x='VIAAICN' for an Internal Control Number call. The value is returned via
the variable RETSTA; it will consist of the following fields from the
Patient File #2 using '^' as a delimiter:
 
IEN
SOCIAL SECURITY NUMBER
INTEGRATION CONTROL NUMBER