身體活動與飲食實作指引
0.1.0 - ci-build

身體活動與飲食實作指引, published by 衛生福利部國民健康署. This guide is not an authorized publication; it is the continuous build for version 0.1.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/hpapa2025/pad/ and changes regularly. See the Directory of published versions

Logical Model: DietRecordModel - Detailed Descriptions

Active as of 2025-12-25

Definitions for the DietRecordModel logical model.

Guidance on how to interpret the contents of this table can be foundhere

0. DietRecordModel
Definition

本邏輯模型用於描述使用者之飲食紀錄的資料結構,協助國民健康署推動以資料驅動的健康促進服務。為利實作者理解與應用,資料欄位採通俗命名,實作時可參考「Mappings」功能頁籤,對應至實際所使用之Profiles與資料項目。亦可參照視覺化邏輯模型圖進行欄位對照與整體結構掌握。

Short情境2-飲食紀錄之資料模型
Control0..*
Is Modifierfalse
Logical ModelInstances of this logical model are not marked to be the target of a Reference
2. DietRecordModel.dietRecords
Definition

飲食紀錄

Short飲食紀錄
Control0..*
TypeBackboneElement
Invariantsele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count()))
4. DietRecordModel.dietRecords.id
Definition

Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.

ShortUnique id for inter-element referencing
Control0..1
Typestring
Is Modifierfalse
XML FormatIn the XML format, this property is represented as an attribute.
Summaryfalse
6. DietRecordModel.dietRecords.extension
Definition

May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.

ShortAdditional content defined by implementations
Comments

There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.

