During a household visit, the agent finds a newborn. We want the visit form to create the child in the household, then open their registration form directly.
Yes, with the form’s save effects. They apply on the phone, when the agent saves a new report:
- create a subject (the newborn), attached to the place of the visit or to another place;
- edit the information of the targeted subject, or of a subject chosen in the form;
- create or complete another report;
- open another form, pre-filled, for example on the child just created;
- send a notification to the members of a parent or child place.
They do not apply when an existing report is edited, and a report created by an effect does not trigger its own form’s effects.
Effects are described to the AI (prompt), for example: “when the visit is saved, if a newborn is declared, create a child in the household, then open the child’s registration form”.