> For the complete documentation index, see [llms.txt](https://docs.sygnal.network/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sygnal.network/use-cases/coordination-patterns.md).

# Coordination patterns

Six wider coordination patterns between a campaign platform and a clinical platform, and the Sygnal APIs each one uses.

Beyond the four worked use cases, the same two kinds of platform (a health campaign platform and a clinical platform) give rise to six recurring coordination patterns. Together they show where Beckn handoffs are enough, and where Sygnal's own APIs are needed.

**Legend:** **\[B]** reused Beckn verb · **\[S]** Sygnal API · **\[R]** records layer (below Sygnal) · **\[E]** inside an edge platform (out of scope)

## 1. Campaign to routine-care conversion

When a campaign reaches a household, the household should be enrolled in routine care. Loss to follow-up shows up as the **absence** of the counter-party's acceptance.

```mermaid
sequenceDiagram
  participant HCM as Campaign platform
  participant EMR as Clinical platform
  participant DE as Deviation & Escalation
  participant NI as Network Intelligence
  HCM->>EMR: confirm — place enrolment handoff [B]
  alt routine care accepts
    EMR-->>HCM: on_confirm — accepted [B]
    EMR->>HCM: update — enrolment completed [B]
  else no acceptance within SLA
    HCM->>DE: deviation/flag — NOT_ACCEPTED / SLA_BREACH [S]
    NI->>HCM: signal/emit — FOLLOW_UP_DUE [S]
  end
  HCM->>NI: event/report — aggregate handoffs placed / accepted [S]
```

## 2. Cross-programme coordination

A malaria campaign worker finds a child who missed vaccinations. Checking immunisation status and writing the dose record are **records-layer** operations. Sygnal owns only the handoff to the immunisation programme and its notification.

```mermaid
sequenceDiagram
  participant HCM as Campaign platform
  participant EMR as Clinical platform
  HCM->>EMR: query immunisation status [R]
  EMR-->>HCM: zero-dose / missed vaccines [R]
  HCM->>EMR: confirm — refer child for catch-up [B]
  HCM->>EMR: update — dose administered [B]
  Note over EMR: immunisation record write [R]
```

## 3. Supervisor deviation to corrective follow-up

A supervisor's spot-check finds that a household recorded as covered was actually missed. This is the main example of a third-party deviation.

```mermaid
sequenceDiagram
  participant SUP as Supervisor (via campaign platform)
  participant DE as Deviation & Escalation
  participant NI as Network Intelligence
  participant EMR as Clinical platform
  SUP->>DE: deviation/flag — THIRD_PARTY, COVERAGE_MISMATCH [S]
  DE-->>SUP: deviation/on_flag — ACKNOWLEDGED [S]
  NI->>EMR: signal/emit — corrective follow-up advised [S]
  SUP->>EMR: confirm — corrective follow-up handoff [B]
  Note over EMR: assign and complete revisit [E]
  DE-->>SUP: deviation/on_flag (unsolicited) — RESOLVED [S]
```

## 4. Delivery attestation (planned)

A health worker delivers a commodity to a household. The household is not a network participant, so there is no counter-party to co-sign. Proving the delivery needs a first-party **attestation** (a statement by the delivering side that it happened), tied to an obligation, such as a campaign checklist item. This is the one pattern that needs the planned `attestation/attest` API. Today only the **mismatch** path (`deviation/flag`, `ATTESTATION_MISMATCH`) is available. Payment for the delivery stays inside the campaign platform; Sygnal is not a payment rail.

## 5. Outbreak signalling

Clinical platforms report syndromic or notifiable signals under policy. Network Intelligence spots a cluster and signals the health authority, **which decides** on the response.

```mermaid
sequenceDiagram
  participant EMR as Clinical platform
  participant NI as Network Intelligence
  participant MOH as Health authority
  EMR->>NI: event/report — SYNDROMIC_SIGNAL / NOTIFIABLE_CASE, per policy [S]
  Note over NI: pattern crosses a threshold in area Z
  NI->>MOH: signal/emit — OUTBREAK_SUSPECTED [S]
  Note over MOH: decides, may launch a response campaign [E]
```

## 6. Coverage observation

"Which areas are reached by many programmes, and which are missed by all?" Aggregate coordination metadata can answer this, per period and area, at the level of detail that governance sets. A per-household answer would need pseudonymous subject references and a keyed-hash scheme. That is an [open question](/reference/open-questions.md).

```mermaid
sequenceDiagram
  participant G as Governance
  participant HCM as Campaign platform
  participant EMR as Clinical platform
  participant NI as Network Intelligence
  G->>HCM: policy/update — reporting section [S]
  G->>EMR: policy/update — reporting section [S]
  HCM->>NI: event/report — COVERAGE_REPORTED (aggregate) [S]
  EMR->>NI: event/report — COVERAGE_REPORTED (aggregate) [S]
  NI->>G: signal/emit — COVERAGE_GAP [S]
```

## Summary

| Pattern                 | Beckn handoff      | Sygnal APIs                                      |
| ----------------------- | ------------------ | ------------------------------------------------ |
| 1. Campaign → routine   | ✓                  | `deviation/flag`, `event/report`, `signal/emit`  |
| 2. Cross-programme      | ✓                  | `event/report` (optional)                        |
| 3. Supervisor deviation | Corrective handoff | `deviation/flag` (third party), `signal/emit`    |
| 4. Delivery attestation | —                  | `attestation/attest` (planned), `deviation/flag` |
| 5. Outbreak signalling  | —                  | `event/report`, `signal/emit`                    |
| 6. Coverage observation | —                  | `policy/update`, `event/report`, `signal/emit`   |

## Where Sygnal is **not** the right tool

* Peer-to-peer device sync **within** one platform;
* supply-chain and inventory logistics;
* payment disbursement;
* microplanning and campaign configuration;
* clinical-data queries and record writes, which belong to the records layer;
* a single, bilateral integration between two platforms with no wider network. A direct integration is simpler there. Sygnal becomes worth it at the second programme and the third platform. That is when many independently run edges need trust, closed loops and observation across them.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.sygnal.network/use-cases/coordination-patterns.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