Control0..*
TypeExtension
Is Modifierfalse
Summaryfalse
Alternate Namesextensions, user content
Invariantsele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count()))
ext-1: Must have either extensions or value[x], not both (extension.exists() != value.exists())
SlicingThis element introduces a set of slices on DietRecordModel.dietRecords.extension. The slices areUnordered and Open, and can be differentiated using the following discriminators:
  • value @ url
  • 8. DietRecordModel.dietRecords.modifierExtension
    Definition

    May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.

    Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).

    ShortExtensions that cannot be ignored even if unrecognized
    Comments

    There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.

    Control0..*
    TypeExtension
    Is Modifiertrue because Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
    Summarytrue
    Requirements

    Modifier extensions allow for extensions that cannot be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the definition of modifier extensions.

    Alternate Namesextensions, user content, modifiers
    Invariantsele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count()))
    ext-1: Must have either extensions or value[x], not both (extension.exists() != value.exists())
    10. DietRecordModel.dietRecords.mealType
    Definition

    餐次

    Short餐次
    Control1..1
    TypeCodeableConcept
    12. DietRecordModel.dietRecords.intakeServings
    Definition

    攝取份數

    Short攝取份數
    Control1..1
    Typeinteger
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    14. DietRecordModel.dietRecords.foodName
    Definition

    食物名稱

    Short食物名稱
    Control1..1
    Typestring
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    16. DietRecordModel.dietRecords.foodImg
    Definition

    食物照片

    Short食物照片
    Control0..1
    Typebase64Binary
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    18. DietRecordModel.dietRecords.productBarcode
    Definition

    食物條碼

    Short食物條碼
    Control0..1
    Typeinteger
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    20. DietRecordModel.dietRecords.recordTime
    Definition

    紀錄時間

    Short紀錄時間
    Control1..1
    TypedateTime
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    22. DietRecordModel.dietRecords.grains
    Definition

    全穀雜糧類

    Short全穀雜糧類
    Control0..1
    Typeinteger
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    24. DietRecordModel.dietRecords.proteinFoods
    Definition

    豆魚肉蛋類

    Short豆魚肉蛋類
    Control0..1
    Typeinteger
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    26. DietRecordModel.dietRecords.dairy
    Definition

    乳品類

    Short乳品類
    Control0..1
    Typeinteger
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    28. DietRecordModel.dietRecords.vegetable
    Definition

    蔬菜類

    Short蔬菜類
    Control0..1
    Typeinteger
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    30. DietRecordModel.dietRecords.fruits
    Definition

    水果類

    Short水果類
    Control0..1
    Typeinteger
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    32. DietRecordModel.dietRecords.oilsAndNuts
    Definition

    堅果種子類

    Short堅果種子類
    Control0..1
    Typeinteger
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    34. DietRecordModel.dietRecords.protein
    Definition

    蛋白質

    Short蛋白質
    Control1..1
    Typeinteger
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    36. DietRecordModel.dietRecords.fats
    Definition

    脂肪

    Short脂肪
    Control1..1
    Typeinteger
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    38. DietRecordModel.dietRecords.carbohydrate
    Definition

    碳水化合物

    Short碳水化合物
    Control1..1
    Typeinteger
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    40. DietRecordModel.dietRecords.calories
    Definition

    熱量攝取

    Short熱量攝取
    Control1..1
    Typeinteger
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension

    Guidance on how to interpret the contents of this table can be foundhere

    0. DietRecordModel
    Definition

    本邏輯模型用於描述使用者之飲食紀錄的資料結構,協助國民健康署推動以資料驅動的健康促進服務。為利實作者理解與應用,資料欄位採通俗命名,實作時可參考「Mappings」功能頁籤,對應至實際所使用之Profiles與資料項目。亦可參照視覺化邏輯模型圖進行欄位對照與整體結構掌握。

    Short情境2-飲食紀錄之資料模型
    Logical ModelInstances of this logical model are not marked to be the target of a Reference
    2. DietRecordModel.dietRecords
    Definition

    飲食紀錄

    Short飲食紀錄
    Control0..*
    TypeBackboneElement
    4. DietRecordModel.dietRecords.mealType
    Definition

    餐次

    Short餐次
    Control1..1
    TypeCodeableConcept
    6. DietRecordModel.dietRecords.intakeServings
    Definition

    攝取份數

    Short攝取份數
    Control1..1
    Typeinteger
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    8. DietRecordModel.dietRecords.foodName
    Definition

    食物名稱

    Short食物名稱
    Control1..1
    Typestring
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    10. DietRecordModel.dietRecords.foodImg
    Definition

    食物照片

    Short食物照片
    Control0..1
    Typebase64Binary
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    12. DietRecordModel.dietRecords.productBarcode
    Definition

    食物條碼

    Short食物條碼
    Control0..1
    Typeinteger
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    14. DietRecordModel.dietRecords.recordTime
    Definition

    紀錄時間

    Short紀錄時間
    Control1..1
    TypedateTime
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    16. DietRecordModel.dietRecords.grains
    Definition

    全穀雜糧類

    Short全穀雜糧類
    Control0..1
    Typeinteger
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    18. DietRecordModel.dietRecords.proteinFoods
    Definition

    豆魚肉蛋類

    Short豆魚肉蛋類
    Control0..1
    Typeinteger
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    20. DietRecordModel.dietRecords.dairy
    Definition

    乳品類

    Short乳品類
    Control0..1
    Typeinteger
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    22. DietRecordModel.dietRecords.vegetable
    Definition

    蔬菜類

    Short蔬菜類
    Control0..1
    Typeinteger
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    24. DietRecordModel.dietRecords.fruits
    Definition

    水果類

    Short水果類
    Control0..1
    Typeinteger
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    26. DietRecordModel.dietRecords.oilsAndNuts
    Definition

    堅果種子類

    Short堅果種子類
    Control0..1
    Typeinteger
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    28. DietRecordModel.dietRecords.protein
    Definition

    蛋白質

    Short蛋白質
    Control1..1
    Typeinteger
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    30. DietRecordModel.dietRecords.fats
    Definition

    脂肪

    Short脂肪
    Control1..1
    Typeinteger
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    32. DietRecordModel.dietRecords.carbohydrate
    Definition

    碳水化合物

    Short碳水化合物
    Control1..1
    Typeinteger
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    34. DietRecordModel.dietRecords.calories
    Definition

    熱量攝取

    Short熱量攝取
    Control1..1
    Typeinteger
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension

    Guidance on how to interpret the contents of this table can be foundhere

    0. DietRecordModel
    Definition

    本邏輯模型用於描述使用者之飲食紀錄的資料結構,協助國民健康署推動以資料驅動的健康促進服務。為利實作者理解與應用,資料欄位採通俗命名,實作時可參考「Mappings」功能頁籤,對應至實際所使用之Profiles與資料項目。亦可參照視覺化邏輯模型圖進行欄位對照與整體結構掌握。

    Short情境2-飲食紀錄之資料模型
    Control0..*
    Is Modifierfalse
    Logical ModelInstances of this logical model are not marked to be the target of a Reference
    2. DietRecordModel.dietRecords
    Definition

    飲食紀錄

    Short飲食紀錄
    Control0..*
    TypeBackboneElement
    Invariantsele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count()))
    4. DietRecordModel.dietRecords.id
    Definition

    Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.

    ShortUnique id for inter-element referencing
    Control0..1
    Typestring
    Is Modifierfalse
    XML FormatIn the XML format, this property is represented as an attribute.
    Summaryfalse
    6. DietRecordModel.dietRecords.extension
    Definition

    May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.

    ShortAdditional content defined by implementations
    Comments

    There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.

    Control0..*
    TypeExtension
    Is Modifierfalse
    Summaryfalse
    Alternate Namesextensions, user content
    Invariantsele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count()))
    ext-1: Must have either extensions or value[x], not both (extension.exists() != value.exists())
    SlicingThis element introduces a set of slices on DietRecordModel.dietRecords.extension. The slices areUnordered and Open, and can be differentiated using the following discriminators:
    • value @ url
    • 8. DietRecordModel.dietRecords.modifierExtension
      Definition

      May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.

      Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).

      ShortExtensions that cannot be ignored even if unrecognized
      Comments

      There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.

      Control0..*
      TypeExtension
      Is Modifiertrue because Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
      Summarytrue
      Requirements

      Modifier extensions allow for extensions that cannot be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the definition of modifier extensions.

      Alternate Namesextensions, user content, modifiers
      Invariantsele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count()))
      ext-1: Must have either extensions or value[x], not both (extension.exists() != value.exists())
      10. DietRecordModel.dietRecords.mealType
      Definition

      餐次

      Short餐次
      Control1..1
      TypeCodeableConcept
      12. DietRecordModel.dietRecords.intakeServings
      Definition

      攝取份數

      Short攝取份數
      Control1..1
      Typeinteger
      Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
      14. DietRecordModel.dietRecords.foodName
      Definition

      食物名稱

      Short食物名稱
      Control1..1
      Typestring
      Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
      16. DietRecordModel.dietRecords.foodImg
      Definition

      食物照片

      Short食物照片
      Control0..1
      Typebase64Binary
      Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
      18. DietRecordModel.dietRecords.productBarcode
      Definition

      食物條碼

      Short食物條碼
      Control0..1
      Typeinteger
      Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
      20. DietRecordModel.dietRecords.recordTime
      Definition

      紀錄時間

      Short紀錄時間
      Control1..1
      TypedateTime
      Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
      22. DietRecordModel.dietRecords.grains
      Definition

      全穀雜糧類

      Short全穀雜糧類
      Control0..1
      Typeinteger
      Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
      24. DietRecordModel.dietRecords.proteinFoods
      Definition

      豆魚肉蛋類

      Short豆魚肉蛋類
      Control0..1
      Typeinteger
      Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
      26. DietRecordModel.dietRecords.dairy
      Definition

      乳品類

      Short乳品類
      Control0..1
      Typeinteger
      Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
      28. DietRecordModel.dietRecords.vegetable
      Definition

      蔬菜類

      Short蔬菜類
      Control0..1
      Typeinteger
      Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
      30. DietRecordModel.dietRecords.fruits
      Definition

      水果類

      Short水果類
      Control0..1
      Typeinteger
      Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
      32. DietRecordModel.dietRecords.oilsAndNuts
      Definition

      堅果種子類

      Short堅果種子類
      Control0..1
      Typeinteger
      Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
      34. DietRecordModel.dietRecords.protein
      Definition

      蛋白質

      Short蛋白質
      Control1..1
      Typeinteger
      Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
      36. DietRecordModel.dietRecords.fats
      Definition

      脂肪

      Short脂肪
      Control1..1
      Typeinteger
      Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
      38. DietRecordModel.dietRecords.carbohydrate
      Definition

      碳水化合物

      Short碳水化合物
      Control1..1
      Typeinteger
      Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
      40. DietRecordModel.dietRecords.calories
      Definition

      熱量攝取

      Short熱量攝取
      Control1..1
      Typeinteger
      Primitive ValueThis primitive element may be present, or absent, or replaced by an extension