class ListboardViewFilters(ListboardViewFilters): all = ListboardFilter(name='all', label='All', lookup={}) on_worklist = ListboardFilter(label='On Worklist', position=10, lookup={'on_worklist': True})
class ListboardViewFilters(ListboardViewFilters): all = ListboardFilter(name='all', label='All', lookup={}) eligible = ListboardFilter(label='Eligible', position=10, lookup={'is_eligible': True}) not_eligible = ListboardFilter(label='Not Eligible', position=11, lookup={'is_eligible': False}) consented = ListboardFilter(label='Consented', position=20, lookup={ 'is_eligible': True, 'is_consented': True }) not_consented = ListboardFilter(label='Not consented', position=21, lookup={ 'is_eligible': True, 'is_consented': False })
class AppointmentListboardViewFilters(ListboardViewFilters): all = ListboardFilter(name="all", position=0, label="All", lookup={}) not_dispensed = ListboardFilter( name="control", position=10, label="Control Arm", lookup={"rx": True} ) dispensed = ListboardFilter( name="single_dose", label="Single Dose", position=20, lookup={"rx": True} )
class MyListboardViewFilters(ListboardViewFilters): all = ListboardFilter(name="all", label="All", lookup={}) scheduled = ListboardFilter(label="Scheduled", lookup={"reason": "scheduled"}) not_scheduled = ListboardFilter( label="Not Scheduled", exclude_filter=True, lookup={"reason": "scheduled"}, )
class ManifestListboardViewFilters(ListboardViewFilters): all = ListboardFilter(name="all", label="All", lookup={}) shipped = ListboardFilter(label="Shipped", lookup={"shipped": True}) not_shipped = ListboardFilter(label="Not shipped", lookup={"shipped": False}) printed = ListboardFilter(label="Printed", lookup={"printed": True}) not_printed = ListboardFilter(label="Not printed", default=True, lookup={"printed": False})
class ListboardViewFilters(ListboardViewFilters): all = ListboardFilter(name='all', label='All', lookup={}) is_called = ListboardFilter(label='Called', position=10, lookup={'is_called': True}) visited = ListboardFilter(label='Visited', position=11, lookup={'visited': True})
class HouseholdListboardViewFilters(ListboardViewFilters): all = ListboardFilter(name='all', position=0, label='All', lookup={}) enrolled = ListboardFilter(label='Enrolled', position=5, lookup={'enrolled': True}) not_enrolled = ListboardFilter(label='Not enrolled', position=6, lookup={'enrolled': False})
class ManifestListboardViewFilters(ListboardViewFilters): all = ListboardFilter(name='all', label='All', lookup={}) shipped = ListboardFilter(label='Shipped', lookup={'shipped': True}) not_shipped = ListboardFilter(label='Not shipped', lookup={'shipped': False}) printed = ListboardFilter(label='Printed', lookup={'printed': True}) not_printed = ListboardFilter(label='Not printed', default=True, lookup={'printed': False})
class WorklistListboardViewFilters(ListboardViewFilters): all = ListboardFilter(name="all", position=0, label="All", lookup={}) missed = ListboardFilter( name="control", position=10, label="Control Arm", lookup={"rx": True} ) previous = ListboardFilter( name="single_dose", label="Single Dose", position=20, lookup={"singledose": True}, )
class HouseholdStructureListboardViewFilters(ListboardViewFilters): all = ListboardFilter( name='all', position=0, label='All', lookup={}) enrolled = ListboardFilter( label='Enrolled', position=10, lookup={'enrolled': True}) enrolled_today = ListboardFilter( label='Enrolled today', position=11, lookup={ 'enrolled': True, 'enrolled_datetime__date__gte': get_utcnow().date()}) not_enrolled = ListboardFilter( label='Not enrolled', position=20, lookup={'enrolled': False}) enumerated = ListboardFilter( label='Enumerated', position=30, lookup={'enumerated': True}) enumerated_today = ListboardFilter( label='Enumerated today', position=31, lookup={ 'enumerated': True, 'enumerated_datetime__date__gte': get_utcnow().date()}) not_enumerated = ListboardFilter( label='Not enumerated', position=40, lookup={'enumerated': False}) refused_enumeration = ListboardFilter( label='Refused Enumeration', position=50, lookup={'refused_enumeration': True}) no_informant = ListboardFilter( label='No informant', position=60, lookup={'no_informant': True})
class RequisitionListboardViewFilters(ListboardViewFilters): all = ListboardFilter(name='all', label='All', lookup={}) received = ListboardFilter(label='Received', lookup={'received': True}) not_received = ListboardFilter(label='Not Received', exclude_filter=True, lookup={'received': True}) processed = ListboardFilter(label='Processed', lookup={'processed': True}) not_processed = ListboardFilter(label='Not processed', exclude_filter=True, lookup={'processed': True}) packed = ListboardFilter(label='Packed', lookup={'packed': True}) not_packed = ListboardFilter(label='Not packed', exclude_filter=True, lookup={'packed': True})
class RequisitionListboardViewFilters(ListboardViewFilters): all = ListboardFilter(name="all", label="All", lookup={}) received = ListboardFilter(label="Received", lookup={"received": True}) not_received = ListboardFilter(label="Not Received", exclude_filter=True, lookup={"received": True}) processed = ListboardFilter(label="Processed", lookup={"processed": True}) not_processed = ListboardFilter(label="Not processed", exclude_filter=True, lookup={"processed": True}) packed = ListboardFilter(label="Packed", lookup={"packed": True}) not_packed = ListboardFilter(label="Not packed", exclude_filter=True, lookup={"packed": True})
class PackListboardViewFilters(ListboardViewFilters): all = ListboardFilter(name='all', label='All', lookup={}) verified = ListboardFilter(label='Verified', lookup={'status': VERIFIED}) not_verified = ListboardFilter(label='Not verified', exclude_filter=True, lookup={'status': VERIFIED}) packed = ListboardFilter(label='Packed', lookup={'status': PACKED}) not_packed = ListboardFilter(label='Packed', exclude_filter=True, default=True, lookup={'status': PACKED}) shipped = ListboardFilter(label='Shipped', lookup={'status': SHIPPED}) not_shipped = ListboardFilter(label='Not shipped', exclude_filter=True, lookup={'status': SHIPPED})
class PackListboardViewFilters(ListboardViewFilters): all = ListboardFilter(name="all", label="All", lookup={}) verified = ListboardFilter(label="Verified", lookup={"status": VERIFIED}) not_verified = ListboardFilter(label="Not verified", exclude_filter=True, lookup={"status": VERIFIED}) packed = ListboardFilter(label="Packed", lookup={"status": PACKED}) not_packed = ListboardFilter(label="Packed", exclude_filter=True, default=True, lookup={"status": PACKED}) shipped = ListboardFilter(label="Shipped", lookup={"status": SHIPPED}) not_shipped = ListboardFilter(label="Not shipped", exclude_filter=True, lookup={"status": SHIPPED})
class AliquotListboardViewFilters(ListboardViewFilters): all = ListboardFilter(name='all', label='All', lookup={}) is_primary = ListboardFilter(label='Primary', lookup={'is_primary': True}) packed = ListboardFilter(label='Packed', lookup={'aliquot_identifier__in': get_box_items}) not_packed = ListboardFilter( label='Not Packed', exclude_filter=True, lookup={'aliquot_identifier__in': get_box_items}) shipped = ListboardFilter(label='Shipped', lookup={'shipped': True}) not_shipped = ListboardFilter(label='Not shipped', default=True, lookup={'shipped': False})
class AliquotListboardViewFilters(ListboardViewFilters): all = ListboardFilter(name="all", label="All", lookup={}) is_primary = ListboardFilter(label="Primary", lookup={"is_primary": True}) packed = ListboardFilter(label="Packed", lookup={"aliquot_identifier__in": get_box_items}) not_packed = ListboardFilter( label="Not Packed", exclude_filter=True, lookup={"aliquot_identifier__in": get_box_items}, ) shipped = ListboardFilter(label="Shipped", lookup={"shipped": True}) not_shipped = ListboardFilter(label="Not shipped", default=True, lookup={"shipped": False})
class PlotListboardViewFilters(ListboardViewFilters): all = ListboardFilter(name='all', position=0, label='All', lookup={}) accessible = ListboardFilter(name='accessible', position=10, label='Accessible', lookup={'accessible': True}) ess = ListboardFilter(label='ESS', position=20, lookup={'ess': True}) rss = ListboardFilter(label='RSS', position=30, lookup={'rss': True}) htc = ListboardFilter(label='HTC', position=40, lookup={'htc': True}) enrolled = ListboardFilter(label='Enrolled', position=50, lookup={'enrolled': True}) not_enrolled = ListboardFilter(label='Not enrolled', position=60, lookup={'enrolled': False}) enrolled80 = ListboardFilter(label='Enrolled (from 80%)', position=65, lookup={ 'enrolled': True, 'selected__isnull': True }) confirmed = ListboardFilter(label='Confirmed', position=70, lookup={'confirmed': True}) not_confirmed = ListboardFilter(label='Not confirmed', position=80, lookup={'confirmed': False}) attempts_0 = ListboardFilter(label='Attempts (0)', position=90, lookup={'access_attempts': 0}) attempts_gte_0 = ListboardFilter(label='Attempts (>0)', position=100, lookup={'access_attempts__gte': 1}) attempts_1 = ListboardFilter(label='Attempts (1)', position=110, lookup={'access_attempts': 1}) attempts_2 = ListboardFilter(label='Attempts (2)', position=120, lookup={'access_attempts': 2}) attempts_3 = ListboardFilter(label='Attempts (>=3)', position=130, lookup={'access_attempts__gte': 3})