The demo application is a Node.js and React.js system to visualize the Google Cloud Healthcare Natural Language API. You can upload your own sample medical text to visualize the output such as medical dictionaries, entity extraction and relationships, context assessment and more. We have also provided sample texts for a a medical record, research paper and lab form.
- A GCP Project with billing and the Healthcare NLP API enabled.
- Complete the Healthcare NLP How-to Guide.
- Note: For the purposes of this demo, grant the new service account "Viewer", not "Owner".
- Familiarity with Google Cloud Functions and Vue.js.
This demo will create a cloud function that is executable by ANYONE on the Internet. Be sure to delete it when your demonstration is complete.
The HTTP Cloud Function can be found in the /analyzeDocument
directory. Please note, this code is NOT
meant for production use.
grep
the/analyzeDocument
directory for the stringREPLACE
.- You will need to replace these placeholders with real values.
- Download the service account key for your project.
- Deploy the Cloud Function, you can follow the instructions here.
- See the sample invocation in
util/deploy_cf.sh
- See the sample invocation in
- Copy the endpoint for your Cloud Function.
The Vue.js app is found in the /app
directory.
grep
the/app
directory for the stringREPLACE
.- You will need to replace these placeholders with real values.
cd app/
- Paste your Cloud Function endpoint in to the placeholder in index.html.
- Start a local server of your choice and open the application in your browser.
- See the sample server in
util/server.py
.
- See the sample server in