Install the package:
yarn add @beda.software/fhir-questionnaireYou can also install with other package managers:
npm install @beda.software/fhir-questionnaire
pnpm add @beda.software/fhir-questionnaireTo use an unreleased version, install directly from Git or a local path:
# from the remote repository — pin to a specific commit hash for reproducibility
yarn add git+https://github.com/beda-software/fhir-questionnaire.git#<commit-hash>
# from a local clone
yarn add git+file:///home/user/path/to/fhir-questionnaire#<commit-hash>prepare runs on install and builds the dist artifacts in-place.
Make sure your project provides peer dependencies:
react@types/reacttypescript
import { QuestionnaireResponseForm, useQuestionnaireResponseForm } from '@beda.software/fhir-questionnaire';Make sure global dependencies (like react) are defined as peer-dependencies.
yarn typecheck
yarn test