fixed missing subarrays in allergies, added logic for cms in results