Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(fix) Improve Patient Registration and Offline Functionality #814

Merged
merged 2 commits into from
Oct 2, 2023

Conversation

icrc-jofrancisco
Copy link
Contributor

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:

  1. 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.

  2. 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.

  3. 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:
before_off_registration

After:

after_off_registration

None.

Related Issue

None.

Other

None.

Thanks,

@delphinepas
Copy link

@FlorianRappl @ibacher can you please review this PR? thank you cc @icrc-jofrancisco @icrc-fdeniger @gracepotma

@ibacher ibacher changed the title (bugfix / feat) Improve Patient Registration and Offline Functionality (fix) Improve Patient Registration and Offline Functionality Oct 2, 2023
@ibacher ibacher merged commit 5735345 into openmrs:main Oct 2, 2023
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants