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.
- Create a file named
.env.local
in the root of the project and addTRIALSCOPE_TOKEN=<api_token>
to the top of the file and save (where<api-token>
is the TrialScope-provided API token). This is loaded viadotenv-flow
, see that documentation for details of how.env
files are loaded. - Run
npm install
- Run
npm start
- The service will now be running at http://localhost:3000/
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
Use npm run lint
to run the linter and npm test
to run tests.