Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Complex Obs Analysis #11

Open
sajankos opened this issue Apr 17, 2019 · 1 comment
Open

Complex Obs Analysis #11

sajankos opened this issue Apr 17, 2019 · 1 comment
Assignees

Comments

@sajankos
Copy link
Contributor

Trying to attach an image to a concept.In OpenMrs , there is something called Complex Obs where we can attach image or whatever file we need.We can create a concept which is of complex type and can attach an image to it.
I was able to do this online within the OpenMRS webapp , the response would generate a URI with which I would be able to download the data.When I try it with REST , it does not seem to work.No error is being generated and it also gives a URI with which I can download, but when I try to download it , it gives me data which is 0 bytes.The OpenMRS seems to provide this facility as can be observed in their test cases as in the link below.
https://github.com/openmrs/openmrs-module-webservices.rest/blob/master/omod-1.9/src/test/java/org/openmrs/module/webservices/rest/web/v1_0/controller/openmrs1_9/ObsController1_9Test.java
Not sure if the pbm is with the version I am using.Tried sending data as both byte 64 code of file present in the value field and also as a form data.Need to analyse this further.

@sajankos sajankos self-assigned this Apr 17, 2019
@sajankos sajankos changed the title Complex Obs Complex Obs Analysis Apr 17, 2019
@sajankos
Copy link
Contributor Author

Got a reply from openmrs talk.Was asked to attach both file and json body in binary in postman to test.But that option is not available in binary.Only files can be attached no way to attach json body.I have put question back to them.Awaiting for response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant