module/dietary_habit.py¶
module.dietary_habit ¶
DietaryHabit
DietaryHabitItemsName ¶
Bases: Enum
DietaryHabitItemsName
Attributes:
Name | Type | Description |
---|---|---|
A000 |
str
|
|
A001 |
str
|
|
A002 |
str
|
|
B000 |
str
|
|
C000 |
str
|
|
D000 |
str
|
|
E000 |
str
|
|
Tip
The value will as the selection lists be displayed at front.
Source code in module/dietary_habit.py
DietaryHabitItemsValue ¶
Bases: Enum
DietaryHabitItemsValue
Attributes:
Name | Type | Description |
---|---|---|
A000 |
str
|
|
A001 |
str
|
|
A002 |
str
|
|
B000 |
str
|
|
C000 |
str
|
|
D000 |
str
|
|
E000 |
str
|
|
Tip
The value will as the value be saved into collection.
Source code in module/dietary_habit.py
valid_dietary_value ¶
valid dietary data
Parameters:
Name | Type | Description | Default |
---|---|---|---|
items_no |
list
|
List of DietaryHabitItemsValue's value. |
required |
Returns:
Type | Description |
---|---|
list[DietaryHabitItemsValue]
|
Return the only valid datas. |
Source code in module/dietary_habit.py
Last update:
June 10, 2022