Skip to main content

Products

StandardDrug Endpoint

This endpoint require to get new credentials to authenticate, so you can have a JWT Token, then look for a specific standard drug, we have sort of 25 thousands records of standard drugs.

We recommend you to use the data you get like an autocomplete UI interface so the client can easily look for medications, and the recomend fields to look for are the "package_description" and "molecula" combined so the search could be more acurate for the medic searching.

The SD_ENDPOINT and the instructions of how to get the JWT token will be send to you by email.

Below there are some examples how to call the StandardDrug Enpoint and the response in its version 2.

Javascript - Payload#

$.ajax( {url: '{{ SD_ENDPOINT }}' + '/api/v2/standarddrug?query_string=<MEDICATION_QUERY_STRING>',        dataType: "json",        method: 'GET',        headers: {            'Authorization':'JWT {{ jwt_token }}'        },        success: function( data ) {          console.log( data );        }      } );

Curl - Payload#

curl -X GET \  'https://{{ SD_ENDPOINT }}/api/v2/standarddrug?query_string=medication' \  -H 'Authorization: JWT {{ jwt_token }}'

Example of the response for medication "neomicida"#

[    {        "package_detail_quantity": "0",        "package_desc": "Neomixen Neomicina 10 Tabletas Caja",        "description": "Neomicina 250 MG",        "molecule": "['neomicina']",        "package_detail": "",        "brand": "",        "measure_units": "",        "image_url": "https://s3-us-west-2.amazonaws.com/drugs-catalog/all_drugs/7501125109706.png",        "retail_price": "90.50",        "uid": "64d2d603e682c0b4d63f4c9a242852b66df33da05d9654000aef8dc56ded3403",        "order_id": 1    },,    ...]