Here is the issue. I already saw in the core that is a class Orderfrequency that have a variable double frequencyPerDay which represents the number of times per day you should take the medicamentation . And the ticket say that i should create a backend implementation of adding this frequency in the database. So from my understanding i think i should extend the OrderResource and create a new function to add it in the database and probably override some functions to add it like a property .Did I get it ? Can you give me some hints ,directions please?
We already have an order frequency resource which you can modify and add the ability to save https://github.com/openmrs/openmrs-module-webservices.rest/blob/master/omod-1.10/src/main/java/org/openmrs/module/webservices/rest/web/v1_0/resource/openmrs1_10/OrderFrequencyResource1_10.java#L84
The tests would go in this class: https://github.com/openmrs/openmrs-module-webservices.rest/blob/master/omod-1.10/src/test/java/org/openmrs/module/webservices/rest/web/v1_0/controller/openmrs1_10/OrderFrequencyController1_10Test.java
Ohh. That help a lot. Can you give me also a class where a similar property is save to take as reference?Or if I search for any other save method I think I will figure out what I should do.
You could take a look at the save methods in these resources: https://github.com/openmrs/openmrs-module-webservices.rest/tree/master/omod-1.8/src/main/java/org/openmrs/module/webservices/rest/web/v1_0/resource/openmrs1_8