(fix) Improve Patient Registration and Offline Functionality #814
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Requirements
Summary
This pull request addresses several issues related to patient registration, particularly when the application is used offline and when custom field definitions are involved. The key changes and enhancements are as follows:
Caching Patient Field Definitions: Previously, the patient registration process relied on fetching field definitions from the server every time a new patient was registered. This led to errors and inconsistencies when the application was used offline. In this pull request, we introduce caching for patient field definitions. Now, these definitions are fetched and stored locally, reducing errors and improving the user experience.
Offline Patient Registration with Custom Field Definitions: With this update, users can seamlessly register patients while offline, even when custom field definitions are present in the configuration. This functionality ensures that the application remains robust and user-friendly in various scenarios.
Improved Offline Registration Workflow: In the past, users were required to visit the registration page at least once to enable offline patient registration. This requirement has been removed. All necessary resources, including field definitions, are now cached during the startup of the application, allowing users to register patients offline right from the start.
Screenshots
Before:
After:
None.
Related Issue
None.
Other
None.
Thanks,