int MGOgetextcategories (Validation **lst, Validation *val)
The MGOgetextcategories() function returns a list of extended category records. 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.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.regid is the registry id. val.category_code is the category reference code. val.source_code is the validation source reference code. val.status_code is the validation status reference code. You must specify one (or more) of validid, ein, ssn, studentid, account, system_key, clinicianid, advanceid, regid. The following fields are set for each selected affiliation:
Returns the number of records selected upon success or -1 if an error occurred (in which case MGOerrno and MGOerrmsg are set appropriately).
rmango
MGOinsextcategory(), MGOgetextcategories2(), MGOfreevalidation(), MGOselrvalsource(), MGOzero()