Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Tip

Bahmni (and OpenMRS) REST API swagger can be accessed on a running Bahmni instance on this url: 

https://<bahmni-ip>:<port>/openmrs/module/webservices/rest/apiDocs.htm

For instance on the Bahmni Demo server, the URL will be: REST API (Demo Server)

  1. Login to OpenMRS as Admin.
  2. Click on Administration tab.
  3. Click on "API Documentation" link in the "REST Web Services" group. 

...

Tip

To see sample code on how to call Bahmni REST APIs, you can refer to the Bahmni Performance Tests written using Gatline Gatling (Scala DSL) here: https://github.com/Bahmni/performance-test/blob/master/src/test/scala/org/bahmni/gatling/HttpRequests.scala

...

Examples
     /patient-profiles/<patient-id>
     /diagnoses?patient-id=<patient-id>
     /observations?observation-type=vitals
     /treatments?patient-id=<patient-id>&for=last-visit
     /encounters?for=current
     /encounters?for=current-visit
     /visits
 
Links
http://pages.apigee.com/rs/apigee/images/api-design-ebook-2012-03.pdf

Notes from meeting
How to handle concept-answers vs. answers coming from different concept set.
Concept answers can be returned along with observation type group resource. When the answers in a different concept-set we probably just need to perform a search on it, need not expose the complete list via the api.

...