Week 3 involved making final changes in the API and finally pushing the work to the main module. After my mentor reviewed my work, he suggested many changes to make the module follow OpenMRS conventions. A few methods were also changed.
List getTags(List types, List tags, boolean matchAllTags) method was broken down into two methods :-
List getTags(List types, List tags) :- which returns a list of tag objects having one of the types and one of the tags
List getObjectWithAllTags(List types, List tags) :- which returns a list of OpenmrsObjects having one of the types and all the tags.
The return types of a few methods were also changed. Unit tests and proper java documentation was added. Other than that, my mentor (Wyclif Luyima) and I discussed the way forward. For the UI part my mentor suggested that apart from UI fragments we also work on Angular Js directives. For this our first step will we exposing the module to REST services.
I don’t have much experience with Rest Services, but I am learning as I go. For now I have made a PR for the API setup, and have started working on the Rest Services in a new branch.