food
Get the food information from the server
get/food
Query parameters
food_namestring
rxfood_idstring
Exact catalogue row. Prefer this when the caller already has an rxfood_id from search (shared names have multiple nutrition_source siblings).
nutrition_sourcestring
When resolving by food_name, only return a DBFood whose nutrition_source or primary_data_origin_code matches (e.g. cnf).
user_idnumber
Response
successful operation
Example response
{
"nutrient_overrides": {
"aa_patient": {
"ontology": {
"id": 42,
"levels": [
"food"
]
}
},
"bb_reviewer": {
"ontology": {
"id": 42,
"levels": [
"food"
]
}
},
"cc_external": {
"ontology": {
"id": 42,
"levels": [
"food"
]
}
},
"dd_estimate": {
"ontology": {
"id": 42,
"levels": [
"food"
]
}
},
"ee_validation": {
"ontology": {
"id": 42,
"levels": [
"food"
]
}
}
}
}