added return on error state in type getter in consultation model