PSB SCANMED (366)    REMOTE PROCEDURE (8994)

Name Value
NAME PSB SCANMED
TAG SCANMED
ROUTINE PSBRPC2
RETURN VALUE TYPE ARRAY
AVAILABILITY PUBLIC
VERSION 2
DESCRIPTION
Takes the scanned valued from the medication and does a lookup on file 
50 for an exact match.  If more than one or less than one entry are 
found for the lookup an error is returned to the client.
INPUT PARAMETER
  • SCANVAL
    PARAMETER TYPE:   LITERAL
    MAXIMUM DATA LENGTH:   30
    REQUIRED:   YES
    SEQUENCE NUMBER:   1
    DESCRIPTION:   
    This is the data received from the client scanning the medication.
    
  • PSBDIEN
    PARAMETER TYPE:   LITERAL
    REQUIRED:   YES
    SEQUENCE NUMBER:   1
    DESCRIPTION:   
    Takes the scanned valued from the medication and does a lookup on file
    50 for an exact match.  If more than one or less than one entry are
    found for the lookup an error is returned to the client.
    
  • PSBTAB
    PARAMETER TYPE:   LITERAL
    MAXIMUM DATA LENGTH:   20
    REQUIRED:   YES
    SEQUENCE NUMBER:   2
    DESCRIPTION:   
    This is the current tab the user is on.
    
RETURN PARAMETER DESCRIPTION
Return on error:
               ADD^IEN^Generic Name
 
  Results[0] = '-1^Unable to determine exact medication'
 
Return on successful scan:
 
  Results[0] = number of items returned in the results array.
  Results[1] = DD^IEN^Generic Name
               SOL^IEN^Generic Name