PSB SCANPT (359)    REMOTE PROCEDURE (8994)

Name Value
NAME PSB SCANPT
TAG SCANPT
ROUTINE PSBRPC
RETURN VALUE TYPE ARRAY
AVAILABILITY PUBLIC
VERSION 3
DESCRIPTION
This RPC is used to validate the data scanned in at the scan patient 
wristband prompt of the mnOpenPatient component.  The value passed in 
is either the full SSN scanned in from the patient wristband -or- the 
1U4N syntax of the patient lookup.  In either case the call must 
return only one patient from the lookup.  If the 1U4N syntax is used 
and multiple patients are found the call returns an error.  If only 
one patient is found the RESULTS( ) array is loaded with the patient 
data and passed back to the client for verification.
INPUT PARAMETER
  • PSBDATA
    PARAMETER TYPE:   LITERAL
    REQUIRED:   YES
    SEQUENCE NUMBER:   1
    DESCRIPTION:   
    This is the scanned valued passed by the client.
    wristband prompt of the mnOpenPatient component.  The value passed in
    is either the full SSN scanned in from the patient wristband -or- the
    1U4N syntax of the patient lookup.  In either case the call must
    return only one patient from the lookup.  If the 1U4N syntax is used
    and multiple patients are found the call returns an error.  If only
    one patient is found the RESULTS( ) array is loaded with the patient
    data and passed back to the client for verification.
    
RETURN PARAMETER DESCRIPTION
If no patient or multiple patients are found with the scan value an 
   Results[0]  = Count of returned records
 
In the case of an error:
    Results[1]  = '-1^  "the appropriate error message"  '
 
    Results[1]  = DFN
    Results[2]  = Name
    Results[3]  = SSN^Dashed SSN
    Results[4]  = Internal DOB^External DOB
    Results[5]  = Age
error is returned in the following format:
    Results[6]  = Internal Sex^External Sex
    Results[7]  = Internal Last Mvmt^External Last Mvmt
    Results[8]  = Internal Type Mvmt^External Type Mvmt
    Results[9]  = Internal Ward Location^External Ward Location^
                    Internal Hospital Location^External Hospital Location
    Results[10] = Internal Bed Location^External Bed Location
    Results[11] = Internal P-Care Physician^External P-Care Physician
    Results[12] = Internal Treating Speciality^External Treating Speciality
    Results[13] = Movement Diagnosis
    Results[14] = 1 if in Bed Status 0 if not in Bed Status (i.e. Pass)
 
    Results[15] = Expected return date from Pass
    Results[16] = Reactions
    Results[17] = Height
    Results[18] = Weight
    Results[19] = Means Tests
    Results[20] = ICN umber
    Results[21] = " Admission Status message "
    Results[22] = This NODE begins 'other' patient information.
                  This NODE may be null.  Records on this NODE will
                  have a header.  A header will consist of one of the 
   Results[0] = 1
                  following:
                 
 
                       "PATFLG"
 
                              The PATFLG header will initiate a patient 
                              flag record.  The patient flag record will 
                              be constructed as follows: 
                                        "PATFLG" ^ FLAG NAME ^ index#
   Results[1] = '-1^Unable to Determine Patient ID'
 
If a unique patient is found the following data is returned to the 
user: