The Patient Registration form micro-frontend for OpenMRS SPA. It includes a configurable dashboard and form fields for new patient data.
The Patient Registration module is divided into 3 separate component types: Root, PatientRegistration, and Fields.
- React (TypeScript) - Front-end JS library
- Jest - JS testing framework
- React Testing Library - JS testing library for React components
- npm - Node package manager
- webpack - JS module bundler
- ESLint - JS linter
- Prettier - Code formatter
- Babel - JS compiler
- Travis CI - CI service
- Clone the openmrs-esm-patient-registration repo
git clone https://github.com/openmrs/openmrs-esm-patient-registration.git
- Install dependencies in the root directory of the repo
npm i
- Run the module from
localhost:8080
npm start -- --https
Note: the module URL: https://openmrs-spa.org/openmrs/spa/patient-registration.
- Click
Add new module
in the dev tools window - Type in the
Module Name:
@openmrs/esm-patient-registration-app
- Type in the
Override URL:
8080
- Go to the browser's development tools (e.g. via
Inspect
) - Go to the
Application
tab - Go to
Local Storage
- Find the key:
import-map-override:@openmrs/esm-patient-registration-app
- Update the corresponding value to:
//localhost:8080/openmrs-esm-patient-registration.js
- Refresh the page
To verify that all of the tests run:
npm test
Note: Run npm i
before running tests for the first time.
Currently, there are no releases for this module and it can only be locally deployed by following the installation instructions.
This module is designed to be driven by configuration files. These files define the look and functionality required to drive the Patient Registration module.
Note: Currently, the module cannot be configured as it is in the early stages of development.
- Florian Rappl - scaffolding and setting up the module as well as onboarding the dev team
- Romain Buisson - design, inception, and analysis
- Helena Lyhme - design, inception, and analysis
- Susanna Schiavi - design, inception, and analysis
The project is licensed under the MIT License - see the LICENSE.md file for details.