def METHOD_NAME(self, state, isod_value):
    """
    Function triggered when the checkbox of a structure is checked / unchecked.
    Update the list of selected structures.
    Update the DICOM view.
    :param state: True if the checkbox is checked, False otherwise.
    :param isod_value: Percentage of isodose.
    """
    selected_doses = self.patient_dict_container.get("selected_doses")
    if state:
        # Add the dose to the list of selected doses
        selected_doses.append(isod_value)
    else:
        # Remove dose from list of previously selected doses
        selected_doses.remove(isod_value)
    self.patient_dict_container.set("selected_doses", selected_doses)
    # Update the dicom view
    self.request_update_isodoses.emit()