plasma-fhir-react-client-context
v0.0.6
Published
Provide the fhir client context
Downloads
7
Readme
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 accessfhirclient
- In your screen:
const context = useContext(FHIRClientContext);
Development
Build
yarn build
- Or maybe
vite build
- Or maybe
Deploy
- Increment version
npm publish
(Make sure you installjson
vianpm install -g json
)