Forms
Short Link to this Page: om.rs/o3forms
🎓 Online Form Builder Course 🎓
Check out our Virtual Academy course on the O3 Form Builder! You’ll learn how to create, validate, and publish O3 Forms using the user-friendly Form Builder interface. (🇫🇷 Les vidéos des cours sont disponibles en français ici.)(🇪🇸 Vídeos del curso disponibles en español aquí.)
Overview
Building Forms: The O3 reference application ships an embedded Form Builder that users can leverage to build forms interactively, using the interactive schema builder, or by writing JSON code into the embedded schema editor. Users can then render their forms within the Form Builder to get a feel of how they would look and feel in their system. Once satisfied that the forms work as they please, they can publish their schemas, which makes them available via the Clinical Forms dashboard in the Patient Chart. Users can then launch their published forms and fill them in to collect data.
Schema: Form schemas are written in JSON and conform to the O3 standard schema spec.
The Engine: Forms in OpenMRS v3 are powered by the React Form Engine (RFE).
RFE is a library that allows users to build and render forms for use in O3.
The React Form Engine was originally inspired by the Angular Form Engine and work is ongoing to ensure feature parity between the two libraries.
The React Form Engine is a library that can be consumed by any frontend module that needs to render forms. Currently, it’s used in the O3 form engine app, which is a wrapper around the library in the Patient Chart, and the O3 form builder, which is a standalone frontend module in the O3 reference application used for creating, editing and managing form schemas.
Guide to Forms in OpenMRS v3