Looking for help?
-
Introduction
-
HIE Components
-
-
Developers Guide
-
System Integration
-
User Workflows
-
Release Notes
-
Implementer's Guide
< All Topics
Print
Medication API
Posted
Updated
Byadmin
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/rest/v1/tr/drugs/{{identifier}}
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_server}}/openmrs/ws/rest/v1/tr/referenceterms/06965111-8144-11e5-b875-0050568225ca",
"code": "N02BE51",
"display": "Paracetamol, combinations excl. psycholeptics"
},
{
"system": "https://{{tr_server}}/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_server}}/openmrs/ws/rest/v1/tr/referenceterms/e580148c-73f5-11e5-b875-0050568225ca",
"code": "385055001",
"display": "Tablet dose form"
},
{
"system": "https://{{tr_server}}/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"
}
]
}
Table of Contents