HMP PATIENT SELECT (3639)    REMOTE PROCEDURE (8994)

Name Value
NAME HMP PATIENT SELECT
TAG SELECT
ROUTINE HMPPTRPC
RETURN VALUE TYPE ARRAY
DESCRIPTION
Selects patients by search criteria and returns basic patient and demographic information for patients
found in search.
INPUT PARAMETER
  • CRITERIA
    PARAMETER TYPE:   LITERAL
    MAXIMUM DATA LENGTH:   10
    REQUIRED:   YES
    SEQUENCE NUMBER:   1
    DESCRIPTION:   
    The type of search to perform. May be one of the following values:
       LAST5 - "last5" format of ssn (i.e., patient's last intial + last4 of ssn)
       NAME - search by patient name, can be partial name
       ICN - select patient by ICN
       PID - select patient by PID
    
  • SEARCH TERM
    PARAMETER TYPE:   LITERAL
    MAXIMUM DATA LENGTH:   60
    REQUIRED:   YES
    SEQUENCE NUMBER:   2
    DESCRIPTION:   
    Term to search for when looking up patient. Should match type specified in CRITERIA.
    
RETURN PARAMETER DESCRIPTION
Returns a list of patient data, one line per patient, in format:
   Full Name^Family Name^Given Name(s)^Display Name^Gender Code^Gender Name^SSN^Last4^Last5^Date of birth^Sensitive^LocalId^PID^ICN^Summary
Or returns -1^Error message if error
If no patients found, returns empy list