Changed query to find cases by case identifier