Coding Week 04: GSoC 2022 With OpenMRS

Anjula Shanaka
3 min readJul 8, 2022

--

It’s been four weeks since the start of the coding phase. I cannot believe it’s been a month already. If you have been following my past articles you know the drill. So without further due let’s get started.

Testing

As I mentioned in my last article, I sent a PR with some unit tests but it was on review then. We had a code review with my mentor and he pointed out how to write them correctly. By the beginning of the week I was working on those tests and I was able to finish it finally.

Search History

After the tests, I started working on the search history as I planned to do. This feature gives the user the ability to see the search history with the following features,

  1. Save as a cohort
  2. Save as a query
  3. Download results as CSV
  4. Clear history
Search history is getting updated after each search
Download results as CSV
Save as a cohort
Save as a query
Delete search history item
Clear search history

New UI

By the end of the fourth week, I was able to start working on reorganising the user interface to match the design. It was easier than I thought. Here’s what it looks like now and I have attached the PR as well.

updated UI

What’s next — Search by Demographics

For the next week, I’ll be working on the search by demographics feature. This gives the user to search for patients based on gender, age and birthday.

Wireframe of search by demographics

As always I presented my work on the weekly O3 call as well.

With that, the fourth week of coding ended. I’m looking forward to finishing work on the next milestone. Stay tuned for the week 05 updates. Don’t forget to check out my other articles as well. See you guys at the next one. Until then stay safe! ✌️

Wanna get connected?
Linkedin: https://www.linkedin.com/in/anjula-sack/
Facebook: https://www.facebook.com/anjula.shanaka/
Github: https://github.com/anjula-sack

--

--

Anjula Shanaka
Anjula Shanaka

Written by Anjula Shanaka

GSoC ’22 @openMRS | CTO @SEF | Developer @promiseQ | Undergraduate @USJ