Week 4: GSoC with OpenMRS

Saurabh Kumar
2 min readJul 2, 2021

--

This week was focused on handling the Offline functionality in operations inside AllergyRepository and few operations in the PatientRepository.

After understanding the workflow of Allergies section we came to a conclusion that offline addition of allergies from the OpenMRS Client was not possible since it needs terms from the OpenMRS concept dictionary which are available on the fly while the device is online but arent available while it is offline. So I added offline support for the delete operation for allergies.

Similar work is required for PatientRepository as well, after understanding the workflow there I was able to add support of editing of Patients in offline mode (the PR-913 is still a draft PR), the rest operations will be my tasks for next week. The target of getting the offline structure in place before the first evalutions is well on track :).

In addition, we had some Issues with our HTTP debugging library due to some NPE Issues turns out its a known bug here. It will get resolved by updating the dependencies and the Issue has been made ready. Kudos to Shivam for work on this Issue !!

Moreover, another Issue was in the PatientPhotoActivity due to the ImageView throwing up NPE but only sometimes so I added a sanity check there to avoid this Issue.

One last bug that I solved this week was with the providerDashBoard activity where the updates to the providers were not getting reflected in the recycler view, so I made sure that the recycler view gets notified that the dataset has been changed with the operation.

Next week the work will mostly be focused on completion of the offline structure for the PatientRepository as well, and making sure everything works fine with the new HTTP chucker as well.

Happy Weekend :)

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Saurabh Kumar
Saurabh Kumar

Written by Saurabh Kumar

Cooking Dreams | Engineering at AWS Github.Handle : https://github.com/LuGO0

No responses yet

Write a response