#NEWLINE# @ property #NEWLINE# def columns( self ) : #NEWLINE# #INDENT# self . config [ 'mother_ids' ] = ( tuple ( DeliveryMothersIds ( config = self . config ) . data . keys ( ) ) + ( '' , ) ) #NEWLINE# columns = [ DatabaseColumn ( 'Total children with with birthweight known' , CountUniqueColumn ( 'doc_id' , alias = 'total_birthweight_known' , filters = ( self . filters + [ NOTEQ ( 'weight_birth' , 'empty' ) ] ) ) ) , DatabaseColumn ( 'Total births' , CountUniqueColumn ( 'doc_id' , filters = [ AND ( [ IN ( 'mother_id' , get_INFilter_bindparams ( 'mother_ids' , self . config [ 'mother_ids' ] ) ) , OR ( [ EQ ( 'gender' , 'female' ) , EQ ( 'gender' , 'male' ) ] ) ] ) ] , alias = 'total_births' ) ) ] #NEWLINE# columns . extend ( [ DatabaseColumn ( 'Birthweight < 2.5 kg' , CountUniqueColumn ( 'doc_id' , alias = 'total_birthweight_lt_25' , filters = ( self . filters + [ AND ( [ LT ( 'weight_birth' , 'weight_birth_25' ) , NOTEQ ( 'weight_birth' , 'empty' ) ] ) ] ) ) ) , DatabaseColumn ( 'Birthweight >= 2.5 kg' , CountUniqueColumn ( 'doc_id' , alias = 'total_birthweight_gte_25' , filters = ( self . filters + [ AND ( [ GTE ( 'weight_birth' , 'weight_birth_25' ) , NOTEQ ( 'weight_birth' , 'empty' ) ] ) ] ) ) ) ] ) #NEWLINE# return columns