Function Repository Resource:

FoodSafetyExplorer

Source Notebook

Select foods to view their food safety profile

Contributed by: Gay Wilson

ResourceFunction["FoodSafetyExplorer"][]

creates a dynamic interface for exploring food safety data for 120 foods.

ResourceFunction["FoodSafetyExplorer"][prop]

gives all foods in the dataset with the associated value for the specified property.

Details

FoodSafetyExplorer[] or ResourceFunction["FoodSafetyExplorer"][All] returns the full list of 120 foods for selection.
The data includes maximum recommended refrigerated and frozen storage times, safe internal temperatures for cooked foods, and potential foodborne illness pathogens.
FoodSafetyExplorer supports the following properties:
"Dataset"full dataset of food safety values for 120 foods
"TempFahrenheit"minimum cooked internal temperatures in Fahrenheit as an association
"TempCelsius"minimum cooked internal temperatures in Celsius as an association
FoodSafetyExplorer incorporates data from the Centers for Disease Control and Prevention (CDC), Food and Drug Administration (FDA) and U.S. Department of Agriculture (USDA).
FoodSafetyExplorer does not include all potential pathogens for a food. It provides the most common pathogens associated with the food.
Several foods are displayed automatically in the default view.
Holding the key while clicking on a food in the list box selects a range of foods.
Holding the or key will toggle on or off the selection of an individual food.

Examples

Basic Examples (1) 

Retrieve the list of foods, then select the food(s) you want to view:

In[1]:=
ResourceFunction["FoodSafetyExplorer"][]
Out[1]=

Options (3) 

Retrieve the full dataset:

In[2]:=
ResourceFunction["FoodSafetyExplorer"]["Dataset"]
Out[2]=

Retrieve an association of the minimum safe internal temperatures in Fahrenheit to reach when cooking:

In[3]:=
ResourceFunction["FoodSafetyExplorer"]["TempFahrenheit"]
Out[3]=

Get the same temperatures in Celsius:

In[4]:=
ResourceFunction["FoodSafetyExplorer"]["TempCelsius"]
Out[4]=

Requirements

Wolfram Language 13.0 (December 2021) or above

Version History

  • 1.0.0 – 14 August 2024

Source Metadata

Related Resources

License Information