So my understanding is that the Android client uses different forms technology using the REST API. So my question is how does a project to build on top of the Android look like with the custom forms? Are they saved in the OpenMRS installation being accessed by the Android client, if so where?
@ssmusoke, we needed to use something, which was simple and we could fully control so we decided to use json forms. You can read more about them in the following topics:
We want to discuss Form Designer as part of implementer's interface. Please find more context
As being discussed in another thread, we would like to discuss on how we can collaborate to agree on a common form definition.
This started as an effort to have an easier way to create and consume forms in angular. We adopted an approach that leverages the features provided by
angular formly which is an angular module that provide an easy way to create and use forms in angular applications. We created what we call an OpenMRS JSON schema ( here is an example) to facilitate an easy way of capturing OpenMRS specific information. The schema is translated into the format that can be consumed by the angular formly …
You can find out more about how to set it up for OpenMRS Android Client on this thread:
I got some vitals json forms working on my client, which have numeric input
However , I want to make some custom forms with text, numeric, complex observation input .
Is there also any simple way to make such custom Json forms.
Moved question to a new thread for increased visibility.
Also is there any way to embed complex observations in these json forms(picture,document etc )
can you give me some examples of other json forms ?
can you give me example of a json form
Sorry we haven’t documented it properly yet!
@raff … Just wondering if there is skip logic supported where different options are selected based on the selection
@ssmusoke, it’s not implemented yet. If you need it, then create an issue! It should be easy to implement. I can fill in details.