DVBAB FIND DUPS (2041)    REMOTE PROCEDURE (8994)

Name Value
NAME DVBAB FIND DUPS
TAG DUP
ROUTINE DVBAB84
RETURN VALUE TYPE GLOBAL ARRAY
AVAILABILITY SUBSCRIPTION
WORD WRAP ON TRUE
DESCRIPTION
Find potential duplicates within the PATIENT File (#2)
 
At least one of NAM, DOB, or SSN must be passed
Possible matches are "better" when more than one of these is passed
INPUT PARAMETER
  • NAM
    PARAMETER TYPE:   LITERAL
    SEQUENCE NUMBER:   1
    DESCRIPTION:   
    Name of possible patient
    
  • DOB
    PARAMETER TYPE:   LITERAL
    MAXIMUM DATA LENGTH:   7
    SEQUENCE NUMBER:   2
    DESCRIPTION:   
    Date of Birth of possible patient
    
  • SSN
    PARAMETER TYPE:   LITERAL
    MAXIMUM DATA LENGTH:   10
    SEQUENCE NUMBER:   3
    DESCRIPTION:   
    Social Security Number of possible patient
    
RETURN PARAMETER DESCRIPTION
BYREF - Passed by reference, will contain name of a TMP Global housing the results
Subscript L+1-M: Patient's matching ONLY 1 of NAM, DOB, SSN have a weighting of 1 (see Note)
 
^TMP(1-M) = DFN^ZERO_NODE
    where   DFN is the Patient IEN
            ZERO_NODE is the data from ^DPT(DFN,0)
 
NOTE: Potential matches within a weighting (if any) will be sorted by Patient Name
 
Subscript 0:  -1^ERROR_MESSAGE (in the event of an error)
 
   OR
 
Subscript    0:  Number of potential matches found (if no errors)
Subscript  1-K:  Patient's matching ALL 3 of NAM, DOB, SSN have a weighting of 3 (see Note)
Subscript K+1-L: Patient's matching ANY 2 of NAM, DOB, SSN have a weighting of 2 (see Note)