(self, section)
It processes a ``section`` XML node
It processes a ``section`` XML node
It processes a section XML node
def _icd10_process_section(self, section):
        """ It processes a ``section`` XML node """
        self.ensure_one()
        chapter_name = section.get('id')
        try:
            chapter_record = self.env['ir.model.data'].get_object(
                self.ICD10_XML_PREFIX,
                self._get_pathology_category_xml_id(chapter_name),
            )
        except ValueError:
            # Ignore sections that were not found, they are description only.
            # Example: C00-C96
            return
        for diag in section.iterfind('diag'):
            self._icd10_process_diag(diag, chapter_record)
def _icd10_process_section ( self , section ) : self . ensure_one ( ) chapter_name = section . get ( 'id' ) try : chapter_record = self . env [ 'ir.model.data' ] . get_object ( self . ICD10_XML_PREFIX , self . _get_pathology_category_xml_id ( chapter_name ) , ) except ValueError : # Ignore sections that were not found, they are description only. # Example: C00-C96 return for diag in section . iterfind ( 'diag' ) : self . _icd10_process_diag ( diag , chapter_record )