This repository includes a sample application that demonstrates how to use the Blueprint Partner API v2 to integrate Blueprint into your application.
- Clone the repository.
- Make sure you have
node
andnpm
installed. This sample application has been built and tested with Node.js v20. - Run
npm install
to install the dependencies. - Create an
.env-cmdrc.json
file based on the sample.cp .env-cmdrc.json.sample .env-cmdrc.json
- Update the API secret values in the
.env-cmdrc.json
file with your Blueprint Partner API v2 credentials. - Run
npm start:staging
to start the application using the Blueprint Partner API v2 sandbox environment. - Run
npm start:production
to start the application using the Blueprint Partner API v2 production environment.
This application will load sample EHR from from JSON files in the data
directory, in the format
data/patients.[staging|production].json
. You can update these files with patients that match the
clients in the Blueprint clinic that you are connecting your partner application to.
Review Blueprint Partner API v2 documentation at https://api-v2-docs.blueprint-health.com for more information and API reference.
This sample application demonstrates typical integration scenarios:
- Host the embedded UI in your application and let Blueprint take care of the rest ("drop-in UI Only").
- Host the embedded UI in your application customize how the UI integrates with your application front end ("UI Only").
- Host the embedded UI in your application and deepen the integration by using the API ("UI + API").
- Build your own UI and completely customize the integration via the API ("API Only").