#http://www.gefeg.com/edifact/d03a/s3/codes/cl1h.htm
#This is a terrible method, but it works for now
state_names = ['Andhra Pradesh', 'Arunachal Pradesh', 'Assam', 'Bihar', 'Chhattisgarh', 'Delhi', 'Goa', 'Gujarat', 'Haryana', 'Himachal Pradesh', 'Jammu and Kashmir', 'Jharkhand', 'Karnataka', 'Kerala', 'Madhya Pradesh', 'Maharashtra', 'Manipur', 'Meghalaya', 'Mizoram', 'Nagaland', 'Odisha', 'Punjab', 'Rajasthan', 'Sikkim', 'Tamil Nadu', 'Tripura', 'Uttar Pradesh', 'Uttarakhand', 'West Bengal']
state_abbreviations = ['AP', 'AR', 'AS', 'BR', 'CT', 'DL', 'GA', 'GJ', 'HR', 'HP', 'JK', 'JH', 'KA', 'KL', 'MP', 'MH', 'MN', 'ML', 'MZ', 'NL', 'OR', 'PB', 'RJ', 'SK', 'TN', 'TR', 'UP', 'UT', 'WB']

#Other utility methods (that aren't input/output) which multiple 
#files might need go here

@@ -783,8 +783,763 @@
 go here%0A
+%0A#thresholds is a dict containing relevant thresholds%0Adef filter_by_all(population, thresholds = None):%0A    if thresholds is None:%0A        thresholds = default_thresholds()%0A    filtered_population = list()%0A    for person in population:%0A        if health_filter(person, thresholds):%0A            filtered_population.append(person)%0A    return filtered_population%0A%0Adef default_thresholds():%0A    return %7B'diabetes': 0.1,%0A            'cardio': 0.1%7D%0A%0Adef diabetes_filter(person, thresholds):%0A    return person.diabetes %3E= thresholds%5B'diabetes'%5D%0A    %0Adef cardio_filter(person, thresholds):%0A    return person.cardio %3E= thresholds%5B'cardio'%5D%0A%0Adef health_filter(person, thresholds):%0A    return diabetes_filter(person, thresholds) or cardio_filter(person, thresholds)%0A

Implement basic filtering in util.py