Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

A form is a collection of fields classified through pages, sections and questions. These fields are rendered differently based on their associated question type and rendering. For example, a text field dropdown will behave differently than from a dropdown.

Forms are described using JSON schemas that conform to the O3 standard JSON schema spec. This standard JSON schema ensures that schemas built using either the Angular or React form engines have parity. Below is an example of a form rendered using the Form Engine:

...

  • validators: An array in which you provide validation logic for the specific question. Learn more about validators.

  • behaviours: An array of supported behaviours. Learn more about form behaviours.

  • isTransient The RFE supports the ability to make a form field transient. Making a field transient means that the data entered into the form is not saved permanently. This functionality can be easily integrated into the JSON format, as demonstrated below.

Code Block
        "questionOptions": {
          "isTransient": "true",
          "rendering": "date",
          "concept": "160555AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
        },

Components

...

There may be situations where you might want to separate commonly-used form logic into separate reusable bits. In such cases, you can structure that logic as a component form. Components can therefore be thought of as reusable forms that carry domain-specific information. Imagine a situation where you're creating many forms for use in a Point of Care setting. You might find that multiple forms might need to have sections for collecting pre-clinic Review information. This pre-clinic Review information could include details such as:

...