LookupCode for entity type ids