Skip to main content

An Approach for Refactoring System Healthcare Using CQRS, GoF, and Natural Language Processing

  • Conference paper
  • First Online:
International Conference on Advanced Intelligent Systems for Sustainable Development (AI2SD’2023) (AI2SD 2023)

Abstract

We presents a comprehensive approach for refactoring healthcare systems using natural language processing (NLP), Command Query Responsibility Segregation (CQRS), and Gang of four (GoF) design patterns. The proposed method aims to improve performance, scalability, and maintainability without altering the system’s external behavior. It encompasses three main phases: analysis, design, and implementation. The analysis phase identifies pain points and utilizes NLP to extract valuable information from the existing system. In the design phase, CQRS and GoF patterns are employed to model the new healthcare system. Finally, the implementation phase involves refactoring the legacy codebase. The approach is validated through a case study, demonstrating enhanced scalability, performance, and maintainability, with potential applications across various domains.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 149.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 199.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

  1. Ampatzoglou, A., Charalampidou, S., Stamelos, I.: Research state of the art on GoF design patterns: a mapping study. J. Syst. Softw. 86(7), 1945–1964 (2013). https://doi.org/10.1016/j.jss.2013.03.063

    Article  Google Scholar 

  2. Kabbedijk, J., Jansen, S., Brinkkemper, S.: A case study of the variability consequences of the CQRS pattern in online business software. In: Proceedings of the 17th European Conference on Pattern Languages of Programs, Irsee Germany: ACM, pp. 1–10, July 2012. https://doi.org/10.1145/2602928.2603078.

  3. Hussain, S., Keung, J., Khan, A.A.: The effect of gang-of-four design patterns usage on design quality attributes. In: 2017 IEEE International Conference on Software Quality, Reliability and Security (QRS), Prague, Czech Republic: IEEE, pp. 263–273, July 2017. https://doi.org/10.1109/QRS.2017.37.

  4. Bafandeh Mayvan, B., Rasoolzadegan, A., Ghavidel Yazdi, Z.: The state of the art on design patterns: a systematic mapping of the literature. J. Syst. Softw. 125, 93–118 (2017). https://doi.org/10.1016/j.jss.2016.11.030.

  5. Kim, M., Zimmermann, T., Nagappan, N.: An empirical study of refactoring challenges and benefits at microsoft. IIEEE Trans. Software Eng. 40(7), 633–649 (2014). https://doi.org/10.1109/TSE.2014.2318734

    Article  Google Scholar 

  6. Elish, M.O., Mohammed, M.A.: Quantitative analysis of fault density in design patterns: an empirical study. Inf. Softw. Technol. 66, 58–72 (2015). https://doi.org/10.1016/j.infsof.2015.05.006

    Article  Google Scholar 

  7. Panigrahi, R., Kuanar, S.K., Kumar, L.: Responsive software architecture patterns for workload variations: a case-study in a CQRS-based enterprise application. In: International Conference on Neural Information Processing ICONIP 2022: Neural Information Processing, pp. 194-205

    Google Scholar 

  8. Arcelli Fontana, F., Zanoni, M.: Code smell severity classification using machine learning techniques. Knowl.-Based Syst. 128, 43–58 (2017). https://doi.org/10.1016/j.knosys.2017.04.014

  9. Di Nucci, D., Palomba, F., Tamburri, D.A., Serebrenik, A., De Lucia, A.: Detecting code smells using machine learning techniques: are we there yet?. In: 2018 IEEE 25th International Conference on Software Analysis, Evolution and Reengineering (SANER), Campobasso: IEEE, pp. 612–621, March 2018. https://doi.org/10.1109/SANER.2018.8330266

  10. Azeem, M.I., Palomba, F., Shi, L., Wang, Q.: Machine learning techniques for code smell detection: a systematic literature review and meta-analysis. Inf. Softw. Technol. 108, 115–138 (2019). https://doi.org/10.1016/j.infsof.2018.12.009

    Article  Google Scholar 

  11. Saca, M.A.: [IEEE 2017 IEEE 37th Central America and Panama Convention (CONCAPAN) - Managua, Nicaragua (2017.11.15-2017.11.17)] 2017 IEEE 37th Central America and Panama Convention (CONCAPAN XXXVII) - Refactoring improving the design of existing code (2017), 1–3. https://doi.org/10.1109/CONCAPAN.2017.8278488

  12. Fontana, F.A., Spinelli, S.: Impact of refactoring on quality code evaluation. In: Proceedings of the 4th Workshop on Refactoring Tools, Waikiki, Honolulu HI USA: ACM, pp. 37–40, May 2011. https://doi.org/10.1145/1984732.1984741

  13. Gamma, E., Helm, R., Johnson, R., Vlissides, J.: Design Patterns: Elements of Reusable Object-Oriented Software (1994)

    Google Scholar 

  14. Onarcan, M.O., Fu, Y.: A case study on design patterns and software defects in open source software. JSEA 11(05), 249–273 (2018). https://doi.org/10.4236/jsea.2018.115016

    Article  Google Scholar 

  15. Kebir, S., Borne, I., Meslati, D.: A genetic algorithm-based approach for automated refactoring of component-based software. Inf. Softw. Technol. 88, 17–36 (2017). https://doi.org/10.1016/j.infsof.2017.03.009

    Article  Google Scholar 

  16. Hussain, S., et al.: Methodology for the quantification of the effect of patterns and anti-patterns association on the software quality. IET Softw. 13(5), 414–422 (2019). https://doi.org/10.1049/iet-sen.2018.5087

    Article  Google Scholar 

  17. Chihada, A., Jalili, S., Hasheminejad, S.M.H., Zangooei, M.H.: Source code and design conformance, design pattern detection from source code by classification approach. Appl. Soft Comput. 26, 357–367 (2015). https://doi.org/10.1016/j.asoc.2014.10.027

    Article  Google Scholar 

  18. Benkassioui, B., Kharmoum, N., Hadi, M.Y., Ezziyyani, M.: NLP methods’ information extraction for textual data: an analytical study. In: Kacprzyk, J., Ezziyyani, M., Balas, V.E. (eds.) International Conference on Advanced Intelligent Systems for Sustainable Development. AI2SD 2022. LNNS, vol. 637, pp. 515–527. Springer, Cham (2023). https://doi.org/10.1007/978-3-031-26384-2_44

  19. Kharmoum, N., Rhalem, W., Retal, S., bouchti, K.E., Ziti, S.: Getting the UML’s behavior and interaction diagrams by extracting business rules through the data flow diagram. In: AI2SD 2020. AISC, vol. 1417, pp. 540–547. Springer, Cham (2022). https://doi.org/10.1007/978-3-030-90633-7_45

    Chapter  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Mohamed El Boukhari .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2024 The Author(s), under exclusive license to Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

El Boukhari, M., Retal, S., Kharmoum, N., Saoiabi, F., Ziti, S., Rhalem, W. (2024). An Approach for Refactoring System Healthcare Using CQRS, GoF, and Natural Language Processing. In: Ezziyyani, M., Kacprzyk, J., Balas, V.E. (eds) International Conference on Advanced Intelligent Systems for Sustainable Development (AI2SD’2023). AI2SD 2023. Lecture Notes in Networks and Systems, vol 904. Springer, Cham. https://doi.org/10.1007/978-3-031-52388-5_5

Download citation

Publish with us

Policies and ethics