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 (r)
- val.validid (r)
- val.ein (r) [1]
- val.ssn (r)
- val.studentid (r) [1, 2, 7]
- val.account (r) [4]
- val.system_key (r) [2]
- val.clinicianid (r) [3]
- val.advanceid (r) [7]
- val.instance (o)
- val.source_code (r)
- val.status_code (o)
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):
- lst.next
- lst.regid
- lst.instance
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
- MGO_E_MAR - One or more of the required arguments were missing
- MGO_E_IAR - Invalid or ambiguous argument
- MGO_E_PMD - Permission denied. See access control
- MGO_E_VAL - No such validation source reference code
- MGO_E_VNV - The given validation information is not valid
- MGO_E_MAT - No match found given the selection criteria
- MGO_E_SQL - An SQL error occurred. See MGOerrmsg for details
AUTHENTICATION LEVEL
rmango
SEE ALSO
MGOfreevalidation(),
MGOselrvalsource(),
MGOzero()