def _initialize_condition_disambiguation_correction_widgets()

in src/ui/ui.py [0:0]


    def _initialize_condition_disambiguation_correction_widgets(self):
        """Initialize the widgets of the condition disambiguation correction
        in the disambiguation correction tab in the general input vertical section.

        Args:
            None

        Returns:
            None

        """
        conditions = (
            [d["Text"] for d in self.entities["CONDITION"]]
            if hasattr(self, "entities")
            else []
        )
        self.mapped_condition_category = widgets.Dropdown(
            placeholder="e.g. Insomnia",
            options=conditions,
            description="Condition",
            ensure_option=True,
            disabled=False,
        )
        self.mapped_condition_button = widgets.Button(description="Show condition info")
        self.mapped_condition_button.on_click(self._button_helper_condition_info)
        self.mapped_update_condition_text = widgets.Text(
            placeholder="ICD10 code", description="Map to", disabled=False
        )
        self.mapped_update_condition_button = widgets.Button(
            description="Update condition"
        )
        self.mapped_update_condition_button.on_click(
            self._button_helper_condition_update
        )