Coding Week 05: GSoC 2022 With OpenMRS

Anjula Shanaka
3 min readJul 17, 2022

--

We are one week behind reaching the mid of the coding phase of GSoC. This week I was able to gain some speed than the previous weeks. Let's see what I have done so far this week. Here’s the week four update in case you need to follow up.

This week, I added the following searching criteria to the cohort builder.

Search by Demographics
Searching by demographics is where the user can create cohorts using the demographics.

There are 5 demographic search options namely:

  1. Gender — Search by gender option
  2. Age — Filter patient search results by age range i.e. 0–14
  3. Birthdate — Filter patient search results by birthdate range ie 20 Feb 1988–03 May 2006
  4. Alive — Search only for patients who are alive.
  5. Dead — Search for deceased patients.
Search by Demographics

Search by Person Attributes
There are 10 person attributes search options:

  1. Birthplace filter by place of birth
  2. Citizenship — Filter patient results by specifying their country of origin
  3. Civil Status
  4. Health Center — Filter by details of health centre attended by patients
  5. Health District allows you to filter by similar health districts
  6. Mother’s Name — Filter by similar mother’s name
  7. Race — Filter results by the patient’s racial background
  8. Telephone number — Filter by similar phone numbers
  9. Unknown patient
  10. Test patient

This allows the user to search for patients with specific information that further describes them.

Search by Person Attributes

Here’s the PR for search by demographics and search by person attributes,

Search by Encounters
Search by Encounter uses to search patients with a specific type of activity or encounter. For example, check-in, check-out, transfer, admission etc.

Search by Encounters

Search by Location
Search by location allows the user to search for patients by the encounter location. Ex: Amani hospital, inpatient ward, isolation ward etc.

Search by Location

Here’s the PR for search by encounters and locations,

Next week: Search by program enrollments
Searching by program enrollments has the following fields required by the user to perform the search.
* Program
* Date Ranges for the following
In The Program
Enrolled in the program
Completed the program

wireframe for search by program enrollments

As usual, I presented my work on the weekly O3 call. For more updates, you can follow my OpenMRS talk thread.

With that, the fifth week of coding ended. I’m looking forward to finishing work on the next milestone. Stay tuned for the week 06 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

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