Question:
We have created a mobile client for our implementation,i.e, UgandaEMR . Ideally, the mobile client must be able to sync data to and from the facility EMR provided there is a network connection.
We have already worked on the synching of data from the EMR to the Mobile device, however, the challenge is sending data back to the EMR from the mobile device.
i see the url end point you are using is for an encountertype, if you are aiming at creating an encounter then the url should be something like this http://localhost:8087/openmrs/ws/rest/v1/encounter and the post payload probably like this
thats why the obs attribute is not being understood on the class org.openmrs.EncounterType because the EncounterType only takes in name and description attributes …
Feel free to correct me if i have gooten your question wrongly