Generate app from specification

Now, you can turn Avni modelling(sample sheet) and scoping(sample sheet) Excel documents into a ready-to-upload Avni bundle ZIP in a couple of minutes.

Sheets are parsed and issues like below are flagged to user:

  • field names longer than 255 chars,
  • duplicate field names within a form
  • and duplicate coded concepts across forms with different options.
    Each proposed rename is shown to the user for confirmation before being applied.

Below rule generation are currently supported:

  1. Form element rule
  2. Decision rule
  3. Visit schedule rule
  4. Edit form rule
  5. Validation rule

Via chat interface as well, above rule types can be generated.

Demo: screen recording of how it works.


Setup of scoping sheet for uploading in a deployed environment

Reference: sample scoping sheet.

Form level rules

The scoping workbook needs to include a Rules (or Form Rules) tab. Tab format — one row per form, one column per rule kind. Cells are natural-language intent — no syntax required.
Any subset of the below supported columns may appear:

Form nameVisit Schedule RuleValidation RuleEdit Form RuleDecision Rule
ANC Followup"schedule next visit 30 days later""weight must be between 30 and 120 kg"
Adult Registration"age must be between 18 and 60""only the user who created the record can edit""set Age Group to Adult when age ≥ 18"
Pregnancy Exit"return empty"

Field-level rules — columns on each form sheet

Field-level rules (formElementRule) don't use the Rules tab — they come from optional per-field columns on the form sheets themselves. Five behaviour columns are recognised (any alias works):

Column aliasesWhat the generated rule does
when to show, visibility, skip logic, conditionshow the field only when …
when not to show, hide whenhide the field when …
default_value, default value, pre-fillpre-fill or compute the value
validation, validate when, block save whenraise a validation error when …
option condition, show options when, filter optionsrestrict the coded answer options

Cells are natural language, same as the Rules tab. Common visibility patterns (e.g. an "Other — specify" field paired with a coded field's Others option) are auto-detected even without any column.