Text this: Development and external validation of tools for categorizing diagnosis codes in international hospital data.