@angshuonline… more good progress… using Redux-Saga I was able to create a relatively simplify saga to RESTfully save an encounter + obs using the basic OpenMRS REST API.
You can see an example of what I did here:
Here’s an example form with the form-control JSON embedded:
It extends this base component:
And here’s the saga that handles the submit action:
This is certainly still a prototype and not sure if this is the best approach, so interested in any feedback you may have!
I am going to continue to explore the code and examples, but a few other questions just in case you have quick answers for me:
the current application we are working on is meant to be used on tablets, so with touchscreen input; have you built any “touchscreen-friendly” forms with form-controls and are there any styles specifically geared toward touchscreens?
Do you use forms to edit existing observations? If so, are there any examples of this you can point me to?
It is possible to set up the Bahmni form builder without setting up a full Bahmni instance?
Thanks so much for your help… really cool to be able to use this library within our Ref App-based application…