A China Healthcare Security Diagnosis Related Groups Script Development Based On R Language
Abstract Background: To develop a set of R scripts that could efficiently and accurately identify the home page information of medical records and perform China Healthcare Security Diagnosis Related Groups (CHS-DRG) simulating grouping.Methods: Based on the CHS-DRG grouping rules, we abstracted the DRG grouping process into a standard algorithm and compiled the R script Z-DRG. The DRG simulating groupings by Z-DRG were compared with the DRG results from the regional CHS-DRG integrated service platform to evaluate the accuracy.Results: The Z-DRG includes one function module (zdrgfun. Rc), one operation module (zdrgpro. R) and one database form (zdrgcodes.RData). The function module set 7 algorithm steps and 8 custom functions. The functions were set for multiple diagnoses, multiple operations, joint diagnosis and operation. Only (17.85±0.11) milliseconds were taken for CHS-DRG simulating grouping of one case. Compared with the regional CHS-DRG results, the accuracy rate was 99.10%. The difference in the number of other diagnoses is the main reason that affected the accuracy.Conclusions: Z-DRG is easy to operate. The CHS-DRG simulating groupings were efficient and accurate. The simulation results could be effectively applied for medical institutions to carry out CHS-DRG grouping prediction and improve the implementation effect of CHS-DRG payment work.