rare-care-client
v1.3.0
Published
This package serves to provide a client that communicates with the API of RareCare.
Downloads
14
Readme
Rare Care Client JavaScript
This package serves as a quick example of a client that can communicate with the API of Rare Care World.
Getting started
Install it using
npm install rare-care-client
and use it as following
const client = require('rare-care-client');
Usage
Retrieving rare diseases:
Retrieve all rare diseases
client.getRareDiseases()
Retrieve all rare diseases as objects
client.getRareDiseases(true)
Retrieving diseases
Retrieve all diseases
client.getDiseases()
Retrieve all diseases as objects
client.getDiseases(true)
Retrieving codes for a disease:
Right now only LOINC and ATC codes are implemented and, as far as I can tell, only for diseases.
Retrieving all LOINC codes for the disease with id 7e8333a5-0cdc-40f6-ae02-bb037034ff39
.
client.getLoincCodesForNode('disease/', '7e8333a5-0cdc-40f6-ae02-bb037034ff39/', true)
Retrieving all ATC codes for the disease with id 7e8333a5-0cdc-40f6-ae02-bb037034ff39
.
client.getATCCodesForNode('disease/', '7e8333a5-0cdc-40f6-ae02-bb037034ff39/', true)