Interactions
Sourced pairings between Foods, each Mitigating or Aggravating, with wording you can show.
An Interaction says that two or more Foods eaten together affect a Trigger Factor. It comes from a cited peer-reviewed study or clinical guideline.
No Interactions are loaded yet. No study or guideline found so far shows that eating two catalogue Foods together changes a Trigger Factor. Both endpoints below work and return empty lists until one is sourced and checked. Build your app to handle an empty list, and to show Interactions when they appear.
The shape
Each Interaction has these fields:
| Field | Description |
|---|---|
id |
A stable ID for the Interaction. |
foods |
Every Food it involves, as [{ foodId, name }]. It applies to a Combination that contains all of them. |
factor |
The Trigger Factor it concerns, so you can show it next to that value. |
direction |
mitigating or aggravating. |
confidence |
high, medium or low. |
source |
{ type, citation, dataset, version }, where type is peer-reviewed or clinical-guideline and dataset is acidex-starter-set. |
approvedWording |
What you show your users, unchanged. See Approved Wording and attribution. |
Interactions never change the numbers in a Trigger Profile. Sourced measurements and pairing claims stay separate, and you decide how to show both.
Interactions for a Food
GET/v1/foods/:id/interactions
Returns { foodId, interactions: [...] }: every Interaction that involves the Food. Use it to suggest pairings before a user builds a dish. For now, every Food returns:
{ "foodId": "food_40e5af9a5038fee4", "interactions": [] }
An unknown ID gets 404 with food_not_found.
Interactions in a Combination
POST /v1/combinations/evaluate returns interactions: every Interaction whose Foods are all in the Combination. See Evaluating a Combination.