Data apps

Record types

A record type defines the subject an app collects data about — a school, a patient, a household — and, crucially, how you tell one from another.

Creating one

  1. 1Open Configure → Record types and add one. Name it after the thing, singular: School, Patient, Household.
  2. 2Choose its identity — which answers decide that two submissions are about the same subject.
  3. 3Choose which answers are promoted onto the record as attributes.

Identity

Identity is the part worth thinking about. It decides whether tomorrow's visit adds to an existing record or creates a second one for the same school.

ApproachWhen it fits
An external codeBest when one exists — a UDISE code, a patient number, a registration id. Unambiguous, and it matches whatever system you already run.
A combination of answersWhere no code exists. School name plus block plus district, for instance. Choose fields that do not change.
No identityEvery session creates a new record. Only right when the subject genuinely is one-off.

How a form relates to a record type

Each step form declares its relationship:

RoleMeaning
RegistersThis form identifies or creates the record. Usually the first step, and usually where identity fields live.
AttachesThis form is filed against a record that already exists in the session.
NoneThe form is not tied to the subject — a session-level note, say.

Being bound to a record type is also what makes cross-form references legal: a later form can read an answer given on an earlier one for the same record. Without a record type there is no subject to look the value up against.