SYNOPSIS

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

DESCRIPTION

The MGOgetvalidations() function returns a list of validation records affiliated with 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 indicate which validation tables are searched through when the field is specified):

val.uwnetid is the uwnetid name. If specified, all validations for which the uwnetid is currently affiliated with is returned. A search of all validation tables is not conducted. If a full search is required, specify one (or more) of the following fields instead.

val.validid is the validation id. If specified, this will match only validation records which have been auto-affiliated. In most cases, this is what you want. val.source_code is the validation source reference code. val.status_code is the validation status reference code. Specify these to limit the search to a particular validation table and/or validation status.

The remaining fields are useful for nailing down a certain validation (most likely only one validation will match all search criteria) or for data-mining searches where auto-affiliations are not a concern. 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.regid is the registry id. val.lname and val.fname are the last and first names, respectively. Wildcarding is supported by placing a "%" to represent zero or more characters, or a "_" to represent a single, non-blank character. Note: you must specify lname if you want to use fname. val.pac is the private access code. If specified and the pac is marked as one-time, the pac will expire automatically in two hours. val.birthdate is the birthdate in YYYY-MM-DD form.

You must specify either a uwnetid, or a validid with optional source_code and status_code, or one (or more) of the following ein, ssn, studentid, account, system_key, clinicianid, advanceid, regid.

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):

RETURN VALUE

Returns the number of validations 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()