Week 10: GSoC’23 with OpenMRS

Topherlumu
2 min readAug 7, 2023

--

we’ve reached an exciting milestone in Week 10: migrating the allergy form to React Hook Form. This transition not only enhances the performance and user experience of our application but also streamlines our codebase for better maintainability.

Migrating to React Hook Form

The first task on my agenda was to migrate the existing allergy form to utilize the power of React Hook Form.

The migration process turned out to be smoother than anticipated, thanks to the comprehensive documentation and clear examples provided by the React Hook Form community. The form structure became more concise, and the validation logic was simplified, making the codebase more maintainable and easier to understand. Additionally, the dynamic rendering of form fields based on user interactions became much more straightforward with React Hook Form’s built-in features.
Draft PR

Testing Adventures

With the migration complete, I turned my attention to the critical task of testing. Robust testing is essential to ensure that our application functions as expected and to catch any potential bugs or regressions. I embarked on a journey to implement various testing strategies to cover both the newly migrated allergy form and other parts of the application.

I’m thrilled to see how far our project has come.
Stay tuned for more updates in the coming weeks! Happy coding!

--

--