If diarrhoea is present and no confirmed diagnosis is given, it should be captured as gastroenteritis, provided you were discharged without a confirmed diagnosis and no further investigations are required