def tachycardic_detector(patient_age, patient_heart_rate):
    """
    Determines if patient is tachycardic based on their age and heart rate
    Args:
        patient_age: integer extracted from patient database entry
        patient_heart_rate: integer posted to patient database entry
    Returns:
        tachycardic_status: string containing either
         "tachycardic" or "not tachycardic"
    """
    if patient_age < 3 and patient_heart_rate > 151:
        tachycardic_status = "tachycardic"
    elif patient_age < 5 and patient_heart_rate > 137:
        tachycardic_status = "tachycardic"
    elif patient_age < 8 and patient_heart_rate > 133:
        tachycardic_status = "tachycardic"
    elif patient_age < 12 and patient_heart_rate > 130:
        tachycardic_status = "tachycardic"
    elif patient_age <= 15 and patient_heart_rate > 119:
        tachycardic_status = "tachycardic"
    elif patient_heart_rate > 100:
        tachycardic_status = "tachycardic"
    else:
        tachycardic_status = "not tachycardic"
    # logging.info("Tachycardic status calculated: " + tachycardic_status)
    return tachycardic_status
    pass