Add docidtype functionality