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
  • Usage In Application
  • Development
  • Build
  • Deploy
  1. Packages

plasma-fhir-react-client-context

A React component that provides access to the fhirclient in a React app.

Installation

  • Make sure to install fhirclient.

  • yarn add plasma-fhir-react-client-context

Usage In Application

  • See sample applications for usage and examples.

  • FHIRClientLauncher handles redirecting for OAUTH2

  • Wrap your screens in a <FHIRClientContextWrapper> to access fhirclient

  • In your screen: const context = useContext(FHIRClientContext);

Development

Build

  • yarn build

    • Or maybe vite build

Deploy

  • Increment version

  • npm publish (Make sure you install json via npm install -g json)

Previousplasma-fhir-backend-utilsNextplasma-fhir-react-components

Last updated 2 years ago