SYNOPSIS

int MGOgetregs (Validation **lst, Validation *val)

DESCRIPTION

The MGOgetregs() function returns a list of registry id records for the given search criteria. Information is passed through val and returned through the linked list lst. The required and optional selection criteria fields are (the values in brackets in dicatewhich validation tables are searched through when the field is specified):

val.uwnetid is the uwnetid name. val.validid is the validation id. val.ein is the employee number. val.ssn is the social security number. val.studentid is the student number. val.account is the AVF account name. val.system_key is the student system key value. val.clinicianid is the clinician number. val.advanceid is the advance number. val.instance is the registry id instance. val.source_code is the validation source reference code. val.status_code is the validation status reference code. You must specify either a uwnetid, or a validid plus a source_code and optionally a status_code, or one (or more) if ein, ssn, studentid, account, system_key, clinicianid, advanceid.

The following fields are set for each matched validation. The values between the brackets indicate these fields are set depending on the validation source reference code (lst.source_code):

Note: Instance 0 denotes the current/primary regid for a person. All other instances denote former/secondary regids.

RETURN VALUE

Returns the number of registry ids found upon success or -1 if an error occurred (in which case MGOerrno and MGOerrmsg are set appropriately).

ERRORS

AUTHENTICATION LEVEL

rmango

SEE ALSO

MGOfreevalidation(), MGOselrvalsource(), MGOzero()