Custom EMR build
Intro
EMR component
The EMR component is the main application shell of Beda EMR. Use it as the root of a custom EMR build when you want to compose your own routes, sidebar menu, and authentication flow while reusing Beda EMR's layout, session handling, and built-in pages.
Clinical context
Clinical context is the working environment of a practitioner in Beda EMR: the signed-in user, the patient whose chart is open, the active encounter, and other FHIR resources that questionnaires and mappers need at runtime.
Resource detail page
ResourceDetailPage is the standard layout for FHIR resource detail views in a custom Beda EMR build. It loads a record from the server, wraps the page in clinical context, renders a tabbed header, and mounts tab content as nested routes.
Resource list page
ResourceListPage and ResourceListPageContent are the standard building blocks for FHIR resource list views in a custom Beda EMR build. They load paginated search results, render a filterable table, and wire up header, row, and batch actions — including questionnaire modals and navigation links.
Questionnaire actions
Header, row, and batch buttons on ResourceListPage can open questionnaire modals instead of custom React forms. You define two FHIR resources: