Versions Compared

Key

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

...

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

Panel
bordertrue
borderStyledashed
titleRequest

Request :

GET  /openmrs/ws/

...

atomfeed/

...

 

Code Block
{
 medication/recent

Headers :

None
Body:
None



Code Block
titleResponse (Example)
collapsetrue
{
  "resourceType": "Medication",
 
  "id": "b57493a390b2c862-ffc68147-408b11e5-ba6bb875-c26e4ddacae00050568225ca",
 
  "name": "Dextrose in Normal Saline (DNS) 5%, 500ml",
 Resadol Tablet",
  "code": {
   
    "coding": [
     
      {
       
        "system": "httphttps://{tr-server}dev.twhosted.com/openmrs/ws/rest/v1/tr/conceptsreferenceterms/f79d88a006965111-1f638144-420111e5-a7aab875-6a10645cf3170050568225ca",
       
        "code": "f79d88a0-1f63-4201-a7aa-6a10645cf317N02BE51",
 
              "display": "DextroseParacetamol, incombinations Normal Saline (DNS)excl. psycholeptics"
      },
     } {
       ] "system": "https://tr-dev.twhosted.com/openmrs/ws/rest/v1/tr/concepts/0695ed5d-8144-11e5-b875-0050568225ca",
   },     "productcode": {"0695ed5d-8144-11e5-b875-0050568225ca",
        "formdisplay": { "Paracetamol, combinations excl. psycholeptics"
      }
    ]
 "coding": [ },
  "product": {
    "form": {
      {"coding": [
        {
          "system": "httphttps://{tr-server}dev.twhosted.com/openmrs/ws/rest/v1/tr/referenceterms/b1bd59ace580148c-878d73f5-11e5-95ddb875-005056b0145c0050568225ca",
         
          "code": "385229008385055001",
    
               "display": "InfusionTablet dose solutionform"
    
           },
    
           {
         
          "system": "httphttps://{tr-server}dev.twhosted.com/openmrs/ws/rest/v1/tr/concepts/b1bd0907e57f9268-878d73f5-11e5-95ddb875-005056b0145c0050568225ca",
         
          "code": "b1bd0907e57f9268-878d73f5-11e5-95ddb875-005056b0145c0050568225ca",
         
          "display": "InfusionTablet dose solution"
     form"
          }
     
      ]
   
    }
 
  },
 
  "extension": [
   
    {
     
      "url": "https://sharedhealth.atlassian.net/wiki/display/docs/fhir-extensions#MedicationStrength",
     
      "valueString": "5%"325 mg + 37.5 mg"
    },
   
    {
 
          "url": "https://sharedhealth.atlassian.net/wiki/display/docs/fhir-extensions#MedicationRetired",
   
        "valueString": "false"
 
      }
 
  ]
}