Coding week 09: GSoC 2022 with OpenMRS

Anjula Samarasinghe
3 min readAug 13, 2022

--

The third month of coding with OpenMRS started 7th of August 2022. We have three more weeks of coding time left. If you didn’t read last week's update. You can read it here. Now let’s start with this week's update.

Composition

As for this week's milestone, I started working on the composition feature. A composition query combines together the results of multiple cohorts using the logical operators: AND, OR and NOT.

To use this query you need to already have query results in your search history. Those existing query results can then be combined to yield the results of the composition query.

For example: if search history #1 is a cohort of patients who are males, and if search history #2 is a cohort of patients with ages between 23 and 35 years; then ‘1 AND 2’ will result in a cohort of patients who are males with ages between 23 and 35 years

Revisited milestones

Since we are slowly closing to the end of the coding weeks. My mentor suggested revisiting the milestones to make sure that we are not behind the schedule. I was already making sure that I’m reaching my milestones on time so there was nothing to worry about.

SQL Patient filter

As for the next week, I will be working on the SQL patient filter. With this feature, the user can write custom SQL queries to filter the patient. This was a feature in Cohort Builder 1.0 which was using JSP. Since the new cohort builder 3.0 is using React it requires an API to execute the query. First I will be creating the API. Then I will be moving on to integrating it.

By now you know that I’m presenting my work on the weekly O3 call. For more updates, you can follow my OpenMRS talk thread.

With that, this week came to an end. I’m looking forward to finishing work on the next milestone. 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 Samarasinghe
Anjula Samarasinghe

Written by Anjula Samarasinghe

Senior Frontend Developer | GSoC ’22 @openMRS | CTO @SEF

No responses yet