plasma-fhir
  • What is Plasma FHIR?
  • Docs
    • Guides
      • Getting Started
      • Create an Epic Patient App
      • Create an Epic Clinician App
      • Create an Epic Backend App
      • Testing with SMART Health IT Sandbox
      • Developing/Contributing to Plasma FHIR
  • Packages
    • create-plasma-app
    • plasma-fhir-app-utils
      • PlasmaFHIRApi
      • Resources
      • PlasmaFHIRUtils
      • Conversions
      • DateTimeUtils
    • plasma-fhir-backend-utils
    • plasma-fhir-react-client-context
    • plasma-fhir-react-components
  • Sample Apps
    • Plasma Portal
    • Plasma Portal Lite
    • Family History Editor
    • Playground
Powered by GitBook
On this page
  • Installation
  • Util Functions
  • FHIR Client APIs
  • Development
  • Build
  • Unit Tests
  • Publish/Deploy
  1. Packages

plasma-fhir-app-utils

Utility functions and APIs to help with building apps.

Installation

  • yarn add plasma-fhir-app-utils

Util Functions

  • Calculate an age from a DOB

  • Convert units

FHIR Client APIs

  • APIs for querying for resources with type info

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

  • You also need to update/publish packages/plasma-fhir-backend-utils

    • Update the version of plasma-fhir-app-utils that it's using.

    • The reason is because it returns a PlasmaFHIRApi

    • TODO: Need to separate these dependencies or have the backend utils export the api

Previouscreate-plasma-appNextPlasmaFHIRApi

Last updated 2 years ago