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 start
Windows (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 sass
Rename
App.css
toApp.scss
Update
App.tsx
to useApp.scss
Copy
plasma-fhir
modulesCreate a
src/plasma-fhir
directoryCopy modules into it
Install local
PlasmaFHIR
packagesnpm install --save ../../plasma-fhir-react-components
npm install --save ../../plasma-fhir-app-utils
Install FHIR types
yarn add @types/fhir
Install
fhirclient
yarn add fhirclient
Install
react-router-dom
yarn add react-router-dom
Create
src/config/config.ts
with the API key configurationsInstall some libraries
Tailwind CSS
https://tailwindcss.com/docs/guides/create-react-app
npm install -D tailwindcss postcss autoprefixer
npx tailwindcss init -p
Update
tailwind.config.js
(see instructions)Update
index.css
(see instructions)
react-table
https://github.com/TanStack/react-table
yarn add react-table
yarn add @types/react-table
VechaiUI
https://www.vechaiui.com/
yarn add @vechaiui/core @vechaiui/react @tailwindcss/forms
Last updated