int MGOselvalidation (Validation **lst, Validation *val)
The MGOselvalidation() function selects validation records. Information is passed through val and returned through the linked list lst. The selection criteria fields are (the values in brackets indicate which field is valid for the indicated validation source reference code):
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 id. val.advanceid is the advance id. val.regid is the registry id. val.lname and val.fname are the last and first names, respectively. Note: you must specify lname if you want to use fname. val.pac is the private access code. val.birthdate is the birthdate in YYYY-MM-DD form. val.source_code is the validation source reference code. You must specify one or more of (validid, ein, ssn, studentid, account, system_key, regid) plus a source_code. The following fields are set for each selected validation. The values in brackets indicate these fields are set depending on the validation source reference code (lst.source_code):
Returns the number of records inserted upon success or -1 if an error occurred (in which case MGOerrno and MGOerrmsg are set appropriately).
rmango
MGOdelvalidation(), MGOfreevalidation(), MGOinsvalidation(), MGOselrvalsource(), MGOupdvalidation(), MGOzero()