Family History Editor
UNDER CONSTRUCTION
PlasmaFHIR Family History Editor. This demonstrates how to build a full CRUD app with Plasma FHIR.
Description
Family History editing tool using PlasmaFHIR
Only works with SMART-on-FHIR for now because Epic does not allow patients to write/edit their own FamilyMemberHistory
Run
yarn startWindows (HTTPS):
($env:HTTPS = "true") -and (npm start)Mac (HTTPS):
HTTPS=true npm start
Project Setup Instructions
Create a new TypeScript React App
https://create-react-app.dev/docs/adding-typescript/
yarn create react-app my-app --template typescript
Install SASS
https://create-react-app.dev/docs/adding-a-sass-stylesheet/
yarn add sassRename
App.csstoApp.scssUpdate
App.tsxto useApp.scss
Copy
plasma-fhirmodulesCreate a
src/plasma-fhirdirectoryCopy modules into it
Install local
PlasmaFHIRpackagesnpm install --save ../../plasma-fhir-react-componentsnpm install --save ../../plasma-fhir-app-utils
Install FHIR types
yarn add @types/fhir
Install
fhirclientyarn add fhirclient
Install
react-router-domyarn add react-router-dom
Create
src/config/config.tswith the API key configurationsInstall some libraries
Tailwind CSS
https://tailwindcss.com/docs/guides/create-react-app
npm install -D tailwindcss postcss autoprefixernpx tailwindcss init -pUpdate
tailwind.config.js(see instructions)Update
index.css(see instructions)
react-table
https://github.com/TanStack/react-table
yarn add react-tableyarn add @types/react-table
VechaiUI
https://www.vechaiui.com/
yarn add @vechaiui/core @vechaiui/react @tailwindcss/forms
Last updated