def extract_dose_info(dose):
    """Takes in a drug dose object and returns the relevant info it contains. Returns a dictionary."""

    dose_info = {}

    if dose.individual_species.species_individual_id == 1:
        dose_info['species'] = dose.species_group.species_group
    else:
        dose_info['species'] = dose.individual_species.species_name

    if dose.condition.condition_id != 1:
        dose_info['condition'] = dose.condition.condition

    if dose.dose_lower:
        dose_info['lower'] = dose.dose_lower
    if dose.dose_upper:
        dose_info['upper'] = dose.dose_upper
    if dose.recommended_dose:
        dose_info['recommended'] = dose.recommended_dose

    dose_info['dose_id'] = dose.dose_id

    return dose_info