Added logic to filter Allergies, Social History, Consultations & Medical Conditions by Patient Id