key: cord-1012427-m7afnn2y authors: Wang, Cheng; Yao, Chenlong; Chen, Pengfei; Shi, Jiamin; Gu, Zhe; Zhou, Zheying title: Artificial Intelligence Algorithm with ICD Coding Technology Guided by the Embedded Electronic Medical Record System in Medical Record Information Management date: 2021-08-30 journal: J Healthc Eng DOI: 10.1155/2021/3293457 sha: 6e52b7fc4df2487df09041450be55271c43bc617 doc_id: 1012427 cord_uid: m7afnn2y The study aims to explore the application of international classification of diseases (ICD) coding technology and embedded electronic medical record (EMR) system. The study established an EMR information knowledge system and collected the data of patient medical records and disease diagnostic codes on the front pages of 8 clinical departments of endocrinology, oncology, obstetrics and gynecology, ophthalmology, orthopedics, neurosurgery, and cardiovascular medicine for statistical analysis. Natural language processing-bidirectional recurrent neural network (NLP-BIRNN) algorithm was used to optimize medical records. The results showed that the coder was not clear about the basic rules of main diagnosis selection and the classification of disease coding and did not code according to the main diagnosis principles. The disease was not coded according to different conditions or specific classification, the code of postoperative complications was inaccurate, the disease diagnosis was incomplete, and the code selection was too general. The solutions adopted were as follows: communication and knowledge training should be strengthened for coders and medical personnel. BIRNN was compared with the convolutional neural network (CNN) and recurrent neural network (RNN) in accuracy, symptom accuracy, and symptom recall, and it suggested that the proposed BIRNN has higher value. Pathological language reading under artificial intelligence algorithm provides some convenience for disease diagnosis and treatment. With the improvement of living standards, people's attention to their health is also increasing. At the same time, they are concerned about the medical conditions and facilities of the hospital. e hospital will conduct statistical analysis and comparison of the annual medical data to form an indicator of medical quality management [1] . Most of the data in the medical industry come from electronic medical records (EMRs). EMR is also called computerized medical record system or computer-based patient record (CPR). It is a digital medical record saved, managed, transmitted, and reproduced by electronic devices (computers, health cards, etc.) to replace handwritten paper medical records. Its content includes all the information of paper medical records. e National Institute of Medicine defines EMR as an electronic patient record based on a specific system, which provides users with the ability to access complete and accurate data, warnings, prompts, and clinical decision support systems. rough the extraction and statistical analysis of these data, relevant indicators are formed to provide convenience for medical personnel, which help them better understand the relevant medical conditions and improve the quality of medical care [2] . With the rise and wide application of computer network technology, its application in the medical industry is becoming more common. Most medical institutions use a unified medical record front page, which provides great convenience for the information statistics of the medical industry [3] . e medical record records the detailed condition of the patient, from the initial diagnosis to the final treatment result, which provides a detailed basis for the follow-up [4, 5] . e detailed record of the patient's condition in the medical record provides important support for medical staff to understand the patient's condition. Both the past medical history and the current diagnosis and treatment of diseases can be consulted [6] . With the development of electronic information on the Internet, case records have also changed from the original paper version to an electronic version, completing the digital management mode of medical records [7, 8] . Electronic cases have greatly improved the efficiency of using medical records. e use of EMRs provides convenience for medical staff and management staff. ICD coding technology is a relatively complete and mature disease-coding method. Almost every hospital unit uses its rules to code diseases on the front page of medical records [9] . e combination of English and numbers is used for coding to avoid coding inconsistencies [10] . It promotes exchanges between people from different countries and regions. With the continuous improvement of disease classification by scholars, more and more disease types are covered [11] . e coding method is characterized by scientificity, integrity, applicability, and operability. erefore, it is widely used in the field of medicine [12] . In clinical medicine, the use of LCD can bring great convenience, unify the code for global diseases, facilitate researchers' research, and contribute to the development of medicine. In this experiment, the statistical analysis of the first page of medical records is conducted through the sample survey. e causes of errors in the disease classification on the first page of the medical record are analyzed and summarized. Meanwhile, the embedded medical record information knowledge system is established, and the NLP-BIRNN algorithm is used to optimize the medical record text. Also, the detailed improvement measures are proposed to provide a basis for the investigation of disease classification. e data were randomly selected from the EMR database of our hospital, and the patient medical records and disease diagnostic code data on the front pages of 8 clinical departments of endocrinology, oncology, obstetrics and gynecology, ophthalmology, orthopedics, neurosurgery, and cardiovascular medicine were collected. e medical record information is randomly extracted from the EMR management system for analysis. Statistics on the diagnosis selection and the number of disease-coding errors are conducted. e statistical analysis of the data of clinicians and medical coders before and after training is performed. rough research, self-examination, training, and feedback, the disease-coding knowledge topics of the above eight clinical departments are explored. e coder calls up the medical record data of a certain department. According to ICD-10's undergraduate disease-coding rules, such as clinical knowledge and main diagnosis selection principles of the disease's physiological mechanism, development process, clinical manifestations, and treatment methods, the disease-coding process is conducted. During the coding process, the coder must carefully read the case, especially the admission records (judgment of the main diagnosis selection), surgical records (surgical name, postoperative method, surgical grade, surgical incision, and anesthesia method), course records (development of the disease, such as whether the disease is aggravated, whether it is improved, and whether it is treated), and discharge records (diagnosis and treatment process, whether the diagnosis at admission and discharge are consistent). Pathology, imaging, ultrasound, and laboratory reports should also be paid attention to. According to the results, the coder reexamines the previous medical records, mainly checking the diagnosis selection and disease coding. Statistics on the data of diagnosis selection errors and diseasecoding errors are conducted. en, ICD-10 training will be given to the relevant doctors and coders of the above eight clinical departments on the problems examined this time. e coder compares and analyzes the data of main diagnosis selection errors and disease-coding errors before and after the training. e results are then shared to the relevant personnel with feedback, to explore rectification measures and improve the coding level. System. e system establishes conditions. First, conditions are written based on the writing standard of medical records stipulated by the national health department. e data content expressed in the medical record should be a common medical term without ambiguity. Second, the knowledge system must contain descriptive and conclusive knowledge about medical records. Descriptive knowledge refers to the detailed description of the disease. For example, the types of cold are wind chill and wind heat and their common symptoms are headache and cough, which is descriptive knowledge. On the contrary, it is conclusive knowledge to judge the type of cold according to the description of the disease. e knowledge system needs to combine the structured input interface of medical records and provide a selective input prompt based on the user input. ird, the medical record information is stored as an XML document, which has hierarchical structure. e knowledge base is also represented by the hierarchical XML document to achieve efficient synchronization of medical record input interface, which corresponds to the medical record information document. For some simple information input without prompt, the node can be set to null value. For items with multiple choices, multiple child nodes can be set when prompted, read into memory, and displayed in the medical record interface for users to choose. Fourth, the semantics should be concise and include the hints about limiting the use of characters. e information base of the embedded medical record knowledge system contains knowledge, as shown in Table 1: ere are seven pages in the embedded EMR input system, and seven XML documents of medical record knowledge base are established accordingly. When doctors create a new medical record page, the system will automatically call the knowledge base XML document according to the current page. When doctors input specific document node information, they can input medical record information according to prompt operation to improve the recording speed and reduce expression errors. Steps of NLP-BIRNN Algorithm. First, the data preprocessing of EMR is carried out, including data processing, cleaning, and screening. Second, NLP based on medical tagging (medical record tagging, character extraction, word vector transformation, deep neural network, automatic tagging, and feature vector splicing) and NLP without medical tagging (no medical record, part of speech tagging, keyword selection, word vector transformation, and feature vector splicing) are performed. ird, calculation is done. e symptom feature vectors involved in NLP solutions are normalized, and the values at each position of vector data are limited to [0, 1]. e ICD is coded by one hot representation to become the tag of deep learning training. e normalized feature vector and label are imported into the deep learning model for training, the auxiliary diagnosis model is obtained, and the test set is used to complete the test of the model results. e SPSS24.0 software was adopted for data statistics and analysis. e difference between the two groups of data was analyzed by the t-test. e count data were compared by the Chi-square test. P < 0.05 indicated significant difference, and P < 0.01 indicated highly significant difference. At present, the diagnosis basis of 2019 novel coronavirus (2019-nCoV) is mainly nucleic acid testing and medical imaging detection. e combination of the two is more conducive to diagnosis. It is found from the announcement of officially confirmed cases that some patients showed a positive result after more than 2 nucleic acid tests and even showed a positive result after the fifth nucleic acid test. erefore, while performing nucleic acid testing, lung CT imaging examination is carried out. Patients with lung CT presenting with signs of acute inflammation should be admitted as soon as possible in accordance with the principle of "suspected disease is always present." e CT and ultrasound results of some diseases are shown in Figure 1 . Figure 1(a) is a chest CT image of coronavirus disease 2019 (COVID-19). Figure 1(b) is a segmented image of the pneumonia-infected area. Figure 1 (c) is a CT of the abdomen. e accuracy of diagnosing the mild fatty liver using CT is 88.75%. Figure 1(d) is an ultrasound image of the abdomen. e accuracy of diagnosing the mild fatty liver using ultrasound is 73.75%. It shows that CT diagnosis is more accurate than ultrasound diagnosis. Department. Results of main diagnosis selection errors and disease-coding errors of the obstetrics and gynecology department are shown in Figure 2 . Figure 2 (a) is the results of the main diagnosis selection errors. ere are 280 errors in the discharge case statistics before the training and 80 errors after the training. e statistics on the four types of main diagnosis selection errors are conducted, including that C-section is the main diagnosis, singleton live birth diagnosis is the first, tumor morphological coding is the main diagnosis, and major treatable diseases are not major diagnosed. It is found that the difference in each index between groups before and after training is significant (P < 0.05). Figure 2 (b) is the results of disease-coding errors. ere are 240 errors in the discharge case statistics before the training and 60 errors after the training. e statistics on the four types of disease-coding errors of pregnancy hypertension, premature rupture of membranes, tumors, and mass, and vomitus gravidarum are conducted. It is found that the difference in each index between groups before and after training is significant (P < 0.05). Results of the main diagnosis selection errors and diseasecoding errors of the endocrinology department are shown in Figure 3 . Figure 3 (a) is the results of the main diagnosis selection errors. ere are 180 errors in the discharge case statistics before the training and 50 errors after the training. e statistics on the three types of main diagnosis selection errors are conducted, including that the treatment of the disease is not a major diagnosis, multiple complications are not primarily diagnosed, and no major diagnosis is made for a single complication. It is found that the difference in each index between groups before and after training is significant (P < 0.05). Figure 3(b) is the results of disease-coding errors. ere are 160 errors in the discharge case statistics before the training and 30 errors after the training. e statistics on the five types of disease-coding errors are conducted, including the merge coding error, no additional coding used, neonatal diabetes mellitus, gestational diabetes mellitus, and screening for diabetes. It is found that the difference in each index between groups before and after training is significant (P < 0.05). Results of the main diagnosis selection errors and disease-coding errors of the orthopedics department are shown in Figure 4 . e statistics on the four types of main diagnosis selection errors are conducted, including that the removal of the immobilization device does not make the primary diagnosis, multiple site fractures are not primarily diagnosed, the main diagnosis is made for the cause of injury, and postoperative complications of fractures are not primarily diagnosed. It is found that the difference in each index between groups before and after training is significant (P < 0.05). Figure 4(b) is the results of disease-coding errors. ere are 160 errors in the discharge case statistics before the training and 25 errors after the training. e statistics on the four types of diseasecoding errors are conducted, including that the coding of damage sites is inaccurate, the postoperative complication coding is not accurate, the main treatment is uncoded, and the cause of injury poisoning is not clear. It is found that the difference in each index between groups before and after training is significant (P < 0.05). Results of the main diagnosis selection errors of the oncology and neurosurgery department are shown in Figure 5 . Figure 5(a) is the results of the main diagnosis selection errors of oncology. ere are 260 errors in the discharge case statistics before the training and 60 errors after the training. e statistics on the four types of main diagnosis selection errors are conducted, including that the primary diagnosis of the tumor is not made in Z code, using Z code to make the primary diagnosis is inaccurate, major diagnosis is not made for the major treatment of disease, and tumor morphology code is the main diagnosis. It is found that the difference in each index between groups before and after training is significant (P < 0.05). Figure 5(b) is the results of the main diagnosis selection errors of the neurosurgery department. ere are 180 errors in the discharge case statistics before the training and 50 errors after the training. e statistics on the five types of main diagnosis selection errors are conducted, including that the main diagnosis is head trauma, tumor morphological code is not written, the rehabilitation Z code is not used, coding of disease sites is inaccurate, and the cause of injury poisoning is not written. It is found that the difference in each index between groups before and after training is significant (P < 0.05). Results of disease-coding errors of cardiovascular medicine, burns surgery, and ophthalmology departments are shown in Figure 6 . Figure 6 (a) is the results of the coding errors of the cardiovascular medicine department. ere are 420 errors in the discharge case statistics before the training and 180 errors after the training. e statistics on the five types of disease-coding errors are conducted, including arrhythmia, myocardial infarction (MI), coronary heart disease (CHD), sudden coronary death (SCD), and myocardial ischemia. It is found that the difference in each index between groups before and after training is significant (P < 0.05). Figure 6(b) is the result of disease-coding errors of the burns surgery department. ere are 170 errors in the discharge case statistics before the training and 35 errors after the training. e statistics on the seven types of disease-coding errors are conducted, including that multiple burns are the main diagnosis, the burn degree and area not written, the burn site is not filled in accurately, scald/burn is not written clearly, coding of chilblain and frostbite is confusing, burn complications are coded, and the cause of injury poisoning is not coded. It is found that the difference in each index between groups before and after training is significant (P < 0.05). Figure 6 (c) is the results of disease-coding errors of the ophthalmology department. ere are 160 errors in the discharge case statistics before the training and 30 errors after the training. e statistics on the five types of diseasecoding errors are conducted, including that the diagnosis of Journal of Healthcare Engineering the disease is filled incompletely, the disease diagnosis name localization is not accurate, coding choices are too general, the diagnosis name is not detailed, and the disease is not coded according to coding principles. It is found that the difference in each index between groups before and after training is significant (P < 0.05). Language. e results of automatic annotation of the medical record language under different artificial intelligence algorithms are statistically analyzed (Figure 7) . Figure 7 indicates that the accuracy rate, symptom precision, and symptom recall of BIRNN are higher than those of CNN and RNN, which indicates that BIRNN has better automatic annotation effect of pathological language. In medicine, disease classification reflects the medical level of a hospital to a certain extent. Disease classification refers to the scientific classification of various diseases through coding to provide a basis for clinical diagnosis and treatment. Hospital requirements for accurate classification of diseases have also increased the requirements for disease coders [13, 14] . EMR is defined in e Basic Framework and Data Standard Electronic Medical Record of Electronic Medical Record issued by the Ministry of Health as follows: an electronic medical record is a digital medical service record of clinical diagnosis and treatment, guidance, and intervention of outpatients and inpatients (or health care objects) by medical institutions. Studies have shown that coders need to collect, classify, organize, analyze, and use medical record information through the criteria for disease classification. It requires coders to fully understand the clinical knowledge of various diseases [15] [16] [17] . is experiment analyzes the reasons for the main diagnosis selection error. e coders are not familiar with the basic rules of the main diagnosis selection, which leads to the misunderstanding of the main diagnosis as an outpatient diagnosis. e classification of disease codes is unclear, and it is believed that the same names have the same codes. e result is the same as that of Nhut Pham et al. [18] . It is difficult to make accurate main diagnosis selection for situations with multiple diseases at the same time. Complications are not the main diagnosis. e morphological coding is mistaken as the main diagnosis. Some studies have found that some coders do not code according to specific medical purposes [19] . e classification of the treatment period and the recovery period is unclear. e disease is not coded according to the main diagnosis principles. It is wrong to regard some damage causes as the main diagnosis. Other investigations have found that when multiple fractures occur, some coders will mistake a certain fracture as the main diagnosis, causing errors [20] . When there is a complication, the previous disease is mistaken as the main diagnosis. e most serious injury is not taken as the main diagnosis. Rehabilitation treatment is not taken as the main diagnosis. e coding of many kinds of diseases is not detailed and accurate. e experiment analyzes the causes of disease-coding errors. ere is no merge coding for diseases that should be merged. Studies have found that coding undiagnosed diseases according to diagnosed diseases is also one of the reasons for coding errors [21] . When accompanied by complications, accurate coding is not performed. Patients of different ages are not coded differently. Drug-induced diseases are not coded correctly. e diseases are not coded according to different conditions. is is consistent with the results of Mahajan et al. [22] . e diseases are not coded according to different sites and different onset times. e staff. e new coding requirements should be mastered at any time. Tanno et al. [23] reviewed the history of changes in the classification and coding of allergic reactions and found that better ICD codes could reduce the mortality of allergic diseases. is experiment shows that the main reason for the main diagnosis selection errors and coding errors for coders is that they do not fully understand the various diseases and their classification. erefore, relevant training in this area should be strengthened. e study analyzes the reasons for the wrong selection of main diagnosis before and after training in obstetrics and gynecology, endocrinology, oncology, orthopedics, and neurosurgery, as well as the wrong disease coding in these departments. It is found that the statistical errors of various diseases before and after training are significantly different between the groups. It shows that the coding personnel do not have a thorough understanding of various diseases and their specific classification, and the medical staff cannot clearly fill in the medical records of diseases. erefore, the relevant training of coders and medical personnel should be strengthened. However, there are also some shortcomings, such as the small number of samples. Later, the scope of sample collection can be expanded to provide some support for the main diagnosis selection and disease-coding research. e data used to support the findings of this study are available from the corresponding author upon request. e authors declare no conflicts of interest. Impact of electronic medical record use on the patient-doctor relationship and communication: a systematic review What's in a name Electronic medical record phenotyping using the anchor and learn framework Automatic ICD-10 coding algorithm using an improved longest common subsequence based on semantic similarity A hybrid method for ICD-10 auto-coding of Chinese diagnoses Rare diseases in ICD11: making rare diseases visible in health information systems through appropriate coding ICD-10:A primer for the orthopedic foot and ankle surgeon Library management for the digital age: a new paradigm Effective data mining using neural networks Sexual dysfunction in primary care: an exploratory descriptive analysis of medical record diagnoses Understanding factors contributing to inappropriate critical care: a mixed-methods analysis of medical record documentation Performance analysis of AES-Blowfish hybrid algorithm for security of patient medical record data Identifying collaborative care teams through electronic medical record utilization patterns Promoting secondary analysis of electronic medical records in China: summary of the PLAGH-MIT critical data conference and health datathon Flexible, cluster-based analysis of the electronic medical record of sepsis with composite mixture models Incidence of bone metastases in patients with solid tumors: analysis of oncology electronic medical records in the United States Study on the biological basis of hypertension and syndrome with liver-fire hyperactivity based on data mining technology Energy efficient resource allocation for virtual services based on heterogeneous shared hosting platforms in cloud computing UtEnables collaborative decision making between healthcare providers and patients Ronowimanufacturing process based on a decision tree algorithm An introduction to Docker for reproducible research Improving the energy efficiency of relational and NoSQL databases via query optimizations Changing the history of anaphylaxis mortality statistics through the world health organization's international classification of diseases-11