#NEWLINE# def get_injured_child( self , childAge = 15 ) : #NEWLINE# #INDENT# '\n        The CAS record has a "PEDage" property, defined as:\n            Age of any pedestrian injured. If more than one pedestrian is\n            injured, the age of the youngest pedestrian below 20 years old is\n            shown; otherwise this shows the age of the oldest pedestrian.\n        This is kinda tricky to deal with, because it is not either the "youngest"\n        or the "oldest" that is recorded, and it is only recorded for pedestrians\n        (and cyclists in another property, "CYCage").\n\n        Thus, this method returns a Boolean indicating whether a child* has\n        been injured, on foot or on a bike. Where the maximum age of a "child"\n        is given by the `childAge` parameter.\n        ' #NEWLINE# if ( ( self . pers_age1 != None ) and ( childAge . pers_age1 <= childAge ) ) : #NEWLINE# #INDENT# return 1 #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( ( self . pers_age2 != None ) and ( self . pers_age2 <= childAge ) ) : #NEWLINE# #INDENT# return 1 #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return 0