GSoC 2022 with OpenMRS: Week 05

Kumuditha Karunarathna
2 min readJul 18, 2022

As the Week 05 of Google Summer of Code started on the 10th of July this week my main goal was to start the development of Schema Editor Component. On the last blog post I mentioned about the different schemas and unit testing, here a link to that post.

With the research i did on week 04 about schemas, i got few confusing parts on the form schema that should be used in OpenMRS form builder. So I arranged a call with my mentor Samuel Male, to clear out the doubts. We had a hour long discussion on form schemas of Ampath and Ohri. He explained me the differences of the schemas and we decided to stick with the Ampath Schema for OpenMRS form builder. Also we discussed about the form rendering part of the form viewer component and Samuel gave me few clues on how to use the angular based form engine to render forms. These points helped me a lot this week.

Then I started the development of the Schema Editor. First I created a layout to all three components, the schema editor requires a editor to edit the JSON schemas. For this I thought of using the Ace-editor, it’s an awesome editor that supports syntax highlighting for more than 100 languages. I have used this editor on the Ohri form builder previously, with that experience i thought of using it for OpenMRS form builder as well. The form builder should be able to create new schemas, edit schemas of current forms and import schema for a form the schema isn't available. I was able to implement a way to differentiate these states of the editor. I hope to complete the schema editor component next week.

These are the tasks that I was able to finish this week, Thank you for reading, Stay tuned and check back next week for the sixth week’s blog post. Peace ✌️

--

--

Kumuditha Karunarathna

GSoC 22 OpenMRS, Software Engineering Undergraduate at University of Westminster, UK