Skip to content

ayush-AI/openmrs-esm-form-builder

 
 

Repository files navigation

OpenMRS ESM Form Builder App

The Form Builder is a widget used to create OpenMRS form schemas. It enables users to both create new schemas and edit existing ones. It provides an embedded code editor that accepts JSON code. It also provides an interactive editor where users can construct a schema interactively without writing code.

Form Builder User Guide

Running this code

Under the hood, the Form Builder uses the OHRI form engine to render a visual representation of your schema. This visual preview gets progressively updated as you build your schema. When done building, you can save your schema to an OpenMRS server. You can also publish your schema to make it available to your frontend.

Local development

yarn  # Installs dependencies
yarn start  # Launches a dev server

Once the dev server launches, log in and select a location. You will get redirected to the home page. Once there, you can either:

  • Click the App Switcher icon in the top right corner and then click Form Builder to launch the app.
  • Manually navigate to the /openmrs/spa/form-builder URL.

Building

yarn build

Running tests

yarn test 

About

OpenMRS Form Builder microfrontend

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 91.5%
  • SCSS 5.8%
  • JavaScript 2.6%
  • Shell 0.1%