GSoD 2019: Improved REST API Documentation

I do not believe so. Apps are accessed only after log in.


Can u access this on incognito mode

Hi @burke @dkayiwa

Is Orderentry ui still in usage? When I configured that to run with the latest ref app I can only see the prescribed medication link which points to the owa app (orderentry owa) .

But In a thread related to drug management saw the usage of orderenrty ui as well.Is there any configuration am missing (thread :- Drug Management)

I just want to get an idea about orders in the meantime thought to check the responsiveness of the orderentryui as well that’s why.But anyhow when I try to access it manually with typing the url I can access the module.

@ayesh my thinking was that you are starting with your focus on the resources provided by the webservices module.

Hi @dkayiwa

As per the discussion with @burke last Friday started things off things with already existing document and to refine them because they were outdated.On REST+Web+Services+API+For+Clients.

This is why I was testing the orders in Orderentry ui module in order to get an idea about subtypes because orders have test and drug order types.

And then move forward with resource types and build something like this.

And this is the place where we keep next upcoming tasks suggestions by @burke.

Hi @shafiq12

That is great to hear that you are intrested in working with us. :slightly_smiling_face: And this will be the talk thread for the project.

We are (Me an @batbrain7) currently focusing on Visits , Location , Encounter , And Patient Resource types.

The next resources we will work on will be here

As it shows u can pick up concepts resource type and move forward.It will be great.

Resources for u to refer

OpenMRS API docs :-

OpenMRS Swagger documentation:-

OpenMRS Data model :-

And u can intreact with the endpoints and get how there used by refering the OpenMRS Reference application server hosted here

First we will be working on mark down documentation.One markdown file for one resource.

You can find the repository that we are working here .

Fork it and make sure to send a PR when u are finished working on a resource.And let know if there are any problem for u to get started

Thank you Ayesh

Hi @burke @dkayiwa @tendomart

I have a small question regarding the below endpoint.Where we can query to get visit details.

    curl -X GET "" -H  "accept: application/json" -H  "authorization: Basic YWRtaW46QWRtaW4xMjM="   

What type of search query this endpoint accepts(value for q query parameter). I tried with patient name, display attributes a visit has but I didn’t get any result.

Did you see my examples above? Have you tried patient=:UUID instead of q=something?

Hi @burke

Yes I tried with uuid it works.But I am currently writing about this endpoint so just want to get an idea from what a visit can be searched :slightly_smiling_face:

Yeah. You’ll need to look at code or ask some devs.

@ayesh & @batbrain7, I’ve added some tips to our shared google doc. I’d like to adopt some consistent conventions in the documentation. While having some directly useable (copy & paste) examples of working curl commands (probably using could be instructive for n00bs, there’s a lot of unnecessary text we could avoid repeating with some simple conventions. For example, curl commands & parameters, base URLs, etc. We also want to minimize horizontal scrolling when possible in examples.

Also, don’t we want to put our documentation under a folder (e.g., docs/) in the repo with subfolders based on sections?

Finally, my initial notes in the google doc where just some examples of the types of things that we might want to start with. I’d like you to draft an outline (e.g., table of contents) of the sections you think we should tackle in our first pass (not a list of every resources, but the sections you think we should include up front followed by some of the key services/resources organized in whatever hierarchy you propose).

1 Like

@ayesh as for the visit search options, is this helpful?

1 Like

Hi @dkayiwa

Yes sure it helps.

But the problem is as I saw in the code as well in the request context it’s searching for location,patient,includeInactive,fromStartDate parameters.

curl -X GET  ''  -H 'Authorization: Basic YWRtaW46QWRtaW4xMjM=' 

But in swagger documentation, it’s saying it requires q as shown in screen shot (query param). Is it possible or only we can search like above curl request?.

Hi @burke

Yes that will be great will make the changes burke :slightly_smiling_face:

Please find the recording

I think it is the swagger documentation that should be fixed.

thanks @dkayiwa and @burke for the assistance your rendering :+1:

@batbrain7 hope things are going on well that side and fell free to ask for assistance or share your progress on your tasks so that the mentors can best help and guide you

@gcliff yes, the things are going well from my end and will definitely ask if any problem occurs and I regularly sync up with @ayesh regarding the documentation that we have to write.


Hi @burke

Will it be possible to review the PR so I can fix things.

Hi @dkayiwa

I noticed that

  1. visit resource delete
  2. Attribute sub resource delete

was not working in both demo and qa servers when purge request param has a value(either true or false)

but without purge it’s working fine.

@ayesh, I put several comments into a review of OCRAD-3. While this looks like a good start, I think we need to establish some general conventions before we go too far. I’ve tried to put some of these into our shared google doc.

I also fleshed out the outline in the google doc a bit more to include some of the areas I think we might want to cover.

1 Like