def of get_fields amended to access record_class.studyID