Added functionality for encounter type and number of record parameters.