(self, chapter)
It processes a ``chapter`` XML node
It processes a ``chapter`` XML node
It processes a chapter XML node
def _icd10_process_chapter(self, chapter):
        """ It processes a ``chapter`` XML node """
        self.ensure_one()
        name = chapter.find('name').text.strip()
        desc = chapter.find('desc').text.strip()
        chapter_desc = self.__create_chapter_desc(chapter)
        chapter_name = '%s - %s' % (name, desc)
        chapter_record = self._upsert_pathology_category(
            chapter_name,
            self.code_type_id,
            name,
            self.ICD10_XML_PREFIX,
            note=chapter_desc,
        )
        for section_index in chapter.iterfind('sectionIndex'):
            self._icd10_process_section_index(chapter_record, section_index)
        for section in chapter.iterfind('section'):
            self._icd10_process_section(section)
def _icd10_process_chapter ( self , chapter ) : self . ensure_one ( ) name = chapter . find ( 'name' ) . text . strip ( ) desc = chapter . find ( 'desc' ) . text . strip ( ) chapter_desc = self . __create_chapter_desc ( chapter ) chapter_name = '%s - %s' % ( name , desc ) chapter_record = self . _upsert_pathology_category ( chapter_name , self . code_type_id , name , self . ICD10_XML_PREFIX , note = chapter_desc , ) for section_index in chapter . iterfind ( 'sectionIndex' ) : self . _icd10_process_section_index ( chapter_record , section_index ) for section in chapter . iterfind ( 'section' ) : self . _icd10_process_section ( section )