How to insert HTML form data via API

Hi, I want to insert xRay result from my custom xray application to openmrs HTML form.

But I don’t find sufficient documentation to understand clearly. If anyone have experience on this criteria please give me sample code or example.

Thanks in ADVANCE,

S

Are they X-ray images that you want to submit to OpenMRS?

no, not images. Just results. Form looks like:

How can I do this? Should I’ve to use encounter api and insert encounter data against this form encounter ?

Did you get a chance to look at this? https://wiki.openmrs.org/display/docs/HTML+Form+Entry+Module

Yes I saw it. But I’ve to send data via API. Because I tried to made an automation process.

Did you take a look at the obs resource of the rest webservices module? Here are some test examples: https://github.com/openmrs/openmrs-module-webservices.rest/blob/cf06f31e72417d6089d97b77683c914c0ceff245/omod-1.9/src/test/java/org/openmrs/module/webservices/rest/web/v1_0/controller/openmrs1_9/ObsController1_9Test.java