/clinical-trial-matching-service-trialscope

Backend service that calls APIs for clinical trial matching

Primary LanguageTypeScriptApache License 2.0Apache-2.0

clinical-trial-matching-service-trialscope

Backend service that calls TrialScope's API for the front-end clinical-trial-matching-engine.

For more information on the architecture and data schemas of the clinical trial matching system, please visit the clinical-trial-matching-engine wiki.

Setup

  1. Create a file named .env.local in the root of the project and add TRIALSCOPE_TOKEN=<api_token> to the top of the file and save (where <api-token> is the TrialScope-provided API token). This is loaded via dotenv-flow, see that documentation for details of how .env files are loaded.
  2. Run npm install
  3. Run npm start
  4. The service will now be running at http://localhost:3000/

Services

The ResearchStudy object passed back by this server must be FHIR-compliant

Note: The clinical-trial-matching-service library provides a "backup" system for filling in information missing from the object passed back from the matching service. This system fills in the following based on the trial's ClinicalTrials.gov ID:

  • Inclusion/Exclusion Criteria
  • Phase
  • Study Type
  • Trial Summary

Lint and tests

Use npm run lint to run the linter and npm test to run tests.