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
  • Description
  • To Run Locally
  • Instructions for Deploying to https://plasmafhir.com/portal
  • Technical Notes
  • Libraries/Packages Being Used
  1. Sample Apps

Plasma Portal

Previousplasma-fhir-react-componentsNextPlasma Portal Lite

Last updated 2 years ago

Patient Portal built with Plasma FHIR.

Description

  • Standalone patient portal utilizing FHIR and the PlasmaFHIR framework.

  • Select your health system, login using your MyChart credentials, and view your health data!

    • Note: Currently only Epic-based health systems are available

To Run Locally

  • Update config/config.ts to set mode = "LOCAL"

  • It will probably launch at /portal because the package.json has that set as the homepage. In this case, just remove the /portal

  • Run in https

    • Windows: ($env:HTTPS = "true") -and (npm start)

    • Mac: HTTPS=true npm start

Instructions for Deploying to https://plasmafhir.com/portal

  • Update config/config.ts to set mode = "PRODUCTION"

    • Add the 404.html page in the root directory and set pathSegmentsToKeep = 1 since we will be using /portal

    • Add the script from the instructions into index.html

    • Set <BrowserRouter basename="/portal"> (this is already handled by config.ts)

    • Set the redirectUri to https://plasmafhir.com/portal/app

  • Build the site with yarn build

  • Copy files into the /portal directory, but DO NOT copy 404.html. Keep 404.html at the root level

Technical Notes

Libraries/Packages Being Used

  • Plasma Portal

    • Install SASS

    • TailwindCSS

    • React Table

    • fhirclient

Instructions found here:

https://github.com/rafgraph/spa-github-pages