Versions Compared

Key

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

1. Format

The purpose of concept api is to fetch details of concept in context. The API is based on REST convention and would use JSON format for exchange of data.2AuthenticationThis API needs Basic Authentication. The username and passwords will be of a user created in TR system with role TR API CONSUMER.

Request

GET http
GET http://{{tr
-
_server}}/openmrs/ws/rest/v1/tr/concepts/{{identifier}}

Authorization

Username

Password

 

Response

Code Block
 {
 {
  "uuid": "bd6d50e2d6971a0c-878d82f3-11e5-95ddb875-005056b0145c0050568225ca",
 
  "uri": "httphttps://{{tr-server}}/openmrs/ws/rest/v1/tr/concepts/{{identifier}}",
 
  "version": "0.1",
 
  "datatypeName": "N/A",
 
  "conceptClass": "DiagnosisSymptom/Finding",
 
  "retireReason": null,
 
  "fullySpecifiedName": {
   
    "conceptName": "Acute nasopharyngitis [common cold]Vomiting",
   
    "conceptNameType": "FULLY_SPECIFIED",
 
      "locale": "en",
   
    "preferred": true
 
  },
 
  "names": [
   
    {
     
      "conceptName": "Acute nasopharyngitis [common cold]Vomiting",
     
      "conceptNameType": "FULLY_SPECIFIED",
     
      "locale": "en",
     
      "preferred": true
   
    }
    ],
 
  "referenceTerms": [         {
     
      "uriconceptName": "http://{tr-server}/openmrs/ws/rest/v1/tr/referenceterms/{identifier}",
    Vomiting",
       "uuidconceptNameType": "bd6d809c-878d-11e5-95dd-005056b0145c",
            "code": "J00",
     SHORT",
      "namelocale": "Acute nasopharyngitis [common cold]en",
     
      "conceptSourcepreferred": {
                "uuid": "a6d721b4-7d6b-11e5-a0cb-005056b0145c",
                "name": "ICD10-BD",
            false
   "description": "ICD10-BD",
                "hl7Code": "ICD10-BD"
            },
            "mapType": "SAME-AS",
         ],
  "retiredreferenceTerms": false,
            "conceptReferenceTermMaps": []
        }
    ],
 
  "description": null,
 
  "setMembers": [],

   "properties": {},
    "conceptAnswers": [],

   "set": false,
    "retired": false
}


  In this page:

Table of Contents