Automations and interoperability
An automation runs a short script on the server. It starts at a set time (the 1st of the month at 6:00 for example), when a form arrives, when a record changes or when an outside call comes in. It can send data to DHIS2, a FHIR server or another REST API, and fetch data from them.
- Triggers
- Schedule (cron, with a time zone, for example Africa/Bamako), form received, person or place created or changed, incoming call.
- Named connections
- The script calls a connection by its name. The server makes the call, adds the credentials and refuses any address outside that connection.
- Encrypted secrets
- Connection addresses and secrets are entered in the admin space and stored encrypted. The project files only contain the connection name.
- Writing to Collecton
- An automation can create or update places, people and reports from the data it fetches.
- External identifiers
- A record can keep its identifier from the other system, to avoid duplicates from one exchange to the next.
- Notifications
- An automation can send a notification to the members of a place, for example when a threshold is crossed.
Example exchanges
| Trigger | Exchange |
|---|---|
| the 1st of each month, 06:00 | the month’s visits, aggregated by health center, sent to DHIS2 |
| every night | the list of facilities fetched from a national registry |
| incoming call | people registered by another application created, with their original identifier |
| “Lab result” report received | the person’s record updated |
Where an automation lives
An automation is a configuration file (trigger, connections used, time limit) and a script. It is part of the project’s sources. You design it in a draft, try it in a test project, and it deploys with the rest.
Your questions
Does Collecton have a DHIS2 connector?
No. The exchange is written in an automation (which elements, which period, which places), which the AI can draft with you, to fit your DHIS2 instance.
Can a test project call production systems?
Not by default. A test project receives none of the production project's connections. Its connections are entered separately.
See also
- Indicators and dashboardsReports, calculated indicators, project dashboards and exports
- Places, teams and rolesHierarchy of places, assigned members, roles, permissions and Excel imports
- SecurityData isolated per project, rights by role and by field, devices under control
- AI design and studioA draft built by the AI from your description, adjusted in a visual editor
Try Collecton
Create an organization on the demo platform and start from an example project with its demo data. To talk about your program, write to us.