neuropacs API

Logo

Improve diagnostic imaging in Radiology and Neurology by increasing accuracy and reducing time.

neuropacs.com

JavaScript API

Python API

Your software is 5 lines away from accurately diagnosing Parkinson’s variations

Neuropacs can differentiate three major Parkinsonisms (PD, MSA, and PSP) with proven accuracy > 90%.

We provide easy ways to integrate neuropacs into your medical software. Whether it is a diagnostic tool, PACS system, or medical image viewer, neuropacs can be easily integrated as a plugin.

JavaScript API

Connect to neuropacs diagnostic capabilities with our JavaScript API. GitHub Source Code

Getting Started

Setup

Include the neuropacs JavaScript API using the following line:

<script src="https://neuropacs.com/js/neuropacs.min.js"/>

Initialization

const apiKey = "your_api_key";
const serverUrl = "http://your_neuropacs_url";
const productId = "PD/MSA/PSP-v1.0";
const prediction_format = "XML";

// INITIALIZE NEUROPACS API
const npcs = Neuropacs.init(serverUrl, apiKey);

Example

//CONNECT TO NEUROPACS
const conn = await npcs.connect();

//CREATE A NEW JOB
const orderID = await npcs.newJob();

//UPLOAD A DATASET
const dataset = [file1, file2, file3];
const uploadStatus = await npcs.uploadDataset(dataset);

//START A JOB
//--> Valid product_id options: "PD/MSA/PSP-v1.0"
const job = await npcs.runJob(productId);

//CHECK STATUS
const jobStatus = await npcs.checkStatus();

//GET RESULTS
//--> Valid prediction_format options: TXT, XML, JSON
const results = await npcs.getResults(prediction_format);

Python API

Connect to neuropacs diagnostic capabilities with our Python API. GitHub Source Code

Getting Started

Installation

pip install neuropacs

Initialization

import neuropacs

api_key = "your_api_key"
server_url = "https://your_neuropacs_url"
product_id = "PD/MSA/PSP-v1.0"
prediction_format = "XML"

# PRINT CURRENT VERSION
version = neuropacs.PACKAGE_VERSION

#INITIALIZE NEUROPACS API
npcs = neuropacs.init(server_url, api_key)

Example

#CONNECT TO NEUROPACS
conn = npcs.connect()

#CREATE A NEW JOB
order_id = npcs.new_job()

#UPLOAD A DATASET
# --> dataset_path must be a valid path to a dataset <String>
upload_status = npcs.upload_dataset(dataset_path)

#START A JOB
# --> Valid product_id options: "PD/MSA/PSP-v1.0"
job = npcs.run_job(product_id)

#CHECK STATUS
job_status = npcs.check_status()

#RETRIEVE JOB RESULTS
# --> Valid prediction_format options: TXT, XML, JSON
job_results = npcs.get_results(prediction_format)