com.samsung.health.food_info

Deprecated. This data type will be closed soon. Do not use it any more.

This data type defines food info that indicates nutritional info of "com.samsung.health.food_intake".

Property Type Description
"datauuid" string [Mandatory]
Unique ID for each health data.
This value should be format of UUID, the 32 hexadecimal digits displayed in five groups separated by hyphens in the form 8-4-4-4-12. It is highly encouraged to generate it using random UUID generator.
  • Value length: 10 ~ 36

"create_time" long [Mandatory]
UTC milliseconds when a data is created in the health data store.
It is different with "start_time" that indicates the start time for measurement.
  • Value range: 0 and above

"update_time" long [Mandatory]
UTC milliseconds when a data is updated.
You don't need to set its value. When a new data is inserted, it is assigned as the same value with "create_time" by the system. Then it is replaced to the updated time by the system if existing health data is updated.
  • Value range: 0 and above

"pkg_name" string [Mandatory]
Package name which provides a data.
You don't need to set its value because it is assigned by the system when a new data is inserted.
  • Value length: 0 ~ 64

"deviceuuid" string [Mandatory]
Device identifier of the source device which provides a health data.
  • Value length: 10 ~ 36

"provider_food_id" string [Mandatory]
Food ID that is unique in the same "info_provider".
  • Value length: 1 ~ 64

"info_provider" string [Mandatory]
Provider name of food information.
  • Value length: 1 ~ 255

"name" string [Mandatory]
Food name.
  • Value length: 0 ~ 255

"calorie" float [Mandatory]
Calories in kilocalories.
  • Value range: 0 ~ 99999

"description" string Description of the food.
  • Value length: 0 ~ 255

"metric_serving_amount" int Amount of the food served. In case of 300 grams for an apple, its "metric_serving_amount" is 300 and its "metric_serving_unit"is "g".
  • Value range: 0 and above

"metric_serving_unit" string Unit name for the food quantity to be measured.
  • Available values: one of the following values as text
    - "g"
    - "ml"

"default_number_of_serving_unit" int Default number of the served food.
  • Value range: 0 ~ 9999

"serving_description" string Description of serving content in the food. E.g. 200 grams per one meal.
  • Value length: 0 ~ 255

"unit_count_per_calorie" float Number of unit in one kilocalorie.
  • Value range: 0 ~ 9999

"calcium" float Calcium amount in percent.
  • Value range: 0 ~ 9999

"carbohydrate" float Carbohydrate amount in grams.
  • Value range: 0 ~ 9999

"cholesterol" float Cholesterol amount in milligrams.
  • Value range: 0 ~ 10000

"dietary_fiber" float Dietary fiber amount in grams.
  • Value range: 0 ~ 9999

"iron" float Iron amount in percent.
  • Value range: 0 ~ 9999

"monosaturated_fat" float Monounsaturated fat amount in grams.
  • Value range: 0 ~ 9999

"polysaturated_fat" float Polyunsaturated fat amount in grams.
  • Value range: 0 ~ 9999

"potassium" float Potassium amount in milligrams.
  • Value range: 0 ~ 10000

"protein" float Protein amount in grams.
  • Value range: 0 ~ 9999

"saturated_fat" float Saturated fat amount in grams.
  • Value range: 0 ~ 9999

"sodium" float Sodium amount in milligrams.
  • Value range: 0 ~ 10000

"sugar" float Sugar or glucose amount in grams.
  • Value range: 0 ~ 9999

"total_fat" float Total fat amount in grams.
  • Value range: 0 ~ 9999

"trans_fat" float Trans fat amount in grams.
  • Value range: 0 ~ 9999

"vitamin_a" float Vitamin A amount in percent.
  • Value range: 0 ~ 9999

"vitamin_c" float Vitamin C amount in percent.
  • Value range: 0 ~ 9999

"custom" blob Custom info which is formatted with JSON and compressed data.