Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

1. Format

The API is based on REST convention and atom+xml feed for exchange of data

2. Authentication

 Basic Authentication is needed

API

Medication Feed

Request

Request :

GET  /openmrs/ws/atomfeed/medication/recent

Authorization:
Username
Password

Headers :

None
Body:
None
Response (Example)
{
  "resourceType": "Medication",
  "id": "90b2c862-8147-11e5-b875-0050568225ca",
  "name": "Resadol Tablet",
  "code": {
    "coding": [
      {
        "system": "https://tr-dev.twhosted.com/openmrs/ws/rest/v1/tr/referenceterms/06965111-8144-11e5-b875-0050568225ca",
        "code": "N02BE51",
        "display": "Paracetamol, combinations excl. psycholeptics"
      },
      {
        "system": "https://tr-dev.twhosted.com/openmrs/ws/rest/v1/tr/concepts/0695ed5d-8144-11e5-b875-0050568225ca",
        "code": "0695ed5d-8144-11e5-b875-0050568225ca",
        "display": "Paracetamol, combinations excl. psycholeptics"
      }
    ]
  },
  "product": {
    "form": {
      "coding": [
        {
          "system": "https://tr-dev.twhosted.com/openmrs/ws/rest/v1/tr/referenceterms/e580148c-73f5-11e5-b875-0050568225ca",
          "code": "385055001",
          "display": "Tablet dose form"
        },
        {
          "system": "https://tr-dev.twhosted.com/openmrs/ws/rest/v1/tr/concepts/e57f9268-73f5-11e5-b875-0050568225ca",
          "code": "e57f9268-73f5-11e5-b875-0050568225ca",
          "display": "Tablet dose form"
        }
      ]
    }
  },
  "extension": [
    {
      "url": "https://sharedhealth.atlassian.net/wiki/display/docs/fhir-extensions#MedicationStrength",
      "valueString": "325 mg + 37.5 mg"
    },
    {
      "url": "https://sharedhealth.atlassian.net/wiki/display/docs/fhir-extensions#MedicationRetired",
      "valueString": "false"
    }
  ]
}
  • No labels