plasma-fhir-backend-utils
Utility functions and APIs to help with building backend apps for NodeJS.
Installation
yarn add plasma-fhir-backend-utils
Usage
Create a PlasmaFHIRApi
instance:
iss
: URL to the FHIR server you are connecting toprivateKey
: The text of the private keySee here for details on generating one: https://fhir.epic.com/Documentation?docId=oauth2§ion=Creating-Key-Pair
clientId
: Client ID of your apptokenUrl
: URL of the token endpoint for your FHIR serverThis can be found at:
/.well-known/smart-configuration
/metadata
Development
Build
yarn build
or
tsc
if that doesn't work
Unit Tests
yarn test
Publish/Deploy
yarn build
yarn test
Windows:
npx mocha -r ts-node/register tests/**/*.spec.ts
Login as
plasmafhir
Increment version
npm publish
Last updated