Skip to content

Main content

Dietary Recall Meal Code

Encode explicitly reported dietary-recall meal and time wording without inferring meal composition or adequacy.

Loading tool…

Description

Encode explicitly reported dietary-recall meal and time wording.

Dietary arithmetic depends on as-purchased versus edible mass, per-serving versus per-100-gram bases, measured versus trace states and recall periods. A recorded allergen list is not a verified allergen-free declaration. Portion counts, label intervals and mass differences use supplied assumptions rather than establishing actual intake or nutritional suitability.

Encode explicitly reported dietary-recall meal and time wording.

When to use this tool

Use Dietary Recall Meal Code when you already have recallId, mealCode, reportedTime and need to encode explicitly reported dietary-recall meal and time wording.

How to use the tool and how it works

  1. Enter recallId, mealCode, reportedTime. Use the units and conventions below.
  2. Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
  3. Read label. Use the output convention below.

Enter recallId, mealCode, reportedTime using the field constraints below. Encode these values, in exactly that order, as a JSON array and return the serialized array as text in label. String values are preserved without trimming or external terminology lookup.1

Input fieldMeaning and unitsAccepted input
recallIdRecall IdRequired. Text; minimum UTF-16 length 1; maximum UTF-16 length 8192.
mealCodeMeal CodeRequired. Text; minimum UTF-16 length 1; maximum UTF-16 length 8192.
reportedTimeReported TimeRequired. Text; minimum UTF-16 length 1; maximum UTF-16 length 8192.
Output fieldInterpretationReturned shape
labelLabelRequired. Text; maximum UTF-16 length 8192.
json
{
  "input": {
    "recallId": "R17",
    "mealCode": "breakfast",
    "reportedTime": "08:00"
  },
  "output": {
    "label": "[\"R17\",\"breakfast\",\"08:00\"]"
  }
}

Limitations and assumptions

  • The result records supplied values without inferring meal composition or adequacy. Sources and asserted relationships are not independently authenticated.
  • Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.

Alternative or Complementary methods

Check original food labels, composition sources, ingredient/allergen information and dietary records before combining amounts. Use a complete appropriately interpreted dietary assessment when requirements or suitable intake matter; local scaling and source labels do not make those judgments.

References

  1. Calculation and input contract: dietetics/dietary-recall-meal-code — tool.io

Similar or alternative tools